/* ===== FISHING GAME ===== */
.fishing-page {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
    width: min(1600px, 100%);
    margin: 0 auto;
    padding: 1rem;
    align-items: start;
}

.fishing-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

/* ── Header bar (Zeit / Audio / Punkte) ───────────────────────── */
.fishing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel-bg);
    border: 3px solid #7c6cf8;
    border-radius: 0;
    box-shadow: 4px 4px 0 #000;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.fishing-header::before {
    content: '■ FISHING GAME ■';
    position: absolute;
    top: 0; left: 0; right: 0;
    background: #7c6cf8;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    padding: 0.3rem 0.75rem;
    letter-spacing: 0.15em;
    pointer-events: none;
    z-index: 1;
}

.fishing-header > * {
    padding: 2.2rem 1.25rem 0.75rem;
}

.fishing-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.fishing-stat-label {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fishing-stat-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.fishing-stat--danger { color: #e53935 !important; animation: blink 0.5s step-end infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* ── Audio controls ───────────────────────────────────────────── */
.fishing-audio-ctrl {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-mute {
    background: var(--input-bg);
    border: 2px solid #7c6cf8;
    border-radius: 0;
    padding: 0.2rem 0.45rem;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--text);
    box-shadow: 2px 2px 0 #000;
    transition: transform 0.08s, box-shadow 0.08s;
}

.btn-mute:hover  { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #000; }
.btn-mute:active { transform: translate(1px, 1px);  box-shadow: 1px 1px 0 #000; }

.volume-slider {
    width: 70px;
    accent-color: #7c6cf8;
    cursor: pointer;
}

/* ── Start screen ─────────────────────────────────────────────── */
.fishing-start-screen {
    background: #ffffff;
    color: #1a1a1a;
    border: 3px solid #7c6cf8;
    border-radius: 0;
    box-shadow: 4px 4px 0 #000;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    overflow: hidden;
}

.fishing-start-screen .fishing-stat-label,
.fishing-start-screen .fishing-hint,
.fishing-start-screen .fishing-rule {
    color: #1a1a1a;
}

.fishing-start-screen .fishing-rule strong {
    color: #111;
}

.fishing-start-screen::before {
    content: '■ REGELN ■';
    align-self: stretch;
    background: #7c6cf8;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    padding: 0.3rem 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.fishing-start-screen > *:not(:first-child) {
    padding: 0 2rem;
}

.fishing-start-screen > *:last-child {
    padding-bottom: 2rem;
}

.fishing-rules {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 520px;
}

.fishing-rule {
    display: grid;
    grid-template-columns: 210px 1fr;
    align-items: center;
    gap: 0.75rem;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.fishing-rule strong {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
}

.rule-fish-name {
    display: block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.42rem;
    color: #7c6cf8;
    margin-bottom: 0.2rem;
    letter-spacing: 0.05em;
}

/* ── Legend fish previews ─────────────────────────────────────── */
.rule-fish {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 210px;
    height: 100px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.rule-fish--clown  { filter: drop-shadow(0 0 6px rgba(255,112,67,0.7))  drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.rule-fish--golden { filter: drop-shadow(0 0 8px rgba(255,215,0,0.8))   drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.rule-fish--red    { filter: drop-shadow(0 0 6px rgba(255,100,100,0.7)) drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.rule-fish--blitz  { filter: drop-shadow(0 0 10px rgba(255,240,0,0.9))  drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.rule-fish--whale  { filter: drop-shadow(0 0 6px rgba(74,144,226,0.7))  drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.rule-fish--hai    { filter: drop-shadow(0 0 6px rgba(255,80,80,0.7))   drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.rule-fish--blue   { filter: drop-shadow(0 0 6px rgba(100,180,255,0.7)) drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.rule-fish--fire   { width: 210px; height: 72px; }

.rule-fish .fish-svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fish-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 0;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 110px;
    justify-content: center;
    box-shadow: 2px 2px 0 #000;
}

.fish-chip--golden { background: rgba(255,215,0,0.18);  border: 2px solid #FFD700; color: #a07000; }
.fish-chip--red    { background: rgba(239,83,80,0.14);   border: 2px solid #EF5350; color: #b71c1c; }
.fish-chip--blue   { background: rgba(66,165,245,0.14);  border: 2px solid #42A5F5; color: #1565c0; }
.fish-chip--whale  { background: rgba(74,144,226,0.14);  border: 2px solid #4A90E2; color: #2e5c8a; }
.fish-chip--shark  { background: rgba(85,85,85,0.18);    border: 2px solid #555555; color: #333333; }

.fishing-aura-badge {
    display: inline-block;
    margin-left: 0.8rem;
    padding: 0.2rem 0.55rem;
    background: rgba(74,144,226,0.25);
    border: 2px solid #4A90E2;
    border-radius: 0;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: #4A90E2;
    box-shadow: 2px 2px 0 #000;
    animation: aura-glow 1.2s ease-in-out infinite;
}

@keyframes aura-glow {
    0%, 100% { opacity: 1; box-shadow: 2px 2px 0 #000, 0 0 8px rgba(74,144,226,0.5); }
    50%       { opacity: 0.7; box-shadow: 2px 2px 0 #000, 0 0 16px rgba(74,144,226,0.8); }
}

.fishing-hint {
    font-family: 'VT323', monospace;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Start / action buttons (pixel art style) ─────────────────── */
.fishing-start-btn,
.fishing-page .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 2rem;
    border: 2px solid #a89cf8;
    border-radius: 0;
    background: #6b5aed;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.08s, box-shadow 0.08s, background 0.08s;
}

.fishing-start-btn:hover,
.fishing-page .btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
    background: #7c6cf8;
    color: #fff;
}

.fishing-start-btn:active,
.fishing-page .btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.fishing-gameover .btn-primary {
    font-size: 0.42rem;
    min-height: 36px;
    padding: 0 1.2rem;
    width: fit-content;
    align-self: center;
}

/* ── Boat dock ────────────────────────────────────────────────── */
.fishing-boat-dock {
    position: relative;
    cursor: pointer;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
    transition: filter 0.2s;
    user-select: none;
    background: #0d1f2e;
    border: 3px solid #7c6cf8;
    border-bottom: none;
    box-shadow: 4px 0 0 #000, -4px 0 0 #000, 0 -4px 0 #000;
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.fishing-boat-dock:hover { filter: brightness(1.06); }

.boat-dock--ready {
    outline: 3px solid #FFD700;
    filter: brightness(1.1);
    animation: dock-pulse 0.9s ease-in-out infinite alternate;
}

@keyframes dock-pulse {
    from { filter: brightness(1.1); }
    to   { filter: brightness(1.22); }
}

.boat-svg {
    display: block;
    width: 45%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    animation: boat-rock 4.5s ease-in-out infinite alternate;
    transform-origin: 50% 90%;
}

@keyframes boat-rock {
    from { transform: rotate(-1.8deg) translateY(0); }
    to   { transform: rotate(1.8deg)  translateY(-3px); }
}

.boat-deposit-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.82);
    color: #FFD700;
    padding: 0.3rem 0.9rem;
    border-radius: 0;
    border: 2px solid #FFD700;
    box-shadow: 3px 3px 0 #000;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

.boat-fire-event {
    position: absolute;
    top: 2.25rem;
    left: 57%;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    cursor: pointer;
}

.boat-fire-gif {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 171, 0, 0.7));
}

.boat-fire-timer {
    position: absolute;
    bottom: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    color: #ffd54f;
    text-shadow: 1px 1px 0 #000;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.1rem 0.24rem;
    border: 1px solid rgba(255, 196, 64, 0.85);
}

.rule-fire-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
}

/* ── Water area ───────────────────────────────────────────────── */
.fishing-water {
    position: relative;
    height: 460px;
    background:
        linear-gradient(180deg, transparent 80%, rgba(72,46,7,0.97) 80%, rgba(40,24,3,0.99) 92%, #110901 100%),
        radial-gradient(130% 75% at 50% -8%, rgba(173,232,255,0.20) 0%, rgba(173,232,255,0) 60%),
        linear-gradient(180deg,
            #08324b 0%,
            #0a4f73 28%,
            #0a6a97 58%,
            #118ac2 82%,
            #49c9ff 100%);
    border-radius: 0;
    overflow: hidden;
    border: 3px solid #7c6cf8;
    border-top: none;
    box-shadow: 4px 4px 0 #000;
    touch-action: manipulation;
}

.fishing-water::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(165deg, rgba(255,255,255,0.055) 0%, transparent 40%),
        linear-gradient(165deg, transparent 28%, rgba(255,255,255,0.04) 62%, transparent 90%);
    animation: light-ray-drift 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes light-ray-drift {
    from { opacity: 0.85; transform: translateX(-1.5%); }
    to   { opacity: 1;    transform: translateX(1.5%); }
}

.fishing-water::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 30px;
    background:
        linear-gradient(180deg,
            rgba(255,255,255,0.26) 0%,
            rgba(255,255,255,0.11) 32%,
            rgba(255,255,255,0.04) 58%,
            rgba(255,255,255,0) 100%),
        radial-gradient(120% 65% at 50% 0%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 72%);
    border-top: 1px solid rgba(255,255,255,0.26);
    animation: water-surface-breathe 5.8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes water-surface-breathe {
    0%, 100% { opacity: 0.72; }
    50%      { opacity: 0.88; }
}

/* ── Seaweed ──────────────────────────────────────────────────── */
.seaweed {
    position: absolute;
    bottom: 0;
    width: 34px;
    transform-origin: bottom center;
    pointer-events: none;
    z-index: 3;
}

.seaweed-svg { width: 100%; height: 100%; }
.seaweed-a { animation: sway-a 3.4s ease-in-out infinite alternate; }
.seaweed-b { animation: sway-b 4.1s ease-in-out infinite alternate; }

@keyframes sway-a {
    from { transform: rotate(-10deg); }
    to   { transform: rotate(9deg);  }
}

@keyframes sway-b {
    from { transform: rotate(9deg);  }
    to   { transform: rotate(-10deg); }
}

/* ── Fish items ───────────────────────────────────────────────── */
.fish-item {
    position: absolute;
    z-index: 5;
    width: 72px; height: 44px;
    cursor: pointer;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: left 0.15s linear, top 0.15s linear, filter 0.15s ease;
    will-change: left, top, transform;
    animation: fish-appear 0.32s cubic-bezier(0.22,1,0.36,1) both;
    touch-action: manipulation;
}

@keyframes fish-appear {
    0%   { opacity: 0; scale: 0.1; }
    70%  { opacity: 1; scale: 1.18; }
    100% { opacity: 1; scale: 1; }
}

.fish-item--flip { transform: scaleX(-1); }
.fish-item--flip:hover { transform: scaleX(-1); }
.fish-item:not(.fish-item--flip):hover { transform: none; }
.fish-item:hover { filter: drop-shadow(0 0 12px rgba(255,255,255,0.30)) drop-shadow(0 2px 7px rgba(0,0,0,0.45)); }

.fish-item--golden {
    filter: drop-shadow(0 0 10px #FFD700) drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    width: 84px; height: 52px;
}
.fish-item--clown {
    filter: drop-shadow(0 0 8px rgba(255,112,67,0.9)) drop-shadow(0 2px 6px rgba(0,0,0,0.35));
    width: 76px; height: 46px;
}
.fish-item--blue  { width: 115px; height: 72px; }
.fish-item--red   { width: 115px; height: 72px; }
.fish-item--blitz {
    width: 90px; height: 56px;
    filter: drop-shadow(0 0 10px rgba(255,255,200,1.0)) drop-shadow(0 0 5px #fff) drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.fish-item--whale {
    filter: drop-shadow(0 0 10px rgba(120,80,0,0.7)) drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    width: 230px; height: 140px;
}
.fish-item--hai {
    filter: drop-shadow(0 0 8px rgba(80,40,0,0.7)) drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    width: 200px; height: 120px;
}

/* Expiry warnings */
.fish-item--expiring::after,
.fish-item--critical::after {
    content: '';
    position: absolute;
    left: -1px; top: -1px; right: -1px; bottom: -1px;
    border-radius: 999px;
    pointer-events: none;
    animation: expiry-ring 0.55s ease-in-out infinite alternate;
}
.fish-item--expiring::after { box-shadow: 0 0 2px 0 rgba(255,100,50,0.55); }
.fish-item--critical::after { box-shadow: 0 0 3px 0 rgba(255,30,30,0.85); animation-duration: 0.22s; }

@keyframes expiry-ring {
    from { opacity: 0.3; }
    to   { opacity: 1; }
}

.fish-item--hookable { cursor: pointer; }
.fish-item--dim      { opacity: 0.25; pointer-events: none; cursor: default; }
.fish-svg    { width: 100%; height: 100%; image-rendering: pixelated; }
.boat-svg    { }
.seaweed-svg { image-rendering: pixelated; }

/* ── Hooked fish ──────────────────────────────────────────────── */
.hooked-fish {
    position: fixed;
    pointer-events: none;
    z-index: 1001;
    width: 200px; height: 175px;
    top: -200px; left: -200px;
    animation: net-swing 1.8s ease-in-out infinite alternate;
    transform-origin: top center;
}

@keyframes net-swing {
    from { rotate: -6deg; }
    to   { rotate:  6deg; }
}

.fishing-line-overlay {
    position: fixed;
    inset: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 1000;
    overflow: visible;
}

/* ── Score popups ─────────────────────────────────────────────── */
.catch-popup {
    position: absolute;
    z-index: 10;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    pointer-events: none;
    animation: popup-fly 0.9s ease-out forwards;
    white-space: nowrap;
}

.catch-popup--golden { color: #FFD700; text-shadow: 2px 2px 0 #000, 0 0 8px rgba(255,215,0,0.8); }
.catch-popup--red    { color: #FF8A80; text-shadow: 2px 2px 0 #000; }
.catch-popup--blue   { color: #82B1FF; text-shadow: 2px 2px 0 #000; }
.catch-popup--whale  { color: #4A90E2; text-shadow: 2px 2px 0 #000, 0 0 12px rgba(74,144,226,0.8); font-size: 0.9rem; }
.catch-popup--hai    { color: #FF6B6B; text-shadow: 2px 2px 0 #000, 0 0 8px rgba(255,107,107,0.8); font-size: 1rem; }
.catch-popup--fire   { color: #FF9900; text-shadow: 2px 2px 0 #000, 0 0 10px rgba(255,153,0,0.9); font-size: 1rem; }

@keyframes popup-fly {
    0%   { transform: translateY(0)     scale(0.6);  opacity: 0; }
    15%  { transform: translateY(-12px) scale(1.4);  opacity: 1; }
    70%  { transform: translateY(-50px) scale(1.1);  opacity: 1; }
    100% { transform: translateY(-88px) scale(0.75); opacity: 0; }
}

/* ── Bubbles (pixel art — square) ────────────────────────────── */
.bubble {
    position: absolute;
    border-radius: 0;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.48);
    box-shadow: inset -1px -1px 0 rgba(0,0,0,0.18), inset 1px 1px 0 rgba(255,255,255,0.35);
    pointer-events: none;
    image-rendering: pixelated;
    animation: bubble-rise var(--bdur,5s) steps(14) var(--bdelay,0s) infinite;
}

@keyframes bubble-rise {
    0%   { transform: translateY(0)       scale(1);    opacity: 0; }
    8%   { opacity: 0.72; }
    88%  { opacity: 0.42; }
    100% { transform: translateY(-360px)  scale(0.55); opacity: 0; }
}

/* ── Pixel art seafloor decorations ──────────────────────────── */
.seafloor-coral {
    position: absolute;
    bottom: 0;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 1;
}

/* mid-water background rock silhouettes */
.bg-rock-shadow {
    position: absolute;
    pointer-events: none;
    opacity: 0.18;
    image-rendering: pixelated;
    z-index: 0;
}

/* ── Seafloor creatures (starfish, sea urchins) ───────────────── */
.seafloor-creature {
    position: absolute;
    bottom: 4px;
    pointer-events: none;
    image-rendering: pixelated;
    z-index: 2;
}

.creature-wander-a { animation: wander-a var(--cwdur, 18s) ease-in-out var(--cwdelay, 0s) infinite alternate; }
.creature-wander-b { animation: wander-b var(--cwdur, 22s) ease-in-out var(--cwdelay, 0s) infinite alternate; }
.creature-wander-c { animation: wander-c var(--cwdur, 16s) ease-in-out var(--cwdelay, 0s) infinite alternate; }
.creature-wander-d { animation: wander-d var(--cwdur, 26s) ease-in-out var(--cwdelay, 0s) infinite alternate; }
.creature-wander-e { animation: wander-e var(--cwdur, 20s) ease-in-out var(--cwdelay, 0s) infinite alternate; }

@keyframes wander-a {
    0%   { transform: translateX(-40px) rotate(-4deg); }
    50%  { transform: translateX(0px)   rotate(0deg);  }
    100% { transform: translateX(40px)  rotate(4deg);  }
}
@keyframes wander-b {
    0%   { transform: translateX(-55px) rotate(3deg);  }
    40%  { transform: translateX(-8px)  rotate(-1deg); }
    100% { transform: translateX(32px)  rotate(-4deg); }
}
@keyframes wander-c {
    0%   { transform: translateX(-22px) rotate(-2deg); }
    60%  { transform: translateX(18px)  rotate(2deg);  }
    100% { transform: translateX(48px)  rotate(-3deg); }
}
@keyframes wander-d {
    0%   { transform: translateX(-60px) rotate(5deg);  }
    35%  { transform: translateX(-18px) rotate(-2deg); }
    70%  { transform: translateX(14px)  rotate(3deg);  }
    100% { transform: translateX(44px)  rotate(-4deg); }
}
@keyframes wander-e {
    0%   { transform: translateX(-28px) rotate(-3deg); }
    45%  { transform: translateX(12px)  rotate(4deg);  }
    100% { transform: translateX(50px)  rotate(-2deg); }
}

/* ── Game over overlay ────────────────────────────────────────── */
.fishing-gameover {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background: var(--panel-bg);
    border: 3px solid #7c6cf8;
    border-radius: 0;
    box-shadow: 6px 6px 0 #000, 0 0 40px rgba(124,108,248,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    overflow: hidden;
    animation: gameover-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
    padding: 0;
    min-width: 260px;
}

.fishing-gameover::before {
    content: '■ GAME OVER ■';
    align-self: stretch;
    background: #7c6cf8;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    padding: 0.3rem 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.fishing-gameover > *:not(:first-child):not(.btn-primary) {
    padding: 0 2rem;
}
.fishing-gameover > *:last-child:not(.btn-primary) { padding-bottom: 2rem; }
.fishing-gameover > .btn-primary { padding-bottom: 2rem; }

@keyframes gameover-in {
    from { opacity: 0; scale: 0.75; }
    to   { opacity: 1; scale: 1; }
}

.gameover-score {
    font-family: 'Press Start 2P', monospace;
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 4px 4px 0 #000;
    line-height: 1;
}

.gameover-label {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.gameover-record {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: #FFD700;
    text-shadow: 2px 2px 0 #000;
}

/* ── Legend ───────────────────────────────────────────────────── */
.fishing-legend {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Sidebar panels ───────────────────────────────────────────── */
.fishing-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fishing-panel {
    border-radius: 0 !important;
    border: 3px solid #7c6cf8 !important;
    box-shadow: 4px 4px 0 #000 !important;
    padding: 0 !important;
    overflow: hidden;
}

.fishing-panel .panel-heading {
    background: #7c6cf8;
    margin: 0;
    padding: 0.3rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fishing-panel .panel-heading h3 {
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.38rem;
    letter-spacing: 0.12em;
    margin: 0;
    text-shadow: none;
}

.fishing-panel .lb-list,
.fishing-panel .history-list,
.fishing-panel .fishing-empty {
    padding: 0 0.75rem;
}

.fishing-empty {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

/* ── Leaderboard ──────────────────────────────────────────────── */
.lb-list {
    list-style: none;
    margin: 0.6rem 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lb-entry {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0;
    background: var(--accent-muted);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    font-family: 'VT323', monospace;
    font-size: 1rem;
}

.lb-entry--me {
    background: rgba(255,215,0,0.12);
    border: 2px solid rgba(255,215,0,0.5);
    box-shadow: 2px 2px 0 #000;
    font-weight: 700;
}

.lb-rank  { font-size: 1.1rem; flex-shrink: 0; }
.lb-name  { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-family: 'Press Start 2P', monospace; font-size: 0.6rem; color: #ffd700; text-shadow: 1px 1px 0 #000; }

/* ── History ──────────────────────────────────────────────────── */
.history-list {
    list-style: none;
    margin: 0.6rem 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-radius: 0;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
}

.history-score {
    font-weight: 700;
    color: var(--accent);
}

.history-date { color: var(--text-muted); }

/* ── Gast-Modal ───────────────────────────────────────────────── */
.guest-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.guest-modal {
    background: var(--panel-bg);
    border: 3px solid #7c6cf8;
    border-radius: 0;
    box-shadow: 6px 6px 0 #000, 0 0 40px rgba(124,108,248,0.15);
    width: 100%;
    max-width: 460px;
    animation: gameover-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

.guest-modal-header {
    background: #7c6cf8;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
}

.guest-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    background: #c0392b;
    color: #fff;
    font-family: sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
    border: 2px solid #7a1a10;
    box-shadow: 1px 1px 0 #000;
    flex-shrink: 0;
    cursor: pointer;
    margin-left: auto;
    letter-spacing: 0;
}

.guest-modal-close:hover { background: #e74c3c; color: #fff; }

.guest-modal-body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.guest-modal-desc {
    margin: 0 0 0.15rem;
    font-family: 'VT323', monospace;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .fishing-page {
        grid-template-columns: 1fr;
        padding: 0.5rem;
        gap: 0.75rem;
    }

    .fishing-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fishing-panel   { flex: 1; min-width: 240px; }
    .fishing-water   { height: 360px; }
    .fishing-header  { padding: 0; }
    .fishing-header > * { padding: 2rem 0.75rem 0.5rem; }
    .fishing-stat-value { font-size: 0.85rem; }
    .fishing-start-screen { padding: 0; }
    .fishing-start-btn    { width: 100%; }
    .boat-deposit-hint    { font-size: 0.45rem; padding: 0.25rem 0.6rem; }
    .fishing-boat-dock    { overflow: visible; }
    .boat-fire-gif        { width: 40px; height: 40px; }

    /* Fish sizes */
    .fish-item        { width: 56px;  height: 34px; }
    .fish-item--blue  { width: 80px;  height: 50px; }
    .fish-item--red   { width: 80px;  height: 50px; }
    .fish-item--golden{ width: 60px;  height: 37px; }
    .fish-item--clown { width: 58px;  height: 35px; }
    .fish-item--blitz { width: 65px;  height: 40px; }
    .fish-item--whale { width: 150px; height: 90px; }
    .fish-item--hai   { width: 130px; height: 78px; }
    .hooked-fish      { width: 130px; height: 114px; }

    /* Rules: schmalere Bildspalte */
    .fishing-rule     { grid-template-columns: 140px 1fr; gap: 0.5rem; }
    .rule-fish        { width: 140px; height: 68px; }
    .rule-fish--fire  { width: 140px; height: 54px; }
    .fishing-rules    { max-width: 100%; }
}

@media (max-width: 480px) {
    .fishing-water  { height: 290px; }
    .fishing-hint   { font-size: 0.9rem; }
    .fishing-aura-badge { display: none; }

    /* Fish sizes kompakter */
    .fish-item--whale { width: 120px; height: 72px; }
    .fish-item--hai   { width: 105px; height: 63px; }
    .fish-item--blue  { width: 70px;  height: 43px; }
    .fish-item--red   { width: 70px;  height: 43px; }
    .hooked-fish      { width: 110px; height: 97px; }

    /* Rules: noch schmaler */
    .fishing-rule  { grid-template-columns: 110px 1fr; gap: 0.4rem; }
    .rule-fish     { width: 110px; height: 55px; }
    .rule-fish--fire { width: 110px; height: 46px; }
    .fishing-rule strong   { font-size: 0.45rem; }
    .rule-fish-name        { font-size: 0.35rem; }
}
