/* Cozy Catch – warmes Holz, Creme und Seewasser. Gestempelte Karten wie auf kommzocken.de, nur weicher. */
@font-face { font-family: Fredoka; src: url(fonts/fredoka-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Fredoka; src: url(fonts/fredoka-latin-600-normal.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/nunito-latin-600-normal.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/nunito-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/nunito-latin-800-normal.woff2) format('woff2'); font-weight: 800 900; font-display: swap; }

:root {
  --cream: #fff8ec; --cream-2: #f6ecd8; --cream-3: #ead9b8; --wood: #8a5a33; --wood-dark: #5b3a22; --ink: #3a2a24; --ink-2: #6b5546;
  --leaf: #4f9a4a; --leaf-2: #3f8a46; --sky: #6fb4ec; --water: #2e7396; --coral: #e2574c; --coral-2: #c8443a; --sun: #f6b73c; --gold: #f2c13a; --teal: #1d7a80;
  --shadow: 0 4px 0 rgba(58, 42, 36, .35); --radius: 18px;
  --head: Fredoka, Nunito, "Trebuchet MS", system-ui, sans-serif; --body: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --menu-h: 0px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--water); }
body { font: 600 16px/1.45 var(--body); color: var(--ink); -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 .6em; }
button, input, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .875rem; } .muted { color: var(--ink-2); } .error { color: var(--coral-2); font-weight: 800; }
.ico { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; }
.ico svg { width: 100%; height: 100%; }
:focus-visible { outline: 3px solid #1d6b73; outline-offset: 3px; border-radius: 10px; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; }

.game { position: fixed; inset: 0; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.game[data-phase="idle"] #scene { cursor: crosshair; }
.game[data-phase="reeling"] #scene, .game[data-phase="bite"] #scene { cursor: pointer; }

/* ── Knöpfe ── */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 2.5px solid var(--wood-dark); border-radius: 14px; background: var(--cream); font: 600 1rem var(--head); cursor: pointer; box-shadow: 0 3px 0 var(--wood-dark); transition: transform .08s, box-shadow .08s, filter .15s; text-decoration: none; color: var(--ink); }
.btn:hover:not(:disabled) { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 4px 0 var(--wood-dark); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--wood-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--leaf); color: #fff; }
.btn.gold { background: var(--gold); }
.btn.danger { background: var(--coral); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; border-color: rgba(91, 58, 34, .45); }
.btn.small { min-height: 38px; padding: 5px 12px; font-size: .92rem; border-radius: 12px; box-shadow: 0 2px 0 var(--wood-dark); }
.btn.block { width: 100%; }
.btn .coins .ico { width: 18px; height: 18px; }
.icon-btn { appearance: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 2px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:hover { background: var(--cream-2); }
.coins { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; white-space: nowrap; }
.coins .ico { width: 18px; height: 18px; }

/* ── HUD ── */
.hud { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; z-index: 20; }
.hud-left, .hud-right { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; pointer-events: none; }
.hud-right { justify-content: flex-end; }
.chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 14px 5px 6px; background: rgba(255, 248, 236, .94); border: 2.5px solid var(--wood-dark); border-radius: 999px; box-shadow: var(--shadow); font: 600 1rem var(--head); color: var(--ink); text-decoration: none; }
.chip.player { padding-right: 16px; }
.lv { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--leaf); color: #fff; line-height: 1; border: 2px solid var(--wood-dark); }
.lv small { font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.lv b { font-size: 1rem; margin-top: -4px; }
.who { display: grid; gap: 3px; }
.name { max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.xpbar { width: 110px; height: 8px; border-radius: 99px; background: var(--cream-3); overflow: hidden; display: block; border: 1px solid rgba(91, 58, 34, .35); }
.xpbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8fdc6a, #3fae5a); border-radius: 99px; transition: width .4s; }
.chip.money { padding-left: 8px; font-size: 1.1rem; }
.chip.money .ico { width: 26px; height: 26px; }
.chip.world { padding: 5px 14px; gap: 5px; font-size: .92rem; }
.chip.world .ico { width: 20px; height: 20px; color: var(--ink-2); }
.chip.world .sep { color: var(--ink-2); }
.chip.back { padding: 5px 16px 5px 12px; background: var(--sun); }
.chip.back:hover { filter: brightness(1.05); }
.chip.warn { background: var(--coral); color: #fff; padding: 5px 14px; font-size: .85rem; }

/* ── Sprechblase ── */
.say { position: absolute; left: 50%; bottom: calc(var(--controls-b) + 92px); transform: translate(-50%, 10px); max-width: min(560px, 92vw); padding: 10px 16px; background: var(--cream); border: 2.5px solid var(--wood-dark); border-radius: 16px; box-shadow: var(--shadow); font-weight: 700; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 15; }
.say.show { opacity: 1; transform: translate(-50%, 0); }
.say.warn { background: #fff1d6; }
.say.good { background: #eaf7df; }

/* ── Steuerung ── */
:root { --controls-b: 22px; }
.controls { position: absolute; left: 50%; bottom: calc(var(--controls-b) + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 16; }
.act { appearance: none; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; min-width: 260px; min-height: 68px; padding: 10px 26px; border-radius: 999px; border: 3px solid var(--wood-dark); background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 var(--wood-dark), 0 10px 24px rgba(0, 0, 0, .18); cursor: pointer; font-family: var(--head); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: background .2s, transform .08s, box-shadow .08s; }
.act .ico { width: 30px; height: 30px; }
.act-main { font-size: 1.35rem; font-weight: 600; display: block; white-space: nowrap; }
.act-sub { display: block; white-space: nowrap; font: 700 .75rem var(--body); color: rgba(58, 42, 36, .75); }
.act-text { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.act:active:not(:disabled), .game[data-phase="reeling"] .act.holding { transform: translateY(3px); box-shadow: 0 3px 0 var(--wood-dark); }
.act:disabled { opacity: .85; cursor: default; }
.act.wait { background: var(--cream); }
.act.bite { background: var(--coral); color: #fff; animation: pulse .5s infinite alternate; }
.act.bite .act-sub { color: rgba(255, 255, 255, .9); }
.act.hold { background: #7fd0c4; }
@keyframes pulse { to { transform: scale(1.06); } }
.retrieve { background: rgba(255, 248, 236, .9); min-height: 36px; font-size: .85rem; }

/* ── Einholen ── */
.reel { position: absolute; left: 50%; bottom: calc(var(--controls-b) + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, 94vw); padding: 8px 14px 10px 8px; background: rgba(255, 248, 236, .96); border: 2.5px solid var(--wood-dark); border-radius: 20px; box-shadow: var(--shadow); z-index: 16; display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; align-items: center; animation: fade .2s; }
.reel-canvas { width: 170px; height: 140px; touch-action: none; cursor: grab; border-radius: 14px; background: linear-gradient(#eef7fb, #dff0f6); }
.reel-canvas.drag { cursor: grabbing; }
.reel-info { display: grid; gap: 8px; }
.reel-hint { margin: 0; font-size: .82rem; font-weight: 700; color: var(--teal); background: #eaf6f4; border-radius: 10px; padding: 6px 8px; }
.reel-touch { display: none; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 10px; }
.hold-btn { appearance: none; min-height: 62px; border-radius: 16px; border: 3px solid var(--wood-dark); font: 600 1.15rem var(--head); color: var(--ink); box-shadow: 0 4px 0 var(--wood-dark); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.hold-btn.crank { background: #7fd0c4; }
.hold-btn.give { background: var(--cream-2); }
.hold-btn.on { transform: translateY(3px); box-shadow: 0 1px 0 var(--wood-dark); filter: brightness(.95); }
@media (pointer: coarse) { .reel-touch { display: grid; } }
/* Breite Bildschirme: Rolle rechts unten, damit Menü, Fischer und Schwimmer frei bleiben */
@media (min-width: 761px) { .reel { left: auto; right: 20px; transform: none; width: max(380px, min(560px, calc(100vw - 480px))); } .reel.red { animation: none; } }
.game[data-phase="reeling"] .controls { visibility: hidden; }
.reel-top { display: flex; justify-content: space-between; font: 600 1rem var(--head); }
.reel-fish { color: var(--ink-2); font-size: .9rem; }
.tension, .progress { position: relative; height: 18px; border-radius: 99px; border: 2px solid var(--wood-dark); background: var(--cream-2); overflow: visible; }
.tension small, .progress small { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: rgba(58, 42, 36, .65); pointer-events: none; }
.tension-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #8fdc6a 0%, #8fdc6a 55%, #f6c33c 75%, #e2574c 90%); background-size: 460px 100%; }
.tension-red { position: absolute; top: 0; bottom: 0; left: 81.8%; right: 0; background: repeating-linear-gradient(-45deg, rgba(226, 87, 76, .25) 0 6px, transparent 6px 12px); border-radius: 0 99px 99px 0; }
.tension-needle { position: absolute; top: -5px; bottom: -5px; width: 4px; margin-left: -2px; background: var(--ink); border-radius: 2px; }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #9fd3ea, #4fa3c8); }
.progress-fish { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; }
.progress-dock { position: absolute; left: 0; top: -4px; bottom: -4px; width: 8px; background: var(--wood); border-radius: 3px; }
.reel.fight .reel-state { color: var(--coral-2); }
.reel.warn .reel-state { color: #b47a00; }
.reel.red { animation: shake .15s infinite; }
.reel.red .tension { border-color: var(--coral-2); }
@keyframes shake { 50% { transform: translate(calc(-50% + 2px), 0); } }

/* ── Menü ── */
.menu { position: absolute; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 6px; padding: 6px; background: rgba(255, 248, 236, .94); border: 2.5px solid var(--wood-dark); border-radius: 22px; box-shadow: var(--shadow); z-index: 18; }
.menu-btn { appearance: none; position: relative; display: grid; justify-items: center; gap: 1px; min-width: 62px; min-height: 56px; padding: 6px 6px 4px; border: 2px solid transparent; border-radius: 14px; background: transparent; cursor: pointer; font: 600 .78rem var(--head); color: var(--ink); }
.menu-btn .ico { width: 26px; height: 26px; color: var(--wood-dark); }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--cream-3); }
.menu-btn[aria-expanded="true"] { border-color: var(--wood-dark); }
.menu.busy .menu-btn:not([data-panel="settings"]) { opacity: .5; }
.badge { position: absolute; top: 2px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--coral); color: #fff; font: 800 .7rem/20px var(--body); text-align: center; }

/* ── Seitenleiste ── */
.panel { position: absolute; top: 70px; right: 12px; bottom: 12px; width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column; background: var(--cream); border: 3px solid var(--wood-dark); border-radius: 22px; box-shadow: 0 6px 0 rgba(58, 42, 36, .4), 0 20px 50px rgba(0, 0, 0, .25); z-index: 30; animation: slide .22s ease-out; overflow: hidden; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 16px; background: var(--cream-2); border-bottom: 2.5px solid var(--wood-dark); }
.panel-head h2 { margin: 0; font-size: 1.25rem; flex: 1; }
.panel-head > .ico { width: 26px; height: 26px; color: var(--wood); }
.panel-close { appearance: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--wood-dark); background: var(--cream); cursor: pointer; display: grid; place-items: center; }
.panel-close svg { width: 22px; height: 22px; }
.panel-body { flex: 1; overflow: auto; padding: 14px 16px 18px; overscroll-behavior: contain; }
.empty { text-align: center; padding: 30px 10px; }
.ico.big { width: 64px; height: 64px; color: var(--wood); margin-bottom: 8px; }
.note { background: var(--cream-2); border-left: 5px solid var(--sun); padding: 10px 12px; border-radius: 8px; margin-top: 12px; }
.tabs { display: flex; gap: 6px; margin: 4px 0 12px; flex-wrap: wrap; }
.tab { appearance: none; flex: 1; min-height: 40px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--wood-dark); background: var(--cream); cursor: pointer; font: 600 .92rem var(--head); }
.tab[aria-selected="true"] { background: var(--wood-dark); color: var(--cream); }

/* Seltenheit */
.rar { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 8px; border-radius: 99px; border: 2px solid var(--rc); background: color-mix(in srgb, var(--rc) 14%, #fff); color: var(--rk); font: 800 .78rem var(--body); letter-spacing: .02em; white-space: nowrap; }
.rar .pips { display: inline-flex; gap: 1px; color: var(--rc); }
.rar.small { font-size: .7rem; padding: 1px 8px 1px 6px; }
.rar.r-mythic { background: linear-gradient(90deg, #ffe0ec, #e9e0ff, #dff6ff, #fff3d6); }
.rar.r-legendary { background: linear-gradient(90deg, #fff1cf, #ffe39a); }

/* Korb */
.inv-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.inv-sum select { width: auto; }
select, input[type=text] { min-height: 44px; padding: 8px 12px; border: 2px solid var(--wood-dark); border-radius: 12px; background: #fff; font-weight: 700; width: 100%; }
.inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inv-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 14px; background: #fff; border: 2px solid var(--cream-3); border-left: 6px solid var(--rc); }
.inv-info b { font-family: var(--head); font-weight: 600; display: block; }
.inv-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); }
.inv-act { display: flex; align-items: center; gap: 2px; }
.fav.on { color: var(--coral); }
.fish-img { display: block; max-width: 100%; height: auto; }
.sticky-foot { position: sticky; bottom: -18px; margin: 12px -16px -18px; padding: 12px 16px 16px; background: var(--cream); border-top: 2px solid var(--cream-3); display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--leaf); }
.sell-list { list-style: none; padding: 0; margin: 0 0 10px; max-height: 40vh; overflow: auto; border: 2px solid var(--cream-3); border-radius: 12px; }
.sell-list li { display: flex; justify-content: space-between; padding: 6px 12px; border-bottom: 1px solid var(--cream-3); }
.sell-list li:last-child { border: 0; }
.sell-total { font: 600 1.15rem var(--head); }

/* Laden */
.cur-gear { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: var(--cream-2); border-radius: 12px; padding: 8px; margin-bottom: 12px; text-align: center; }
.cur-gear small { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); font-weight: 800; }
.cur-gear b { font-family: var(--head); font-weight: 600; }
.shop-list { display: grid; gap: 10px; }
.shop-item { display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; padding: 10px; border-radius: 16px; background: #fff; border: 2px solid var(--cream-3); }
.shop-item.equipped { border-color: var(--leaf); background: #f3fbef; }
.shop-item.locked { opacity: .75; }
.shop-art { grid-row: span 2; display: grid; place-items: start center; }
.shop-info h3 { font-size: 1.05rem; margin: 0 0 2px; display: flex; justify-content: space-between; gap: 6px; }
.shop-info .count { font: 800 .75rem var(--body); color: var(--ink-2); }
.shop-info p { margin: 0 0 4px; }
.stats { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; }
.stats li { display: flex; gap: 4px; }
.stats li span { color: var(--ink-2); }
.stats em { font-style: normal; font-weight: 800; margin-left: 2px; }
.stats em.up { color: #2e8a3a; } .stats em.down { color: var(--coral-2); }
.shop-act { grid-column: 2; display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-act .price { display: none; }
.state { display: inline-flex; align-items: center; gap: 4px; font: 700 .85rem var(--body); padding: 4px 10px; border-radius: 99px; }
.state .ico { width: 18px; height: 18px; }
.state.ok { color: #2e7a3a; background: #e3f5dc; }
.state.lock { color: var(--ink-2); background: var(--cream-2); }
.disabled-look { background: var(--cream-2) !important; }

/* Lexikon */
.dex-total { display: grid; gap: 6px; margin-bottom: 10px; font-family: var(--head); }
.dex-area { display: grid; gap: 4px; margin-bottom: 10px; font-weight: 800; font-size: .9rem; }
.meter { height: 10px; border-radius: 99px; background: var(--cream-3); overflow: hidden; border: 1.5px solid rgba(91, 58, 34, .35); }
.meter-fill { height: 100%; background: linear-gradient(90deg, #8fdc6a, #3fae5a); border-radius: 99px; }
.dex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dex-card { background: #fff; border: 2px solid var(--cream-3); border-top: 5px solid var(--rc); border-radius: 14px; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.dex-card h3 { font-size: 1rem; margin: 2px 0 0; }
.dex-card p { margin: 0; }
.dex-card.unknown { background: var(--cream-2); }
.dex-card.unknown h3 { color: var(--ink-2); letter-spacing: .1em; }
.dex-card .hint { color: var(--ink-2); display: flex; gap: 4px; align-items: flex-start; }
.dex-card .hint .ico { width: 18px; height: 18px; }
.dex-art { background: linear-gradient(#e9f6fb, #d3ebf4); border-radius: 10px; display: grid; place-items: center; min-height: 80px; }
.dex-card.unknown .dex-art { background: linear-gradient(#e8e2d4, #ddd3bf); }
.dex-card.r-legendary .dex-art { background: radial-gradient(circle, #fff6d0, #f7dc8f); }
.dex-card.r-mythic .dex-art { background: radial-gradient(circle, #fff, #ffe0ee 40%, #dbe4ff); }
.dex-facts { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; margin: 4px 0 0; font-size: .8rem; }
.dex-facts dt { color: var(--ink-2); }
.dex-facts dd { margin: 0; font-weight: 800; }
.prefs { color: var(--teal); font-weight: 700; }
.ach-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ach { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; padding: 10px; border-radius: 14px; background: #fff; border: 2px solid var(--cream-3); }
.ach.done { background: #f3fbef; border-color: #b9e0a8; }
.ach-ico { width: 34px; height: 34px; color: var(--ink-2); display: grid; }
.ach.done .ach-ico { color: #c98a10; }
.ach p { margin: 0 0 3px; }
.ach-state { font: 800 .75rem var(--body); color: var(--ink-2); white-space: nowrap; }
.ach.done .ach-state { color: #2e7a3a; }
.reward { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* Fischer */
.fisher-top { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; margin-bottom: 8px; }
.fisher-preview { width: 160px; height: 168px; border-radius: 16px; border: 2.5px solid var(--wood-dark); }
.field label { display: block; font-weight: 800; margin-bottom: 4px; }
.opt { border: 0; padding: 0; margin: 12px 0 0; }
.opt legend { font: 600 1rem var(--head); margin-bottom: 6px; padding: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { appearance: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--wood-dark); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--wood-dark), 0 0 0 5px var(--sun); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-opt { appearance: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 12px; border-radius: 99px; border: 2px solid var(--wood-dark); background: #fff; cursor: pointer; font: 700 .85rem var(--body); }
.chip-opt .ico { width: 18px; height: 18px; }
.chip-opt[aria-pressed="true"] { background: var(--leaf); color: #fff; }
.chip-opt.buy { background: var(--cream-2); }
.chip-opt.locked { cursor: default; border-style: dashed; color: var(--ink-2); background: transparent; font-size: .78rem; }
.chip-opt .coins .ico { width: 16px; height: 16px; }

/* Gebiete */
.now { background: var(--cream-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: .9rem; }
.area-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; margin-bottom: 10px; border-radius: 16px; background: #fff; border: 2px solid var(--cream-3); }
.area-card.here { border-color: var(--leaf); background: #f3fbef; }
.area-card.locked .area-pic { filter: grayscale(.7) brightness(.9); }
.area-pic { height: 96px; border-radius: 12px; border: 2px solid var(--wood-dark); position: relative; overflow: hidden; }
.a-sonnensee .area-pic { background: radial-gradient(circle at 75% 25%, #fff1b0 0 10px, transparent 11px), linear-gradient(#7fc4ef 0 42%, #7dbb6a 42% 50%, #8fd0e0 50%, #3f8fb0); }
.a-waldsee .area-pic { background: radial-gradient(circle at 30% 70%, #e8ff8a 0 2px, transparent 3px), radial-gradient(circle at 60% 80%, #e8ff8a 0 2px, transparent 3px), linear-gradient(#80b8cc 0 30%, #2d5640 30% 50%, #7fb3a4 50%, #2d6363); }
.a-mondsee .area-pic { background: radial-gradient(circle at 70% 25%, #fff6dc 0 14px, transparent 15px), linear-gradient(#3b3f8f 0 45%, #6d62ae 45% 52%, #9fa6e6 52%, #3a3f8f); }
.area-pic::after { content: ""; position: absolute; left: 0; bottom: 16px; width: 45%; height: 8px; background: #c79a63; border-top: 2px solid var(--wood-dark); }
.area-info h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.1rem; }
.tag { font: 800 .7rem var(--body); text-transform: uppercase; letter-spacing: .05em; background: var(--leaf); color: #fff; padding: 2px 8px; border-radius: 99px; }
.why { color: var(--teal); display: flex; gap: 4px; align-items: flex-start; }
.why .ico { width: 18px; height: 18px; }
.area-prog { display: grid; gap: 3px; margin: 6px 0 8px; }

/* Einstellungen */
.set-sec { padding: 12px 0; border-bottom: 2px dashed var(--cream-3); }
.set-sec:last-of-type { border-bottom: 0; }
.set-sec h3 { font-size: 1.1rem; }
.field { margin: 8px 0; }
.field.range { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.field.range label { grid-column: 1 / -1; margin: 0; }
input[type=range] { width: 100%; accent-color: var(--leaf); height: 32px; }
output { font-weight: 800; min-width: 4ch; text-align: right; }
.toggle { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 10px 0; }
.toggle input { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--cream-3); border: 2px solid var(--wood-dark); position: relative; cursor: pointer; margin: 0; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--wood-dark); transition: left .2s; }
.toggle input:checked { background: var(--leaf); }
.toggle input:checked::after { left: 23px; }
.toggle label { display: grid; gap: 1px; cursor: pointer; }
.keys { padding-left: 18px; margin: 0 0 10px; }
.keys li { margin: 3px 0; }
kbd { display: inline-block; min-width: 22px; padding: 0 6px; border: 1.5px solid var(--wood-dark); border-bottom-width: 3px; border-radius: 6px; background: #fff; font: 800 .75rem var(--body); text-align: center; }
code { background: var(--cream-2); padding: 1px 5px; border-radius: 4px; font-size: .85em; word-break: break-all; }
.danger-zone { margin-top: 14px; padding-top: 10px; border-top: 2px dashed rgba(200, 68, 58, .35); }
.credits { margin-top: 16px; }

/* ── Dialoge ── */
.modal { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(25, 35, 50, .45); backdrop-filter: blur(2px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--cream); border: 3px solid var(--wood-dark); border-radius: 24px; padding: 20px 20px 18px; box-shadow: 0 8px 0 rgba(58, 42, 36, .45), 0 30px 60px rgba(0, 0, 0, .3); animation: pop .3s cubic-bezier(.2, .8, .3, 1.25); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.modal-card h2 { font-size: 1.5rem; }
.modal-card .actions { justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.catch { text-align: center; border-color: var(--rc); box-shadow: 0 8px 0 color-mix(in srgb, var(--rc) 70%, #000), 0 0 0 6px color-mix(in srgb, var(--rc) 25%, transparent), 0 30px 60px rgba(0, 0, 0, .3); }
.catch .actions { justify-content: center; }
.catch-art { position: relative; margin: -4px -4px 4px; border-radius: 18px; background: linear-gradient(#e9f6fb, #cfe8f2); display: grid; place-items: center; overflow: hidden; min-height: 170px; }
.catch-art img, .catch-art .fish-live { position: relative; z-index: 1; width: min(320px, 100%) !important; height: auto !important; aspect-ratio: 320 / 190; }
.catch.r-rare .catch-art::after, .catch.r-epic .catch-art::after, .catch.r-legendary .catch-art::after, .catch.r-mythic .catch-art::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 18% 28%, #fff 0 2px, transparent 3px), radial-gradient(circle at 82% 22%, #fff 0 2.5px, transparent 3.5px), radial-gradient(circle at 72% 78%, #fff 0 2px, transparent 3px), radial-gradient(circle at 30% 80%, #fff 0 1.5px, transparent 2.5px);
  animation: twinkle 1.8s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .15; } to { opacity: .95; } }
.reduced .catch-art::after { display: none; }
@keyframes wiggle { 50% { transform: rotate(-3deg) translateY(-3px); } }
.catch.r-epic .catch-art { background: radial-gradient(circle, #fff, #ecdffd); }
.catch.r-legendary .catch-art { background: radial-gradient(circle, #fffbe8, #ffe39a); }
.catch.r-mythic .catch-art { background: radial-gradient(circle, #fff, #ffe0ee 40%, #dbe4ff 75%, #e0fff4); }
.rays { position: absolute; inset: -50%; opacity: 0; }
.catch.big .rays { opacity: .55; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 60%, transparent) 0 10deg, transparent 10deg 20deg); animation: spin 14s linear infinite; }
.catch.r-mythic .rays { background: repeating-conic-gradient(from 0deg, rgba(255, 120, 170, .5) 0 8deg, rgba(120, 180, 255, .45) 8deg 16deg, transparent 16deg 24deg, rgba(255, 220, 120, .5) 24deg 32deg, transparent 32deg 40deg); opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }
.catch-banner { font: 600 1.1rem var(--head); color: #fff; background: var(--rc); border: 2.5px solid var(--wood-dark); border-radius: 99px; padding: 4px 16px; display: inline-block; margin-bottom: 10px; letter-spacing: .03em; text-transform: uppercase; animation: glow 1.2s ease-in-out infinite alternate; }
.catch.r-mythic .catch-banner { background: linear-gradient(90deg, #e04f86, #8b55c9, #3a78c2, #3fae5a, #e39b17); }
@keyframes glow { to { box-shadow: 0 0 18px var(--rc); } }
.ribbons { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 4px; margin: 4px 0; }
.ribbon { display: inline-flex; align-items: center; gap: 4px; font: 800 .8rem var(--body); padding: 3px 10px; border-radius: 99px; }
.ribbon .ico { width: 16px; height: 16px; }
.ribbon.new { background: var(--sun); color: var(--ink); }
.ribbon.rec { background: var(--teal); color: #fff; }
.catch-meta { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.fact { background: #fff; border: 2px solid var(--cream-3); border-radius: 12px; padding: 6px; }
.fact > span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--ink-2); }
.fact b { font: 600 1.15rem var(--head); display: inline-flex; justify-content: center; }
.desc { font-style: italic; color: var(--ink-2); }
.fav.on { background: #ffe8e6; }
.levelup { text-align: center; }
.lv-badge { width: 104px; height: 104px; margin: 0 auto 10px; border-radius: 50%; background: var(--leaf); color: #fff; border: 4px solid var(--wood-dark); display: grid; place-content: center; box-shadow: 0 0 0 8px rgba(143, 220, 106, .35); animation: pop .5s cubic-bezier(.2, .8, .3, 1.4); }
.lv-badge small { font: 800 .75rem var(--body); text-transform: uppercase; letter-spacing: .1em; }
.lv-badge b { font: 600 2.6rem/1 var(--head); }
.unlocks { list-style: none; padding: 0; text-align: left; display: grid; gap: 6px; }
.unlocks li { display: flex; gap: 6px; align-items: center; background: #fff; border-radius: 10px; padding: 6px 10px; }
.unlocks .ico { color: var(--leaf); }

/* Hinweise */
.toasts { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, 92vw); z-index: 60; pointer-events: none; }
.toast { background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow); animation: drop .25s ease-out; transition: opacity .3s, transform .3s; }
.toast.good { background: #2f6b3a; } .toast.bad { background: var(--coral-2); }
.toast.out { opacity: 0; transform: translateY(-6px); }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }

/* Einführung */
.coach { position: absolute; left: 50%; bottom: calc(var(--controls-b) + 100px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(420px, 92vw); padding: 12px 16px; background: #fffdf6; border: 3px solid var(--wood-dark); border-radius: 18px; box-shadow: 0 6px 0 rgba(58, 42, 36, .4); z-index: 17; animation: fade .25s; }
.coach::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 18px; height: 18px; background: #fffdf6; border-right: 3px solid var(--wood-dark); border-bottom: 3px solid var(--wood-dark); transform: translateX(-50%) rotate(45deg); }
.coach b { font: 600 1.15rem var(--head); display: block; margin-bottom: 2px; }
.coach .row { justify-content: flex-end; margin-top: 4px; }
.coach-dots { display: flex; gap: 4px; float: right; margin-top: 6px; }
.coach-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--cream-3); }
.coach-dots i.on { background: var(--leaf); }
.game[data-phase="reeling"] .coach { bottom: calc(var(--controls-b) + 175px); }
.game[data-phase="reeling"] .say { bottom: calc(var(--controls-b) + 170px); }

.tablock { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(25, 35, 50, .7); padding: 16px; }
.tablock .card { max-width: 440px; background: var(--cream); border: 3px solid var(--wood-dark); border-radius: 22px; padding: 22px; }

/* Mittlere Breiten: Aktionsknopf rechts neben dem Menü */
@media (min-width: 761px) and (max-width: 1220px) {
  .controls { left: auto; right: 20px; transform: none; align-items: flex-end; }
}
/* ── Kleine Bildschirme ── */
@media (max-width: 760px) {
  :root { --controls-b: 86px; }
  .menu { left: 0; right: 0; bottom: 0; border-radius: 20px 20px 0 0; border-width: 2.5px 0 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); justify-content: space-around; gap: 0; }
  .menu-btn { min-width: 0; flex: 1; font-size: .7rem; min-height: 58px; }
  .act { min-width: 220px; min-height: 62px; padding: 8px 20px; }
  .act-main { font-size: 1.2rem; }
  .chip { min-height: 40px; font-size: .9rem; }
  .chip.world > span:not(.ico):not(.area) { display: none; }
  .chip.world .sep { display: none; }
  .chip.back span { display: none; }
  .chip.back { padding: 5px 10px; }
  .chip.back::after { content: "Übersicht"; font-size: .85rem; }
  .xpbar { width: 70px; }
  .name { max-width: 9ch; }
  .lv { width: 34px; height: 34px; }
  .panel { top: auto; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); width: 100%; height: min(76vh, 100% - 126px); border-radius: 22px 22px 0 0; border-width: 3px 0 0; animation: up .25s ease-out; z-index: 40; box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  .dex-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .inv-item { grid-template-columns: 72px 1fr auto; }
  .inv-item .fish-img { width: 72px; }
  .cur-gear { grid-template-columns: repeat(3, 1fr); }
  .fisher-top { grid-template-columns: 120px 1fr; }
  .fisher-preview { width: 120px; height: 126px; }
  .facts { gap: 5px; }
  .modal-card { padding: 16px 14px; }
  .toasts { top: 62px; }
  .coach { top: calc(112px + env(safe-area-inset-top)); bottom: auto !important; padding: 10px 12px; font-size: .9rem; }
  .coach::after { display: none; }
  .coach b { font-size: 1rem; }
  .chip { min-height: 38px; font-size: .85rem; padding: 3px 12px 3px 5px; }
  .chip.money { font-size: 1rem; }
  .say { bottom: calc(var(--controls-b) + 80px); font-size: .9rem; }
  .reel { bottom: calc(68px + env(safe-area-inset-bottom)); grid-template-columns: 128px 1fr; padding: 6px 10px 10px 6px; }
  .reel-canvas { width: 128px; height: 105px; }
  .reel .reel-top { font-size: .9rem; }
  .game[data-phase="reeling"] .say { bottom: calc(68px + 235px); }
}
@media (max-width: 380px) {
  .chip.money { font-size: .95rem; }
  .act { min-width: 200px; }
  .dex-grid { grid-template-columns: 1fr; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .menu-btn { min-height: 48px; }
  .panel { top: 62px; }
}

/* Reduzierte Bewegung */
.reduced *, .reduced *::before, .reduced *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { html:not(.full) *, html:not(.full) *::before { scroll-behavior: auto; } }
.dex-card .rar { align-self: flex-start; }

/* ── Tiere ansprechbar ── */
#scene.over-animal { cursor: pointer !important; }

/* ── Stegdekoration ── */
.decor-img { width: 72px; height: 54px; border-radius: 10px; border: 2px solid var(--wood-dark); }
.decor-item .shop-art { grid-row: span 2; }
.decor-toggle { background: var(--cream-2); }
.decor-toggle.on { background: #e3f5dc; border-color: #2e7a3a; color: #2e5a2e; }
.tabs .tab { flex: 1 1 auto; white-space: nowrap; }
@media (max-width: 760px) { .tabs { gap: 4px; } .tabs .tab { padding: 4px 7px; font-size: .82rem; min-height: 38px; } }
.decor-item { grid-template-columns: 76px 1fr; }

/* ── Schatzfund in der Fangkarte ── */
.find { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; text-align: left; margin: 10px 0 4px; padding: 8px 12px 8px 6px; border-radius: 16px; background: #fff7e2; border: 2.5px dashed var(--sun); }
.find-art svg { display: block; width: 80px; height: 64px; overflow: visible; }
.find-title { font: 600 1rem var(--head); display: block; margin-bottom: 2px; }
.find p { margin: 0; }
.find-reveal { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s .1s; }
.find.open .find-reveal { max-height: 320px; opacity: 1; }
.find.closed .find-art svg { animation: findWobble .35s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes findWobble { from { transform: rotate(-4deg); } to { transform: rotate(4deg) translateY(-2px); } }
.chest-svg .lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.chest-svg .glint { opacity: 0; transition: opacity .4s .15s; }
.find.open .chest-svg .lid { transform: rotate(-38deg) translate(-2px, -4px); }
.find.open .chest-svg .glint { opacity: 1; }
.bottle-svg .cork { transition: transform .35s ease-out; transform-box: fill-box; }
.bottle-svg .scroll { opacity: 0; transform: translateY(14px); transition: transform .5s .25s ease-out, opacity .3s .25s; }
.find.open .bottle-svg .cork { transform: translate(10px, -8px) rotate(30deg); }
.find.open .bottle-svg .scroll { opacity: 1; transform: none; }
.letter { background: #fbf1d8; border: 2px solid #d9c49a; border-radius: 10px; padding: 8px 10px; margin-top: 4px; font-size: .9rem; }
.letter b { font-family: var(--head); font-weight: 600; display: block; }
.letter p { font-style: italic; color: var(--ink-2); margin: 2px 0; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.post-list .letter { position: relative; padding-right: 54px; }
.post-list .letter.unknown { background: var(--cream-2); border-style: dashed; }
.post-no { position: absolute; top: 8px; right: 10px; font: 800 .7rem var(--body); color: var(--ink-2); }
.empty .find-art { display: grid; place-items: center; margin-bottom: 6px; }
@media (max-width: 760px) { .find { grid-template-columns: 64px 1fr; } .find-art svg { width: 64px; height: 52px; } }

/* ── Einhol-Anzeige: groß (Standard), kompakt, klassisch ── */
.reel-gross .reel { width: min(720px, 96vw); grid-template-columns: 260px 1fr; padding: 10px 18px 12px 10px; gap: 8px 16px; }
.reel-gross .reel-canvas { width: 260px; height: 214px; }
.reel-gross .reel .reel-top { font-size: 1.2rem; }
.reel-gross .reel .tension, .reel-gross .reel .progress { height: 30px; border-width: 2.5px; }
.reel-gross .reel .tension small, .reel-gross .reel .progress small { font-size: .78rem; }
.reel-gross .reel .tension-needle { top: -7px; bottom: -7px; width: 5px; }
.reel-gross .reel .reel-info { gap: 12px; }
.game.reel-gross[data-phase="reeling"] .say, .game.reel-gross[data-phase="reeling"] .coach { bottom: calc(var(--controls-b) + 250px); }
@media (min-width: 761px) { .reel-gross .reel { width: max(440px, min(720px, calc(100vw - 470px))); } }
@media (min-width: 761px) and (max-width: 1000px) { .reel-gross .reel { grid-template-columns: 200px 1fr; } .reel-gross .reel-canvas { width: 200px; height: 165px; } }
/* Klassisch: keine Rolle, Halten-Knopf wie früher, Balken über dem Knopf */
.reel-klassisch .reel-canvas, .reel-klassisch .reel-touch { display: none !important; }
.reel-klassisch .reel { grid-template-columns: 1fr; left: 50%; right: auto; transform: translateX(-50%); width: min(460px, 92vw); bottom: calc(var(--controls-b) + 92px + env(safe-area-inset-bottom)); padding: 10px 14px 12px; }
.game.reel-klassisch[data-phase="reeling"] .controls { visibility: visible; }
@media (max-width: 760px) {
  .reel-gross .reel { grid-template-columns: 136px 1fr; padding: 6px 10px 8px 6px; gap: 6px 10px; }
  .reel-gross .reel-canvas { width: 136px; height: 112px; }
  .reel-gross .reel .reel-info { gap: 8px; }
  .reel .reel-hint { font-size: .74rem; padding: 4px 8px; }
  .reel-gross .reel .reel-top { font-size: 1rem; }
  .reel-gross .reel .tension, .reel-gross .reel .progress { height: 26px; }
  .reel-gross .hold-btn { min-height: 66px; font-size: 1.25rem; }
  .game.reel-gross[data-phase="reeling"] .say { bottom: calc(68px + 265px); }
  .reel-klassisch .reel { bottom: calc(var(--controls-b) + 76px); }
}

.reel > .reel-hint { grid-column: 1 / -1; }

/* ───── Update „Angelhütte“: Laden-Spezialisierungen ───── */
.stats li.perk { flex-basis: 100%; color: #7a4f10; font-weight: 700; align-items: center; }
.stats li.perk span { color: #7a4f10; }
.stats li.perk .ico { width: 16px; height: 16px; color: #e3a21a; flex: none; }
.perk-now { margin: -4px 0 10px; color: #7a4f10; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.perk-now .ico { width: 16px; height: 16px; color: #e3a21a; }

/* ───── Angelhütte ───── */
.hut-door { position: absolute; z-index: 14; padding: 0; border: 0; background: transparent; border-radius: 50%; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hut-door.wait { cursor: not-allowed; }
.hut-door::after, .hut-hot::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); white-space: nowrap; padding: 6px 12px; background: var(--cream); color: var(--ink); border: 2.5px solid var(--wood-dark); border-radius: 12px; box-shadow: var(--shadow); font: 700 .9rem var(--body); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.hut-door:focus-visible::after, .hut-hot:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) { .hut-door:hover::after, .hut-hot:hover::after { opacity: 1; transform: translate(-50%, 0); } }
.hut-door:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #1d6b73; }
.hut-hot { position: absolute; z-index: 14; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.hut-hot.tank { pointer-events: none; } /* Klicks gehen an die Leinwand (Fische antippen); per Tastatur bleibt die Schaltfläche erreichbar */
.hut-hot.tank::after { bottom: auto; top: calc(100% + 30px); }
.hut-hot:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #1d6b73; }
.hut-back { position: absolute; left: 50%; bottom: calc(var(--controls-b) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 16; background: var(--cream); font-size: 1.05rem; padding: 10px 20px; }
.hut-back:hover:not(:disabled) { transform: translate(-50%, -1px); }
.hut-back:active:not(:disabled) { transform: translate(-50%, 2px); }
.in-hut .controls, .in-hut .say, .in-hut .reel, .in-hut .coach { display: none !important; }
.in-hut #scene { cursor: default; }
.in-hut #scene.over-animal { cursor: pointer; }
.hut-fade { position: absolute; inset: 0; z-index: 45; background: #3a2414; opacity: 0; pointer-events: none; transition-property: opacity; transition-timing-function: ease-in-out; }
.hut-fade.on { opacity: 1; pointer-events: auto; }

/* Aquarium-Verwaltung & Seebuch */
.aquarium-card, .seebuch-card { width: min(640px, 96vw); max-height: min(88vh, 900px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.aq-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 16px 16px 10px; border-bottom: 2px solid var(--cream-3); }
.aq-head h2 { margin: 0 0 4px; } .aq-head p { margin: 0; }
.aq-body { overflow-y: auto; padding: 12px 16px 18px; overscroll-behavior: contain; }
.aq-body h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.aq-slots { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.aq-dots { display: inline-flex; gap: 4px; } .aq-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--wood-dark); background: #fff; }
.aq-dots i.on { background: #4fb3c8; }
.aq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aq-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; padding: 8px; background: #fffdf6; border: 2px solid var(--cream-3); border-left: 6px solid var(--rc, var(--cream-3)); border-radius: 14px; }
.aq-info b { display: block; } .aq-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.aq-name { margin-top: 6px; width: 100%; max-width: 220px; min-height: 38px; padding: 4px 10px; border: 2px solid var(--cream-3); border-radius: 10px; background: #fff; }
.aq-name:focus { border-color: var(--teal); outline: none; }
.aq-empty { padding: 10px; } .aq-note { margin: 6px 0; } .aq-note.warn { color: #9a4a10; font-weight: 800; }
@media (max-width: 520px) { .aq-item { grid-template-columns: 64px 1fr; } .aq-item .fish-img { width: 64px; } .aq-act { grid-column: 1 / -1; } .aq-act .btn { width: 100%; } }
.sb-state { padding: 18px 4px; text-align: center; }
.sb-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.sb-table th { text-align: left; font: 600 .85rem var(--head); color: var(--ink-2); padding: 4px 8px; border-bottom: 2px solid var(--cream-3); }
.sb-table td { padding: 8px; border-bottom: 1px solid var(--cream-3); overflow-wrap: anywhere; }
.sb-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-table tr.me td { background: #fff1c2; font-weight: 800; }
.sb-table tr.gap td { text-align: center; color: var(--ink-2); padding: 2px; }
.sb-you { color: var(--teal); font-weight: 800; } .sb-cap { color: #9a4a10; }
.sb-meta { margin-top: 8px; }
.sb-me { margin-top: 12px; padding: 12px; background: #fffdf6; border: 2px dashed var(--cream-3); border-radius: 14px; }
.sb-me input { flex: 1 1 160px; min-height: 40px; padding: 4px 10px; border: 2px solid var(--cream-3); border-radius: 10px; background: #fff; }
.sb-fair { margin-top: 12px; } .sb-fair summary { cursor: pointer; font-weight: 800; }
.btn.sure { background: var(--coral); color: #fff; }

/* Patchnotes */
.patch-card { width: min(560px, 94vw); max-height: 88vh; overflow-y: auto; }
.patch-kicker { margin: 0 0 4px; font: 600 .85rem var(--head); color: var(--teal); text-transform: uppercase; letter-spacing: .04em; }
.patch-safe { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; background: #e9f6e4; border: 2px solid #9fd08f; border-radius: 14px; }
.patch-safe .ico { color: var(--leaf-2); margin-top: 2px; }
.patch-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.patch-list li { padding-left: 14px; border-left: 4px solid var(--sun); } .patch-list b { display: block; font-family: var(--head); font-weight: 600; }

.game { overflow: clip; }
.hut-door::after { left: 0; transform: translate(0, 4px); }
.hut-door:focus-visible::after { transform: translate(0, 0); }
@media (hover: hover) { .hut-door:hover::after { transform: translate(0, 0); } }
.hut-hot.book::after { left: auto; right: 0; transform: translate(0, 4px); }
.hut-hot.book:focus-visible::after { transform: translate(0, 0); }
@media (hover: hover) { .hut-hot.book:hover::after { transform: translate(0, 0); } }
.aq-msg { position: sticky; top: -12px; z-index: 2; margin: -4px 0 8px; padding: 8px 12px; border-radius: 12px; font-weight: 800; background: #e9f6e4; border: 2px solid #9fd08f; }
.aq-msg.bad { background: #fde8e2; border-color: #e8a090; color: #8a2a1a; }
