:root{--sa-lake:#0D3B52;--sa-deep:#092A39;--sa-forest:#1F5A3A;--sa-amber:#F4A340;--sa-cream:#F8F4E8;--sa-mist:#DDE8E8;--sa-stone:#8B9189;--sa-teal:#2B6A79;--font-brand:'Manrope',Arial,sans-serif;--font-num:'IBM Plex Mono',ui-monospace,monospace;--ink:#F8F4E8;--muted:#a9b9b6;--panel:rgba(9,42,57,.74);--panel-solid:#102F3C;--line:rgba(248,244,232,.18);--lime:#F4A340;--warm:#F4A340;--red:#e0806f;--btn:#092A39;--btn-ink:#F8F4E8;--serif:'Manrope',Arial,sans-serif;--sans:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;position:fixed;inset:0;width:100%;overscroll-behavior:none;-webkit-text-size-adjust:100%;text-size-adjust:100%;background:#0a252f;color:var(--ink);font:14px/1.45 var(--sans);-webkit-tap-highlight-color:transparent}
button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--sa-amber);outline-offset:2px}
.hidden{display:none!important}
/* scrollbars in the dark design (Fangkarte, Fangbuch, the water list): thin, light on dark instead of the system's white ones */
html{scrollbar-color:rgba(232,241,236,.28) transparent}*{scrollbar-width:thin}
::-webkit-scrollbar{width:9px;height:9px;background:transparent}::-webkit-scrollbar-thumb{background:rgba(232,241,236,.24);border-radius:9px;border:2px solid transparent;background-clip:padding-box}::-webkit-scrollbar-thumb:hover{background-color:rgba(232,241,236,.4)}::-webkit-scrollbar-corner{background:transparent}
/* Phones: iOS zooms into any field with text under 16px and stays zoomed, so fields get 16px there;
   buttons don't double-tap-zoom; the HUD keeps clear of the notch and the home bar */
/* iPad/iPhone: fields at 16px everywhere (an iPad with keyboard or trackpad counts as a fine pointer and would zoom too) */
input,select,textarea{font-size:16px!important}
/* no text selection, magnifier or copy/paste bubble when a button or the picture is held (cast, reel, steer) */
html,body,.hud,.screen,.modal,button,canvas,.toast{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,.code-row code{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
html,body,button,a,.hud,.screen,.modal{touch-action:pan-x pan-y} /* no double-tap or pinch zoom anywhere (manipulation would still allow pinch) */
canvas{touch-action:none}
.modal-card,.fish-panel,.wissen-card{touch-action:pan-y}
#game{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}
.fade{position:fixed;inset:0;background:#06161d;opacity:0;pointer-events:none;transition:opacity .35s;z-index:40}.fade.on{opacity:1}
.eyebrow{font-size:11px;letter-spacing:.22em;font-weight:800;color:#FFCB81}.eyebrow.small{font-size:9px;letter-spacing:.19em}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;padding:12px 16px;font-weight:780;font-size:13px;letter-spacing:.01em;transition:background .15s,transform .1s;user-select:none;-webkit-user-select:none;touch-action:none}
.btn:active,.btn.held{transform:scale(.97)}.btn:disabled{opacity:.55;cursor:wait}
.btn small{font-size:9px;font-weight:700;letter-spacing:.12em;opacity:.7;text-transform:uppercase}
.btn-primary{background:var(--btn);color:var(--btn-ink);border:1px solid rgba(244,163,64,.62)}.btn-primary:hover{background:#10465F;border-color:var(--sa-amber)}
.btn-soft{background:rgba(214,236,222,.1);color:var(--ink);border:1px solid var(--line)}.btn-soft:hover{background:rgba(214,236,222,.18)}
.btn-reel{background:#163f50;color:#F8F4E8;border:1px solid rgba(248,244,232,.3)}.btn-reel.held{background:var(--sa-amber);color:var(--sa-deep)}
.btn-ghost{background:transparent;color:#c6ddd4;border:1px dashed rgba(197,238,227,.3)}
.icon-btn{background:rgba(8,29,38,.55);border:1px solid var(--line);border-radius:8px;color:#d4e6de;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;min-height:34px;font-weight:650;backdrop-filter:blur(8px)}
.icon-btn[aria-pressed=true]{background:rgba(244,163,64,.2);border-color:var(--sa-amber);color:var(--sa-cream)}
/* Title */
.screen{position:fixed;inset:0;z-index:30}
/* HUD */
/* the HUD already keeps inside the safe area (notch, Dynamic Island, home bar): what sits in it is placed from its
   edges, without adding env() a second time */
.hud{position:fixed;top:env(safe-area-inset-top,0);bottom:env(safe-area-inset-bottom,0);left:env(safe-area-inset-left,0);right:env(safe-area-inset-right,0);pointer-events:none;z-index:10}
.hud button,.hud input,.hud select,.hud a,.hud canvas{pointer-events:auto}
.topbar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;background:linear-gradient(180deg,rgba(5,20,26,.7),rgba(5,20,26,0))}
.brand{font-size:13px;letter-spacing:.12em;color:#dcebe5;white-space:nowrap;background:none;border:0;padding:4px 2px;cursor:pointer}.brand:hover{color:var(--lime)}.brand span{color:var(--warm);font-weight:800}
.chips{display:flex;gap:6px;flex-wrap:nowrap;justify-content:center;white-space:nowrap}
@media (min-width:761px) and (max-width:1150px){.brand{display:none}}.chips span{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:4px 11px;font-size:12px;color:#d7e8e1;backdrop-filter:blur(8px)}
.top-actions{display:flex;gap:6px}
.topbar>.brand{flex:0 0 auto}.chips{flex:0 1 auto;min-width:0;overflow:hidden}.top-actions{flex:0 0 auto} /* the buttons keep their room, the chips give way (topfit.js) */
.coach{position:absolute;top:62px;left:50%;transform:translateX(-50%);max-width:min(560px,calc(100% - 32px));background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px 14px;text-align:center;backdrop-filter:blur(10px);transition:opacity .4s}
.coach small{display:block;font-size:9px;letter-spacing:.18em;font-weight:800;color:var(--lime)}.coach span{font-size:13px;color:#dbe9e3}
.coach.quiet{opacity:0}
.sonar-panel{position:absolute;left:16px;bottom:16px;width:min(300px,42vw);background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px;backdrop-filter:blur(10px)}
.panel-title{font-size:9px;letter-spacing:.2em;font-weight:800;color:var(--muted);display:flex;justify-content:space-between;margin:0 2px 6px}
#sonarCanvas,#liveCanvas{width:100%;height:170px;display:block;border-radius:7px}
.live-seg{margin:4px 0 6px;display:flex}.live-seg button{flex:1;font-size:11px;padding:4px 6px}.live-seg.hidden,#liveCanvas.hidden,#sonarCanvas.hidden{display:none}
.sonar-note{font-size:10px;color:var(--warm);margin:6px 2px 0}
.mode-hud{position:absolute;inset:0}
/* Drive */
.drive-stats{position:absolute;top:62px;left:16px;display:flex;gap:8px}
.stat{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:7px 11px;min-width:92px;backdrop-filter:blur(8px)}
.stat small,.zone-card small,.row small,.status small,.meter small,.fight-row small,.fight-head small{display:block;font-size:9px;letter-spacing:.16em;font-weight:800;color:var(--muted)}
.stat b{font-size:15px;white-space:nowrap}
.minimap-wrap{position:absolute;top:62px;right:16px;width:150px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px;backdrop-filter:blur(8px);text-align:center}
#minimap{width:100%;height:250px;display:block;cursor:pointer}
.mini-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.mini-actions button{min-width:30px}.mini-actions button{flex:1;height:30px;border-radius:7px;border:1px solid var(--line);background:rgba(255,255,255,.05);color:var(--ink);font-weight:800;font-size:15px}
.mini-hint{display:block;font-size:9px;color:var(--muted);margin-top:5px}
.zone-card{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);width:min(520px,calc(100% - 32px));background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 16px;text-align:center;backdrop-filter:blur(12px);transition:border-color .2s}
.zone-card.in-zone{border-color:rgba(240,206,149,.8)}.zone-card.in-zone small{color:var(--warm)}
.zone-card strong{display:block;font-size:17px;margin:2px 0}.zone-card span{display:block;font-size:12px;color:#bdd2cb;margin-bottom:10px}
.zone-card .btn{min-width:250px}
/* compact: text left, the anchor button right, the keys only while the boat stands */
.zone-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;align-items:center;text-align:left;width:min(600px,calc(100% - 32px));padding:9px 10px 9px 16px}
.zone-card>small,.zone-card>strong,.zone-card>span{grid-column:1}.zone-card strong{font-size:15px;margin:1px 0}
.zone-card span{margin:0;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zone-card span.full{white-space:normal;overflow:visible} /* a tap on the line shows all of it */
#zoneInfo{cursor:pointer}
.zone-card .btn{grid-column:2;grid-row:1/4;min-width:0;padding:10px 16px}
.zone-card #bankBtn{grid-column:3;grid-row:1/4;padding:10px 12px}.shore .zone-card{grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px}.zone-card>small,.zone-card>strong,.zone-card>span{padding-right:6px}
.shore .zone-card .keys{grid-column:1/4}
.zone-card .keys{grid-column:1/3;margin-top:6px;transition:opacity .4s}.zone-card.moving .keys{display:none}
.keys{font-size:10.5px;color:var(--muted);margin:8px 0 0;text-align:center}
.pad{position:absolute;bottom:190px;display:flex;gap:10px}.pad-left{left:16px}.pad-right{right:16px;flex-direction:column;align-items:center}
.pad button{width:62px;height:62px;border-radius:50%;border:1px solid rgba(223,248,234,.28);background:var(--panel);color:var(--ink);font-size:20px;touch-action:none;user-select:none;-webkit-user-select:none}
.pad button.small{width:44px;height:44px;font-size:16px}.pad button.held{background:var(--btn);color:var(--btn-ink)}
@media (hover:hover) and (pointer:fine){.pad{display:none}}
#labels{position:fixed;inset:0;pointer-events:none;z-index:5}
.lbl{position:absolute;transform:translate(-50%,-50%);font-size:11px;font-weight:800;letter-spacing:.12em;color:#eef4dc;text-shadow:0 1px 3px rgba(0,0,0,.9),0 0 8px rgba(0,0,0,.5);white-space:nowrap}
.lbl.spot{color:var(--lime)}.lbl.spot.on{color:var(--warm)}.lbl.warn{color:#ffc6a8;font-size:10px}.lbl.town{font-family:var(--serif);font-style:italic;font-weight:600;letter-spacing:.02em;font-size:14px}
/* Fish */
.fish-panel{position:absolute;top:62px;right:16px;width:290px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px;backdrop-filter:blur(12px);max-height:calc(100% - 180px);overflow:auto}
.tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}
.tab{border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--ink);border-radius:9px;padding:9px 8px;font-weight:780;font-size:12.5px;text-align:left}.tab small{display:block;font-size:10px;color:var(--muted);font-weight:600}
.tab.active{background:#2a5149;border-color:rgba(248,244,232,.6)}
.row{margin:0 0 11px}.row small b{color:var(--ink);float:right;letter-spacing:.02em}
.row input[type=range]{width:100%;accent-color:var(--sa-amber)}
.seg{display:flex;gap:4px;margin-top:5px}.seg button{flex:1;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--ink);border-radius:7px;padding:6px 4px;font-size:12px}.seg button.active{background:var(--btn);color:var(--btn-ink);font-weight:800}
.power{height:8px;border-radius:5px;background:rgba(255,255,255,.08);overflow:hidden;margin:4px 0 8px}#powerBar{height:100%;width:0;background:linear-gradient(90deg,#DDE8E8,#F4A340,#e0806f)}
.hint{font-size:11.5px;color:#bdd2cb;margin:4px 0 0}
.status{display:flex;justify-content:space-between;align-items:center;background:rgba(0,0,0,.18);border-radius:8px;padding:7px 10px;margin:4px 0 8px}.status b{font-size:12.5px}
.float-card{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}.float-card .btn{width:100%}
.float-card.biting,.status.biting{animation:pulse .5s infinite alternate}
.panel-head{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;background:none;border:0;color:var(--ink);font-weight:800;font-size:13px;padding:2px 2px 10px;text-align:left}
.panel-head .chev{transition:transform .2s;color:var(--muted)}
.fish-panel.collapsed{padding:8px 12px}.fish-panel.collapsed .panel-body{display:none}.fish-panel.collapsed .panel-head{padding:2px}.fish-panel.collapsed .chev{transform:rotate(-90deg)}
.gesture-hint.faded{opacity:0;transition:opacity 1s}
@media (pointer:coarse),(hover:none){.btn small,.keys,.kb{display:none}.action-bar .big{padding:12px 6px}}
@keyframes pulse{to{box-shadow:0 0 0 3px rgba(255,158,133,.6)}}
.action-bar{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);display:flex;gap:8px;flex-wrap:wrap;justify-content:center;width:min(720px,calc(100% - 24px))}
.action-bar .big{min-width:140px;padding:14px 16px;flex-direction:column;gap:2px;font-size:14px}
.action-bar .btn-ghost{align-self:center}
#castBtn,#rigCastBtn{--p:0;--c:#f0ce95;background:linear-gradient(90deg,var(--c) calc(var(--p)*100%),var(--btn) 0);text-shadow:0 1px 3px rgba(0,0,0,.55)} /* fills while held: amber for a short cast, red for a long one */
.fish-chips{position:absolute;left:16px;top:62px;display:flex;gap:6px}.fish-chips .icon-btn{font-size:13px}
.gesture-hint{position:absolute;left:16px;top:106px;margin:0;font-size:11px;color:#d6e6df;text-shadow:0 1px 3px #000;max-width:260px;display:none}
@media (pointer:coarse){.gesture-hint{display:block}}
.seg{flex-wrap:wrap}.seg button.small-lure{border-style:dashed}
.bite-alert{position:absolute;inset:0;pointer-events:none;z-index:12}
/* the bite: up top what happens (a shaking card with the fish), the strike where the thumb is */
.bite-card{position:absolute;left:50%;top:30%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:14px;background:rgba(80,24,14,.86);border:2px solid var(--red);border-radius:16px;padding:12px 18px;backdrop-filter:blur(10px);animation:pop .25s ease-out,biteShake .32s .25s ease-in-out infinite;pointer-events:auto;cursor:pointer}
.bite-card b{display:block;font-size:22px;letter-spacing:.06em}.bite-card span{display:block;font-size:13px;color:#ffe2d6;max-width:260px}
.bite-signal{width:44px;height:44px;border-radius:50%;background:var(--red);color:#3d120a;display:grid;place-items:center;flex:none;animation:pulse .3s infinite alternate}.bite-signal .ic{width:26px;height:26px}
.bite-alert .bite-btn{position:absolute;left:50%;top:calc(30% + 64px);transform:translateX(-50%);pointer-events:auto;padding:14px 34px;font-size:18px;animation:pop .25s ease-out}
@keyframes biteShake{0%,100%{transform:translate(-50%,-50%) rotate(0)}25%{transform:translate(calc(-50% - 3px),-50%) rotate(-1.2deg)}75%{transform:translate(calc(-50% + 3px),-50%) rotate(1.2deg)}}
/* touch: the strike lies over the action bar, one big button under the thumb */
@media (pointer:coarse){
  .bite-alert .bite-btn{top:auto;left:10px;right:10px;bottom:12px;transform:none;height:78px;font-size:24px;letter-spacing:.04em;border-radius:18px;animation:pop .2s ease-out,strikeGlow .5s ease-in-out infinite alternate}
}
@keyframes strikeGlow{to{box-shadow:0 0 0 6px rgba(255,190,90,.45),0 0 28px rgba(255,160,60,.55)}}
.bite-alert .bite-btn{background:linear-gradient(180deg,#ffc56a,#f39a2e);color:#2a1406;border:2px solid #ffe2a8;font-weight:900}
.bite-alert .bite-btn::after{height:7px;background:#5a2a06}.bite-alert.late .bite-btn::after{background:#c0240e} /* the time left, dark on the amber */
/* the bite has the screen: the guide box and the gesture help step away meanwhile */
#hud:has(#biteAlert:not(.hidden)) .coach,#hud:has(#biteAlert:not(.hidden)) .gesture-hint{opacity:0;pointer-events:none;transition:opacity .15s}
@keyframes pop{from{transform:translate(-50%,-50%) scale(.8);opacity:0}}
/* Fight */
/* Fight: slim strip on top, two thumb buttons in the lower corners; the tension runs round the reel button */
.fight-top{position:absolute;top:62px;left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 24px));background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:8px 14px 10px;text-align:center;backdrop-filter:blur(12px)}
.fight-top small{display:block;font-size:9px;letter-spacing:.16em;font-weight:800;color:var(--muted)}
.fight-top b#fightText{display:block;font-size:16px;margin:2px 0 6px;min-height:22px}
.fight-line{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);white-space:nowrap}.fight-line .bar{flex:1;margin:0;height:8px}.fight-line b{color:var(--ink);font-size:12px}
.bar{position:relative;height:12px;border-radius:7px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:4px}.bar i{position:absolute;inset:0 auto 0 0;width:0;border-radius:7px}
.stamina i{background:#8dcfc1}
.thumb{position:absolute;bottom:22px;display:flex;flex-direction:column;align-items:center;gap:10px}
.thumb-left{left:22px}.thumb-right{right:22px}
.thumb-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:50%;border:1px solid rgba(248,244,232,.35);color:#eaf5e6;font:inherit;font-weight:800;font-size:13px;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.thumb-btn .ico{font-size:26px;line-height:1}.thumb-btn small{font-size:9.5px;font-weight:700;opacity:.7;letter-spacing:.04em}
.thumb-btn.pump{width:96px;height:96px;background:rgba(18,44,48,.82)}
.thumb-btn.pump:active,.thumb-btn.pump.held{background:var(--sa-amber);color:var(--sa-deep)}
/* red: let go now. The ring glows and beats, so it is seen out of the corner of the eye */
.tension-ring.red{animation:ringBeat .45s ease-in-out infinite alternate}
@keyframes ringBeat{from{box-shadow:0 0 0 0 rgba(255,122,92,.0)}to{box-shadow:0 0 0 8px rgba(255,122,92,.45)}}
@media (prefers-reduced-motion:reduce){.tension-ring.red{animation:none;box-shadow:0 0 0 6px rgba(255,122,92,.45)}}
.tension-ring{--t:0;--tc:#9fd3a5;width:138px;height:138px;border-radius:50%;padding:9px;background:conic-gradient(var(--tc) calc(var(--t) * 1turn),rgba(255,255,255,.12) 0);transition:background .1s}
.thumb-btn.reel{width:100%;height:100%;background:#2a5149}.thumb-btn.reel.held{background:var(--sa-amber);color:var(--sa-deep)}
.ring-label{font-size:9px;letter-spacing:.16em;font-weight:800;color:var(--muted);text-shadow:0 1px 3px rgba(0,0,0,.6)}
.thumb .drag{display:flex;align-items:center;gap:6px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:5px 6px;backdrop-filter:blur(12px)}
.thumb .drag span{text-align:center;min-width:52px}.thumb .drag small{display:block;font-size:8.5px;letter-spacing:.14em;font-weight:800;color:var(--muted)}.thumb .drag b{font-size:14px}
.drag button{width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--ink);font-weight:800;font-size:17px}
.fight-hud .keys{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);max-width:calc(100% - 420px);text-align:center;font-size:11px;color:var(--muted);text-shadow:0 1px 3px rgba(0,0,0,.7)}
.fight-hud::before{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 0 rgba(255,90,60,0);transition:box-shadow .25s}
.fight-hud.danger::before{box-shadow:inset 0 0 90px 10px rgba(255,90,60,.55);animation:dangerPulse .5s ease-in-out infinite alternate}
@keyframes dangerPulse{to{box-shadow:inset 0 0 60px 4px rgba(255,90,60,.3)}}
/* Modals */
.modal{position:fixed;inset:0;z-index:50;background:rgba(2,15,20,.66);display:grid;place-items:start center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:auto}
/* A window over the game or the start screen: dimmed, not blurred. A blur over the whole screen had to be worked out
   anew in every frame over the moving 3D view (or the drifting start picture), on phones a good part of the GPU's time:
   taps and scrolling in the windows answered late. The start picture stands still meanwhile (html.dlg, hud.js). */
html.dlg .title-bg,html.dlg .title[data-snow] .title-bg::before,html.dlg .game-button--primary:not(:disabled){animation-play-state:paused}
.modal-card{position:relative;width:min(560px,100%);background:var(--panel-solid);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 25px 90px rgba(0,0,0,.35);max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));overflow:auto;margin:auto 0}
/* the close button stays at hand while a long card scrolls */
.modal-card>.close{position:sticky;top:0;float:right;margin:-8px -8px 0 8px;z-index:2;background:var(--panel-solid)}
.modal-card h2{font:500 30px/1.1 var(--serif);margin:8px 0 14px}
.close{position:absolute;right:14px;top:14px;width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--ink)}
.catch-modal-pos{place-items:end end}
#catchModal{background:transparent;backdrop-filter:none;place-items:center end}
@media (min-width:761px){#catchModal{padding-top:64px}#catchModal .modal-card{max-height:calc(100dvh - 64px - max(16px,env(safe-area-inset-bottom)))}} /* below the top bar: the card covered the chips (the Tour's) */
.catch-fold{display:none}
/* phones upright: the card covers the angler holding up the fish. It can fold down to name, size and the buttons */
@media (max-width:760px) and (orientation:portrait){
  .catch-card{position:relative}
  .catch-fold{display:block;position:absolute;top:10px;right:10px;font:inherit;font-size:12px;font-weight:700;color:var(--sa-amber);background:none;border:1px solid rgba(244,163,64,.45);border-radius:8px;padding:0 12px;min-height:36px;cursor:pointer}
  .catch-card.folded>:not(.catch-fold,.eyebrow,h2,.catch-size,.catch-actions){display:none}
}
.catch-card{width:min(380px,100%)}
.catch-size{display:flex;align-items:baseline;gap:6px;margin:-4px 0 12px}.catch-size b{font:600 54px/1 var(--serif);color:var(--warm)}.catch-size span{font-size:18px;color:var(--muted)}.catch-size em{margin-left:auto;font-style:normal;font-weight:800;font-size:18px}
.catch-why{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;margin:6px 0 2px;font-size:12px;line-height:1.3}.catch-why small{flex-basis:100%;font-size:9px;letter-spacing:.14em;color:var(--sa-amber);font-weight:800}.catch-why span{background:rgba(0,0,0,.2);border-radius:8px;padding:4px 8px}.catch-why span::before{content:'✓ ';color:var(--sa-amber);font-weight:800}
.catch-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.catch-grid div{background:rgba(0,0,0,.2);border-radius:8px;padding:7px 10px}.catch-grid small{display:block;font-size:9px;letter-spacing:.14em;color:var(--muted);font-weight:800}.catch-grid b{font-size:13px}
.memory{margin:0;background:#f4efe3;padding:8px 8px 6px;border-radius:4px;box-shadow:0 14px 36px rgba(0,0,0,.45)}.memory img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover}.memory figcaption{color:#3b3a33;font:italic 13px var(--serif);text-align:center;padding-top:5px}
.trophy{margin:12px 0 0;position:relative;border-radius:10px;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#2c5a63 0%,#123139 70%,#0b2229 100%);border:1px solid var(--line)}
.trophy canvas{display:block;width:100%;height:190px;touch-action:none;cursor:grab}.trophy canvas:active{cursor:grabbing}
.trophy figcaption{position:absolute;right:10px;bottom:7px;font-size:10px;letter-spacing:.08em;color:rgba(220,235,230,.6);pointer-events:none}
.catch-line{font:italic 15px var(--serif);color:#d8e6df;margin:14px 0}
.modal-actions{display:flex;gap:8px;justify-content:flex-end}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}.stats div{background:rgba(0,0,0,.2);border-radius:9px;padding:9px 10px}.stats small{display:block;font-size:9px;letter-spacing:.14em;color:var(--muted);font-weight:800}.stats b{font-size:16px}
.catch-list{max-height:240px;overflow:auto;display:flex;flex-direction:column;gap:5px}
.catch-item{display:flex;justify-content:space-between;gap:10px;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:12.5px}.catch-item small{color:var(--muted)}
.empty{color:var(--muted);font-style:italic}
.code-box{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.code-box small{font-size:10px;color:var(--muted)}
.code-row{display:flex;gap:6px;margin:6px 0}.code-row code,.code-row input{flex:1;min-width:0;background:rgba(0,0,0,.25);border:1px solid var(--line);border-radius:8px;padding:9px;color:var(--ink);font:12px ui-monospace,monospace;overflow:hidden;text-overflow:ellipsis}
.settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.settings label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:10px;letter-spacing:.14em;font-weight:800;color:var(--muted);text-transform:uppercase}
.settings select{width:100%;min-width:0;max-width:100%;text-overflow:ellipsis;background:#0a222b;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:9px;font-size:13px;letter-spacing:0;text-transform:none;font-weight:500}
.note{font-size:12px;color:#bdd2cb}
.toasts{position:fixed;left:50%;top:168px;transform:translateX(-50%);z-index:60;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;width:min(480px,calc(100% - 24px))}
.toast{background:#23473f;border:1px solid rgba(234,239,213,.3);border-radius:10px;padding:10px 16px;font-size:12.5px;text-align:center;box-shadow:0 13px 40px rgba(0,0,0,.3);animation:toast .35s ease;transition:opacity .3s}
@keyframes toast{from{opacity:0;transform:translateY(-6px)}}
.noscript{position:fixed;inset:auto 0 0;padding:16px;text-align:center;background:#300}
@media (max-width:760px){
  .brand,.chips{display:none}.topbar{padding:10px}.icon-btn span{display:none}
  .coach{top:104px;left:10px;right:124px;transform:none;max-width:none;font-size:12px;padding:6px 10px;text-align:left}.coach span{font-size:12px}
  .drive-stats{top:56px;left:10px;gap:5px}.stat{min-width:0;padding:5px 8px}.stat b{font-size:12.5px}
  .minimap-wrap{top:110px;right:10px;width:104px;padding:6px}#minimap{height:170px}.mini-hint{display:none}
  .zone-card{bottom:10px;padding:8px 8px 8px 12px}.zone-card span,.keys{display:none}.zone-card strong{font-size:13.5px}.zone-card .btn{padding:9px 12px;font-size:13px}
  .pad{bottom:150px}
  .fish-panel{top:auto;bottom:96px;left:10px;right:10px;width:auto;max-height:42vh;padding:8px}.fish-panel .hint,.float-card .row small{display:none}.tabs{margin-bottom:8px}.tab{padding:6px}.row{margin-bottom:6px}
  .fish-chips{top:62px;left:10px}.gesture-hint{top:auto;bottom:140px;left:10px;right:10px;max-width:none;font-size:10.5px;line-height:1.3;text-align:center}
  .action-bar{bottom:10px;gap:6px}.action-bar .big{min-width:0;flex:1;padding:12px 8px;font-size:13px}
  .fight-top{top:56px;padding:6px 10px 8px}.fight-hud .keys{display:none}
  .sonar-panel{left:10px;bottom:auto;top:56px;width:150px}#sonarCanvas{height:95px}#liveCanvas{height:110px}.sonar-panel:has(#liveCanvas:not(.hidden)){width:min(240px,62vw)}
  #catchModal{place-items:end center}#catchModal .modal-card{margin-bottom:0} /* at the bottom: the card's own auto margins centred it, and folded ("Bild zeigen") it stood right over the angler and the fish */
}

/* Buttons on phones: labelled icons, equal action buttons, compact bite alert */
@media (max-width:760px){
  .topbar{padding:8px 10px}.top-actions{width:100%;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:5px}.top-actions .hidden{display:none}
  .top-actions .icon-btn{flex-direction:column;gap:1px;padding:5px 2px;min-height:46px;font-size:16px;line-height:1}
  .top-actions .icon-btn span{display:block;font-size:9.5px;font-weight:700;letter-spacing:.02em}
  .drive-stats{top:68px}.minimap-wrap{top:122px}.coach{top:118px}.fish-chips{top:68px}
  .sonar-panel{top:124px} /* under the second row of buttons, not behind it */
  #hud:has(.sonar-panel:not(.hidden)) .coach{top:282px;right:10px} /* the guide box under the open sonar */
  .toasts{top:200px}#hud[data-mode=drive]~.toasts{top:350px}
  #hud[data-mode=fight] .coach{display:none}
  .action-bar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;left:10px;right:10px;width:auto;transform:none;bottom:12px}
  .action-bar .big{min-width:0;height:64px;padding:6px 4px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bite-card{top:26%;width:calc(100% - 32px);max-width:360px;gap:10px;padding:12px}
  .bite-card b{font-size:21px}.bite-card span{font-size:13px}
  .bite-signal{width:38px;height:38px}
  .drag button{width:40px;height:40px;font-size:18px}
  .fight-top{top:118px}.fight-line .reserve{display:none}
  .thumb{bottom:16px}.thumb-left{left:14px}.thumb-right{right:14px}
  .fish-panel{bottom:88px}
  /* the lure is out (spin.js .out): leading it with one thumb, as in the fight. The reel is a round button on the right
     (held: reeling, a short tap: Zupfen), „Neu werfen“ and „Einholen“ small on the left; four equal buttons in a row
     made the two that matter no easier to hit than the two that end the cast */
  #spinActions.out{display:flex;align-items:flex-end;gap:6px}
  #spinActions.out #jerkBtn{display:none}
  #spinActions.out #castBtn,#spinActions.out #spinInBtn{flex:0 0 92px;height:56px;font-size:12.5px}
  #spinActions.out #reelBtn{order:1;margin-left:auto;flex:0 0 124px;width:124px;height:124px;border-radius:50%;gap:1px;font-size:15px;font-weight:800;white-space:normal;overflow:visible;box-shadow:0 0 0 7px rgba(255,255,255,.1),0 10px 26px rgba(0,0,0,.4)}
  #spinActions.out #reelBtn .ico{font-size:26px;line-height:1}
  #spinActions.out #reelBtn .reel-tap{display:block;font-size:9.5px;font-weight:700;opacity:.75;letter-spacing:.03em}
  #spinActions.out #reelBtn .meter{margin:2px 0 0}
  #hud:has(#spinActions.out) .fish-panel{right:150px}
}
.reel-tap{display:none}
/* phones upright, in the fight: the top bar goes (Echolot, Karte, Mehr: nothing for a fight) and the rod's name with
   it; the fight panel moves up into its place, the line row and the rod buttons follow. The first round keeps its own
   layout (#hud.tut) */
@media (max-width:760px) and (min-height:501px){
  #hud[data-mode=fight]:not(.tut){--ft:max(10px,env(safe-area-inset-top,0px))}
  #hud[data-mode=fight]:not(.tut) .topbar,#hud[data-mode=fight]:not(.tut) #fightRod{display:none}
  #hud[data-mode=fight]:not(.tut) .fight-top{top:var(--ft)}
}

/* Sorpe-Wissen */
.wissen-card{width:min(760px,100%);max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));overflow:auto}
.wissen-seasons{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:4px 0 14px}.wissen-seasons button{padding:8px 4px;line-height:1.2}.wissen-seasons small{display:block;font-size:10px;opacity:.7;font-weight:500}
.wissen-top{display:grid;grid-template-columns:340px 1fr;gap:16px;align-items:start}
.water-col{width:100%;height:auto;background:#081d25;border-radius:10px;border:1px solid var(--line)}
.water-col .wa{font:600 10px system-ui,sans-serif;fill:#9fb9b9}.water-col .wl{font:600 11px system-ui,sans-serif;fill:#f0e6b8}.water-col .ws{font:800 11px system-ui,sans-serif;fill:#eaf4ef}
.wissen-water small{font-size:9px;letter-spacing:.16em;font-weight:800;color:var(--lime)}.wissen-water p{font-size:13.5px;line-height:1.5;color:#dbe9e3;margin:6px 0 0}
.wissen-fish{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.wf{background:rgba(0,0,0,.2);border-left:3px solid var(--c);border-radius:8px;padding:9px 11px;font-size:12.5px;line-height:1.45}
.wf b{display:block;color:var(--c);font-size:13px}.wf .where{display:block;font-weight:700;color:#e6f0ec;margin:3px 0}.wf p{margin:0 0 5px;color:#c9dbd5}.wf em{font-style:normal;color:#f0d98a}
.wissen-more{margin-top:10px;background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:12.5px}
.wissen-more summary{cursor:pointer;font-weight:800;color:#e6f0ec}.wissen-more dl{display:grid;grid-template-columns:90px 1fr;gap:4px 10px;margin:8px 0 2px}.wissen-more dt{color:var(--muted);font-weight:800}.wissen-more dd{margin:0}.wissen-more ul{margin:8px 0 2px;padding-left:18px}.wissen-more a{color:var(--lime)}
@media (max-width:760px){.wissen-top{grid-template-columns:1fr}.water-col{max-width:360px;margin:0 auto;display:block}.wissen-fish{grid-template-columns:1fr}.wissen-seasons small{display:none}}

/* lure picker with drawings */
.lure-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:5px}
.lure-card{display:flex;flex-direction:column;align-items:center;gap:1px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--ink);border-radius:8px;padding:4px 2px 5px;font-size:11px;line-height:1.15;cursor:pointer}
.lure-card svg{width:100%;max-width:64px;height:26px}.lure-card b{font-size:11.5px}.lure-card small{font-size:9.5px;color:var(--muted);letter-spacing:0;white-space:nowrap;text-transform:none;font-weight:600}.lure-card b{letter-spacing:0}
.lure-card.small-lure{border-style:dashed}.lure-card.active{background:rgba(207,227,170,.18);border-color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime)}
.lure-info{font-size:11.5px;line-height:1.4;color:#c9dbd5;margin:6px 0 0}.lure-info b{color:#e6f0ec}

/* underwater moments */
.uw-overlay{position:fixed;inset:0;pointer-events:none;z-index:5;background:radial-gradient(ellipse at 50% 40%,rgba(30,110,110,0) 40%,rgba(6,40,46,.55) 100%),linear-gradient(180deg,rgba(150,220,210,.18),rgba(0,30,35,.25));animation:uwIn .5s ease}
.uw-badge{position:fixed;left:50%;top:calc(var(--fight-bottom,150px) + 8px);transform:translateX(-50%);z-index:40;background:rgba(10,52,58,.85);color:#dff3ee;border:1px solid rgba(160,230,220,.45);border-radius:20px;padding:7px 14px;font-size:12.5px;font-weight:700}
@keyframes uwIn{from{opacity:0}}
@media (max-width:760px){.uw-badge{top:calc(max(200px,var(--fight-bottom,150px)) + 8px + env(safe-area-inset-top,0px))}} /* under the fight strip, clear of the thumb buttons */
.lure-group{margin-top:4px}.lure-group>span{display:block;font-size:9px;letter-spacing:.14em;font-weight:800;color:var(--muted);margin:4px 0 2px}
.lure-group .lure-grid{grid-template-columns:repeat(4,1fr)}
.lure-group.off .lure-card{opacity:.55}.lure-group.off .lure-card.active,.lure-group.off .lure-card:hover{opacity:1} /* at the pond: the lures no trout takes, still there, but quieter */
.lure-card img{width:100%;max-width:74px;height:32px;object-fit:contain;border-radius:4px;background:#f2f0ea}
.hcolor-seg{flex-wrap:wrap}.hcolor-seg button{display:flex;align-items:center;justify-content:center;gap:4px;min-width:56px}.hcolor-seg i{width:10px;height:10px;border-radius:50%;display:inline-block;box-shadow:0 0 0 1px rgba(255,255,255,.4)}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#creditTap{cursor:default;user-select:none}
.settings-h{font-size:12px;letter-spacing:.14em;color:var(--lime);margin:16px 0 6px}
.msg-list{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px;font-size:12.5px}.msg-list .check{display:flex;gap:7px;align-items:center;color:#d7e8e1;text-transform:none;letter-spacing:0;font-weight:500}
.msg-quick{display:flex;gap:8px;margin-top:8px}.msg-quick .btn{flex:1;padding:8px}
@media (max-width:760px){.msg-list{grid-template-columns:1fr}}
/* App: update notice, install guide */
.update-bar{position:fixed;left:50%;transform:translateX(-50%);top:calc(64px + env(safe-area-inset-top,0));z-index:70;display:flex;align-items:center;gap:12px;background:var(--panel-solid);border:1px solid var(--lime);border-radius:14px;padding:10px 12px 10px 16px;box-shadow:0 10px 30px rgba(0,0,0,.4);width:max-content;max-width:calc(100% - 24px)}
.update-bar .btn{padding:9px 14px}
.install-steps{margin:8px 0 12px;padding-left:22px;line-height:1.7}
.app-row{flex-wrap:wrap}.app-row .btn.active{border-color:var(--lime)}

.link-btn{background:none;border:0;padding:0;color:var(--lime);font-size:11px;text-decoration:underline;text-underline-offset:2px}
.credits-card p{font-size:12.5px;line-height:1.55}.credits-card a{color:var(--lime)}
/* ---------- Phones held sideways (height ≤ 500 px): everything slim and at the edges, the lake in the middle ---------- */
@media (orientation:landscape) and (max-height:500px){
  .brand,.chips,.keys,.gesture-hint{display:none!important}
  .topbar{padding:6px 10px;justify-content:flex-end;background:linear-gradient(180deg,rgba(5,20,26,.55),rgba(5,20,26,0))}
  .top-actions{width:auto;display:flex;gap:5px}
  .top-actions .icon-btn{flex-direction:row;min-height:30px;padding:4px 9px;font-size:13px;gap:5px}
  .top-actions .icon-btn span{display:inline;font-size:11px}
  /* drive */
  .drive-stats{top:8px;left:10px;gap:5px}.stat{padding:4px 8px;min-width:0}.stat small{font-size:8px}.stat b{font-size:12px}
  .coach{top:48px;left:10px;right:auto;transform:none;max-width:min(330px,42vw);padding:5px 10px;text-align:left}
  .coach span{font-size:11.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .minimap-wrap{top:46px;right:10px;width:108px;padding:5px}#minimap{height:96px}.mini-hint{display:none}
  .pad{bottom:12px}.pad-left{left:12px}.pad-right{right:12px;flex-direction:row;align-items:flex-end}
  .pad button{width:54px;height:54px;font-size:18px}.pad button.small{width:40px;height:40px}
  .zone-card{bottom:8px;width:min(360px,calc(100% - 370px));padding:6px 10px}.zone-card span{display:none}.zone-card strong{font-size:13px}.zone-card small{font-size:8px} /* as wide as the room between the steering pads allows */
  .zone-card .btn{min-width:0;width:100%;padding:8px}
  .toasts{top:48px;width:min(360px,46vw);left:auto;right:10px;transform:none}.toast{font-size:12px;padding:7px 10px}
  /* fishing */
  .fish-chips{top:8px;left:10px}.fish-chips .icon-btn{min-height:30px;padding:4px 8px;font-size:12px}
  #hud[data-mode=fish] .coach{top:46px}
  .fish-panel{top:auto;bottom:62px;right:10px;left:auto;width:min(300px,44vw);max-height:calc(100% - 120px)}
  .action-bar{left:10px;right:auto;bottom:8px;transform:none;width:min(420px,56vw);display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}
  .action-bar .big{height:46px;min-width:0;padding:4px 6px;font-size:13px}
  .bite-card{top:28%}
  .bite-alert .bite-btn{right:auto;width:min(420px,56vw);bottom:8px;height:56px;font-size:20px} /* over the action bar there, at its left */
  /* fight */
  .fight-top{top:8px;left:10px;transform:none;width:min(380px,50vw);padding:5px 10px 7px}.fight-top b#fightText{font-size:14px;margin:1px 0 4px;min-height:0}
  .thumb{bottom:10px}.thumb-left{left:12px}.thumb-right{right:12px}
  .tension-ring{width:112px;height:112px;padding:7px}.thumb-btn.pump{width:76px;height:76px}.thumb-btn .ico{font-size:21px}
  .thumb .drag{padding:3px 4px}.drag button{width:32px;height:32px}
  .uw-badge{top:auto;bottom:12px;left:auto;right:10px;transform:none} /* bottom right under the panel: the action bar takes the left half */
  /* catch card: two columns, the button always in view */
  .catch-card{width:min(640px,100%);display:grid;grid-template-columns:1fr 1fr;column-gap:16px;align-items:start;padding:14px 16px}
  .catch-card>*{grid-column:1}.catch-card .trophy{grid-column:2;grid-row:1 / span 5;margin:0}.catch-card .trophy canvas{height:190px}
  /* the right column: the fish, the line and the buttons, placed so the buttons stay on the screen (auto-placement put them under the left column) */
  .catch-card .trophy{grid-row:1 / span 3}.catch-card .trophy canvas{height:150px}.catch-card .catch-line{grid-column:2;grid-row:4;margin:6px 0}
  .catch-card .modal-actions{grid-column:2;grid-row:5 / span 3;align-self:start}.catch-card h2{font-size:24px;margin:4px 0 6px}
  .catch-grid{gap:5px}.catch-grid div{padding:5px 8px}
  .modal-card{max-height:calc(100dvh - 16px);padding:14px 16px}
}
/* the landing moment: the pump button turns into the net */
.thumb-btn.pump.land{background:var(--sa-amber);color:var(--sa-deep);animation:landPulse .6s ease-in-out infinite alternate}
@keyframes landPulse{to{box-shadow:0 0 0 10px rgba(204,224,171,.25),0 8px 24px rgba(0,0,0,.35)}}

/* depth chart */
.depth-card{width:min(720px,100%)}
.depth-wrap{position:relative;display:flex;gap:10px;align-items:stretch}
#depthMap{flex:1;min-width:0;height:min(68dvh,640px);display:block;border-radius:10px;background:#21352a;cursor:pointer}
.depth-legend{display:flex;flex-direction:column;justify-content:space-between;font-size:11px;font-weight:700;color:var(--muted,#9bb)}
.depth-legend span{display:flex;align-items:center;gap:5px}.depth-legend span::before{content:"";width:14px;height:14px;border-radius:3px;background:var(--c);border:1px solid rgba(0,0,0,.25)}
@media (orientation:landscape) and (max-height:500px){#depthMap{height:calc(100dvh - 165px)}.depth-legend{padding-top:40px}.depth-card h2{display:none}.depth-card .note{display:none}}
.depth-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}.depth-actions .btn{padding:8px 12px;font-size:14px}
#markDelete[aria-pressed=true]{background:var(--red);color:#2a0f08}
.depth-toggle{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);margin-left:auto}
.journal-h{font:600 15px/1.2 var(--sans);margin:16px 0 8px;display:flex;justify-content:space-between;align-items:baseline}.journal-h small{color:var(--muted);font-weight:600}
.badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.badge{display:flex;gap:8px;align-items:center;padding:7px 9px;border-radius:9px;border:1px solid var(--line);background:rgba(255,255,255,.04);font-size:12px;line-height:1.25}
.badge i{font-style:normal;font-size:20px;filter:grayscale(1) opacity(.35)}.badge b{display:block;font-size:12.5px}.badge small{color:var(--muted)}
.badge.got{background:rgba(244,163,64,.12);border-color:rgba(244,163,64,.4)}.badge.got i{filter:none}
.catch-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:-4px 0 12px}.catch-badges span{background:rgba(244,163,64,.16);border:1px solid rgba(244,163,64,.5);border-radius:99px;padding:5px 11px;font-weight:700;font-size:13px}
.timelapse-pill{position:fixed;left:50%;transform:translateX(-50%);top:calc(64px + env(safe-area-inset-top));z-index:30;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:99px;border:1px solid rgba(244,163,64,.5);background:rgba(8,29,38,.8);color:var(--ink);font-weight:700;font-size:14px;backdrop-filter:blur(8px)}
.timelapse-pill small{color:var(--lime);font-weight:800;letter-spacing:.06em;text-transform:uppercase;font-size:10px;margin-left:4px}
#hudTime{cursor:pointer}
body.cinema .mode-hud,body.cinema .coach,body.cinema .sonar-panel,body.cinema #labels,body.cinema .toasts{opacity:0;pointer-events:none;transition:opacity .6s}

/* ---------- Sauerland Angelsimulator: start screen after the CI kit v1 (text and buttons are real DOM, the art is only background) ---------- */
.title{display:flex;flex-direction:column;overflow:hidden;color:var(--sa-cream);font-family:var(--sans);isolation:isolate}
.title-bg{position:absolute;inset:0;z-index:-2;background:#092A39 url('assets/brand/hero-desktop-1920.webp') center/cover no-repeat}
.title::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(5,31,43,.76) 0%,rgba(5,31,43,.52) 30%,rgba(5,31,43,.06) 68%),linear-gradient(0deg,rgba(4,26,40,.6),transparent 37%,rgba(6,32,48,.13))}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:max(20px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) 0 max(32px,env(safe-area-inset-left))}
.masthead-brand{display:flex;gap:8px;align-items:center;font-family:var(--font-brand);font-size:12px;font-weight:800;letter-spacing:.09em}
.masthead-brand .soft{font-weight:500;font-size:11px;letter-spacing:.15em;opacity:.78}
.brand-dot{width:8px;height:8px;display:inline-block;background:var(--sa-amber);border-radius:99px}
.sa-icon-btn{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:rgba(9,42,57,.48);border:1px solid rgba(248,244,232,.25);color:var(--sa-cream);transition:background .17s ease,transform .17s ease}
.masthead-btns{display:flex;gap:10px}.sa-icon-btn img,.sa-icon-btn .ic{width:22px;height:22px}.sa-icon-btn:hover{background:rgba(13,59,82,.95);transform:translateY(-1px)}
.hero{flex:1;width:100%;max-width:1480px;margin:0 auto;display:flex;align-items:center;padding:clamp(12px,min(5vw,5vh),80px) clamp(28px,8vw,124px) clamp(12px,min(4vw,4vh),60px)}
.hero-content{width:100%;max-width:min(100%,640px)}
.title .eyebrow{color:#FFCB81;font-size:11px;letter-spacing:.21em;font-weight:750;margin:0 0 20px;cursor:default}
.brand-name{font-family:var(--font-brand);font-size:clamp(56px,min(7.6vw,12.5vh),108px);letter-spacing:-.06em;line-height:.95;font-weight:800;margin:0;text-shadow:0 2px 32px rgba(4,31,42,.25)}

.brand-subline{font-size:clamp(16px,1.7vw,20px);font-weight:500;margin:12px 0 0 3px}
.title-mood{max-width:400px;font-size:15px;line-height:1.6;opacity:.86;margin:24px 0 20px 3px}
.hero-actions{max-width:370px;display:flex;flex-direction:column;gap:10px}
.game-button{min-height:52px;width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:11px 18px;border-radius:14px;font-size:16px;font-weight:650;letter-spacing:-.015em;color:var(--sa-cream);transition:background .17s ease,border-color .17s ease,transform .17s ease;box-shadow:0 4px 14px rgba(7,28,40,.11)}
.game-button img{width:21px;height:21px;flex:none}.game-button .tail{margin-left:auto;font-size:24px;line-height:1;opacity:.67;font-weight:500}
.game-button--primary{background:rgba(9,42,57,.94);border:1px solid rgba(244,163,64,.62)}
.game-button--primary:hover:not(:disabled){background:#10465F;border-color:var(--sa-amber);transform:translateY(-1px)}
.game-button--secondary{background:rgba(8,37,52,.42);border:1px solid rgba(248,244,232,.25);backdrop-filter:blur(7px)}
.game-button--secondary:hover{background:rgba(9,42,57,.78);border-color:rgba(248,244,232,.57);transform:translateY(-1px)}
.game-button:disabled{opacity:.6;cursor:wait}
/* loading: the start button is the progress bar, filling from the left in amber */
#startBtn:disabled{opacity:1;position:relative;overflow:hidden;background:linear-gradient(90deg,rgba(244,163,64,.5) 0,rgba(244,163,64,.5) calc(var(--load,0)*100%),rgba(9,42,57,.94) calc(var(--load,0)*100%));font-variant-numeric:tabular-nums}
#startBtn:disabled .tail{visibility:hidden}
.game-button:focus-visible,.sa-icon-btn:focus-visible,.title-icons button:focus-visible,.lake-option:focus-visible{outline:3px solid var(--sa-amber);outline-offset:4px}
.lake-selected{display:flex;align-items:center;gap:7px;margin:16px 3px 0;color:rgba(248,244,232,.76);font-size:13px}.lake-selected strong{color:var(--sa-cream);font-weight:650}
.status-dot{width:6px;height:6px;border-radius:99px;background:var(--sa-amber)}
.title-icons{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap;max-width:370px}
.title-icons button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:7px 12px;border-radius:12px;border:1px solid rgba(248,244,232,.25);background:rgba(8,37,52,.42);color:var(--sa-cream);font-size:13px;font-weight:600;backdrop-filter:blur(7px)}
.title-icons button:hover{background:rgba(9,42,57,.78)}
.title-foot{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0;padding:0 max(32px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(32px,env(safe-area-inset-left));font-size:11px;font-weight:550;letter-spacing:.08em;color:rgba(248,244,232,.72)}
.link-btn{color:var(--sa-cream)}
/* Gewässer wählen */
.lake-options{display:grid;gap:8px;margin:14px 0}
.lake-option{width:100%;text-align:left;display:flex;flex-direction:column;padding:14px 16px;min-height:62px;border-radius:12px;color:var(--sa-cream);background:rgba(248,244,232,.06);border:1px solid rgba(248,244,232,.15)}
.lake-option strong{font-size:16px;font-weight:650}.lake-option span{font-size:12px;margin-top:4px;color:rgba(248,244,232,.62)}
.lake-option:hover,.lake-option[aria-pressed=true]{border-color:var(--sa-amber);background:rgba(244,163,64,.1)}
.lake-option.soon{opacity:.62}
/* tablets */
@media (min-width:681px) and (max-width:1300px){.title-bg{background-image:url('assets/brand/hero-tablet-1280.webp')}}
/* phones upright: own art, content centred, actions at the bottom */
@media (max-width:680px) and (orientation:portrait),(max-aspect-ratio:2/3){
  .title-bg{background-image:url('assets/brand/hero-mobile-1080x1920.webp');background-position:center}
  .title::before{background:linear-gradient(180deg,rgba(6,28,40,.66) 0%,rgba(6,28,40,.46) 31%,rgba(6,28,40,.16) 55%,rgba(6,28,40,.86) 100%)}
  .masthead{padding:calc(12px + env(safe-area-inset-top)) 18px 0}.masthead-brand .soft{display:none}
  .hero{padding:4vh 22px 10px;align-items:stretch;max-width:600px}
  .hero-content{display:flex;flex-direction:column;align-items:center;text-align:center;flex:1}
  .brand-name{font-size:clamp(50px,13vw,72px)}
  .brand-subline{font-size:clamp(14px,3.6vw,17px)}.title .eyebrow{font-size:10px;margin-bottom:14px}
  .title-mood{font-size:14px;max-width:320px;margin:16px auto 0}
  .hero-actions{width:100%;max-width:420px;margin-top:auto;padding-top:28px}
  .lake-selected,.title-icons{justify-content:center;margin-left:auto;margin-right:auto}
  .title-foot{justify-content:center;text-align:center;padding:4px 18px calc(10px + env(safe-area-inset-bottom))}
}
/* phones sideways and other low screens */
@media (max-height:590px) and (min-width:681px){
  .masthead{padding-top:max(10px,env(safe-area-inset-top))}
  .hero{padding-top:8px;padding-bottom:8px}
  .title .eyebrow,.title-mood{display:none}
  .brand-name{font-size:clamp(44px,9vh,70px)}.brand-subline{margin-top:6px}
  .hero-actions{margin-top:14px;gap:6px}.game-button{min-height:44px;padding:6px 14px}
  .title-icons{margin-top:10px}.title-icons button{min-height:34px;padding:4px 10px}
  .title-foot{padding-bottom:max(8px,env(safe-area-inset-bottom))}
}
/* phones held sideways: everything has to fit in about 330–430 px height */
@media (max-height:500px) and (orientation:landscape){
  .title .eyebrow,.title-mood{display:none}
  .masthead{position:absolute;top:0;right:0;left:0;padding:max(8px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left))}
  .masthead-brand{visibility:hidden}.sa-icon-btn{width:40px;height:40px}
  .hero{padding:max(10px,env(safe-area-inset-top)) 24px 4px max(28px,env(safe-area-inset-left))}
  .brand-name{font-size:clamp(36px,11vh,52px)}.brand-subline{font-size:14px;margin-top:4px}
  .hero-actions{flex-direction:row;max-width:520px;margin-top:12px}.game-button{min-height:44px;font-size:15px}
  .lake-selected{display:none}.title-icons{max-width:520px;margin-top:8px;flex-wrap:nowrap}
  .title-foot{padding-top:2px}
}
@media (prefers-reduced-motion:reduce){.game-button,.sa-icon-btn{transition:none}}
/* CI type in the game: brand headlines in Manrope, measured values in IBM Plex Mono */
body{font-family:var(--sans)}
.modal-card h2,.wissen-card h2{font-family:var(--font-brand);font-weight:800;letter-spacing:-.04em}
.stat b,#lineOut,#lineLeft,#dragVal,.catch-size b,#sonarCanvas+*,.sonar-panel small,.drive-stats b{font-family:var(--font-num);font-variant-numeric:tabular-nums}
.brand{font-family:var(--font-brand);font-weight:800}
.brand .brand-dot{margin-right:4px;vertical-align:1px}.brand .soft{font-weight:500;opacity:.78;letter-spacing:.14em}
.lake-card,.credits-card{width:min(500px,100%)}
.foot-right{display:flex;gap:14px;align-items:center}#appVersion{opacity:.7;font-family:var(--font-num);letter-spacing:0}
.modal-card :focus-visible{outline:3px solid var(--sa-amber);outline-offset:3px}
@media (pointer:coarse){.link-btn{min-height:44px;padding:0 4px}}
@media (max-height:780px) and (min-width:681px) and (orientation:landscape){.title .eyebrow{margin-bottom:12px}.title-mood{margin:14px 0 14px 3px}.title-icons{margin-top:12px}}
/* wide screens: the small buttons go up beside the settings, so the pike in the water stays free (CI 6) */
@media (min-width:681px) and (orientation:landscape){
  .title-icons{position:absolute;top:max(20px,env(safe-area-inset-top));right:calc(max(28px,env(safe-area-inset-right)) + 118px);margin:0;max-width:none;flex-wrap:nowrap}
  .title-icons button{min-height:48px}
}
/* tablets across (iPad): the install and push hints wait in the bottom right corner, over the water, so the column
   with the buttons keeps its full size */
@media (min-width:900px) and (min-height:600px) and (orientation:landscape){
  .install-hint{position:absolute;right:max(28px,env(safe-area-inset-right));bottom:calc(max(18px,env(safe-area-inset-bottom)) + 56px);width:400px;max-width:400px;margin:0}
  #pushHint:has(~#installHint:not(.hidden)){bottom:calc(max(18px,env(safe-area-inset-bottom)) + 160px)} /* both: one above the other */
}
.title-foot .link-btn{display:inline-flex;align-items:center} /* the links and the credits button on one line (the tall touch targets put the text at the top) */
.title-foot{align-items:center}
@media (max-height:500px) and (orientation:landscape){.title-icons{top:max(8px,env(safe-area-inset-top));right:calc(max(16px,env(safe-area-inset-right)) + 100px)}.title-icons button{min-height:40px}}
/* Für Jens: a polaroid on the start screen, the game was built for him first */
.jens-card{position:absolute;right:clamp(140px,27vw,520px);bottom:clamp(56px,10vh,120px);width:clamp(118px,11vw,176px);padding:8px 8px 6px;display:flex;flex-direction:column;gap:5px;background:#F8F4E8;color:#17323F;border-radius:3px;transform:rotate(4deg);box-shadow:0 16px 36px rgba(2,18,27,.45);transition:transform .2s ease}
.jens-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:1px}
.jens-card span{font-family:var(--font-brand);font-weight:750;font-size:clamp(12px,1.1vw,15px);letter-spacing:.01em;text-align:center}
.jens-card:hover{transform:rotate(1.5deg) translateY(-3px)}
.jens-card:focus-visible{outline:3px solid var(--sa-amber);outline-offset:4px}
.jens-modal{width:min(620px,100%)}
.jens-photos{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 12px}
.jens-photos figure{margin:0}.jens-photos img{display:block;width:100%;height:auto;border-radius:10px}
.jens-photos figcaption{margin-top:6px;font-size:12px;text-align:center;opacity:.7}
.jens-modal p{font-size:14px;line-height:1.55}
@media (max-width:680px) and (orientation:portrait),(max-aspect-ratio:2/3){
  .title .hero-actions{padding-top:16px}.jens-card{position:static;width:76px;margin:10px auto 0;padding:4px 4px 3px;gap:3px;transform:rotate(-3deg)}.jens-card span{font-size:11px}
}
@media (max-width:680px) and (orientation:portrait) and (max-height:620px){.jens-card{display:none}}
@media (max-height:500px) and (orientation:landscape){
  .jens-card{right:max(22px,env(safe-area-inset-right));bottom:66px;width:80px;padding:5px 5px 4px}.jens-card span{font-size:11px}
  .jens-photos img{max-height:58vh;object-fit:cover}
}
/* on tablets and desktops the coach line sits below the driving stats instead of on top of them */
@media (min-width:761px) and (max-width:1400px) and (min-height:501px){#hud[data-mode=drive] .coach{top:118px}}
/* phones upright: one setting per row, so long choices stay readable and nothing slides off the screen */
@media (max-width:520px){.settings{grid-template-columns:minmax(0,1fr)}}
.toast-btn{pointer-events:auto;display:inline-block;margin:6px 0 0 6px;padding:5px 10px;border-radius:8px;border:1px solid var(--sa-amber);background:rgba(9,42,57,.9);color:var(--sa-cream);font-size:12px;font-weight:650}
/* phones: the guide box gets three lines at most (tap Wissen for more) */
@media (max-width:760px){.coach span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}
/* phones upright: a compact catch card, so the button stays on the screen */
@media (max-width:760px) and (orientation:portrait){
  .catch-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.catch-grid div{padding:5px 7px}.catch-grid b{font-size:12px}
  .catch-size b{font-size:44px}.catch-card h2{margin:2px 0 4px}.trophy canvas{height:150px}.catch-line{margin:8px 0}
}
/* narrow minimap on phones: the four small buttons share its width instead of running over the edge */
@media (max-width:760px){.mini-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.mini-actions button{min-width:0;width:auto;height:44px;padding:0;font-size:12px}.mini-actions button:last-child:nth-child(odd){grid-column:1/-1}} /* phones: fingertip size (44 px, as Apple asks), two to a row */
/* the bell: messages collected instead of popping up */
.inbox-pill{position:fixed;left:16px;top:124px;z-index:55;display:flex;align-items:center;gap:5px;height:34px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:14px;backdrop-filter:blur(8px)}
.inbox-pill b{font:700 11px/1 var(--font-num);min-width:16px;padding:3px 4px;border-radius:99px;background:rgba(255,255,255,.08);text-align:center}
.inbox-pill:not(.unread) b{opacity:.55}.inbox-pill.unread b{background:var(--sa-amber);color:#10222b}
.inbox-card{width:min(460px,100%)}
.inbox-list{list-style:none;margin:12px 0;padding:0;display:grid;gap:6px;max-height:55vh;overflow:auto}
.inbox-list li{display:grid;grid-template-columns:42px 1fr;gap:8px;align-items:start;padding:8px 10px;border-radius:10px;background:rgba(0,0,0,.2);font-size:13px;line-height:1.4}
.inbox-list small{font:600 11px/1.6 var(--font-num);color:var(--muted)}
/* phones: messages as compact banners, like a chat app; a tap sends one away */
@media (max-width:760px){
  .inbox-pill{left:auto;right:10px;top:calc(66px + env(safe-area-inset-top,0px));height:30px;padding:0 9px;font-size:13px} /* fixed, so past the notch itself: beside the speed/course/depth row, under the buttons */
  .toasts{top:auto;bottom:calc(150px + env(safe-area-inset-bottom));gap:6px}#hud[data-mode=drive]~.toasts{top:200px;bottom:auto}
  .toast{pointer-events:auto;width:100%;text-align:left;font-size:12.5px;line-height:1.35;padding:9px 12px;border-radius:14px;background:rgba(14,40,50,.92);border-color:rgba(248,244,232,.18);box-shadow:0 8px 24px rgba(0,0,0,.35);backdrop-filter:blur(10px);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;animation:toastUp .28s ease}
}
@media (max-height:500px) and (orientation:landscape){
  .inbox-pill{left:calc(50% - 58px);right:auto;top:max(8px,env(safe-area-inset-top));transform:none} /* just left of the centre, clear of the buttons on the right */
  .toasts{top:auto;bottom:70px;left:auto;right:12px;transform:none;width:min(360px,45vw)}
  .toast{pointer-events:auto;text-align:left;padding:7px 11px;border-radius:12px;font-size:12px}
}
@keyframes toastUp{from{opacity:0;transform:translateY(8px)}}
/* lakes: four methods in the tab row; the river keeps two (spinning and the river rigs) */
.tabs .tab small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.shore .lake-only{display:none}
.tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px}.tabs .tab{min-width:0;padding:6px 5px;font-size:12px}
/* trolling: a card while the lure runs behind the boat */
.troll-card{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(150px + env(safe-area-inset-bottom));z-index:6;display:flex;align-items:center;gap:10px;padding:8px 10px 8px 12px;border-radius:14px;background:var(--panel);border:1px solid rgba(214,64,52,.65);backdrop-filter:blur(8px);max-width:calc(100% - 24px)}
.troll-card small{display:block;font-size:9px;letter-spacing:.16em;font-weight:800;color:#ff8f80}.troll-card b{font-size:13px;white-space:nowrap}
.troll-flag{font-size:20px;color:#e24a3c}.troll-card .btn{min-height:36px;padding:6px 10px;font-size:12px}
.troll-card.biting{border-color:#ff5a4a;box-shadow:0 0 0 3px rgba(255,90,74,.35)}
@media (max-width:760px){.troll-card{bottom:calc(220px + env(safe-area-inset-bottom))}}

/* ---------- Start screen with character: a poster for a day at the water, not a landing page ----------
   Fraunces (soft, a little wonky) for the name, Barlow Condensed for the labels like on a fishing licence,
   Caveat for what a mate would scribble: today's conditions, "Für Jens", the Petri-Heil stamp. */
:root{--font-display:'Fraunces',Georgia,serif;--font-cond:'Barlow Condensed','Arial Narrow',sans-serif;--font-hand:'Caveat','Segoe Print',cursive}
.title-bg{animation:titleDrift 38s ease-in-out infinite alternate;transform-origin:62% 55%}
@keyframes titleDrift{from{transform:scale(1.02)}to{transform:scale(1.09) translate(-1%,-.6%)}}
@media (prefers-reduced-motion:reduce){.title-bg{animation:none}}
/* The start picture stays as it is, whatever the day (no grey or winter filter: it darkened the picture right after
   the start); only when it snows do the flakes drift over it (hud.js sets the day's season and weather on the title) */
.title[data-snow] .title-bg::before{content:"";position:absolute;inset:-10% 0 0;z-index:1;pointer-events:none;opacity:.8;background-image:radial-gradient(2px 2px at 20px 30px,#fff 50%,transparent 51%),radial-gradient(3px 3px at 80px 120px,#fff 50%,transparent 51%),radial-gradient(2px 2px at 140px 60px,#fff 50%,transparent 51%),radial-gradient(2.5px 2.5px at 200px 170px,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 110px 200px,#fff 50%,transparent 51%);background-size:230px 230px;animation:titleSnow 14s linear infinite}
@keyframes titleSnow{to{background-position:40px 230px}}
@media (prefers-reduced-motion:reduce){.title[data-snow] .title-bg::before{animation:none}}
.title::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.22;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")} /* a little paper grain over the photo */
.masthead-brand{font-family:var(--font-cond);font-size:15px;font-weight:700;letter-spacing:.14em}.masthead-brand .soft{font-size:14px;font-weight:500}
.title .eyebrow{font-family:var(--font-cond);font-size:15px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;margin-bottom:6px;display:flex;align-items:center;gap:10px}
.title .eyebrow::before{content:"";width:34px;height:2px;background:currentColor;border-radius:2px}
.brand-name{font-family:var(--font-display);font-weight:900;font-variation-settings:'opsz' 144,'SOFT' 100,'WONK' 1;font-size:clamp(64px,min(9.6vw,15vh),150px);letter-spacing:-.035em;line-height:.88;text-shadow:0 3px 0 rgba(4,26,36,.35),0 10px 40px rgba(4,31,42,.45)}


.brand-subline{font-family:var(--font-display);font-style:italic;font-weight:600;font-variation-settings:'opsz' 36,'SOFT' 100;font-size:clamp(18px,1.9vw,24px);margin-top:10px}
.title-note{max-width:430px;margin:20px 0 18px 3px;padding:10px 14px 10px 16px;border-left:3px solid var(--sa-amber);background:linear-gradient(90deg,rgba(5,31,43,.55),rgba(5,31,43,0));border-radius:0 10px 10px 0;transform:rotate(-.6deg)}
.note-label{display:block;font-family:var(--font-cond);font-size:13px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#FFCB81}
.title-note .title-mood{display:block;max-width:none;margin:2px 0 0;font-family:var(--font-hand);font-size:clamp(22px,2vw,27px);font-weight:500;line-height:1.15;opacity:1}
.game-button{font-family:var(--font-cond);font-size:20px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.game-button--primary:not(:disabled){background:linear-gradient(180deg,#F7B256,#E8902A);border-color:#FFD08F;color:#10222b;box-shadow:0 6px 0 #9c5a14,0 14px 28px rgba(7,28,40,.4)}
.game-button--primary:not(:disabled) img{filter:brightness(0) saturate(100%) invert(10%) sepia(20%) saturate(900%) hue-rotate(160deg)}
.game-button--primary:hover:not(:disabled){background:linear-gradient(180deg,#FFC06A,#F09A33);border-color:#FFE0B0;transform:translateY(-2px);box-shadow:0 8px 0 #9c5a14,0 18px 32px rgba(7,28,40,.45)}
.game-button--primary:active:not(:disabled){transform:translateY(4px);box-shadow:0 2px 0 #9c5a14,0 8px 18px rgba(7,28,40,.4)}
.game-button--primary:not(:disabled){animation:startPulse 2.8s ease-in-out infinite}
@keyframes startPulse{0%,100%{filter:none}50%{filter:brightness(1.08) saturate(1.05)}}
@media (prefers-reduced-motion:reduce){.game-button--primary:not(:disabled){animation:none}}
/* while the water loads: a sheen runs over the bar. It moves on the compositor (transform), so it keeps going while
   the world is built and the page itself cannot answer: the screen never looks stuck */
#startBtn.loading::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(100deg,transparent 30%,rgba(255,232,190,.22) 50%,transparent 70%);transform:translateX(-100%);animation:loadSheen 1.5s linear infinite;will-change:transform}
@keyframes loadSheen{to{transform:translateX(100%)}}
/* tapped before the game code was there (index.html): the arrow turns into a ring until the tap is carried out */
.waiting{pointer-events:none}
.hero-actions .waiting .tail,.waiting .tail{color:transparent;width:18px;height:18px;flex:none;border-radius:50%;border:2px solid rgba(248,244,232,.3);border-top-color:var(--sa-cream);animation:waitSpin .8s linear infinite}
.title-icons .waiting,.title-foot .waiting{opacity:.6}
@keyframes waitSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#startBtn.loading::after,.waiting .tail{animation:none}}
.lake-selected{font-family:var(--font-cond);font-size:15px;letter-spacing:.05em}
.title-icons button{font-family:var(--font-cond);font-size:16px;font-weight:600;letter-spacing:.04em}
.jens-card > span{font-family:var(--font-hand);font-size:clamp(19px,1.6vw,24px);font-weight:700;letter-spacing:0;line-height:1}
/* the stamp: as if pressed onto the poster by hand */
.petri-stamp{position:absolute;left:-96px;top:-70px;width:104px;height:104px;border-radius:50%;display:grid;place-content:center;text-align:center;font-style:normal;color:#FFCB81;border:3px solid rgba(255,203,129,.9);box-shadow:inset 0 0 0 6px rgba(255,203,129,0),inset 0 0 0 8px rgba(255,203,129,.5);background:radial-gradient(circle,rgba(5,31,43,.35),rgba(5,31,43,.1) 70%);transform:rotate(-16deg);pointer-events:none}
.petri-stamp span{font-family:var(--font-cond);font-weight:700;font-size:15px;letter-spacing:.3em;margin-left:.3em;text-transform:uppercase;color:#FFCB81}
.petri-stamp b{font-family:var(--font-hand);font-weight:700;font-size:36px;line-height:.85}
@media (max-width:900px),(max-height:620px){.petri-stamp{display:none}}
@media (max-width:680px) and (orientation:portrait),(max-aspect-ratio:2/3){
  .title .eyebrow{justify-content:center;font-size:13px}.title .eyebrow::before{display:none}
  
  .brand-name{font-size:clamp(34px,11.6vw,62px)} /* "Heimatwasser" has to fit the narrowest phones in one line */
  .title-note{margin:14px auto 6px;text-align:left;transform:none}.title-note .title-mood{font-size:22px}
  .game-button{font-size:18px}
}
@media (max-height:500px) and (orientation:landscape){
  .brand-name{font-size:clamp(46px,13vh,64px)}.brand-subline{font-size:16px;margin-top:4px}
  .title .eyebrow{font-size:12px;margin-bottom:2px}.title-note{margin:8px 0 8px 3px;padding:5px 10px}.title-note .title-mood{font-size:19px}.note-label{font-size:11px}
  .game-button{font-size:17px}
}
/* Tagesaufgaben: a chip beside the fishing chips, a small list under it */
.tasks-btn b{font-family:var(--font-num);font-weight:600;font-size:12px;margin-left:2px}
.tasks-btn .tasks-word{font-style:normal;font-size:12px;opacity:.8}@media (max-width:760px),(max-height:500px){.tasks-btn .tasks-word{display:none}} /* "Heute": the count is the day's tasks, not the Tour's Aufträge */
.tasks-btn.all{border-color:var(--sa-amber);color:#FFCB81}
.tasks-btn.pop{animation:taskPop .9s ease}
@keyframes taskPop{0%{transform:scale(1)}30%{transform:scale(1.18);background:rgba(244,163,64,.35)}100%{transform:scale(1)}}
.tasks-card{position:absolute;left:16px;top:104px;z-index:30;width:min(320px,calc(100vw - 32px));padding:12px 14px;border-radius:14px;background:var(--panel);border:1px solid var(--line);backdrop-filter:blur(10px);box-shadow:0 12px 30px rgba(0,0,0,.3)}
.tasks-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.tasks-head b{font-family:var(--font-cond);font-size:18px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#FFCB81}
.tasks-head small{font-size:11px;color:var(--muted)}
.tasks-card ul{list-style:none;margin:8px 0 6px;padding:0;display:grid;gap:6px}
.tasks-card li{display:grid;grid-template-columns:20px 1fr auto;gap:6px;align-items:center;font-size:13.5px;line-height:1.3}
.tasks-card li i{font-style:normal;font-weight:800;color:var(--muted);text-align:center}
.tasks-card li small{font-family:var(--font-num);font-size:11px;color:var(--muted)}
.tasks-card li.done span{text-decoration:line-through;text-decoration-color:rgba(244,163,64,.8);opacity:.75}.tasks-card li.done i{color:var(--sa-amber)}
.tasks-foot{display:block;font-size:11px;color:var(--muted)}
@media (max-width:760px),(max-height:500px){.tasks-card{left:10px;top:104px}.tasks-btn{padding:0 8px}}
@media (min-width:761px) and (min-height:501px){#hud[data-mode=fish] .coach{top:104px}} /* clear of the fishing chips on the left (on wide screens too: at the pond Teichwirt and Wettangeln make the row reach the middle) */
@media (max-height:500px) and (orientation:landscape){.fish-chips{gap:4px}.fish-chips .icon-btn{padding:0 8px;font-size:12px}.inbox-pill{left:auto;right:max(10px,env(safe-area-inset-right));top:calc(max(8px,env(safe-area-inset-top)) + 40px)}#hud[data-mode=drive] .inbox-pill{right:calc(max(10px,env(safe-area-inset-right)) + 126px)}} /* phones: the bell under the buttons on the right, beside the minimap when driving */
body:not(.shore) .shore-only{display:none}
@media (max-height:500px) and (orientation:landscape){#wadeBtn span{display:none}}
@media (max-height:500px) and (orientation:landscape){#hud[data-mode=fish]:has(#fishPanel:not(.collapsed)) .inbox-pill{display:none}} /* the open panel takes the right side; the bell comes back with it closed */
/* Konto: Anmelden mit Apple oder Google (Apple: schwarz mit Logo, Google: weiß mit dem bunten G, wie vorgegeben) */
.account-box{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.account-box small{font-size:10px;color:var(--muted)}
.account-why{font-size:13px;line-height:1.45;margin:6px 0 8px;color:var(--ink)}
.login-row{display:flex;gap:8px;flex-wrap:wrap}
.login-btn{flex:1 1 180px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 14px;border-radius:10px;font:600 15px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif}
.login-btn svg{width:17px;height:17px;flex:none}
.login-btn.apple{background:#000;color:#fff;border:1px solid #000}
.login-btn.google{background:#fff;color:#1f1f1f;border:1px solid #747775}
.btn.danger{color:#ffb3a6;border-color:rgba(224,128,111,.5)}
.title-foot .foot-right a.link-btn{text-decoration:underline;text-underline-offset:2px}
/* Anglerstufe und Ausrüstung (Fangbuch), Sperren an Ködern und Methoden */
.angler-box{margin:10px 0 14px;padding:12px 14px;border-radius:12px;background:rgba(244,163,64,.08);border:1px solid rgba(244,163,64,.35)}
.angler-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.angler-head b{font-family:var(--font-display,serif);font-weight:900;font-size:22px}
.angler-head span{font-family:var(--font-cond,sans-serif);font-weight:700;font-size:16px;letter-spacing:.08em;text-transform:uppercase;color:#FFCB81}
.xp-bar{height:8px;border-radius:99px;background:rgba(255,255,255,.1);margin:8px 0 4px;overflow:hidden}.xp-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#E8902A,#FFCB81);border-radius:99px;transition:width .6s ease}
#xpText{font-size:11px;color:var(--muted)}
.gear-rows{display:grid;gap:6px;margin-top:10px}
.gear-rows label{display:grid;grid-template-columns:62px 1fr;align-items:center;gap:8px;font-size:13px}
.gear-rows select{min-width:0;background:rgba(0,0,0,.25);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:7px 8px;font:inherit}
.next-unlock{font-size:12px;color:var(--muted);margin:8px 0 0}
.locked{position:relative;opacity:.45;filter:grayscale(.8)}
.locked::after{content:"🔒" attr(data-lock);position:absolute;right:3px;top:3px;padding:2px 4px;border-radius:6px;background:rgba(9,42,57,.9);font:700 10px/1 var(--font-num,monospace);color:#FFCB81;filter:none}
/* Fangkarte: was gilt, und zwei Wege: zurücksetzen oder entnehmen */
.catch-rule{display:grid;gap:2px;margin:6px 0 10px;padding:8px 10px;border-radius:10px;background:rgba(143,214,148,.1);border:1px solid rgba(143,214,148,.35)}
.catch-rule small{font-size:11px;color:var(--muted)}.catch-rule b{font-size:13px;color:#b5e6ad}
.catch-rule.bad{background:rgba(224,128,111,.12);border-color:rgba(224,128,111,.45)}.catch-rule.bad b{color:#ffb3a6}
.catch-actions{display:flex;gap:8px;flex-wrap:wrap}.catch-actions .btn{flex:1 1 140px}
.catch-actions small{opacity:.6;font-size:10px;margin-left:4px}
#catchKeep.locked{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}
.catch-actions small.catch-keep-why{opacity:1;margin-left:0;display:block;flex-basis:100%;margin-top:2px;color:#ffb3a6;font-size:12px;line-height:1.35}
.catch-keep-why.flash{animation:keepFlash .6s ease}
@keyframes keepFlash{0%,100%{transform:none}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
/* Die erste Runde: ein Kasten oben in der Mitte, mit Schritt, Titel und „Überspringen“ */
.tutorial{position:absolute;top:62px;left:50%;transform:translateX(-50%);z-index:40;width:min(520px,calc(100% - 24px));padding:10px 14px 12px;border-radius:14px;background:rgba(9,42,57,.94);border:1px solid var(--sa-amber);box-shadow:0 12px 30px rgba(0,0,0,.35);backdrop-filter:blur(10px)}
.tut-head{display:flex;align-items:baseline;gap:10px}
.tut-head small{font-family:var(--font-num);font-size:11px;color:#FFCB81}
.tut-head b{flex:1;font-family:var(--font-cond);font-size:19px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.tut-head .link-btn{font-size:12px;color:var(--muted);text-decoration:underline}
.tutorial p{margin:4px 0 0;font-size:14px;line-height:1.45}
.tutorial.done{border-color:#8fd694}.tutorial.done b{font-family:var(--font-display);font-size:22px}
/* on larger screens the tutorial sits under the top rows (drive stats, fishing chips) instead of over them; while
   fishing on the left, clear of the lure panel on the right */
@media (min-width:761px) and (min-height:501px){.tutorial{top:118px}#hud[data-mode=fish] .tutorial{left:16px;transform:none;width:min(470px,calc(100% - 340px))}#hud[data-mode=fight] .tutorial{top:248px;width:min(520px,calc(100% - 240px))}} /* fight: under the tension panel, between the rod buttons */
/* phones upright: the tutorial under the fishing chips and the bell (down to about 152 px), not over them */
@media (max-width:760px) and (orientation:portrait){#hud[data-mode=fish] .tutorial,#hud[data-mode=fight] .tutorial{top:160px}}
@media (max-height:500px) and (orientation:landscape){.tutorial{top:50px;padding:7px 12px 8px}.tutorial p{font-size:12.5px;line-height:1.35}}
.tutorial.done .close{margin-left:auto;background:none;border:0;color:var(--muted);padding:2px}
/* the end of the first round (firstwin.js): the fish, what it earned, and two ways on */
.first-win{width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 24px);overflow:auto;padding-top:18px}
.fw-fish{width:150px;margin:4px auto 0}.fw-fish svg{width:100%;height:auto;display:block;filter:drop-shadow(0 6px 12px rgba(0,0,0,.35))}
.first-win .fw-what{margin:0 0 12px;color:var(--sa-cream);font-weight:700;font-size:14px}
.first-win .fw-gains{text-align:left;margin-bottom:10px}.first-win .fw-gains li{display:flex;gap:10px;align-items:center}
.first-win .fw-gains li small{letter-spacing:.02em;font-size:11.5px;font-weight:600;color:var(--muted)}
.fw-ic{flex:0 0 24px;text-align:center;font-size:17px}.fw-star{color:#F6D25A}
.fw-level{height:8px;border-radius:5px;background:rgba(255,255,255,.12);overflow:hidden;margin:2px 2px 0}
.fw-level span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#F4A340,#F6D25A)}
.first-win .fw-level-text{font-size:12px;margin:6px 0 12px}
.first-win .fw-ask{color:var(--sa-cream);font-weight:800;font-size:14.5px;margin:4px 0 8px}
.fw-ways{display:grid;gap:8px}.fw-way{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;padding:11px 12px}
.first-win .fw-way small{display:block!important;letter-spacing:0;text-transform:none;font-size:12px;font-weight:600;color:inherit;opacity:.85} /* also on touch screens, where .btn small is hidden (key hints) */
.first-win .fw-profile{margin-top:10px;font-size:13px}
/* in the first round only what the step needs: no top buttons, chips, map, lure panel or bell; the button to press glows */
#hud.tut .top-actions > :not(.sound-btn),#hud.tut .chips,#hud.tut .fish-chips,#hud.tut #fishPanel,#hud.tut .gesture-hint,#hud.tut #jerkBtn,#hud.tut #spinInBtn,#hud.tut .minimap-wrap,#hud.tut .drive-stats,#hud.tut .zone-card,#hud.tut .pad,#hud.tut .tasks-card,#hud.tut .inbox-pill,#hud.tut .coach{display:none!important}
#hud.tut .tutorial{top:12px}
@media (min-width:761px) and (min-height:501px){#hud.tut[data-mode=fish] .tutorial{left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 24px))}#hud.tut[data-mode=fight] .tutorial{top:204px}} /* fight: under the fight strip and the underwater badge */
@media (max-width:760px) and (orientation:portrait){#hud.tut[data-mode=fish] .tutorial{top:64px}}
.tut-focus{position:relative;animation:tutFocus 1.1s ease-in-out infinite;z-index:41}
@keyframes tutFocus{0%,100%{box-shadow:0 0 0 2px var(--sa-amber),0 0 0 0 rgba(244,163,64,.6)}50%{box-shadow:0 0 0 3px var(--sa-amber),0 0 0 12px rgba(244,163,64,0)}}
@media (prefers-reduced-motion:reduce){.tut-focus{animation:none;box-shadow:0 0 0 3px var(--sa-amber)}}
.lake-option strong em.free{font-style:normal;font-family:var(--font-cond);font-size:13px;letter-spacing:.06em;color:#8FD694;margin-left:6px;padding:1px 7px;border-radius:999px;border:1px solid rgba(143,214,148,.45)}.lake-option strong em.own{font-style:normal;font-family:var(--font-cond);font-size:13px;letter-spacing:.06em;color:#8FD694;margin-left:6px}.lake-option.card strong em{font-style:normal;font-family:var(--font-cond);font-size:13px;letter-spacing:.06em;color:#FFCB81;margin-left:6px}.card-card{width:min(460px,100%)}

/* the landing call in the fight: big, in the middle, with the time left */
.land-call{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);z-index:12;display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 22px 12px;border-radius:16px;background:rgba(9,42,57,.9);border:2px solid var(--lime,#b9e36b);box-shadow:0 12px 34px rgba(0,0,0,.4);pointer-events:none;animation:landCallPulse .7s ease-in-out infinite alternate}
.land-call b{font-size:26px;color:#fff}.land-call span{font-size:13px;color:#cfe2dc}
.land-call>i{display:block;width:220px;height:6px;border-radius:3px;background:rgba(255,255,255,.15);overflow:hidden}.land-call>i>i{display:block;height:100%;background:var(--lime,#b9e36b)}
@keyframes landCallPulse{from{transform:translate(-50%,-50%) scale(1)}to{transform:translate(-50%,-50%) scale(1.04)}}
.creep{display:inline-flex;gap:4px}
#floatBtn{--p:0;background-image:linear-gradient(90deg,rgba(240,206,149,.6) calc(var(--p)*100%),transparent 0)} /* fills while held, like the cast button */

/* tension in the fight: one bar with the limits marked: where the brake slips (tick), where the hook tears (amber), where the line breaks (red) */
.tension{margin-top:7px}.tension-bar{position:relative;height:12px;border-radius:6px;background:rgba(255,255,255,.12);overflow:hidden}
.tension-bar #tensionFill{position:absolute;left:0;top:0;bottom:0;width:0;background:#9fd3a5;border-radius:6px;transition:width .08s}
.tension-bar .zone{position:absolute;top:0;bottom:0;right:0}.tension-bar .zone.tear{background:rgba(240,206,149,.35)}.tension-bar .zone.snap{background:rgba(255,122,92,.5)}
.tension-bar .brake-tick{position:absolute;top:-2px;bottom:-2px;width:3px;margin-left:-1px;background:#fff;box-shadow:0 0 4px rgba(0,0,0,.6)}
.tension-legend{display:flex;justify-content:space-between;gap:8px;margin-top:3px;font-size:10.5px;color:var(--muted);white-space:nowrap}.tension-legend b{color:var(--ink)}
.leg-tear{color:#f0ce95}.leg-snap{color:#ff9a80}
.drag-dots{display:block;font-style:normal;letter-spacing:2px;font-size:9px;color:var(--lime,#b9e36b);line-height:1}
@media (max-width:760px){.brake-note{display:none}}

/* reeling: the reel icon turns and the button glows, however it is reeled (button, R, mouse or finger in the picture) */
@keyframes reelSpin{to{transform:rotate(360deg)}}
.reeling .ico{display:inline-block;animation:reelSpin .55s linear infinite}
#reelBtn.reeling,.thumb-btn.reel.reeling{background:var(--sa-amber);color:var(--sa-deep);box-shadow:0 0 0 3px rgba(244,163,64,.35),0 8px 24px rgba(0,0,0,.35)}
#reelBtn .ico{font-size:15px;line-height:1}

/* phones (portrait): the buttons over the fishing view like the top bar: icon with a small label, equal width in one row;
   the message bell below them on the right */
@media (max-width:760px){
  .fish-chips{left:10px;right:10px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:5px}
  .fish-chips .icon-btn,.fish-chips .creep .icon-btn{flex-direction:column;justify-content:center;gap:1px;padding:5px 2px;min-height:46px;font-size:16px;line-height:1;min-width:0}
  .fish-chips .icon-btn span{display:block;font-size:9.5px;font-weight:700;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .fish-chips .tasks-btn span b{font-size:9.5px}
  .fish-chips .creep{display:contents}
  #hud[data-mode=fish] .inbox-pill,#hud[data-mode=fight] .inbox-pill{top:calc(122px + env(safe-area-inset-top,0px))}
}

/* the sound switch: a small square, not a full button */
.sound-btn{padding:6px 9px;font-size:15px;justify-content:center}
@media (max-width:760px){.top-actions{display:flex}.top-actions .icon-btn{flex:1 1 0}.top-actions .sound-btn{flex:0 0 44px;font-size:17px}}
.home-quick{margin:4px 0 12px}

/* one reduced icon set: line icons from the sprite (src/icons.js), drawn in the text colour */
.ic{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.2em;overflow:visible}
.pad button .ic{width:26px;height:26px;vertical-align:middle}.pad button.small .ic{width:20px;height:20px}
.mini-actions button .ic{width:17px;height:17px;vertical-align:middle}
.close{display:grid;place-items:center}.close .ic{width:16px;height:16px}
.thumb-btn .ico .ic{width:1em;height:1em;vertical-align:middle}
.title-icons button .ic{width:18px;height:18px;opacity:.9}
.sound-btn .ic,.top-actions .icon-btn .ic{width:18px;height:18px}
.fish-chips .icon-btn .ic{width:17px;height:17px}
.chips .ic{width:14px;height:14px;opacity:.85}
.troll-flag .ic{width:22px;height:22px}
.tab .ic{width:15px;height:15px}
/* how much line is still out while reeling in */
.meter{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:9px;background:rgba(0,0,0,.28);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:none;line-height:1.5}
.thumb-btn .meter{margin:2px 0 0}

/* Beißzeit: an amber chip in the top bar (desktop) and a pill under the bell (phone) while the fish are on the feed */
.phase-chip,.phase-pill{background:rgba(244,163,64,.22)!important;border:1px solid var(--sa-amber)!important;color:var(--sa-cream);animation:phaseGlow 2.4s ease-in-out infinite}
.phase-chip .ic,.phase-pill .ic{width:15px;height:15px;margin-right:3px}
.phase-pill{display:none}
@keyframes phaseGlow{50%{box-shadow:0 0 0 4px rgba(244,163,64,.18)}}
.btn.cue{animation:phaseGlow 1.6s ease-in-out infinite;box-shadow:0 0 0 2px var(--sa-amber)} /* the button to press next (the hegene is back in the boat) */
@media (max-width:760px){
  #hud[data-mode=fish] .phase-pill:not(.hidden),#hud[data-mode=fight] .phase-pill:not(.hidden){display:flex;position:fixed;right:10px;top:204px;z-index:55;align-items:center;height:28px;padding:0 10px;border-radius:99px;font-size:12px;font-weight:700}
}
@media (prefers-reduced-motion:reduce){.phase-chip,.phase-pill{animation:none}}

/* camera buttons on the PC (mouse): turn and zoom without the wheel or a drag; hidden on touch screens */
.cam-pad{display:none}
@media (pointer:fine) and (min-width:761px){
  #hud[data-mode=fish] .cam-pad,#hud[data-mode=fight] .cam-pad{display:flex;position:fixed;right:16px;bottom:16px;z-index:30;gap:6px}
  .cam-pad button{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:rgba(8,29,38,.62);color:#d4e6de;display:grid;place-items:center;backdrop-filter:blur(8px);cursor:pointer}
  .cam-pad button:hover{background:rgba(16,70,95,.8)}.cam-pad button.held{background:var(--sa-amber);color:#10222b}
  .cam-pad .ic{width:20px;height:20px}
}

/* ---------- Fangbuch: tabs, summary, the species collection with medals, badge progress ---------- */
.jtabs{display:flex;gap:4px;margin:4px 0 12px;overflow-x:auto;scrollbar-width:none}.jtabs::-webkit-scrollbar{display:none}
.jtabs button{flex:1 0 auto;padding:8px 12px;border-radius:9px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--ink);font-weight:700;font-size:13px;white-space:nowrap}
.jtabs button.active{background:rgba(244,163,64,.18);border-color:var(--sa-amber);color:var(--sa-cream)}.jtabs small{opacity:.7;font-weight:600}
.jsummary{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 12px}.jsummary div{background:rgba(0,0,0,.2);border-radius:10px;padding:9px 10px}
.jsummary small{display:block;font-size:9px;letter-spacing:.14em;color:var(--muted);font-weight:800;text-transform:uppercase}.jsummary b{font-size:17px;line-height:1.3}
.mrow{display:inline-flex;align-items:center;gap:3px;font-size:14px}
.medal{display:inline-block;width:13px;height:13px;border-radius:50%;box-shadow:inset 0 -2px 0 rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.25);vertical-align:-1px}
.medal.m1{background:linear-gradient(135deg,#e2a26b,#9a5a2c)}.medal.m2{background:linear-gradient(135deg,#f1f4f6,#9aa4ab)}.medal.m3{background:linear-gradient(135deg,#ffe58a,#d19a1e)}
.medal.off{background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.jgoal{margin:0 0 12px}.jgoal-h{display:block;font-size:9px;letter-spacing:.16em;color:var(--sa-amber);font-weight:800;margin-bottom:5px}
.goal-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;border:1px dashed rgba(244,163,64,.45);background:rgba(244,163,64,.07);margin-bottom:6px}
.goal-row .fish-art{width:64px;flex:none}.goal-row b{display:block;font-size:13.5px}.goal-row small{color:var(--muted);font-size:12px}
.jintro{color:var(--muted);font-size:12.5px;margin:0 0 10px}
.species-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.species-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:10px 8px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.04)}
.species-card .fish-art{width:100%;max-width:120px;height:56px}.species-card b{font-size:13.5px}.species-card small{color:var(--muted);font-size:11px;line-height:1.3}
.species-card .nextm{color:var(--sa-amber)}.species-card.unseen b{color:var(--muted)}.species-card.unseen .nextm{color:var(--muted)}
.species-card.medal3{border-color:rgba(255,215,110,.7);background:radial-gradient(circle at 50% 0,rgba(255,215,110,.16),rgba(255,255,255,.03) 70%)}
.species-card.medal2{border-color:rgba(220,226,230,.5)}.species-card.medal1{border-color:rgba(205,135,80,.5)}
.catch-item{align-items:center}.catch-item .fish-art{width:52px;flex:none}.catch-item>div{flex:1}
.catch-item.rec{border-color:rgba(244,163,64,.55)}.catch-item em{font-style:normal;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#10222b;background:var(--sa-amber);border-radius:6px;padding:1px 5px;margin-left:4px}
.bprog{display:block;height:5px;border-radius:3px;background:rgba(255,255,255,.1);margin-top:4px;overflow:hidden}.bprog i{display:block;height:100%;background:var(--sa-amber)}.bnum{font-size:10.5px}
.angler-box .next-unlock{font-weight:600;color:var(--sa-cream)}
.medal-chip{display:inline-flex;align-items:center;gap:5px}.medal-chip .medal{width:15px;height:15px}
@media (max-width:760px){.jsummary{grid-template-columns:repeat(2,1fr)}.species-grid{grid-template-columns:repeat(2,1fr)}}

/* a new angler level: a card in the middle with a little confetti */
.levelup{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:rgba(4,18,26,.66);animation:luIn .35s ease-out} /* dimmed, not blurred (.modal) */
.levelup-card{position:relative;z-index:1;width:min(360px,calc(100vw - 32px));text-align:center;padding:22px 20px 18px;border-radius:18px;background:linear-gradient(180deg,#11475f,#0b2f40);border:1px solid rgba(244,163,64,.7);box-shadow:0 20px 60px rgba(0,0,0,.5);animation:luPop .5s cubic-bezier(.2,1.6,.4,1)}
.levelup-card small{letter-spacing:.2em;font-weight:800;color:var(--sa-amber);font-size:11px}
.lv-num{font:800 72px/1 var(--font-cond,inherit);color:var(--sa-cream);text-shadow:0 4px 0 #9c5a14,0 0 30px rgba(244,163,64,.5);margin:6px 0}
.lv-rank{display:block;font-size:18px;margin-bottom:10px}.levelup-card p{margin:8px 0 6px;color:var(--muted);font-size:12.5px}
.levelup-card ul{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:5px}.levelup-card li{padding:6px 10px;border-radius:9px;background:rgba(255,255,255,.07);font-weight:700;font-size:13.5px}
.levelup-card li small{display:block;letter-spacing:.12em;font-size:9px;color:var(--muted)}
.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.confetti i{position:absolute;top:-12px;left:var(--x);width:8px;height:12px;border-radius:2px;background:var(--c);animation:luFall 2.6s var(--d) ease-in forwards}
@keyframes luIn{from{opacity:0}}@keyframes luPop{from{transform:scale(.7);opacity:0}}
@keyframes luFall{to{transform:translateY(105vh) rotate(540deg);opacity:.2}}
@media (prefers-reduced-motion:reduce){.levelup,.levelup-card,.confetti i{animation:none}.confetti{display:none}}
.jtabs button:focus-visible{outline:2px solid var(--sa-amber);outline-offset:-3px} /* inside: the scrolling tab row would cut it off */
/* Fangbuch: a catch in 3D at its real size */
#journalModal .modal-card{position:relative}
.f3d-btn{flex:none;font:inherit;font-size:11px;font-weight:800;letter-spacing:.06em;color:var(--sa-amber);background:rgba(244,163,64,.1);border:1px solid rgba(244,163,64,.45);border-radius:8px;padding:5px 8px;cursor:pointer}
.catch-item[data-f3d-i],.species-card[data-f3d-sp]{cursor:pointer}.catch-item[data-f3d-i]:hover,.species-card[data-f3d-sp]:hover{border-color:rgba(244,163,64,.45)}
.f3d-btn:hover{background:rgba(244,163,64,.22)}.f3d-btn:focus-visible{outline:2px solid var(--sa-amber);outline-offset:2px}
.species-card{position:relative}.species-card .f3d-btn{position:absolute;top:6px;right:6px;padding:3px 6px}
.fish3d{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;border-radius:inherit;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#2a4650,#0e1d24 75%)}
.fish3d canvas{flex:1;width:100%;min-height:0;touch-action:none;cursor:grab}.fish3d canvas:active{cursor:grabbing}
.fish3d-cap{padding:10px 16px 16px;text-align:center;font-size:14px}.fish3d-cap small{display:block;color:var(--muted);font-size:11.5px;margin-top:2px}
.fish3d-close{position:absolute;top:10px;right:10px;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:rgba(0,0,0,.35);color:inherit;display:grid;place-items:center;cursor:pointer}
.fish3d-close .ic{width:20px;height:20px}
.settings input[type=range]{width:100%;accent-color:var(--sa-amber);margin:8px 0 2px}.settings label output{color:var(--sa-amber);letter-spacing:.06em;margin-left:4px}
/* Profile: the card on the Fangbuch overview; the profile screen itself further down */
.jprofile{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:12px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,rgba(244,163,64,.12),rgba(255,255,255,.03) 60%)}
.pf-avatar{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-family:var(--display,inherit);font-size:22px;font-weight:800;color:#10222b;background:var(--sa-amber)}
.pf-avatar.empty{background:rgba(255,255,255,.08);color:var(--muted)}
.pf-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.pf-text b{font-size:16px}.pf-text small{color:var(--muted);font-size:12px;line-height:1.35}.pf-text em{font-size:12.5px;color:#d7e8e1}
.pf-edit{flex:none;font:inherit;font-size:12px;font-weight:700;color:var(--sa-amber);background:none;border:1px solid rgba(244,163,64,.45);border-radius:8px;padding:6px 10px;cursor:pointer}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-grid .wide{grid-column:1/-1}
.profile-grid label{display:flex;flex-direction:column;gap:4px;font-size:10px;letter-spacing:.14em;font-weight:800;color:var(--muted);text-transform:uppercase;min-width:0}
.profile-grid input,.profile-grid select{font:inherit;font-size:14px;letter-spacing:0;text-transform:none;color:inherit;background:rgba(0,0,0,.25);border:1px solid var(--line);border-radius:8px;padding:8px 10px;min-width:0}
.profile-grid input:focus-visible,.profile-grid select:focus-visible{outline:2px solid var(--sa-amber);outline-offset:1px}
.profile-actions{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}.pf-saved{color:#8fd694;font-size:13px}
@media (max-width:520px){.profile-grid{grid-template-columns:1fr}.jprofile{flex-wrap:wrap}.pf-text{flex-basis:calc(100% - 60px)}.pf-edit{flex:1 1 0;padding:9px}.pf-pass{margin-left:0}} /* phones: the two buttons side by side, the same width */
/* Drill: the side gauge (fish across, rod across) and the two rod buttons */
.side-gauge{margin-top:8px;width:100%;display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none;text-align:center}
.side-gauge small{font-size:9px;letter-spacing:.16em;font-weight:800;color:var(--muted);text-shadow:0 1px 3px rgba(0,0,0,.7)}
.sg-cue{min-height:0;font-size:15px;font-weight:800;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.8)}
.side-gauge.run .sg-cue{color:#ffb25c;animation:sgPulse .6s ease-in-out infinite alternate}.side-gauge.good .sg-cue{color:#8fd694;animation:none}
.sg-track{position:relative;width:100%;height:30px;border-radius:15px;background:rgba(10,24,30,.6);border:1px solid var(--line);backdrop-filter:blur(6px)}
.side-gauge.run .sg-track{border-color:rgba(255,178,92,.7)}.side-gauge.good .sg-track{border-color:rgba(143,214,148,.7)}
.sg-mid{position:absolute;left:50%;top:5px;bottom:5px;width:2px;background:rgba(255,255,255,.2)}
.sg-fish{position:absolute;top:50%;transform:translate(-50%,-50%);color:#fff;transition:left .12s linear}.sg-fish .ic{width:24px;height:24px}
.sg-rod{position:absolute;bottom:-5px;width:4px;height:16px;border-radius:2px;background:var(--sa-amber);transform:translateX(-50%);transition:left .1s linear}
.side-btn{position:absolute;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;width:84px;padding:12px 6px;border-radius:18px;border:1px solid var(--line);background:rgba(10,24,30,.55);color:#e6eef5;font:inherit;font-size:12.5px;font-weight:800;line-height:1.15;backdrop-filter:blur(8px);cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none}
.side-btn.left{left:16px}.side-btn.right{right:16px}.side-btn .ic{width:28px;height:28px}.side-btn small{font-size:10px;color:var(--muted);font-weight:700}
.side-btn.held{background:rgba(244,163,64,.35)}
.side-btn.want{border-color:#ffb25c;box-shadow:0 0 0 3px rgba(255,178,92,.35);animation:sgPulse .5s ease-in-out infinite alternate}
.side-btn.good{border-color:#8fd694;box-shadow:0 0 0 3px rgba(143,214,148,.35)}
.side-btn.wrong{border-color:#ff7a5c}
@keyframes sgPulse{from{opacity:1}to{opacity:.55}}
@media (prefers-reduced-motion:reduce){.side-gauge.run .sg-cue,.side-btn.want{animation:none}}
@media (max-width:760px){.side-btn{width:70px;padding:10px 4px;top:58%}.side-btn small{display:none}.side-btn.left{left:8px}.side-btn.right{right:8px}}
/* phones held sideways: the screen is too low for the rod buttons between the fight panel and the thumbs; they sit in the
   bottom row beside them, left of the line numbers and right of them */
@media (max-height:500px) and (orientation:landscape){.fight-hud .side-btn{top:auto;bottom:10px;transform:none;width:70px;padding:8px 4px}.fight-hud .side-btn small{display:none}.fight-hud .side-btn.left{left:160px}.fight-hud .side-btn.right{right:134px}}
.sg-fish.flip .ic{transform:scaleX(-1)}.side-gauge:not(.run) .sg-cue:empty{display:none}
.rank-test{margin:10px 0 2px;padding:9px 12px;border-radius:10px;border:1px dashed rgba(244,163,64,.5);background:rgba(244,163,64,.06)}
.rank-test small{display:block;font-size:9.5px;letter-spacing:.14em;font-weight:800;color:var(--sa-amber);margin-bottom:5px}
.rank-test ul{list-style:none;margin:0;padding:0;display:grid;gap:3px;font-size:12.5px}.rank-test li{display:flex;gap:7px;align-items:baseline}.rank-test li b{margin-left:auto;font-weight:700}
.rank-test li i{font-style:normal;color:var(--muted)}.rank-test li.done{color:var(--muted)}.rank-test li.done i{color:#8fd694}
.fps-meter{position:fixed;left:calc(8px + env(safe-area-inset-left,0));bottom:calc(8px + env(safe-area-inset-bottom,0));z-index:60;font:600 11px/1.2 ui-monospace,monospace;color:#d7f5e0;background:rgba(0,0,0,.55);border-radius:6px;padding:4px 7px;pointer-events:none}
/* In the game nothing over the 3D view blurs what is behind it: a backdrop blur has to be worked out anew in every
   frame over the moving picture, and with the big fishing panel, the hint box and the buttons it cost some GPUs
   most of their frame time in the fishing view (the water there moved in jumps). A little more opaque instead. */
.icon-btn,.chips span,.coach,.sonar-panel,.stat,.minimap-wrap,.zone-card,.fish-panel,.bite-card,.fight-top,.thumb .drag,.timelapse-pill,.inbox-pill,.toast,.troll-card,.tasks-card,.tutorial,.cam-pad button,.sg-track,.side-btn{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.fish-panel,.coach,.zone-card,.fight-top,.troll-card,.tasks-card,.tutorial,.sonar-panel,.minimap-wrap{background-color:rgba(9,42,57,.86)}
.icon-btn,.chips span,.stat,.cam-pad button,.side-btn,.inbox-pill,.timelapse-pill,.thumb .drag{background-color:rgba(9,42,57,.8)}
/* phones held sideways: the fishing buttons under the top bar instead of over it, the guide box under them */
@media (max-height:500px) and (orientation:landscape){
  #hud[data-mode=fish] .fish-chips{top:calc(max(8px,env(safe-area-inset-top)) + 44px);right:auto}
  #hud[data-mode=fish] .fish-chips .icon-btn{min-height:34px;flex-direction:row;gap:4px;padding:0 8px}
  #hud[data-mode=fish] .coach{top:calc(max(8px,env(safe-area-inset-top)) + 86px)}
}

/* sonar title: the water temperature beside it without the title's wide letter spacing (it ran into the title) */
.sonar-panel .panel-title{flex-wrap:wrap;gap:0 6px}.sonar-panel .panel-title small{letter-spacing:.02em;white-space:nowrap}
/* title screen: the game also runs as an app (phones and tablets, not yet installed) */
.install-hint{display:flex;align-items:center;gap:10px;margin-top:14px;max-width:370px;padding:10px 8px 10px 12px;border-radius:14px;border:1px solid rgba(232,170,63,.55);background:rgba(8,37,52,.72);color:var(--sa-cream);backdrop-filter:blur(7px);text-align:left}
.install-hint.hidden{display:none}
.spende-link{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:12px;background:var(--sa-amber);color:#082534;font-weight:700;font-size:14px;text-decoration:none}.spende-link .ic{width:18px;height:18px}
#spendeSet .note{margin:0 0 8px}
.install-hint>.ic{flex:none;width:26px;height:26px;color:var(--sa-amber)}
.install-hint div{display:flex;flex-direction:column;gap:2px;font-size:12.5px;line-height:1.3}
.install-hint b{font-size:14px}
.install-hint .btn{flex:none;padding:8px 12px;font-size:13px}
.install-hint .close{position:static;flex:none;width:30px;height:30px;padding:0;border:0;background:none;color:inherit;opacity:.75}
.version-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:8px 0 4px;font-size:13px}
@media (max-width:760px){.install-hint{margin-left:auto;margin-right:auto}}
/* phones held sideways and small phones: no room for the hint in the column (the whole start screen shrank for it); "Als App"
   by the settings does the same. The line above the name would run under those buttons */
@media (max-height:500px) and (orientation:landscape),(max-height:700px) and (orientation:portrait){#title .install-hint{display:none}}
@media (max-height:500px) and (max-width:960px) and (orientation:landscape){.title .eyebrow{display:none}}
.check.consent{display:block;margin:10px 0 4px;font-size:12.5px;line-height:1.4}
.check.consent a{color:var(--sa-amber)}
.keep-code{font-family:ui-monospace,monospace;font-size:12px;word-break:break-all;user-select:all;background:rgba(255,255,255,.08);padding:1px 4px;border-radius:4px}.revier-buy{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;width:100%;margin:6px 0 4px}.revier-buy b{white-space:nowrap}.alle-buy{margin:2px 0 10px}.card-buy{display:grid;gap:6px;margin:8px 0 10px}.card-buy .btn{display:flex;justify-content:space-between;gap:10px;text-align:left;width:100%}.card-buy .btn b{white-space:nowrap}
/* Purchase contents and duration are needed on touch screens too (the generic .btn small rule hides key hints). */
.card-buy .btn small,.revier-buy small{display:block;white-space:normal;line-height:1.35}.card-buy .btn>span{min-width:0}

.lake-option .partner-line{color:#FFCB81;font-size:12px;margin-top:3px}
.region-h{font:700 13px/1 var(--font-cond,'Barlow Condensed'),sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--sa-amber);margin:10px 2px 0}
.partner-note b{color:var(--sa-cream)}.partner-note a{color:var(--sa-amber)}
/* Wochenfisch and Bestenliste */
.title-week{display:block;margin-top:6px;font-size:13px;font-family:var(--sans);color:#FFCB81}
.catch-badges .week-chip{border-color:var(--sa-amber);color:#FFCB81}
.board-list{list-style:none;margin:6px 0 12px;padding:0;display:flex;flex-direction:column;gap:4px}
.board-list li{display:grid;grid-template-columns:2em 1fr auto;align-items:baseline;gap:2px 8px;padding:7px 10px;border-radius:10px;background:rgba(248,244,232,.05)}
.board-list li i{font-style:normal;color:var(--muted);font-variant-numeric:tabular-nums}
.board-list li b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board-list li small{grid-column:2;color:var(--muted);font-size:12px}
.board-list li span{grid-column:3;grid-row:1;font-family:var(--font-num);font-variant-numeric:tabular-nums;color:var(--sa-cream)}
.board-sp{margin:10px 0 2px;font-size:14px;color:var(--sa-cream)}
.profile-form>small.look-head{margin-top:16px}
.look-note{font-size:12px;color:var(--muted);margin:8px 0 0}
.photo-card{width:min(560px,100%)}
.photo-card .seg{max-width:220px;margin:8px auto 2px}
.photo-img{display:block;width:100%;height:auto;max-height:62vh;object-fit:contain;border-radius:10px;margin:10px 0 4px;background:#0003}
/* phones held sideways: the picture on the left at full height, title, format and buttons beside it */
@media (max-height:500px) and (orientation:landscape){.photo-card{width:min(760px,100%);display:grid;grid-template-columns:auto minmax(220px,1fr);grid-template-rows:auto auto auto 1fr;column-gap:18px;padding:14px 16px}.photo-card>.close{position:absolute;top:12px;right:12px;margin:0}.photo-card>:not(.close){grid-column:2;align-self:start}.photo-card .photo-img{grid-column:1;grid-row:1 / span 4;width:auto;max-width:56vw;max-height:calc(100dvh - 2 * max(16px,env(safe-area-inset-bottom)) - 30px);margin:0}.photo-card h2{margin:0 40px 6px 0}.photo-card .seg{margin:4px 0 10px}.photo-card .modal-actions{flex-wrap:wrap;justify-content:flex-start}}
.legend-box{border:1px solid rgba(201,162,39,.45);border-radius:12px;padding:12px 14px;margin:12px 0;background:rgba(201,162,39,.06)}
.legend-box>small{display:block;font-size:10px;letter-spacing:.14em;font-weight:800;color:#e3c565;margin-bottom:8px}
.legend-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.legend-list li{display:grid;grid-template-columns:28px 1fr;gap:2px 8px;align-items:start;font-size:13px;line-height:1.4}
.legend-list li>i{font-style:normal;font-size:18px;grid-row:span 2;text-align:center;color:#e3c565}.legend-list li.rumour>i{color:var(--muted)}
.legend-list li b{font-size:14px}.legend-list li small{color:var(--muted)}.legend-list li.caught b{color:#e3c565}
.legend-list li.resting b,.legend-list li.back b{color:#e3c565}.legend-list li.resting>i{opacity:.55}
.legend-waters{margin:0 0 10px;font-size:12px;color:var(--muted)}.legend-waters .done{color:#e3c565;font-weight:700}
.catch-badges .legend-chip{border-color:#c9a227;background:rgba(201,162,39,.22);color:#f3d77a}
.pf-pass{margin-left:6px}

/* Bigger dialogs: the Fangbuch and the Einstellungen get room, on phones they fill the screen */
.journal-card{width:min(980px,100%);min-height:min(720px,calc(100dvh - 32px));height:min(820px,calc(100dvh - 32px))} /* one height for every tab: the window does not jump (the panes scroll) */
.journal-card .catch-list{max-height:none}
.settings-card{width:min(760px,100%);max-height:min(680px,calc(100dvh - 32px))} /* one page: the part below the title scrolls */
.settings-card h2{margin-bottom:10px}
.settings-card section>.settings,.settings-card section>.msg-list{margin-top:4px}
.set-intro{margin:0 0 12px;color:var(--muted);font-size:13px}
.set-hint{font-size:11.5px;letter-spacing:0;text-transform:none;font-weight:500;color:var(--muted);line-height:1.35}
.set-link{align-self:flex-start;font-size:12px;letter-spacing:0;text-transform:none;font-weight:600;padding:2px 0}
.settings-card .msg-quick{margin:14px 0 6px}
/* the Einstellungen as one short page: what people change, the rest folded away under „Erweitert“, „App & Version“, „Feedback“ */
.settings-page>.settings-h:first-of-type{margin-top:4px}
.settings-card .set-ways{margin:0 0 4px}.set-ways:not(:has(.btn:not(.hidden))){display:none}
.set-more{margin-top:14px;border-top:1px solid var(--line)}
.set-more>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:8px 0;font-weight:800;font-size:14px;color:var(--sa-cream)}
.set-more>summary::-webkit-details-marker{display:none}
.set-more>summary::after{content:"›";font-size:20px;line-height:1;color:var(--sa-amber);transition:transform .15s}.set-more[open]>summary::after{transform:rotate(90deg)}
.set-more[open]>summary{margin-bottom:6px}
.set-more>.settings-h:first-of-type,.set-more>div:first-of-type>.settings-h:first-child{margin-top:6px}
/* Title: the profile comes first; without one it is the big amber invitation */
.profile-cta{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:9px 16px 9px 10px;border-radius:14px;text-align:left;color:var(--sa-cream);background:rgba(8,37,52,.55);border:1px solid rgba(248,244,232,.28);backdrop-filter:blur(7px);transition:background .17s ease,transform .17s ease;box-shadow:0 4px 14px rgba(7,28,40,.11)}
.profile-cta:hover{background:rgba(9,42,57,.82);transform:translateY(-1px)}
.profile-cta .tail{margin-left:auto;font-size:24px;line-height:1;opacity:.67}
.pc-avatar{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font:800 19px var(--font-brand);background:var(--sa-amber);color:var(--sa-deep)}
.pc-avatar .ic{width:22px;height:22px}
.pc-text{display:flex;flex-direction:column;min-width:0}.pc-text b{font-size:16px;font-weight:700;letter-spacing:-.015em}.pc-text small{font-size:12px;color:rgba(248,244,232,.75);line-height:1.3}
.profile-cta:focus-visible{outline:3px solid var(--sa-amber);outline-offset:4px}
@media (max-height:520px) and (orientation:landscape){.profile-cta{min-height:44px;padding:4px 12px 4px 6px}.pc-text small{display:none}.pc-avatar{width:32px;height:32px}}
/* The profile screen: the angler on a stage on the left, who he is and how he looks on the right */
#profileModal{place-items:center}
.profile-card{width:min(1180px,100%);height:min(820px,calc(100dvh - 32px));padding:0;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);overflow:hidden}
.profile-card>.close{position:absolute;float:none;margin:0;top:14px;right:14px;z-index:4}
.profile-stage{--stage-head:calc(var(--pf-top,16px) + var(--pf-off,0px) + 44px);position:relative;min-height:0;background:radial-gradient(ellipse at 50% 35%,#24505c,#0b1e26 78%);border-right:1px solid var(--line)}
.profile-stage canvas{position:absolute;inset:var(--stage-head) 0 52px;width:100%;height:calc(100% - var(--stage-head) - 52px);touch-action:none;cursor:grab}.profile-stage canvas:active{cursor:grabbing}
.stage-top{position:absolute;top:16px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}
.stage-wait{position:absolute;inset:0;margin:0;display:grid;place-items:center;color:var(--muted);font-size:14px;pointer-events:none;animation:stageWait 1.6s ease-in-out infinite alternate}
@keyframes stageWait{from{opacity:.45}to{opacity:1}}
.stage-rank{display:inline-block;padding:5px 11px;border-radius:999px;background:rgba(9,42,57,.75);border:1px solid rgba(244,163,64,.5);color:var(--sa-amber);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.stage-hint{position:absolute;right:18px;bottom:14px;margin:0;font-size:11px;color:rgba(220,235,230,.6);pointer-events:none;max-width:45%;text-align:right}
/* on a phone the stage is an overlay over the top of the form that can be put away (and brought back) */
.stage-hide,.stage-show{display:none;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:rgba(4,20,27,.7);color:var(--ink);font-weight:700;font-size:12.5px}
.stage-hide .ic,.stage-show .ic{width:15px;height:15px}
.stage-hide{position:absolute;right:12px;bottom:12px;z-index:3}
.stage-show{position:absolute;z-index:4;top:max(10px,env(safe-area-inset-top));right:52px;height:32px}
.profile-side{display:flex;flex-direction:column;min-height:0;padding:22px 24px 0}
.profile-side h2{margin:6px 48px 12px 0}
.profile-panes{flex:1;min-height:0;overflow:auto;padding:4px 2px 12px;margin:0 -2px}
.pf-h{font-size:10.5px;letter-spacing:.14em;font-weight:800;color:var(--muted);text-transform:uppercase;margin:16px 0 8px}
.pf-h small{letter-spacing:0;text-transform:none;font-weight:600;color:var(--ink);font-size:12px;margin-left:6px}
.profile-panes section>.profile-grid:first-child{margin-top:2px}.profile-panes section>.profile-grid:last-child{margin-top:16px}
.profile-grid label.check{flex-direction:row;align-items:center;gap:8px;text-transform:none;letter-spacing:0;font-weight:500;font-size:13px;color:var(--ink)}
.pf-chips{display:flex;flex-wrap:wrap;gap:6px}
.pf-chips button{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--ink);font-weight:600;font-size:13px}
.pf-chips button:hover:not(:disabled){border-color:rgba(244,163,64,.6)}
.pf-chips button[aria-checked="true"]{background:rgba(244,163,64,.2);border-color:var(--sa-amber);color:var(--sa-cream)}
.pf-chips button:disabled{opacity:.45;cursor:not-allowed}.pf-chips .ic{width:13px;height:13px}
.fish-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px}
.fish-pick button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px 6px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--ink);font-size:12px;font-weight:600}
.fish-pick button svg{width:72px;height:30px}
.fish-pick button[aria-checked="true"]{background:rgba(244,163,64,.2);border-color:var(--sa-amber)}
.swatches{display:flex;flex-wrap:wrap;gap:8px}
.swatch{position:relative;width:34px;height:34px;border-radius:50%;border:2px solid rgba(255,255,255,.18);background:var(--c);padding:0;display:grid;place-items:center;color:#fff}
.swatch.original{background:conic-gradient(#3d5a80 0 25%,#55603a 0 50%,#c8b48a 0 75%,#3d5a80 0)}
.swatch[aria-checked="true"]{border-color:var(--sa-cream);box-shadow:0 0 0 3px var(--sa-amber)}
.swatch.locked,.swatch:disabled{opacity:.45;cursor:not-allowed}.swatch .ic{width:14px;height:14px;filter:drop-shadow(0 1px 2px #000)}
.look-row.off{opacity:.45}
.look-pick[data-look-group="who"]{margin-bottom:18px}.look-pick[data-look-group="who"] .pf-h{margin-top:0}
.profile-more{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}
.profile-more summary,#cardOut summary{cursor:pointer;font-size:13px;font-weight:650;color:var(--muted)}
.profile-more[open] summary{margin-bottom:16px}
#cardOut{margin:16px 0}
.stage-top .stage-xp{flex:0 1 150px;width:150px;height:18px;margin:0}.stage-top .stage-xp em{line-height:18px;font-size:10px}
.look-note{font-size:12px;color:var(--muted);margin:16px 0 0}
.profile-side .profile-actions{margin:0 -24px;padding:12px 24px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--panel-solid);justify-content:flex-end}
.profile-side .profile-actions .btn{min-width:150px}
.profile-side .profile-actions .pf-saved{margin-right:auto}
@media (max-width:820px){
  #profileModal{padding:0}
  .profile-card{height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0;grid-template-columns:1fr;grid-template-rows:minmax(220px,40dvh) minmax(0,1fr)}
  .profile-stage{border-right:0;border-bottom:1px solid var(--line)}
  .stage-hide{display:inline-flex}
  .profile-card.stage-off{grid-template-rows:minmax(0,1fr)}
  .profile-card.stage-off .profile-stage{display:none}
  .profile-card.stage-off .stage-show{display:inline-flex}
  .profile-card.stage-off .profile-side{padding-top:max(14px,env(safe-area-inset-top))}
  .profile-card.stage-off .profile-side h2{margin-right:150px}
  .stage-hint{display:none}.stage-top{top:12px;left:12px}
  .profile-card>.close{top:max(10px,env(safe-area-inset-top));right:10px;background:rgba(0,0,0,.4)}
  .profile-side{padding:14px 16px 0}.profile-side h2{font-size:22px;margin:4px 0 8px}
  .profile-side .profile-actions{margin:0 -16px;padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
  .journal-card,.settings-card{min-height:calc(100dvh - 16px)}
}
@media (max-height:520px) and (orientation:landscape){
  .profile-card{height:100dvh;max-height:100dvh;margin:0;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:none}
  .profile-stage{border-right:1px solid var(--line);border-bottom:0}
  .stage-hide{display:inline-flex}
  .profile-card.stage-off{grid-template-columns:minmax(0,1fr)}
  .profile-card.stage-off .profile-stage{display:none}
  .profile-card.stage-off .stage-show{display:inline-flex}
  .profile-card.stage-off .profile-side h2{margin-right:150px}
}

/* The start screen fits the screen, it never scrolls: the water in the Revier button, the profile in one line once
   there is one, the Wochenfisch only where there is room; fitTitle() (main.js) shrinks what is still too tall */
.game-button .gb-text{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.game-button .gb-text small{font-family:var(--sans);font-size:12px;font-weight:550;letter-spacing:0;text-transform:none;opacity:.75;margin-top:2px}
.hero-actions .profile-cta{min-height:52px;padding:6px 16px 6px 8px}
.hero-actions .pc-avatar{width:36px;height:36px;font-size:17px}
.hero-actions .pc-text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-height:760px){.title-week{display:none}}
.title-foot .link-btn{white-space:nowrap}
#loadState:empty{display:none}
@media (max-width:680px){
  /* the legal links in one short row: they are rarely needed, the screen belongs to the water */
  .foot-right{flex-wrap:wrap;justify-content:center;gap:0 8px;letter-spacing:0}
  .title-foot .link-btn{font-size:10px;min-height:30px;padding:0 1px;display:inline-flex;align-items:center}
  #appVersion{display:none}
}

/* Dialogs with tabs: the head and the tabs stay, only the page under them scrolls (if it has to at all) */
.journal-card,.settings-card{display:flex;flex-direction:column;overflow:hidden}
.journal-card>.close,.settings-card>.close{position:absolute;float:none;margin:0;top:14px;right:14px}
.journal-card>[data-jpane],.settings-card>[data-spane]{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0 -6px;padding:0 6px 4px}
.journal-card h2,.settings-card h2{padding-right:44px}
/* the Fangbuch overview in two columns where there is room: profile across, the angler left, the numbers right */
@media (min-width:900px){
  .journal-card>[data-jpane="overview"]:not(.hidden){display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr;gap:0 14px;align-content:start}
  [data-jpane="overview"]>.jprofile{grid-column:1/-1}
  /* the angler spans an extra last row that takes up his extra height: the numbers on the right stay compact at the top */
  [data-jpane="overview"]>#anglerBox{grid-column:1;grid-row:2/span 4;align-self:start}
  [data-jpane="overview"]>.jsummary,[data-jpane="overview"]>.jgoal,[data-jpane="overview"]>.stats{grid-column:2}
  [data-jpane="overview"]>.jsummary{grid-template-columns:repeat(2,1fr);margin-top:10px}
}
/* tab rows wrap instead of hiding tabs past the screen edge (there is no scrollbar to show they are there) */
.jtabs{flex-wrap:wrap;overflow:visible}
.jtabs button{flex:1 1 auto}
/* Wissen: wider where there is room (the fish in more columns), the season tabs and the title stay, the page scrolls */
.wissen-card{width:min(1060px,100%);display:flex;flex-direction:column;overflow:hidden}
.wissen-card>.close{position:absolute;float:none;margin:0;top:14px;right:14px}
.wissen-card h2{padding-right:44px}
#wissenBody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0 -6px;padding:0 6px 4px}
@media (min-width:761px){.wissen-fish{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}}
/* Catch card on any low screen (a 720p laptop too): two columns, so its buttons stay on the screen without scrolling */
@media (max-height:980px) and (min-width:600px){ /* up to 980: at 840 px the one-column card still pushed Entnehmen and Fangfoto below the edge */
  .catch-card{width:min(680px,100%);display:grid;grid-template-columns:1fr 1fr;column-gap:16px;align-items:start}
  .catch-card>*{grid-column:1}
  .catch-card .trophy{grid-column:2;grid-row:1 / span 3;margin:0}.catch-card .trophy canvas{height:170px}
  .catch-card .catch-line{grid-column:2;grid-row:4;margin:6px 0}
  .catch-card .modal-actions{grid-column:2;grid-row:5 / span 3;align-self:start}
}
@media (max-height:500px) and (orientation:landscape){.catch-card .catch-why small{display:none}.catch-card .catch-grid{grid-template-columns:repeat(3,1fr)}.catch-card .trophy canvas{height:120px}.catch-card .catch-line{display:none}.catch-card .catch-badges{grid-column:2;grid-row:4;margin:6px 0 0}.catch-card .catch-size b{font-size:38px}.catch-card{padding-top:8px;padding-bottom:8px}}
/* the fishing panel on a computer: a little wider, the lures five abreast and down to just above the camera buttons */
@media (min-width:1000px){
  .fish-panel{width:340px;max-height:calc(100% - 128px)}
  .lure-group .lure-grid{grid-template-columns:repeat(5,1fr)}
}
/* the order of the buttons is the order in the page (hud.js orderHeroActions), so Tab follows what is seen */
.hero-actions #tourBtn.game-button--primary{min-height:60px}
.pf-tour{margin:6px 0 10px;padding:10px 12px;border-radius:12px;background:rgba(244,163,64,.14);border:1px solid rgba(244,163,64,.45);font-size:14px;line-height:1.4}
.hero-actions.first-run .tour-note{display:none}
.game-button>.ic{width:22px;height:22px;flex:none;stroke-width:2}
.game-button--tour .gb-text>span:first-child{font-size:1.12em}
.first-run .profile-cta .pc-text small{display:none}
/* the lessons after the first round: the same card, a little smaller and quieter; the button to try glows softly */
#hud.tasks-open .tutorial.lesson{display:none} /* the day's tasks were opened to be read: the lesson waits under them */
.tutorial.lesson{border-color:rgba(244,163,64,.55)}
@media (max-width:760px){#lessonText:not(.full){display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}#lessonText{cursor:pointer}} /* phones: three lines, a tap shows the rest */.tutorial.lesson .tut-head b{font-size:16px}.tutorial.lesson .link-btn+.link-btn{margin-left:2px}
#hud[data-mode=drive] .tutorial.lesson{top:auto;bottom:calc(150px + env(safe-area-inset-bottom,0px))}
@media (max-height:500px) and (orientation:landscape){#hud[data-mode=drive] .tutorial.lesson{bottom:auto;top:96px;width:min(420px,calc(100% - 280px))}}
.lesson-focus{animation:tutFocus 1.6s ease-in-out 2;box-shadow:0 0 0 1.5px rgba(244,163,64,.7)} /* two pulses, then a calm thin ring: nothing blinks on and on at the edge of sight */
@media (prefers-reduced-motion:reduce){.lesson-focus{animation:none;box-shadow:0 0 0 2px var(--sa-amber)}}
/* phones across, first round in the fight: the card goes down between Pumpen and Kurbeln, the fight panel stays readable */
@media (max-height:500px) and (orientation:landscape){#hud.tut[data-mode=fight] .tutorial{top:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:min(440px,calc(100% - 300px))}}
@media (max-height:500px) and (orientation:landscape){#hud[data-mode=fish] .tutorial.lesson{top:94px;width:min(440px,calc(100% - 330px));left:12px;transform:none}} /* under the fishing chips, beside the lure panel */
/* Dein Weg (Fangbuch): the six ranks as stops on a line; done ones ticked, the current one in amber */
.rank-path{margin-top:12px}.rank-path>small{letter-spacing:.14em;font-weight:800;color:var(--muted);font-size:10.5px}
.rank-path ol{list-style:none;margin:8px 0 6px;padding:0;display:grid;grid-template-columns:repeat(6,1fr);gap:2px;position:relative}
.rank-path ol::before{content:"";position:absolute;left:8%;right:8%;top:9px;height:2px;background:rgba(255,255,255,.15)}
.rank-path li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;min-width:0}
.rank-path li i{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:800;background:#0b2f40;border:2px solid rgba(255,255,255,.25);z-index:1}
.rank-path li b{font-size:11px;line-height:1.15;font-weight:700;overflow-wrap:normal;word-break:normal;hyphens:manual;-webkit-hyphens:manual}
@media (max-width:420px){.rank-path li b{font-size:10px}.rank-path li span{font-size:9px}}.rank-path li span{font-size:10px;color:var(--muted)}
.rank-path li.done i{background:#8fd694;border-color:#8fd694;color:#0b2f40}.rank-path li.ahead b{opacity:.6}
.rank-path li.now i{background:var(--sa-amber);border-color:#FFD08F;box-shadow:0 0 0 4px rgba(244,163,64,.25)}.rank-path li.now b{color:#FFCB81}
.rank-path p{margin:4px 0 0;font-size:12.5px;color:var(--sa-cream)}
.rank-hint{margin:8px 0 0;font-size:12.5px;line-height:1.4;color:#FFCB81}
.tutorial.lesson.rank{border-color:#8fd3e8}.tutorial.lesson.rank .tut-head small{color:#8fd3e8}
.levelup-card .lv-try{color:var(--sa-cream);font-weight:600}
/* the first round's fight: only what the first fish needs. Its state line, the strength bar and the ring with
   "Kurbeln"; the net button only once he can be netted. Tension bar, side gauge, rod buttons and the brake come later */
#hud.tut #fightRod,#hud.tut .fight-hud .tension,#hud.tut .side-gauge,#hud.tut .side-btn,#hud.tut .fight-hud .drag,#hud.tut .ring-label,#hud.tut .fight-hud .keys,#hud.tut .fight-line .reserve,#hud.tut #pumpBtn:not(.land){display:none!important}
/* the tag on the button to press: Halten or Tippen, readable at a glance */
.tut-focus[data-tut-tag]::after{content:attr(data-tut-tag);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);padding:3px 10px;border-radius:99px;background:var(--sa-amber);color:#10222b;font:800 12px/1.3 var(--font-cond,sans-serif);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;pointer-events:none;box-shadow:0 4px 12px rgba(0,0,0,.3);animation:tutBob 1.1s ease-in-out infinite}
@keyframes tutBob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,-4px)}}
@media (prefers-reduced-motion:reduce){.tut-focus[data-tut-tag]::after{animation:none}}
.action-bar .big.tut-focus{overflow:visible} /* the tag sits above the button */
/* while the water loads: one line under the buttons, what Jens is doing or a fact about the water */
.load-tip{max-width:420px;margin:10px 0 0;font:italic 500 14px/1.4 var(--font-body,Inter,sans-serif);color:var(--sa-cream);opacity:.9;min-height:2.8em;animation:tipIn .5s ease-out}
.load-tip b{display:block;font-style:normal;font-weight:700;color:var(--sa-amber);font-variant-numeric:tabular-nums} /* the stage and the time left above the sentence */
/* while the bar fills: pictures from the game, cross-faded, each with a line; the install hint makes room for them */
.load-pic{position:relative;width:100%;max-width:420px;margin:10px 0 0;aspect-ratio:16/9;border-radius:14px;overflow:hidden;border:1px solid rgba(244,163,64,.45);background:#0b2d3c;box-shadow:0 10px 30px rgba(0,0,0,.35);animation:tipIn .5s ease-out}
/* Anschlag üben (loadgame.js): the small game while the water loads, under the sentence */
.load-game{width:100%;max-width:420px;margin:10px 0 0}
.load-game canvas{display:block;width:100%;height:110px;border-radius:12px;border:1px solid rgba(244,163,64,.45);background:#0b2d3c;touch-action:none;cursor:pointer}
.load-game .lg-say{margin:6px 2px 0;font:600 13px/1.35 var(--font-body,Inter,sans-serif);color:var(--sa-cream);min-height:2.7em}
@media (max-height:520px) and (orientation:landscape){.load-game canvas{height:76px}.load-game .lg-say{font-size:12px;min-height:1.4em}}
.load-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease}
.load-pic img.on{opacity:1}
.load-pic figcaption{position:absolute;left:0;right:0;bottom:0;padding:26px 12px 9px;font:600 13.5px/1.3 var(--font-body,Inter,sans-serif);color:#fff;background:linear-gradient(180deg,rgba(5,20,26,0),rgba(5,20,26,.82));text-shadow:0 1px 2px rgba(0,0,0,.6)}
#title.loading .install-hint,#title.loading .load-tip span{display:none} /* the picture carries the sentences; the hint comes back after */
@media (max-width:760px){.load-pic{aspect-ratio:2/1}} /* a phone upright: lower, so the rest of the screen shrinks less */
@media (min-width:900px) and (min-height:600px) and (orientation:landscape){.load-pic{position:absolute;right:max(28px,env(safe-area-inset-right));bottom:calc(max(18px,env(safe-area-inset-bottom)) + 56px);width:min(460px,38vw);margin:0}} /* tablets and desktops: beside the column, where the install hint stands, so the column keeps its size */
@media (max-height:500px) and (orientation:landscape){.load-pic{display:none}#title.loading .load-tip span{display:inline}} /* no room sideways on a phone */
@keyframes tipIn{from{opacity:0;transform:translateY(4px)}to{opacity:.9;transform:none}}
@media (max-height:520px) and (orientation:landscape){.load-tip{margin-top:6px;font-size:12.5px}}
/* windows from 761 to 950 px (a tablet upright): the top buttons with their icons only, so the row fits beside the
   chips instead of running off the right edge (the names stay as tooltips) */
@media (min-width:761px) and (max-width:950px){.top-actions .icon-btn span{display:none}}

/* wading: a stick to walk in the river, any direction (riverrigs.js) */
.wade-pad{position:absolute;left:18px;bottom:calc(270px + env(safe-area-inset-bottom));width:116px;height:116px;border-radius:50%;background:radial-gradient(circle,rgba(18,40,58,.35) 0 55%,rgba(18,40,58,.6) 56% 100%);border:2px solid rgba(240,206,149,.55);touch-action:none;pointer-events:auto;--kx:0px;--ky:0px;box-shadow:0 4px 16px rgba(0,0,0,.25)}
.wade-knob{position:absolute;left:50%;top:50%;width:50px;height:50px;margin:-25px 0 0 -25px;border-radius:50%;background:rgba(240,206,149,.9);box-shadow:0 2px 8px rgba(0,0,0,.35);transform:translate(var(--kx),var(--ky));pointer-events:none}
@media (min-width:900px) and (pointer:fine){.wade-pad{bottom:150px}}

/* the top bars while fishing: out of the way (by hand, or after the cast), back with the small arrow (main.js) */
.topbar,.fish-chips,.inbox-pill{transition:opacity .25s,transform .25s}
#hud[data-mode=fish].bars-off .topbar,#hud[data-mode=fish].bars-off .fish-chips,body.bars-off .inbox-pill{opacity:0;transform:translateY(-14px);pointer-events:none}
.bars-show{display:none;position:absolute;right:max(10px,env(safe-area-inset-right));top:calc(max(8px,env(safe-area-inset-top)));z-index:5;width:40px;height:30px;border-radius:99px;border:1px solid var(--line);background:var(--panel);color:inherit;align-items:center;justify-content:center;pointer-events:auto;opacity:.85}
#hud[data-mode=fish].bars-off .bars-show{display:flex}
.bars-show .ic{width:18px;height:18px}
.set-btns{display:flex;gap:6px;flex-wrap:wrap}.set-btns .btn{flex:1 1 auto} /* Optionen › Spiel › Konto */
/* the lesson card while driving on touch screens: up top, never over the steering pads (on a phone it hid ▲ ◀ ▶) */
@media (pointer:coarse) and (min-height:501px){#hud[data-mode=drive] .tutorial.lesson{top:118px;bottom:auto;width:min(460px,calc(100% - 360px));left:12px;transform:none}} /* at the left, under the travel chips: the middle of the picture is the angler's */
@media (pointer:coarse) and (max-width:760px) and (min-height:501px){#hud[data-mode=drive] .tutorial.lesson{top:172px;left:10px;right:10px;width:auto;transform:none}} /* upright: the whole width, under the map button (beside it the title had no room) */

/* PC with a mouse: in the fight the four buttons (Pumpen/Keschern, Rute links, Rute rechts, Kurbeln) sit together
   at the bottom middle instead of in the far corners, so the mouse never has to cross the whole screen */
@media (pointer:fine) and (min-width:761px) and (min-height:501px){
  .fight-hud .thumb{bottom:66px}.fight-hud .thumb-left{left:calc(50% - 250px)}.fight-hud .thumb-right{right:calc(50% - 250px)}
  .fight-hud .side-btn{top:auto;bottom:66px;transform:none}.fight-hud .side-btn.left{left:calc(50% - 92px)}.fight-hud .side-btn.right{right:calc(50% - 92px)}
  .fight-hud .keys{bottom:8px;max-width:min(1000px,calc(100% - 40px))}
}
/* the first round on a phone: the card leaves the sound button free in the fight; the catch card speaks for itself
   (the tag on "Zurücksetzen" stays), and the tag sits on the button's edge, clear of the medals above it */
@media (max-width:760px){#hud.tut[data-mode=fight] .tutorial{left:auto;right:12px;transform:none;width:calc(100% - 78px)}}
@media (max-width:760px) and (orientation:portrait){#hud.tut[data-mode=fight] .fight-top{top:134px}} /* the card takes three lines there: the tension strip just below it */
body:has(#catchModal:not(.hidden)) #tutorial{display:none}
#catchOk.tut-focus[data-tut-tag]::after{bottom:calc(100% - 10px)}
/* in the fight the ring's colour is the message (green: reel, red: let go): no amber glow round it */
#fightReelBtn.tut-focus{animation:none;box-shadow:0 0 0 3px rgba(248,244,232,.55)}
/* short phones: the start screen scrolls, so the legal links at the foot stay reachable (the art stays put) */
@media (max-height:700px){.title{overflow-y:auto;-webkit-overflow-scrolling:touch}.title-bg,.title::before{position:fixed}}
.levelup-card li.lv-elsewhere{background:none;font-weight:600;font-size:12.5px;color:var(--muted)}
/* phones: a long label (Ausblenden, Losfahren) breaks onto a second line instead of being cut to "Ausbl…" */
@media (max-width:760px){.fish-chips .icon-btn span{white-space:normal;overflow:visible;text-overflow:clip;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:anywhere;font-size:9px;line-height:1.05;text-align:center}}
/* phones held sideways: the sonar under the row of buttons and above the cast/reel bar, not behind it */
@media (max-height:500px) and (orientation:landscape){.sonar-panel{top:calc(max(8px,env(safe-area-inset-top)) + 84px);bottom:auto;width:min(260px,36vw);padding:6px}#sonarCanvas,#liveCanvas{height:max(70px,calc(100vh - 250px))}}
/* Bestenliste: the Wochenfisch as a card on top, the own row marked */
.wf-card{margin:4px 0 10px;padding:12px 14px;border-radius:14px;background:linear-gradient(135deg,rgba(244,163,64,.18),rgba(244,163,64,.04));border:1px solid rgba(244,163,64,.45)}
.wf-card>small{display:block;font:800 11px/1.3 var(--font-cond,sans-serif);letter-spacing:.1em;color:#FFCB81}
.wf-card>b{display:block;font-family:var(--font-display,inherit);font-size:24px;line-height:1.15;margin-top:2px}
.wf-card>span{display:block;color:var(--muted);font-size:13px}
.wf-card .wf-you{margin:8px 0 0;font-size:14px}.wf-card .wf-where{margin:6px 0 0;font-size:12.5px;color:#FFCB81}
.board-list li.me{background:rgba(244,163,64,.18);outline:1px solid rgba(244,163,64,.5)}
.wf-last{margin:0 0 12px;font-size:13px;color:var(--sa-cream)}.wf-last small{display:block;font:800 10.5px/1.4 var(--font-cond,sans-serif);letter-spacing:.1em;color:var(--muted)}
/* the strike button runs down: the bar under it is the time left to strike, red at the end */
.bite-btn{position:relative;overflow:hidden}
.bite-btn::after{content:"";position:absolute;left:0;bottom:0;height:5px;width:calc(var(--left,1) * 100%);background:#ffe08a;transition:width .08s linear}
.bite-alert.late .bite-btn::after{background:#ff5a3c}.bite-alert.late .bite-signal{animation-duration:.12s}.bite-alert.late .bite-card{animation-duration:.25s,.18s}
/* the line at a glance: distance, depth and water, also with the bars hidden */
.line-hud{position:absolute;z-index:11;right:max(12px,env(safe-area-inset-right));top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:4px;padding:8px 10px;border-radius:14px;background:rgba(9,42,57,.78);border:1px solid rgba(248,244,232,.18);pointer-events:none;text-align:right}
.line-hud span{display:flex;flex-direction:column;line-height:1.05}
.line-hud small{font:800 9.5px/1.2 var(--font-cond,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.line-hud b{font-family:var(--font-num);font-variant-numeric:tabular-nums;font-size:20px;color:var(--sa-cream)}
.line-hud span:first-child b{font-size:24px;color:#FFCB81}
#hud[data-mode=drive] .line-hud,#hud[data-mode=catch] .line-hud{display:none}
@media (max-height:500px) and (orientation:landscape){.line-hud{top:auto;bottom:96px;flex-direction:row;gap:12px;padding:6px 10px}.line-hud b{font-size:17px}.line-hud span:first-child b{font-size:19px}}
/* the bite has the stage to itself; in the fight the numbers sit low in the middle, between pump and reel */
body:has(#biteAlert:not(.hidden)) .line-hud{display:none}
/* phones upright, in the fight: one row under the fight panel, where the sky is free */
/* in the fight the line shows once, in the line HUD: not again in the strength bar or as a badge on the reel ring */
#hud[data-mode=fight] .fight-line span:has(#lineOut),#hud[data-mode=fight] .fight-line .reserve,#fightReelBtn .meter{display:none}
#hud[data-mode=fight] .line-hud{top:300px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);flex-direction:row;gap:14px;text-align:center}
@media (max-width:760px) and (min-height:501px){.fight-hud .side-btn{top:362px;transform:none}#hud[data-mode=fight]:not(.tut) .line-hud{top:calc(var(--ft) + 150px)}#hud[data-mode=fight]:not(.tut) .side-btn{top:calc(var(--ft) + 212px)}body:has(#hud[data-mode=fight]:not(.tut)) .uw-badge{top:calc(max(10px,env(safe-area-inset-top,0px)) + 206px)}}
@media (max-width:760px) and (min-height:501px){body:has(#hud[data-mode=fight]) .uw-badge{top:calc(356px + env(safe-area-inset-top,0px))}} /* the underwater badge in the fight: under the Schnur/Fisch/Rest row (top 300px), between the rod buttons, never over it */ /* the rod buttons just under that row (on a narrow phone they ran into it) */
/* phones sideways, in the fight: low in the middle, between pump and reel */
@media (max-height:500px) and (orientation:landscape){#hud[data-mode=fight] .line-hud{top:auto;bottom:10px}}
/* big screens: on the left in the middle, over open water, clear of the method panel and the fight buttons */
@media (min-width:761px) and (min-height:501px){.line-hud,#hud[data-mode=fight] .line-hud{left:16px;right:auto;top:50%;bottom:auto;transform:translateY(-50%);flex-direction:column;text-align:left}}
.line-hud b{white-space:nowrap}
@media (min-width:761px) and (min-height:501px){.line-hud{padding:10px 14px}.line-hud b{font-size:24px}.line-hud span:first-child b{font-size:30px}.line-hud small{font-size:10.5px}}

/* Forellenteig */
.seg.dough-grid{display:grid;grid-template-columns:repeat(3,1fr)}.seg.dough-grid button{min-width:0;padding-left:4px;padding-right:4px}.dough-glitter{margin-top:6px;font-size:12px}
/* Tablets and small laptops (iPad across): the bars as icons only, so everything fits on one line and the picture stays
   free (the names are in the tooltips); the tasks keep their count. In the fight the line readout goes up under the
   bar, where nothing else is then, instead of lying on the left rod button. */
@media (min-width:761px) and (max-width:1300px){
  .top-actions .icon-btn span{display:none}
  .top-actions .icon-btn{min-width:44px;justify-content:center}
  #hud .fish-chips .icon-btn:not(.tasks-btn) span{display:none}
  #hud .fish-chips .icon-btn{min-width:44px;justify-content:center}
}
@media (min-width:761px) and (min-height:501px){#hud[data-mode=fight] .line-hud{top:70px;transform:none}}
/* Tablets (iPad): with the sonar open bottom left, the buttons and the zone card move right of it (the buttons narrow
   a little: four with the Hegene) and the steering buttons go up above it, instead of lying on it */
@media (min-width:761px) and (max-width:1400px) and (min-height:501px){
  #hud:has(#sonarPanel:not(.hidden)) .action-bar{left:calc(32px + min(300px,42vw));right:16px;width:auto;transform:none;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,140px);justify-content:center}
  #hud:has(#sonarPanel:not(.hidden)) .action-bar .big{min-width:0}
  #hud:has(#sonarPanel:not(.hidden)) .zone-card{left:calc(32px + min(300px,42vw));transform:none;width:min(600px,calc(100% - 48px - min(300px,42vw)))}
}
@media (min-width:761px) and (min-height:501px){#hud:has(#sonarPanel:not(.hidden)) .pad-left{bottom:240px}}
/* shorter tablets (iPad 1024 × 768 across): a smaller minimap without the hint, clear of the gas buttons under it */
@media (min-width:761px) and (min-height:501px) and (max-height:800px){.mini-hint{display:none}#minimap{height:210px}}
/* Angelshop: rods, floats and hooks for experience points, each drawn on its shelf */
.shop-card{width:min(880px,100%)}
.shop-card h2{padding-right:44px}
.shop-wallet{display:flex;align-items:center;gap:14px;margin:6px 0 12px;padding:12px 16px;border-radius:14px;background:linear-gradient(120deg,rgba(244,163,64,.22),rgba(244,163,64,.06) 60%);border:1px solid rgba(244,163,64,.45)}
.sw-star{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffd48a,#F4A340 55%,#b86f1c);color:#3b2207;font-size:24px;box-shadow:0 0 18px rgba(244,163,64,.45)}
.sw-num{display:flex;flex-direction:column;line-height:1.05}
.sw-num b{font-family:var(--font-num);font-size:30px;color:var(--sa-amber)}
.sw-num small{font-size:12px;color:var(--ink);opacity:.85}
.sw-side{margin-left:auto;text-align:right;font-size:12px;color:var(--muted)}
.shop-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.shop-item{position:relative;display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.04);transition:transform .15s,border-color .15s}
.shop-item:hover{transform:translateY(-2px);border-color:rgba(248,244,232,.32)}
.shop-item.using{border-color:var(--sa-amber);box-shadow:0 0 0 1px var(--sa-amber) inset,0 8px 24px rgba(244,163,64,.15)}
.shop-art{position:relative;aspect-ratio:4/3;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 35%,rgba(248,244,232,.12),transparent 65%),linear-gradient(180deg,#17414f,#0c2a36);border-bottom:3px solid var(--tier,#6e7d80)}
.shop-art svg{width:78%;height:100%}
.shop-item.tier1{--tier:#6fbf73}.shop-item.tier2{--tier:#4ea3e0}.shop-item.tier3{--tier:#c58bf0}
.shop-item.shop-locked .shop-art svg{filter:grayscale(1) brightness(.6)}
.shop-item.shop-locked .shop-text{opacity:.6}
.shop-badge{position:absolute;top:7px;right:7px;padding:3px 8px;border-radius:999px;font-size:11.5px;font-weight:750;background:rgba(9,42,57,.85);border:1px solid var(--line)}
.shop-badge.price{color:#3b2207;background:var(--sa-amber);border-color:transparent;font-family:var(--font-num)}
.shop-badge.use{color:#3b2207;background:var(--sa-cream)}
.shop-badge.own{color:#bfe8c3;border-color:rgba(111,191,115,.6)}
.shop-text{flex:1;display:flex;flex-direction:column;gap:3px}
.shop-tier{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:750;color:var(--tier,#9aa6a8)}
.shop-text b{font-size:14px;line-height:1.25}
.shop-text p{margin:0 0 4px;color:var(--muted);font-size:12px;line-height:1.35}
.shop-bar{display:grid;grid-template-columns:72px 1fr 52px;align-items:center;gap:6px;font-size:11.5px}
.shop-bar span{color:var(--muted)}
.shop-bar i{height:6px;border-radius:3px;background:rgba(255,255,255,.1);overflow:hidden}
.shop-bar i b{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,var(--tier,#8b9189),var(--sa-amber))}
.shop-bar em{font-style:normal;text-align:right;font-family:var(--font-num);font-size:11px}
.shop-item .btn{width:100%;white-space:nowrap}
.shop-item .btn:disabled{opacity:.6;cursor:default}
.shop-item.fresh{animation:shopPop .6s ease-out}
.shop-item.fresh .shop-art::after{content:'';position:absolute;inset:0;background:radial-gradient(circle,rgba(244,163,64,.55),transparent 70%);animation:shopGlow 1.2s ease-out forwards}
@keyframes shopPop{0%{transform:scale(.94)}55%{transform:scale(1.04)}100%{transform:scale(1)}}
@keyframes shopGlow{from{opacity:1}to{opacity:0}}
@media (prefers-reduced-motion:reduce){.shop-item,.shop-item.fresh,.shop-item.fresh .shop-art::after{animation:none;transition:none}}
@media (max-width:480px){.shop-list{grid-template-columns:1fr 1fr;gap:8px}.shop-bar{grid-template-columns:1fr 44px}.shop-bar i{grid-column:1/-1;grid-row:2}.sw-side{display:none}}
/* Phones with the fish panel open: the gesture hint makes way (it lay over the panel's text) */
@media (max-width:760px){body:has(#fishPanel:not(.collapsed)) #hud[data-mode=fish] .gesture-hint{display:none}}
/* The little map while driving or walking folds away to a button (remembered on this device; on phones folded
   at first). Folded, only the button with the map sign is left. */
.mini-fold{position:absolute;top:-9px;left:-9px;z-index:2;display:grid;place-items:center;width:28px;height:28px;padding:0;border-radius:50%;border:1px solid var(--line);background:rgba(9,42,57,.92);color:var(--sa-cream,#f8f4e8);cursor:pointer}
.mini-fold .ic{width:15px;height:15px}.mini-fold span{display:none}
#minimapWrap.folded{left:auto;width:auto;padding:0;background:none;border:0;backdrop-filter:none}
#minimapWrap.folded>:not(.mini-fold){display:none} /* the id: #minimap's own display:block must not win */
.minimap-wrap.folded .mini-fold{position:static;width:auto;height:44px;padding:0 12px;border-radius:12px;display:flex;gap:6px;font:inherit;font-size:13px;font-weight:700}
.minimap-wrap.folded .mini-fold .ic{width:18px;height:18px}.minimap-wrap.folded .mini-fold span{display:inline}
@media (max-width:760px){.minimap-wrap.folded .mini-fold span{display:none}.minimap-wrap.folded .mini-fold{width:44px;padding:0;justify-content:center}}
/* Phones: the bars as icons only too (the names are in the tooltips and the help), the tasks keep their count; the
   buttons get lower, more of the picture stays free */
@media (max-width:760px){
  .top-actions .icon-btn span,#hud .fish-chips .icon-btn:not(.tasks-btn) span{display:none}
  body.bar-names #hud .fish-chips .icon-btn span{display:block;font-size:9px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%} /* the first rounds: what each icon is */
  body.bar-names #hud .fish-chips .icon-btn{flex-direction:column;gap:1px}
  /* seven buttons in a row: the names tight, and a short word for the long ones (Losfahren, Weitergehen, Ausblenden),
     so no name ends in "…" */
  body.bar-names #hud .fish-chips .icon-btn{padding-left:1px;padding-right:1px}
  body.bar-names #hud .fish-chips .icon-btn span{font-size:8.5px;letter-spacing:0}
  body.bar-names #hud .fish-chips .icon-btn[data-short] span{display:none}
  body.bar-names #hud .fish-chips .icon-btn[data-short]::after{content:attr(data-short);display:block;font-size:8.5px;font-weight:700;white-space:nowrap}
  .top-actions .icon-btn,#hud .fish-chips .icon-btn{min-height:40px;padding:4px 2px;justify-content:center}
}
/* Beta-Feedback (Optionen › Feedback) */
.fb-form{display:grid;gap:12px}
.fb-form label{display:flex;flex-direction:column;gap:4px;font-size:10px;letter-spacing:.14em;font-weight:800;color:var(--muted);text-transform:uppercase}
.fb-form textarea,.fb-form input{width:100%;background:#0a222b;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:9px;font:500 13px/1.4 var(--font-body,Inter,sans-serif);letter-spacing:0;text-transform:none;resize:vertical}
.fb-form .note{margin:0}.fb-form .note a{color:var(--sa-amber)}
.fb-kind{display:grid;grid-template-columns:repeat(3,1fr)}
.fb-send{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.beta-link{color:var(--sa-amber)!important}
/* the Forellenteich is long and narrow: its minimap wide and low instead of tall */
/* the pond is long and low (184 × 76 m): a wide, low depth chart, or it filled only a quarter of a square one */
.pond .depth-card{width:min(1100px,100%)}.pond #depthMap{height:min(48dvh,calc((100vw - 260px) * .46),470px);min-height:220px}
@media (max-width:760px){.pond #depthMap{height:min(48dvh,calc((100vw - 60px) * .5))}}
@media (orientation:landscape) and (max-height:500px){.pond #depthMap{height:calc(100dvh - 165px);min-height:0}}
.pond .minimap-wrap{width:230px}.pond #minimap{height:105px}
@media (max-width:760px){.pond .minimap-wrap{width:150px}.pond #minimap{height:70px}}
@media (max-height:500px) and (orientation:landscape){.pond .minimap-wrap{width:150px}.pond #minimap{height:60px}}
.chips .stock-chip.fresh{background:rgba(244,163,64,.22);border-color:rgba(244,163,64,.6);color:#FFCB81}
/* the bite view (biteview.js): the float or the rod tip close up while waiting. Desktop: right, under the collapsed
   panel; phone: left side above the panel (the line figures stand on the right there) */
.bite-view{position:absolute;z-index:11;right:max(16px,env(safe-area-inset-right));top:50%;transform:translateY(-50%);margin:0;width:240px;height:160px;border-radius:14px;overflow:hidden;background:rgba(9,42,57,.78);border:2px solid rgba(248,244,232,.22);box-shadow:0 6px 20px rgba(0,0,0,.3);pointer-events:auto;transition:border-color .2s}
.bite-view canvas{display:block;width:100%;height:100%}
.bite-view figcaption{position:absolute;left:8px;top:6px;font:800 10px/1.2 var(--font-cond,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--sa-cream,#f8f4e8);text-shadow:0 1px 3px rgba(0,0,0,.7);pointer-events:none}
.bite-view-x{position:absolute;right:4px;top:4px;width:26px;height:26px;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(9,42,57,.7);color:var(--sa-cream,#f8f4e8);cursor:pointer;padding:0}
.bite-view-x .ic{width:14px;height:14px}
.bite-view.biting{border-color:var(--red,#e5533d);animation:biteViewPulse .5s ease-in-out infinite alternate}
@keyframes biteViewPulse{to{box-shadow:0 0 0 4px rgba(229,83,61,.45),0 6px 20px rgba(0,0,0,.3)}}
#hud:not([data-mode=fish]) .bite-view{display:none}
@media (max-width:760px){.bite-view{right:auto;left:max(10px,env(safe-area-inset-left));top:calc(122px + env(safe-area-inset-top,0px));transform:none;width:150px;height:104px}} /* under the chips, clear of the bite alert */
@media (max-height:500px) and (orientation:landscape){.bite-view{right:max(10px,env(safe-area-inset-right));left:auto;top:58px;transform:none;width:156px;height:100px}}
/* Forellen-Cup (cupui.js): the standings as a chip in the top bar, on phones as a pill under the bell; the Cup window */
.chips .cup-chip{pointer-events:auto;cursor:pointer;background:rgba(201,162,39,.2);border-color:rgba(201,162,39,.6);color:#f3d77a}
.chips .cup-chip.lead,.cup-pill.lead{background:rgba(201,162,39,.36);border-color:#e6c04a;color:#fff1bf}
.cup-pill{display:none}
@media (max-width:760px),(max-height:500px){
  #hud[data-mode=fish] .cup-pill:not(.hidden),#hud[data-mode=fight] .cup-pill:not(.hidden),#hud[data-mode=drive] .cup-pill:not(.hidden){display:flex;gap:4px;position:fixed;right:10px;top:238px;z-index:55;align-items:center;height:28px;padding:0 10px;border-radius:99px;border:1px solid rgba(201,162,39,.6);background:rgba(9,42,57,.85);color:#f3d77a;font-size:12px;font-weight:700}
  .cup-pill .ic{width:14px;height:14px}
}
@media (max-height:500px) and (orientation:landscape){#hud .cup-pill:not(.hidden){top:calc(max(8px,env(safe-area-inset-top)) + 76px)}}
.cup-card{width:min(600px,100%)}
.cup-lead{margin:0 0 12px;line-height:1.5}
.cup-big{margin:0 0 12px;padding:9px 12px;border-radius:10px;background:rgba(201,162,39,.16);border:1px solid rgba(201,162,39,.45);color:#f3d77a}
.cup-rules{margin:0 0 14px;padding-left:18px;font-size:13px;line-height:1.5;color:#d7e8e1}
.cup-slots{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.cup-slots .btn{justify-content:flex-start;flex-wrap:wrap;text-align:left}
.cup-slots .btn small{flex-basis:100%;margin-left:26px;text-transform:none;letter-spacing:.02em;font-size:11px}
.cup-table{width:100%;border-collapse:collapse;font-size:13px;margin:0 0 10px;font-variant-numeric:tabular-nums}
.cup-table th{font:800 10px/1.2 var(--font-cond,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);text-align:left;padding:4px 6px;border-bottom:1px solid var(--line)}
.cup-table td{padding:6px;border-bottom:1px solid rgba(255,255,255,.06);vertical-align:top}
.cup-table td:first-child{font-weight:800;color:#f3d77a;width:22px}
.cup-table td small{color:var(--muted)}
.cup-table .cup-how{display:block;font-size:11px}
.cup-table tr.me td{background:rgba(201,162,39,.14)}
@media (max-width:520px){.cup-table th:last-child,.cup-table td:last-child{display:none}}

/* Phones (portrait): one slim row of buttons instead of two full ones (moreui.js). What is used less sits behind
   "Mehr": always Fangbuch, Start, Optionen and Ton; while fishing also the map, the view, Teichwirt and Cup
   ("Ausblenden" stays in the bar). The fishing buttons then sit in the top row on the left, "Mehr" (and the sonar) on the right, and
   everything that hung under the second row moves up by that row. */
#hud .more-btn{display:none}
.more-sheet{position:fixed;z-index:60;right:calc(10px + env(safe-area-inset-right,0px));top:calc(62px + env(safe-area-inset-top,0px));min-width:210px;max-width:calc(100vw - 20px);display:flex;flex-direction:column;gap:2px;padding:6px;border-radius:14px;border:1px solid var(--line);background:rgba(9,42,57,.96);box-shadow:0 14px 34px rgba(0,0,0,.4);pointer-events:auto}
.more-item{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 12px;border:0;border-radius:10px;background:none;color:var(--ink,#e8f1ec);font:600 15px/1.2 inherit;text-align:left;cursor:pointer}
.more-item .ic{width:19px;height:19px;flex:0 0 19px;opacity:.9}
.more-messages{border-bottom:1px solid var(--line);border-radius:8px 8px 0 0;padding-top:6px;padding-bottom:8px;margin-bottom:4px}
.more-messages small{display:block;font-size:11px;font-weight:500;color:var(--muted);margin-top:3px}
.more-messages.unread .ic{color:var(--sa-amber)}
.more-item:hover,.more-item:focus-visible{background:rgba(255,255,255,.07);outline:none}
.more-item.on{color:var(--sa-cream)}.more-item.on .ic{color:var(--sa-amber)}
@media (max-width:760px){
  #hud .slim{display:none!important}
  #hud[data-mode=fish] .slim-fish{display:none!important}
  #hud.tut .top-actions #audioBtn{display:flex!important} /* the first round shows only the sound switch, as before */
  #hud .top-actions .more-btn{display:flex}
  #hud[data-mode=fish] .topbar{justify-content:flex-end}
  #hud[data-mode=fish] .top-actions{width:auto;flex:1 1 auto;min-width:0;display:flex;justify-content:flex-end;gap:5px} /* the full width, buttons packed right: Safari sized the shrink-wrapped box too narrow and pushed "Mehr" off the right edge */
  #hud[data-mode=fish] .top-actions .icon-btn{flex:0 0 46px;min-width:0}
  #hud[data-mode=fish] .fish-chips{top:8px;right:61px}
  #hud[data-mode=fish]:has(#sonarBtn:not(.hidden)) .fish-chips{right:112px}
  #hud[data-mode=fish] .coach{top:64px}
  #hud[data-mode=fish] .sonar-panel{top:64px}
  #hud[data-mode=fish]:has(.sonar-panel:not(.hidden)) .coach{top:222px}
  #hud[data-mode=fish] .tasks-card{top:62px}
  #hud[data-mode=fish] .inbox-pill{top:calc(62px + env(safe-area-inset-top,0px))}
  #hud[data-mode=fish] .bite-view{top:calc(62px + env(safe-area-inset-top,0px))}
  #hud[data-mode=fish] .phase-pill:not(.hidden){top:144px}
  #hud[data-mode=fish] .cup-pill:not(.hidden){top:178px}
}
/* the bell's messages behind "Mehr" (phones): a small count on the button instead of a pill over the water */
#hud .creep-one{display:none}
@media (max-width:760px){
  .inbox-pill{display:none!important}
  #hud .more-btn{position:relative}
  #hud .more-btn[data-badge]::after{content:'';position:absolute;top:5px;right:5px;min-width:7px;width:7px;height:7px;padding:0;box-sizing:border-box;border-radius:99px;background:var(--sa-amber);color:#10222b;font:700 10.5px/17px var(--font-num,sans-serif);text-align:center}
  /* the E-Motor as one button: hold to go, a short tap turns the direction round */
  #hud .creep #creepFwd,#hud .creep #creepBack{display:none}
  #hud .creep .creep-one{display:flex}
  .creep-one.back{color:var(--sa-cream)}
}
/* the bait choice on phones: what is still locked waits behind one line ("🔒 5 weitere ab Stufe 2 · zeigen"), the tabs
   without their cut-off second line, one heading over the lures instead of two */
.lock-note{margin:8px 0 0;font-size:12px;color:var(--muted);display:none}.lock-note .link-btn{font-size:12px;color:#FFCB81;min-height:0;padding:0 2px}
.lure-group>span em{font-style:normal}
@media (max-width:760px){
  .lock-note:not(.hidden){display:block}
  #fishPanel:not(.show-locked) .panel-body .locked{display:none}
  #fishPanel .tabs .tab small{display:none}
  #fishPanel .tabs .tab{padding:9px 4px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* no display here: the lake-only/shore-only rules decide that */
  #spinPanel>.row:first-child>small:first-child{display:none}
  .lure-group>span em{display:none}
}
/* the dough (trout pond, phones): one line with colour, scent and float; "anpassen" opens the choices */
.dough-toggle{display:none}
@media (max-width:760px){
  .dough-toggle{display:flex;align-items:center;gap:10px;width:100%;margin:2px 0 4px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:rgba(255,255,255,.04);color:var(--ink);text-align:left;cursor:pointer}
  .dough-toggle i{flex:0 0 16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
  .dough-toggle span{flex:1;min-width:0}.dough-toggle span b{display:block;font-size:13px}.dough-toggle small{display:block;font-size:11px;color:var(--muted)}
  .dough-toggle .chev{transition:transform .2s}#doughBox.open .dough-toggle .chev,#spoonBox.open .dough-toggle .chev,#boilieBox.open .dough-toggle .chev{transform:rotate(90deg)}
  #doughBox:not(.open) .dough-more,#spoonBox:not(.open) .dough-more,#boilieBox:not(.open) .dough-more{display:none}
}
/* phones: the long explanations as two lines; a tap on them shows the rest (and a second tap folds them again).
   The guide box likewise: two lines, a tap shows all of it and keeps it a little longer, the next tap closes it. */
@media (max-width:760px){
  .fish-panel .lure-info:not(.full){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .fish-panel .lure-info{pointer-events:auto;cursor:pointer}
  .coach{pointer-events:auto;cursor:pointer}
  .coach:not(.full) span{-webkit-line-clamp:2}
  .coach.full span{display:block;-webkit-line-clamp:unset;overflow:visible}
  .coach.quiet{pointer-events:none}
}
/* phones: all lures in one grid (no half-empty row per group); the group (Hecht/Barsch, klein/groß) as a small tag
   on each card. The power bar goes: the Werfen button fills itself while held. */
.lure-tag{display:none}
@media (max-width:760px){
  #lureSeg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:2px}
  #lureSeg .lure-group,#lureSeg .lure-grid{display:contents}
  #lureSeg .lure-group>span{display:none}
  .lure-card{position:relative}
  .lure-card .lure-tag{display:block;position:absolute;left:4px;top:4px;z-index:1;padding:1px 5px;border-radius:5px;background:rgba(9,42,57,.85);color:#d7e8e1;font-size:8.5px;font-weight:700;line-height:1.35;font-style:normal;letter-spacing:.03em;text-transform:uppercase;pointer-events:none}
  #spinPanel .power{display:none}
}

/* Impressum, Datenschutz, Widerruf and Credits: at the foot of the settings in every tab; in the apps (storeapp.js) only
   there, the start screen keeps just its status line (in the browser the footer links stay as they are) */
.settings-legal{display:flex;flex-wrap:wrap;gap:4px 16px;justify-content:center;margin:18px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:12.5px}
.settings-legal .link-btn{color:var(--muted)}
html.app-ui .title-foot .foot-right{display:none}

/* Back in the apps (storeapp.js) and in the iPhone's home-screen web app, which have no back button of the browser:
   on the water „‹ Start“ is the first button of the bar (on phones the bar's own Start sits behind „Mehr“): while
   driving before the Echolot, while fishing in the place of „Vollbild“, which moves into „Mehr“ (moreui.js). The
   windows close with „‹ Zurück“ top left instead of the small × (main.js goBack). */
.app-back-bar{display:none}
@media (max-width:760px){
  html.app-ui #hud[data-mode=drive] .top-actions .app-back-bar,html.app-ui #hud[data-mode=fish] .fish-chips .app-back-bar{display:flex}
  html.app-ui #hud[data-mode=fish] #barsHideBtn,html.app-ui #hud.tut .app-back-bar{display:none}
}
html.app-ui .modal-card > .close{position:relative;top:auto;float:none;left:auto;right:auto;margin:0 0 16px;width:max-content;align-self:flex-start;justify-self:start;height:34px;padding:0 13px 0 7px;border-radius:99px;display:flex;flex-shrink:0;align-items:center;gap:2px;font:700 13.5px/1 inherit;z-index:4}
html.app-ui .modal-card > .close .ic{display:none}
html.app-ui .modal-card > .close::before{content:'‹';font-size:22px;line-height:1;margin-top:-3px}
html.app-ui .modal-card > .close::after{content:'Zurück'}

/* ---------- the app look (storeapp.js html.app-ui: the store apps and the iPhone's home-screen web app) ----------
   Less nested, more like an app: the start screen gets a tab bar (Start, Tour, Fangbuch, Profil, Einstellungen), the
   big windows are full pages with „‹ Zurück“ (above), their tab rows are one line to swipe, and „Mehr“ on the water is
   a sheet from below with large tiles. In the browser everything stays as it is. */
.app-tabs{display:none}
html.app-ui body:has(#title:not(.hidden)) .app-tabs{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:90;left:0;right:0;bottom:0;padding:6px max(6px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));background:rgba(7,30,41,.94);border-top:1px solid var(--line);backdrop-filter:blur(12px)}
html.app-ui.travel .app-tabs{display:none!important}
.app-tabs button{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:50px;padding:5px 2px 2px;border:0;background:none;color:var(--muted);font:600 10.5px/1.1 inherit;letter-spacing:.01em;cursor:pointer}
.app-tabs button .ic{width:23px;height:23px}
.app-tabs button.active{color:var(--sa-amber)}
.app-tabs button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* the start screen with the bar: its own buttons for these places go (Fangbuch, Mehr, the gear, the profile chip) */
html.app-ui #titleJournalBtn,html.app-ui #titleMoreBtn,html.app-ui #titleSettingsBtn,html.app-ui #titleProfileBtn{display:none!important}
html.app-ui #titleWissenBtn{display:inline-flex!important}
/* Profil is a tab in the apps: its button on the start screen would say it twice. The Deutschland-Tour stays there too, tab or not: it is the game's big invitation */
html.app-ui #heroActions #profileCta{display:none!important}
html.app-ui .title-foot{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
/* the big windows as full pages; the small ones (the catch, a photo, a Gewässerkarte) stay cards */
html.app-ui .modal:has(> .modal-card:is(.journal-card,.settings-card,.wissen-card,.shop-card,.profile-card,.lake-card,.cup-card,.credits-card,.inbox-card,.quick-card,.depth-card)){padding:0;place-items:stretch;background:var(--panel-solid);backdrop-filter:none}
html.app-ui .modal-card:is(.journal-card,.settings-card,.wissen-card,.shop-card,.lake-card,.cup-card,.credits-card,.inbox-card,.quick-card,.depth-card){width:100%;max-width:none;min-height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none;padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right),calc((100vw - 760px) / 2)) calc(28px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left),calc((100vw - 760px) / 2))}
html.app-ui body:has(#title:not(.hidden)) .modal-card:is(.journal-card,.settings-card,.wissen-card,.shop-card,.lake-card,.cup-card,.credits-card,.inbox-card,.quick-card,.depth-card){padding-bottom:calc(84px + env(safe-area-inset-bottom))} /* room for the tab bar */
/* the profile: its own page, the stage above the form (the padding of the pages above pushed the stage in and the form's
   buttons under the tab bar); „‹ Zurück“ top left on the stage and the Stufe under it, on the start screen the form's
   buttons stand on the tab bar */
html.app-ui .profile-card{--pf-top:max(12px,env(safe-area-inset-top));--pf-off:44px;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none}
html.app-ui body:has(#title:not(.hidden)) #profileModal:not([style*="z-index"]) .profile-card{--pf-off:0px} /* a tab: no „‹ Zurück“ */
html.app-ui .profile-card>.close{position:absolute;top:var(--pf-top);left:10px;right:auto;margin:0;background:rgba(4,20,27,.72);border-color:rgba(255,255,255,.18)}
html.app-ui .profile-card .stage-top{top:calc(var(--pf-top) + var(--pf-off))}
html.app-ui .profile-card.stage-off{--side-top:calc(var(--pf-top) + var(--pf-off))}html.app-ui .profile-card.stage-off .profile-side{padding-top:calc(var(--pf-top) + var(--pf-off))}
html.app-ui .profile-card .stage-show{top:var(--pf-top);right:12px}
html.app-ui body:has(#title:not(.hidden)) .profile-card{padding-bottom:calc(57px + max(8px,env(safe-area-inset-bottom)))}
html.app-ui body:has(#title:not(.hidden)) .profile-side .profile-actions{padding-bottom:10px}
html.app-ui #profileModal .jtabs{-webkit-mask-image:none;mask-image:none}
/* the Tour: „Los …“ stands on the tab bar; a water's card (rallyeui.js data-view) has „‹ Zurück“ to the map */
@media (max-width:600px){html.app-ui body:has(#title:not(.hidden)) .btn.tour-go{bottom:calc(66px + max(8px,env(safe-area-inset-bottom)))}}
html.app-ui body:has(#title:not(.hidden)) #rallyeModal:is([data-view=water],[data-view=final]):not([style*="z-index"]) > .modal-card > :is(.close,.modal-nav){display:inline-flex}
/* a page opened from the tab bar is a tab's root: no „‹ Zurück“ there (the bar has „Start“); a page opened from it
   on top (e.g. the profile from the Fangbuch, its z-index set by hud.js openModal) keeps its way back */
html.app-ui body:has(#title:not(.hidden)) :is(#journalModal,#settingsModal,#rallyeModal,#profileModal):not([style*="z-index"]) > .modal-card > :is(.close,.modal-nav){display:none}
/* tab rows inside the pages: one line to swipe, its end fading out */
html.app-ui .jtabs{flex-wrap:nowrap;overflow-x:auto;gap:6px;margin-left:-4px;margin-right:-4px;padding:2px 4px;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
html.app-ui .jtabs button{flex:0 0 auto;border-radius:99px;padding:8px 14px}
/* „Mehr“ on the water: a sheet from below with large tiles instead of a little drop-down */
html.app-ui .more-sheet:not(.clock-sheet){left:8px;right:8px;top:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));min-width:0;max-width:none;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;border-radius:20px;box-shadow:0 0 0 100vmax rgba(2,12,18,.5)}
html.app-ui .more-sheet:not(.clock-sheet) .more-item{flex-direction:column;justify-content:center;gap:7px;min-height:80px;padding:10px 4px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.05);text-align:center;font-size:12.5px}
html.app-ui .more-sheet:not(.clock-sheet) .more-item .ic{width:24px;height:24px;flex:none}

/* the bar on the water in the apps: every button with its name, a little larger, the same while driving and fishing
   (in the browser the phone bar shows some as icons only) */
@media (max-width:760px){
  html.app-ui #hud :is(.top-actions,.fish-chips) .icon-btn{flex-direction:column;justify-content:center;gap:2px}
  html.app-ui #hud :is(.top-actions,.fish-chips) .icon-btn[data-short]::after{font-size:10.5px}
  html.app-ui #hud :is(.top-actions,.fish-chips) .icon-btn:not([data-short]) span{display:block!important;font-size:10.5px;font-weight:700;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
}

/* the small clock on phones (clockui.js): the chips with the time are hidden there; under "Mehr", a tap opens time,
   date and the Angeltag */
.clock-pill{display:none}
@media (max-width:760px){
  #hud[data-mode=fish] .clock-pill,#hud[data-mode=drive] .clock-pill{display:flex;align-items:center;position:absolute;right:10px;top:62px;height:26px;padding:0 10px;border-radius:99px;border:1px solid var(--line);background:rgba(9,42,57,.8);color:var(--sa-cream,#f8f4e8);font:700 12.5px/1 var(--font-num,sans-serif);font-variant-numeric:tabular-nums;letter-spacing:.02em}
  #hud.tut .clock-pill,#hud[data-mode=fish].bars-off .clock-pill,body.cinema #hud .clock-pill{display:none!important}
}
.clock-sheet{top:calc(94px + env(safe-area-inset-top,0px));width:min(300px,calc(100vw - 20px));gap:8px;padding:10px 12px 8px}
.clock-head{display:flex;flex-direction:column;gap:2px;padding:2px 2px 4px;border-bottom:1px solid var(--line)}
.clock-head b{font:800 26px/1.1 var(--font-num,sans-serif);font-variant-numeric:tabular-nums;color:var(--sa-cream,#f8f4e8)}
.clock-head span{font-size:13px;color:var(--ink,#e8f1ec)}.clock-head small{font-size:11.5px;color:var(--muted)}
.clock-row small{font:800 10px/1.2 var(--font-cond,sans-serif);letter-spacing:.12em;color:var(--muted)}
.clock-row .seg{flex-wrap:nowrap}.clock-row .seg button{min-width:0;min-height:34px;padding:6px 2px;font-size:12px}
.clock-sheet .more-item{justify-content:center;border:1px solid var(--line);margin-top:2px}
.clock-row .seg.weather-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.board-list li.ghost{opacity:.72}.board-list li.ghost b{font-style:italic} /* Geisterangler: made up, and it shows */
/* the carp angler's bite alarm (riverrigs.js): an LED over the buttons that flashes on every beep and blinks red on a run */
/* the bite alarm: the head with its LED, the line hanging from it with the swinger (--sw: 0 down, 1 pulled up to the
   rod), and what it says. A beep flashes the LED and lifts the swinger, a run lights it red and pulls the swinger up
   dancing, a drop back lights it blue and lets the swinger fall. */
.carp-alarm{--sw:.4;position:absolute;z-index:11;right:max(16px,env(safe-area-inset-right));top:calc(50% + 90px);display:flex;align-items:center;gap:12px;padding:8px 14px 8px 10px;border-radius:14px;background:rgba(9,42,57,.82);border:2px solid rgba(248,244,232,.22);font-size:13px;color:var(--sa-cream,#f8f4e8);pointer-events:none}
#hud:not([data-mode=fish]) .carp-alarm{display:none}
.carp-alarm.run{border-color:#ff7a5c}.carp-alarm.fall{border-color:#7fb7e8}
@media (max-width:760px){.carp-alarm{right:auto;left:max(10px,env(safe-area-inset-left));top:calc(174px + env(safe-area-inset-top,0px));padding:4px 10px 4px 8px;font-size:12px}.ca-line{height:22px}.ca-swinger{top:calc((1 - var(--sw)) * 14px);width:10px;height:10px;margin-left:-5px}.ca-led{height:10px}} /* under the bite view (62 px + its 104 px) */
@media (max-height:500px) and (orientation:landscape){.carp-alarm{left:auto;right:max(10px,env(safe-area-inset-right));top:166px}}
@media (min-width:761px) and (min-height:501px){#hud:has(#fishPanel:not(.collapsed)) .carp-alarm{top:auto;bottom:62px}} /* the open panel is tall with the boilie colours: the alarm below it, not on its last line */
.carp-alarm.hidden{display:none}
.ca-unit{display:flex;flex-direction:column;align-items:center;width:26px}
.ca-led{width:22px;height:12px;border-radius:4px;background:#3a2222;box-shadow:inset 0 0 0 1px rgba(0,0,0,.45),0 1px 0 rgba(255,255,255,.08)}
.ca-line{position:relative;width:2px;height:34px;background:rgba(240,236,224,.55)}
.ca-swinger{position:absolute;left:50%;top:calc((1 - var(--sw)) * 26px);width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#f0ce95;box-shadow:0 0 0 2px rgba(0,0,0,.35)}
.ca-text{font-weight:600;white-space:nowrap}
.carp-alarm.beep .ca-led{animation:carpBeep .45s ease-out}
.carp-alarm.run .ca-led{background:#ff3b2f;box-shadow:0 0 14px 4px rgba(255,59,47,.75);animation:carpRun .18s steps(2) infinite}
.carp-alarm.fall .ca-led{background:#4aa3ff;box-shadow:0 0 14px 4px rgba(74,163,255,.7);animation:carpRun .4s steps(2) infinite}
.carp-alarm.run .ca-text{color:#ffb3ad;font-weight:800;font-size:15px}.carp-alarm.fall .ca-text{color:#b5d8ff;font-weight:800}
@keyframes carpBeep{0%{background:#ff3b2f;box-shadow:0 0 12px 3px rgba(255,59,47,.7)}100%{background:#3a2222;box-shadow:none}}
@keyframes carpRun{50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.carp-alarm.run .ca-led,.carp-alarm.fall .ca-led{animation:none}.carp-alarm.beep .ca-led{animation-duration:.8s}}
/* Schnellstart (quick.js): one tap to an angling style, on the start screen and atop "Revier & Gewässer" */
.quick-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:14px;max-width:370px}
.quick-row .quick-label{grid-column:1/-1;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--sa-cream);opacity:.75}
/* the Schnellstart button is a secondary game-button like the ones above it, across the whole row */
.quick-row .quick-open{grid-column:1/-1}
/* Wettangeln window: the Rallye and the Cup one under the other; the score card */
.rallye-offer,.cup-offer{padding:12px 0;border-top:1px solid var(--line)}.rallye-offer{border-top:0;padding-top:0}
.rallye-offer h3,.cup-offer h3{margin:2px 0 6px;font-size:18px}.cup-offer h3 .ic{width:18px;height:18px;vertical-align:-3px}
.rallye-score{font-size:15px}.rallye-score b:first-child{font-size:30px;font-variant-numeric:tabular-nums;color:var(--sa-amber,#f4a340)}
.rallye-medal{display:inline-block;padding:2px 10px;border-radius:99px;font-weight:800;font-size:13px;color:#1b1406}
.rallye-medal.gold{background:#e6c04a}.rallye-medal.silber{background:#c9d2d8}.rallye-medal.bronze{background:#d39a68}
.rallye-stats{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:8px 0;font-size:14px}.rallye-stats dt{color:var(--muted)}.rallye-stats dd{margin:0;font-weight:650}
.rallye-h{margin:12px 0 4px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cup-chip.rallye,.cup-pill.rallye{font-variant-numeric:tabular-nums}
/* the Rallye-Tour: a bar of the Etappen won, then the Etappen one under the other, locked ones dimmed */
.tour-bar{display:flex;align-items:center;gap:5px;margin:4px 0 12px}.tour-bar i{flex:1;height:7px;border-radius:99px;background:rgba(255,255,255,.12)}.tour-bar i.won{background:var(--sa-amber,#f4a340)}.tour-bar span{flex:0 0 auto;margin-left:6px;font-size:12px;color:var(--muted)}
.stages{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.stage{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.03)}
.stage.won{border-color:rgba(244,163,64,.45)}.stage.locked{opacity:.55}
.stage-n{flex:0 0 30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:rgba(255,255,255,.08)}.stage.won .stage-n{background:var(--sa-amber,#f4a340);color:#08202c}
.stage-text{flex:1;min-width:0}.stage-text b{display:block;font-size:15px}.stage-text small{display:block;font-size:12px;color:var(--muted);line-height:1.35}.stage-text small + small{margin-top:3px;color:var(--ink)}
.stage .btn{flex:0 0 auto;padding:8px 14px}
.tour-map-wrap{margin:4px 0 10px}.tour-maps{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}.tour-map{display:block;width:100%;height:auto}.tour-map:first-child{max-height:56vh}
@media (max-width:620px){.tour-maps{grid-template-columns:1fr}}
.tm-dot{outline:none}
.tm-land{fill:rgba(255,255,255,.06);stroke:rgba(255,255,255,.28);stroke-width:1;stroke-linejoin:round}
.tm-route{fill:none;stroke:var(--sa-amber,#f4a340);stroke-width:1.6;stroke-dasharray:4 4;opacity:.6}
.tm-frame{fill:none;stroke:rgba(255,255,255,.5);stroke-width:1}.tm-lead{stroke:rgba(255,255,255,.25);stroke-width:1}
.tm-inset{fill:rgba(255,255,255,.04);stroke:rgba(255,255,255,.3);stroke-width:1}.tm-label{fill:var(--muted);font-size:11px;font-weight:700;letter-spacing:.06em}
.tm-mini{fill:rgba(255,255,255,.4)}.tm-mini.done,.tm-mini.open{fill:var(--sa-amber,#f4a340)}
.tm-dot{cursor:pointer}.tm-dot circle,.tm-dot rect{fill:#173a4a;stroke:rgba(255,255,255,.35);stroke-width:1.5}.tm-dot text{fill:var(--ink,#fff);font-weight:800;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.tm-dot.open circle,.tm-dot.open rect{stroke:var(--sa-amber,#f4a340);stroke-width:2.5;animation:tmPulse 1.6s ease-in-out infinite}
.tm-dot.done circle,.tm-dot.done rect{fill:var(--sa-amber,#f4a340);stroke:#fff}.tm-dot.done text{fill:#08202c}.tm-dot text.tm-crown{dominant-baseline:auto}
.tm-dot.bonus rect{fill:#3a2a52;stroke:#c9a6ff}.tm-dot.bonus.done rect{fill:#c9a6ff}
.tm-dot text.tm-stars{fill:#f6d25a;letter-spacing:-.5px;paint-order:stroke;stroke:#08202c;stroke-width:2px}.tm-stars .off{fill:rgba(255,255,255,.25)}
.tm-dot.locked,.tm-dot.card{opacity:.55}.tm-dot:focus-visible circle,.tm-dot:focus-visible rect{stroke:#fff;stroke-width:3}
@keyframes tmPulse{50%{stroke-width:5;stroke-opacity:.5}}@media (prefers-reduced-motion:reduce){.tm-dot.open circle,.tm-dot.open rect{animation:none}}
.tour-map-legend{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;margin:6px 0 0;font-size:12px;color:var(--muted)}.tour-map-legend b{margin-left:auto;color:var(--ink)}
.tm-lg{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:-1px;border:1.5px solid rgba(255,255,255,.35);background:#173a4a}.tm-lg.won{background:var(--sa-amber,#f4a340)}.tm-lg.open{border-color:var(--sa-amber,#f4a340)}.tm-lg.shut{opacity:.5}.tm-lg.bonus{border-radius:2px;transform:rotate(45deg) scale(.85);background:#3a2a52;border-color:#c9a6ff}
.stars{color:#f6d25a;letter-spacing:1px;margin-left:4px}.stars i{font-style:normal;color:rgba(255,255,255,.22)}
.stage.bonus .stage-n{background:rgba(201,166,255,.18);color:#c9a6ff}
.cup-card.rallye-card{width:min(760px,100%)}
.tour-list{margin:0 0 10px}.tour-list summary{cursor:pointer;font-weight:700;font-size:14px;margin-bottom:8px}
.stage-region{margin:6px 0 -2px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.stage .rallye-medal{font-size:11px;padding:1px 8px;margin-left:4px}
.rallye-unlock{margin:6px 0;padding:8px 12px;border-radius:10px;background:rgba(244,163,64,.14);border:1px solid rgba(244,163,64,.4)}
.rallye-rules{margin:4px 0 10px}.rallye-rules summary{cursor:pointer;font-weight:700;font-size:14px}
body.cinema .quick-row,#title.loading .quick-row{display:none}
/* Buttons on the Deutschland-Tour's completion card. */
.tour-win-btns{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
/* the Schnellstart window (main.js) goes step by step,
   1 the styles as big tiles, 2 the waters of one, each with what it costs as a badge: Frei green, Gratis testen amber,
   the card to buy cream outlined, the own card green outlined */
.qs-styles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.qs-style{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:112px;padding:14px;border-radius:14px;text-align:left;cursor:pointer;color:var(--sa-cream);background:rgba(248,244,232,.06);border:1px solid rgba(248,244,232,.18);font:inherit}
.qs-style:hover{background:rgba(248,244,232,.12)}.qs-style.here{border-color:rgba(244,163,64,.6)}
.qs-style .ic{width:26px;height:26px;color:var(--sa-amber);margin-bottom:4px}
.qs-style b{font-size:16px;line-height:1.2}.qs-style>small{font-size:12.5px;opacity:.75}
.qs-style .q-line{margin-top:auto;padding-top:6px;font-size:12px;opacity:.85}
.quick-back{min-height:36px;margin-bottom:10px;padding:0 12px;border-radius:10px;border:1px solid rgba(248,244,232,.3);background:rgba(248,244,232,.06);color:var(--sa-cream);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.quick-back:hover{background:rgba(248,244,232,.12)}
.qs-waters{display:flex;flex-direction:column;gap:8px}
.qs-water{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 14px;border-radius:12px;text-align:left;cursor:pointer;color:var(--sa-cream);background:rgba(248,244,232,.06);border:1px solid rgba(248,244,232,.15);font:inherit}
.qs-water:hover{background:rgba(248,244,232,.12)}
.qs-water .ic{flex:0 0 22px;width:22px;height:22px;color:var(--sa-amber)}
.qs-water>span{min-width:0;flex:1}.qs-water b{display:block;font-size:15px}.qs-water small{display:block;font-size:12.5px;opacity:.75}.qs-water .qs-why{opacity:.6;font-size:11.5px;margin-top:1px}
.qs-water.acc-frei{border-color:rgba(63,174,106,.6)}
.q-badge{flex:0 0 auto;display:inline-block;padding:3px 9px;border-radius:999px;font-style:normal;font-size:12px;font-weight:800;letter-spacing:.02em;white-space:nowrap;line-height:1.3}
.q-badge.q-frei{background:#3fae6a;color:#06261a}
.q-badge.q-karte{border:1.5px solid #3fae6a;color:#9fe0b6}
.q-badge.q-kaufen,.q-badge.q-gutschein{border:1.5px solid rgba(248,244,232,.7);color:var(--sa-cream)}
.q-badge.q-bald{border:1.5px dashed rgba(248,244,232,.45);color:var(--sa-cream);opacity:.7}
.quick-legend{margin:12px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:12px;color:var(--sa-cream);opacity:.85}
.quick-legend .q-badge{font-size:10.5px;padding:1px 7px}.quick-legend>span{white-space:nowrap}
.q-line{display:flex;align-items:center;flex-wrap:wrap;gap:3px 5px}
.q-pills{display:inline-flex;flex-wrap:wrap;gap:3px}.q-pills .q-badge{font-size:10.5px;padding:0 6px;line-height:1.55}

/* Phones upright: the title shows start, profile and water, the game modes as two tiles; the rarer buttons and links sit behind „Mehr“ */
.title-more{display:none!important}
@media (max-width:680px) and (orientation:portrait),(max-aspect-ratio:2/3){
  .title-icons .title-more{display:inline-flex!important}
  #title:not(.more-open) .title-extra,#title:not(.more-open) .foot-extra{display:none!important}
  .quick-row{width:100%;max-width:420px;margin-left:auto;margin-right:auto;margin-top:10px}
  .title-icons{flex-wrap:nowrap}
  #title.more-open .title-icons{flex-wrap:wrap}
}

/* The main menu: Start (with the water it goes to), profile and „Revier & Gewässer“ first, the game modes (Petri-Rallye
   and Schnellstart) as one labelled group after them. On screens held across they stand beside each other, so nothing
   has to be drawn smaller (fitTitle) and every button keeps at least 40 px. */
.game-button--primary .gb-text small{opacity:.8;font-size:12.5px}
.quick-row .modes-label{color:var(--sa-amber,#f4a340);opacity:1}
#spendeSet .settings-h{margin-top:4px}
@media (min-width:681px) and (orientation:landscape),(max-height:500px) and (orientation:landscape){
  .hero-content{max-width:min(100%,764px);display:grid;grid-template-columns:minmax(0,370px) minmax(0,370px);column-gap:24px;align-content:center}
  .hero-content>*{grid-column:1/-1;min-width:0}
  .hero-content>.hero-actions{grid-column:1;grid-row:20;align-self:start;margin-top:0;padding-top:0;max-width:none;flex-direction:column}
  .hero-content>.quick-row{grid-column:2;grid-row:20;align-self:start;margin-top:0;max-width:none}
  .quick-row .gb-text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hero-content>.load-tip{grid-row:21}.hero-content>.load-game{grid-row:22}.hero-content>.load-pic{grid-row:23}.hero-content>#pushHint{grid-row:24}.hero-content>#installHint{grid-row:25}
  .title-note{margin-bottom:16px}
  #title.loading .hero-content>.hero-actions{grid-row:auto}
  .hero-content>.hero-actions{grid-row:20/span 2}.hero-content>#saveHint{grid-column:2;grid-row:21;align-self:start;max-width:none} /* beside the buttons, under the Schnellstart */
}
/* desktop and tablets held across have the height: the Schnellstart right under the buttons, in their column (not alone
   beside them); the save card beside the buttons. Phones held across keep the two columns above */
@media (min-width:681px) and (orientation:landscape) and (min-height:501px){
  .hero-content>.hero-actions{grid-row:20}
  .hero-content>.quick-row{grid-column:1;grid-row:21;margin-top:10px}
  .quick-row .quick-label{display:none} /* as on phones: the button says it; the column stays short enough to keep its size */
  .title .hero{padding-bottom:12px}.title-note{margin-top:16px;margin-bottom:12px}
  .hero-content>#saveHint{grid-row:20}
  .hero-content>.load-tip{grid-row:22}.hero-content>.load-game{grid-row:23}.hero-content>.load-pic{grid-row:24}.hero-content>#pushHint{grid-row:25}.hero-content>#installHint{grid-row:26}
}
@media (min-width:681px) and (orientation:landscape) and (min-height:501px) and (max-height:800px){.hero{padding-top:14px;padding-bottom:14px}.title-note{margin-top:12px;margin-bottom:12px}}
/* phones held across: the brand small, no note, the footer in one line (the rarer links behind „Mehr“ up top) */
@media (max-height:500px) and (orientation:landscape){
  .title-note{display:none}
  .hero{padding-top:max(8px,env(safe-area-inset-top))}
  .brand-subline{margin-bottom:10px}
  .hero-actions{gap:6px}.hero-actions .profile-cta,.game-button{min-height:44px}
  .game-button .gb-text small{font-size:12px;margin-top:1px}
  .quick-row{gap:5px}
  .title-icons .title-more{display:inline-flex!important}
  #title:not(.more-open) .foot-extra{display:none!important}
  .title-foot .link-btn{min-height:44px}
  .title-icons button{min-width:44px;justify-content:center;padding:4px 10px}.title-icons .ti-label{display:none} /* up by the settings only the icons (their names as aria-label and title), so the row stays clear of the brand */
}
/* phones upright: a little less air above and between, so the buttons keep their size */
@media (max-width:680px) and (orientation:portrait),(max-aspect-ratio:2/3){
  .hero{padding-top:2vh}.title .eyebrow{margin-bottom:8px}
  .title .hero-actions{padding-top:12px}.quick-row{margin-top:8px}.title-icons{margin-top:12px}
}
/* phones upright and small: the note gives way to the buttons */
@media (max-width:680px) and (orientation:portrait) and (max-height:700px){.title-note{display:none}}
/* the chips of the top bar for time, month and weather open the clock menu (clockui.js) */
.chips .day-chip{pointer-events:auto;cursor:pointer;transition:border-color .15s}.chips .day-chip:hover,.chips .day-chip:focus-visible{border-color:var(--sa-amber,#f4a340);outline:none}
.clock-row .seg.month-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
/* Deutschland-Tour: the Aufträge in the tasks card and in a water's card, the big Stern counter, the progress bar with
   the waters' thresholds, the card for a new Stern (rallyeui.js) */
.tasks-head.tour-head{margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}.tasks-head.tour-head b{font-size:15px}
.tour-quests.shut{opacity:.5}.tasks-card .tour-quests li.done i,.tour-quests li.done i{color:#f6d25a}.tasks-card .tour-quests li i{color:rgba(255,255,255,.4)} /* an open Auftrag: a grey outline, only a done one is gold */
.tour-quests.big{list-style:none;margin:6px 0 10px;padding:0;display:grid;gap:7px}
.tour-quests.big li{display:grid;grid-template-columns:24px 1fr auto auto;gap:8px;align-items:center;padding:9px 12px;border-radius:11px;border:1px solid var(--line);background:rgba(255,255,255,.03);font-weight:650}
.tour-quests.big li i{font-style:normal;font-size:18px;color:rgba(255,255,255,.35);text-align:center}.tour-quests.big li.done{border-color:rgba(246,210,90,.5);background:rgba(246,210,90,.08)}.tour-quests.big li.done i{color:#f6d25a}
.tour-quests.big li small{font-variant-numeric:tabular-nums;color:var(--muted);font-size:12px}
.qbar{display:block;width:70px;height:6px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden}.qbar b{display:block;height:100%;background:#f6d25a;border-radius:99px}
.tour-hero{display:flex;gap:14px;align-items:center;margin:0 0 10px}.tour-hero p{margin:0;font-size:14px;line-height:1.45}
.tour-count{flex:0 0 auto;display:grid;place-items:center;width:86px;height:86px;border-radius:50%;background:radial-gradient(circle at 35% 30%,rgba(246,210,90,.35),rgba(244,163,64,.12));border:2px solid rgba(246,210,90,.7);text-align:center}
.tour-count b{font:800 34px/1 var(--font-cond,inherit);color:#f6d25a}.tour-count small{display:block;font-size:11px;color:var(--muted);margin-top:-14px}
.tour-progress{position:relative;height:10px;border-radius:99px;background:rgba(255,255,255,.08);margin:4px 4px 14px}.tour-progress i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#f4a340,#f6d25a);transition:width .6s}
.tour-progress em{position:absolute;top:-3px;width:4px;height:16px;margin-left:-2px;border-radius:2px;background:rgba(255,255,255,.3)}.tour-progress em.on{background:#fff}
@media (max-width:520px){.tour-hero{flex-direction:column;align-items:flex-start}.tour-count{width:72px;height:72px}}
.tour-win .tw-stars{display:flex;justify-content:center;gap:6px;margin:10px 0 6px}.tw-stars span{font-size:44px;line-height:1;color:rgba(255,255,255,.18)}
.tw-stars span.on{color:#f6d25a;text-shadow:0 0 18px rgba(246,210,90,.6)}.tw-stars span.new{animation:twPop .7s cubic-bezier(.2,1.8,.4,1) calc(.25s + var(--k) * .15s) both}
@keyframes twPop{0%{transform:scale(0) rotate(-40deg);opacity:0}100%{transform:none;opacity:1}}
.tw-all{color:#f6d25a!important;font-weight:800;font-size:14px!important}.tw-total{font-weight:700;color:var(--ink,#fff)!important}
.tw-open{margin:8px 0 12px}.tw-open small{letter-spacing:.18em;font-weight:800;color:#8fd694;font-size:10px}.tw-open ul{margin:6px 0 0}
@media (prefers-reduced-motion:reduce){.tw-stars span.new{animation:none}}

/* Unterwegs: the screen between two waters (travel.js). Shown from the first frame of a page that arrives with
   ?schnell= (html.travel, set in index.html's head), so the start screen never flashes up on the way */
.travel-screen{display:none;position:fixed;inset:0;z-index:200;background:radial-gradient(ellipse at 50% 30%,#14506a 0%,#0b2f40 55%,#071c27 100%);color:var(--ink,#fff);overflow:hidden}
html.travel .travel-screen{display:block}html.travel #title{visibility:hidden}
.travel-screen.out{animation:tvOut .45s ease-in forwards}@keyframes tvOut{to{opacity:0}}
.travel-map{position:absolute;inset:0}.tv-map{width:100%;height:100%;display:block}
.tv-land{fill:rgba(255,255,255,.06);stroke:rgba(255,255,255,.25);stroke-linejoin:round}.tv-dot{fill:rgba(255,255,255,.28)}
.tv-route{fill:none;stroke:rgba(255,255,255,.3);stroke-width:1.2;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}
.tv-done{fill:none;stroke:var(--sa-amber,#f4a340);stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke}
.tv-from{fill:rgba(255,255,255,.5)}.tv-name{fill:rgba(255,255,255,.6);text-anchor:middle;font-weight:700;paint-order:stroke;stroke:#0b2f40;stroke-linejoin:round}.tv-name.to{fill:#f6d25a}.tv-to{fill:var(--sa-amber,#f4a340)}.tv-to-ring{fill:none;stroke:var(--sa-amber,#f4a340);stroke-width:2;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:center;animation:tvRing 1.6s ease-out infinite}
@keyframes tvRing{from{transform:scale(1);opacity:.9}to{transform:scale(3.2);opacity:0}}
.tv-car{fill:#0b2f40;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}
.travel-card{position:absolute;left:50%;bottom:max(28px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(460px,calc(100vw - 32px));padding:18px 20px;border-radius:18px;background:rgba(7,28,39,.82);border:1px solid rgba(244,163,64,.45);backdrop-filter:blur(8px);box-shadow:0 20px 60px rgba(0,0,0,.45);text-align:center}
.travel-eyebrow{letter-spacing:.2em;font-weight:800;font-size:10.5px;color:var(--sa-amber,#f4a340)}
.travel-card h2{margin:6px 0 4px;font-size:clamp(22px,5vw,30px)}.travel-sub{margin:0;font-size:13.5px;color:var(--muted)}.travel-km{margin:4px 0 12px;font-size:13px;font-weight:700;color:var(--sa-cream,#f0ce95)}
.travel-load{display:flex;justify-content:space-between;align-items:baseline;margin:0 2px 6px;font-size:13px;font-weight:700;color:var(--ink,#fff)}.travel-load b{font-variant-numeric:tabular-nums;color:#f6d25a}
.travel-bar{position:relative;height:12px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden;box-shadow:inset 0 1px 3px rgba(0,0,0,.4)}
.travel-bar i{position:relative;display:block;height:100%;width:0;border-radius:99px;background:repeating-linear-gradient(-45deg,rgba(255,255,255,.22) 0 8px,transparent 8px 16px),linear-gradient(90deg,#f4a340,#f6d25a);background-size:22.6px 22.6px,100% 100%;animation:tvStripes .7s linear infinite;transition:width .3s ease-out;box-shadow:0 0 12px rgba(246,210,90,.55)}
.travel-bar i::after{content:"";position:absolute;top:0;bottom:0;right:0;width:40px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.7));border-radius:99px;animation:tvGlow 1.2s ease-in-out infinite}
.travel-bar::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 0,rgba(255,255,255,.12) 50%,transparent 100%);background-size:40% 100%;background-repeat:no-repeat;animation:tvSweep 1.8s ease-in-out infinite}
@keyframes tvStripes{to{background-position:22.6px 0,0 0}}@keyframes tvGlow{50%{opacity:.25}}@keyframes tvSweep{from{background-position:-40% 0}to{background-position:140% 0}}
@media (prefers-reduced-motion:reduce){.travel-bar i,.travel-bar i::after,.travel-bar::after{animation:none}}
.travel-line{margin:10px 0 0;font-size:13.5px;color:var(--muted);min-height:1.3em}
@media (prefers-reduced-motion:reduce){.tv-to-ring{animation:none}.travel-screen.out{animation:none;opacity:0}}
.travel-pics{position:absolute;left:50%;top:max(5vh,env(safe-area-inset-top));width:min(420px,78vw);margin:0;padding:10px 10px 0;background:#f5efe2;border-radius:4px;box-shadow:0 18px 50px rgba(0,0,0,.55);transform:translateX(-50%) rotate(var(--tilt,-2deg));transition:transform .8s cubic-bezier(.2,1.4,.4,1),opacity .4s;opacity:0}
.travel-pics.shown{opacity:1}.tp-frame{position:relative;aspect-ratio:16/10;overflow:hidden;background:#0b2f40}
.tp-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s}.tp-frame img.on{opacity:1;animation:tpZoom 6s ease-out both}.tp-frame img.jens{object-position:50% 25%}
@keyframes tpZoom{from{transform:scale(1.12)}to{transform:scale(1)}}
.travel-pics figcaption{padding:9px 6px 11px;font-family:var(--font-hand);font-size:21px;font-weight:600;line-height:1.15;color:#2b3a40;text-align:center;min-height:2.6em}
@media (min-aspect-ratio:6/5){.travel-pics{left:max(4vw,24px);top:max(8vh,24px);width:min(440px,38vw);transform:rotate(var(--tilt,-2deg))}.travel-card{left:auto;right:max(4vw,24px);transform:none;width:min(440px,44vw)}}
@media (max-height:640px){.travel-pics{width:min(300px,60vw)}}
/* Anschlag üben in the travel card (travel.js), under the loading bar: lower than on the start screen */
.travel-game{max-width:none;margin:12px 0 0}.travel-game canvas{height:84px}.travel-game .lg-say{font-size:12.5px;min-height:2.6em;color:var(--muted)}
@media (max-height:760px){.travel-game canvas{height:64px}.travel-game .lg-say{min-height:1.4em}}
@media (prefers-reduced-motion:reduce){.tp-frame img.on{animation:none}.travel-pics{transition:none}}

/* the Tour window as a game: Pike with a speech bubble, a status bar, the big "Los" button, the angler as a pin on the map */
.tour-mascot{display:flex;align-items:flex-end;gap:8px;margin:0 0 12px}
.pike{flex:0 0 auto;width:150px;height:auto;align-self:center;filter:drop-shadow(0 6px 10px rgba(0,0,0,.35));transform-origin:60% 60%;animation:pikeBob 2.6s ease-in-out infinite}
@keyframes pikeBob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(2deg)}}
.tm-bubble{position:relative;flex:1;margin:0 0 18px;padding:10px 14px;border-radius:16px 16px 16px 4px;background:#F8F4E8;color:#10222b;font-size:14.5px;line-height:1.42;box-shadow:0 8px 22px rgba(0,0,0,.3);animation:bubbleIn .45s cubic-bezier(.2,1.4,.4,1) both}
.tm-bubble::before{content:'';position:absolute;left:-9px;bottom:8px;border:9px solid transparent;border-right-color:#F8F4E8;border-left:0}
.tm-bubble>b:first-child{display:block;font:700 12px/1 var(--font-cond,inherit);letter-spacing:.12em;text-transform:uppercase;color:#b4620f;margin-bottom:4px}
@keyframes bubbleIn{from{opacity:0;transform:scale(.85) translateY(8px)}to{opacity:1;transform:none}}
.tour-hud{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}
.th-stars,.th-chip{display:inline-flex;align-items:baseline;gap:6px;padding:6px 12px;border-radius:999px;background:rgba(244,163,64,.14);border:1px solid rgba(244,163,64,.45)}
.th-stars i{font-style:normal;color:#f6d25a;font-size:20px;text-shadow:0 0 10px rgba(246,210,90,.6)}.th-stars b{font:800 24px/1 var(--font-cond,inherit);color:#f6d25a}.th-stars small,.th-chip{font-size:12.5px;color:var(--muted)}.th-chip b{color:var(--ink,#fff);font-size:15px}
.th-chip{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18)}
.btn.tour-go{display:flex;flex-direction:column;align-items:center;width:100%;margin:2px 0 16px;padding:12px 16px;font-size:20px;font-weight:800;border-radius:16px;background:linear-gradient(180deg,#F7B256,#E8902A);border:1px solid #FFD08F;color:#10222b;box-shadow:0 5px 0 #9c5a14,0 12px 24px rgba(7,28,40,.4);animation:startPulse 2.8s ease-in-out infinite}
.btn.tour-go:hover{background:linear-gradient(180deg,#FFC06A,#F09A33);transform:translateY(-1px)}.btn.tour-go:active{transform:translateY(3px);box-shadow:0 2px 0 #9c5a14}
.btn.tour-go small{font-size:13px;font-weight:600;opacity:.85;margin-top:2px}
.tour-free{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0 0 10px;padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.05);font-size:13px;line-height:1.4}
.tm-me path,.tm-me circle{fill:#F4A340;stroke:#fff;stroke-width:1.5}.tm-me text{fill:#10222b;font-weight:800;text-anchor:middle;dominant-baseline:central}
.tm-me-in{animation:pinBob 1.4s ease-in-out infinite;transform-box:fill-box}
@keyframes pinBob{50%{transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.pike,.tm-bubble,.btn.tour-go,.tm-me-in{animation:none}}
.tour-mascot{align-items:center}.tm-bubble{margin-bottom:0}
@media (max-width:420px){.pike{width:112px}.tm-bubble{font-size:13.5px}}
.game-button .pike-mini{width:68px;margin:-8px -6px -8px -10px;animation-duration:3.2s}
.game-button--primary:not(:disabled) img.pike,.game-button img.pike{filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}

/* Profile preview progress and form navigation. */
.stage-xp{position:relative;display:block;width:min(280px,80%);height:16px;margin-top:6px;border-radius:999px;background:rgba(8,32,43,.8);border:1px solid rgba(244,163,64,.6);overflow:hidden}
.stage-xp i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#E8902A,#FFD08F);border-radius:999px;min-width:6px}
.stage-xp em{position:relative;display:block;font:700 10.5px/16px var(--sans,inherit);font-style:normal;text-align:center;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.8)}
.stage-rank{max-width:60%;font-size:10px;letter-spacing:.06em;background:rgba(244,163,64,.12);color:var(--sa-cream);border-color:rgba(244,163,64,.4)}
.pf-tour{margin:-4px 0 10px;font-size:13px;color:var(--muted)}
#profileModal .jtabs button{flex:1 1 0;padding:10px 6px;border-radius:12px;font-size:13.5px}
#profileModal .jtabs button.active{background:linear-gradient(180deg,#F7B256,#E8902A);border-color:#FFD08F;color:#10222b;box-shadow:0 3px 0 #9c5a14}
#pfSubmit{background:linear-gradient(180deg,#F7B256,#E8902A);border-color:#FFD08F;color:#10222b;font-weight:800;box-shadow:0 4px 0 #9c5a14}
#pfSubmit:active{transform:translateY(3px);box-shadow:0 1px 0 #9c5a14}
/* The preview has its own header and canvas; rank and experience never cover the figure. */
@media (max-width:820px) and (orientation:portrait){
  .profile-card{--pf-top:max(12px,env(safe-area-inset-top));grid-template-rows:clamp(270px,38dvh,380px) minmax(0,1fr)}
  .stage-top{top:calc(var(--pf-top) + var(--pf-off,0px));left:12px;right:12px}
  .pf-tour{display:none}
  .profile-side,.profile-card.stage-off .profile-side,html.app-ui .profile-card.stage-off .profile-side{padding-top:0}
  .profile-side h2{margin:var(--side-top,14px) 0 8px}.profile-card.stage-off{--side-top:max(14px,env(safe-area-inset-top))}
  .profile-side{overflow:auto;overscroll-behavior:contain}.profile-side>*{flex-shrink:0}
  .profile-panes{flex:none;overflow:visible;padding-bottom:16px}
  #profileModal .jtabs{position:sticky;top:0;z-index:2;margin:0 -16px 10px;padding:6px 16px 8px;background:var(--panel-solid)}
  .profile-side .profile-actions{position:sticky;bottom:0;z-index:2;margin-top:auto}
}
@media (max-width:820px) and (orientation:portrait) and (max-height:700px){
  .profile-card{grid-template-rows:clamp(180px,32dvh,220px) minmax(0,1fr)}
}
/* the Tour on a phone: Pike smaller, the road from edge to edge, and the way on („Los …“) always at hand at the bottom
   while the map scrolls (it moved behind the road: sticky, it sits at the foot of the screen until the road ends);
   a water's card: its buttons one under the other, the main one as big and orange as „Los“ */
@media (max-width:600px){
  .tour-game{display:flex;flex-direction:column}
  .tour-mascot{margin-bottom:10px}.tour-mascot .pike{width:80px}.tour-mascot .tm-bubble{font-size:13.5px;line-height:1.38;padding:9px 12px}
  .tour-path{margin:2px -16px 14px;border-radius:0}
  .btn.tour-go{order:1;position:sticky;z-index:3;bottom:calc(10px + env(safe-area-inset-bottom));margin:-4px 0 14px;box-shadow:0 5px 0 #9c5a14,0 12px 30px rgba(0,0,0,.6)}
  .tour-game>.rallye-rules,.tour-game>.modal-actions{order:2}
  .rallye-card .modal-actions{flex-direction:column;align-items:stretch}
  .rallye-card .modal-actions .btn{width:100%;min-height:48px}
}
.rallye-card .modal-actions .btn-primary{background:linear-gradient(180deg,#F7B256,#E8902A);border-color:#FFD08F;color:#10222b;font-weight:800;box-shadow:0 4px 0 #9c5a14}
.rallye-card .modal-actions .btn-primary:active{transform:translateY(3px);box-shadow:0 1px 0 #9c5a14}
.tw-next{margin:6px 0 2px;font-size:14px}
/* Deutschland-Tour (rallyeui.js updateTourChip): the water's Sterne and what is still missing, as a chip in the top bar, on phones as a pill (the Cup's place: never both) */
.chips .tour-chip{background:rgba(246,210,90,.14);border-color:rgba(246,210,90,.5);color:#f6e3a0}
.tour-pill{border-color:rgba(246,210,90,.55)!important;color:#f6e3a0!important}
.chips .tour-chip.lead,.tour-pill.lead{background:rgba(88,170,110,.4)!important;border-color:#7fd197!important;color:#eafff0!important}
.tc-stars{color:#f6d25a;letter-spacing:1px;font-weight:400}.tc-stars i{font-style:normal;color:rgba(255,255,255,.28)}
.tour-goal{margin:8px 0 2px;padding:8px 11px;border-radius:10px;background:rgba(246,210,90,.1);border:1px solid rgba(246,210,90,.35);font-size:13px;line-height:1.45}
.tasks-card .tour-goal{font-size:12px;padding:6px 9px}
.tw-next.tw-done{padding:8px 11px;border-radius:10px;background:rgba(88,170,110,.18);border:1px solid rgba(127,209,151,.5)}
.tw-count{font-variant-numeric:tabular-nums;opacity:.85}
.tour-quests .tour-tip{display:block;font-style:normal;font-size:11px;opacity:.75;margin-top:2px}
/* a phone, the camera below the surface in the fight: the fish is the picture. The cards over it step back (the reel
   ring keeps showing the line's tension), the messages wait */
@media (max-width:760px){
  .fight-top,#lineHud,#toasts{transition:opacity .25s}
  body:has(#uwOverlay:not(.hidden)) .fight-top,body:has(#uwOverlay:not(.hidden)) #lineHud{opacity:.18}
  body:has(#uwOverlay:not(.hidden)) #toasts{opacity:0}
}
/* ---------- the Deutschland-Tour as a game path (tourmap.js tourPathHtml) ---------- */
.tour-path{position:relative;margin:6px -6px 14px;border-radius:18px;background:radial-gradient(ellipse at 50% 0,rgba(90,160,140,.16),transparent 70%),linear-gradient(180deg,rgba(40,90,70,.22),rgba(20,50,60,.18));overflow:hidden}
.tp-road{position:absolute;inset:0;width:100%;height:100%}
.tp-road path{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round}
.tp-road-bed{stroke:rgba(10,30,40,.55);stroke-width:22}
.tp-road-line{stroke:rgba(255,255,255,.22);stroke-width:3;stroke-dasharray:2 12}
.tp-road-done{stroke:#f4a340;stroke-width:8;opacity:.9}
.tp-node{position:absolute;transform:translate(-50%,-30px);display:flex;flex-direction:column;align-items:center;width:132px;background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tp-disc{position:relative;display:grid;place-items:center;width:60px;height:60px;border-radius:50%;font:800 24px/1 var(--font-cond,inherit);background:#1d3a48;border:3px solid rgba(255,255,255,.25);box-shadow:0 5px 0 rgba(0,0,0,.35);transition:transform .12s}
.tp-node:active .tp-disc{transform:translateY(3px);box-shadow:0 2px 0 rgba(0,0,0,.35)}
.tp-node.open .tp-disc{background:linear-gradient(180deg,#2f6f8a,#1f4e63);border-color:#f4a340;color:#fff}
.tp-node.done .tp-disc{background:radial-gradient(circle at 35% 30%,#ffe9a0,#f2b33d 60%,#c98417);border-color:#fff3c4;color:#5a3300;font-size:28px}
.tp-node.locked .tp-disc{background:#15303c;border-color:rgba(255,255,255,.12);font-size:22px;filter:saturate(.6)}
.tp-node.card .tp-disc{background:#2a3c46;border-color:rgba(244,163,64,.5);font-size:24px}
.tp-node.bonus .tp-disc{width:44px;height:44px;border-radius:12px;transform:rotate(45deg);font-size:18px;background:#4b3277;border-color:#c9a6ff;color:#fff}
.tp-node.locked::after{content:none}.tp-node.locked{opacity:1;filter:none}.tp-node.locked .tp-disc{color:#c9d6dc}.tp-node.locked .tp-name,.tp-node.locked .tp-sub{opacity:.75}
.tp-i{display:block}.tp-node.bonus .tp-i{transform:rotate(-45deg)}
.tp-node.bonus.done .tp-disc{background:radial-gradient(circle,#d9c2ff,#7d55c7);color:#2a1050}
.tp-node.bonus.locked .tp-disc{background:#2a2340;border-color:rgba(201,166,255,.3)}
.tp-node.me .tp-disc{animation:tpBounce 1.1s ease-in-out infinite;box-shadow:0 0 0 6px rgba(244,163,64,.25),0 0 22px rgba(244,163,64,.55),0 5px 0 rgba(0,0,0,.35)}
.tp-crown{position:absolute;top:-16px;right:-10px;font-size:20px;font-style:normal}
.tp-stars{margin-top:4px;font-size:15px;letter-spacing:1px;color:#f6d25a;text-shadow:0 1px 2px rgba(0,0,0,.6)}.tp-stars i{font-style:normal;color:rgba(255,255,255,.22)}
.tp-name{margin-top:2px;font-weight:800;font-size:14px;line-height:1.15;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.7)}
.tp-node.locked .tp-name{opacity:.6}
.tp-sub{font-size:11.5px;color:#ffd79a;opacity:.9}.tp-node.locked .tp-sub{color:#9fb4bf}
.tp-me{position:absolute;top:-8px;left:calc(50% + 34px);width:84px;pointer-events:none;animation:tpSwim 2.4s ease-in-out infinite}
.tp-node.tp-l .tp-me{left:auto;right:calc(50% + 34px);transform:scaleX(-1)}
.tp-me .pike{width:84px!important;height:auto;animation:none}
.tp-goal{position:absolute;left:50%;transform:translate(-50%,-50%);white-space:nowrap;font-weight:800;font-size:13px;color:#f6d25a;opacity:.85}
@keyframes tpBounce{50%{transform:translateY(-5px)}}
@keyframes tpSwim{50%{translate:0 -4px}}
@media (prefers-reduced-motion:reduce){.tp-node.me .tp-disc,.tp-me{animation:none}}
/* title screen: a guest with catches is offered the account (the same Fangbuch on every device); quiet, one tap, "later" keeps it away for ten days */
.save-hint{position:relative;display:flex;flex-direction:column;gap:8px;margin-top:12px;max-width:370px;padding:10px 40px 10px 12px;border-radius:14px;border:1px solid rgba(248,244,232,.28);background:rgba(8,37,52,.72);color:var(--sa-cream);backdrop-filter:blur(7px);text-align:left}
.save-hint.hidden{display:none}
.save-hint .sh-text{display:flex;flex-direction:column;gap:2px;font-size:12.5px;line-height:1.3}
.save-hint .sh-text b{font-size:14px}
.save-hint .sh-btns{display:flex;gap:8px}
.save-hint .login-btn{flex:1 1 0;min-height:38px;font-size:14px;border-radius:9px}
.save-hint .close{position:absolute;top:6px;right:4px;width:30px;height:30px;padding:0;border:0;background:none;color:inherit;opacity:.75}
@media (max-width:760px){.save-hint{margin-left:auto;margin-right:auto;width:100%;max-width:420px}}
/* small screens: only the line and the buttons */
@media (max-height:500px) and (orientation:landscape),(max-height:700px) and (orientation:portrait){.save-hint{margin-top:8px;padding:7px 38px 7px 10px;gap:6px}.save-hint .sh-text>span{display:none}.save-hint .login-btn{min-height:34px}}
/* the toast after a few catches: its button opens the Konto */
.toast .toast-act{margin-left:6px;padding:3px 9px;border-radius:8px;border:1px solid rgba(248,244,232,.5);background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer}

/* Phones upright: the start screen was so full that fitTitle() drew all of it smaller, too small to read. Less on it,
   so it fits at full size: no line above the name, the Wochenfisch in one line, the profile (once there is one) as
   the round button up by the settings, the Fangbuch card as one row, the Schnellstart without its heading. */
.profile-chip{display:none;border-radius:50%;background:var(--sa-amber);border-color:transparent;color:var(--sa-deep);font:800 19px var(--font-brand)}
.profile-chip:hover{background:var(--sa-amber)}
.save-hint .sh-short{display:none}
.save-hint .sh-btns{align-items:center}
.save-hint{z-index:2} /* its answer lies over the buttons around it */
.save-hint .sh-q{flex:none;width:28px;height:28px;padding:0;border-radius:50%;border:1.5px solid rgba(248,244,232,.6);background:none;color:var(--sa-cream);font:700 15px/1 var(--sans);position:relative}
.save-hint .sh-q::after{content:"";position:absolute;inset:-8px} /* a finger-sized target around the small circle */
.save-hint .sh-q[aria-expanded="true"]{background:var(--sa-cream);color:var(--sa-deep)}
/* the answer floats above the card: inside it the start screen would grow and fitTitle() would draw all of it smaller */
.save-hint .sh-why{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:3;margin:0;padding:12px 14px;border-radius:14px;border:1px solid rgba(248,244,232,.35);background:#0b3346;box-shadow:0 10px 30px rgba(0,0,0,.45);font-size:14px;line-height:1.45}
.save-hint .sh-why.hidden{display:none}
.save-hint .sh-why b{color:#FFCB81}.save-hint .sh-why .sh-p{display:block;margin-top:8px}
/* the login buttons quiet here, in the card's own colours: the white one outshone the buttons to play */
.save-hint .login-btn.google,.save-hint .login-btn.apple{background:rgba(248,244,232,.1);color:var(--sa-cream);border:1px solid rgba(248,244,232,.4)}
.save-hint .login-btn:hover{background:rgba(248,244,232,.18)}
@media (max-width:680px) and (orientation:portrait),(max-aspect-ratio:2/3){
  .title .eyebrow{display:none}
  .title-week{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.title-week .tw-more{display:none}
  #title.has-profile .profile-chip{display:grid}
  #title.has-profile .hero-actions:not(.first-run) .profile-cta{display:none}
  .quick-row .quick-label{display:none}
  .save-hint{flex-direction:row;align-items:center;gap:10px;margin-top:10px;padding:8px 36px 8px 12px}
  .save-hint .sh-text{flex:1;min-width:0}.save-hint .sh-text>span,.save-hint .sh-text .sh-long{display:none}.save-hint .sh-text .sh-short{display:inline}
  .save-hint .sh-btns{flex:none}.save-hint .login-btn{flex:none;min-height:40px;padding:0 12px}
  .save-hint .close{top:13px}
}
/* Konto: in the Einstellungen; a dot by it while nobody is logged in. In the Fangbuch a link leads there. */
.jtabs button.todo::after,.settings-h.todo::after{content:"";display:inline-block;width:8px;height:8px;margin-left:6px;border-radius:50%;background:var(--sa-amber);vertical-align:middle}
.jtabs .jtab-link{background:none;border-style:dashed}
.settings-page .account-box{margin-top:0;border-top:0;padding-top:0}

.kept-tag{display:inline-block;font-size:10px;font-weight:600;padding:1px 6px;border-radius:9px;margin-left:4px;background:rgba(150,200,220,.14);color:#bfe3ef;vertical-align:1px;white-space:nowrap}.kept-tag.kept{background:rgba(224,180,111,.16);color:#f2cf95}
/* Einstellungen and Angelshop: a fixed height, anchored at the top. A card as tall as its tab, centred in the window,
   moved its tab bar up and down at every switch, and the next tap missed it; now only the content below scrolls */
.settings-card,.shop-card{margin:0;height:680px}
.shop-card{height:800px;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden}
.shop-card>.close{position:absolute;float:none;margin:0;top:14px;right:14px}
.shop-card>.shop-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;margin:0 -6px;padding:2px 6px 4px}
@media (max-width:760px){.shop-card{max-height:calc(100dvh - 16px)}}
/* desktop: nothing cut off. The methods' fish and the Revier line take a second line instead of "Hecht & Ba…" */
@media (min-width:761px){
  .tabs .tab small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.2}
  .zone-card span{white-space:normal;overflow:visible;text-overflow:clip}
}
.lure-card b{hyphens:manual;overflow-wrap:normal;text-align:center}
body:has(#depthModal:not(.hidden)) #labels{visibility:hidden} /* the 3D scene's labels shone through the chart's water */
.shop-item .btn.confirm{background:var(--sa-amber);color:#3b2207;animation:keepFlash .4s ease}

/* Quiet navigation on every device; the return button always remains reachable. */
#hud.bars-off .topbar,#hud.bars-off .fish-chips{opacity:0;transform:translateY(-14px);pointer-events:none}
#hud.bars-off .bars-show{display:flex;width:auto;min-height:36px;padding:6px 12px;gap:6px;font-size:11px;font-weight:700;opacity:1}
#hud.bars-off .clock-pill{display:none!important}
#hud[data-mode=fight] .sonar-panel,#hud[data-mode=catch] .sonar-panel,#hud[data-mode=fight] #sonarBtn{display:none!important}
#hud[data-mode=fight] .phase-pill,#hud[data-mode=fight] .cup-pill,#hud[data-mode=fight] .timelapse-pill{display:none!important}
#hud[data-mode=fight] #fightRod{display:none}
#hud[data-mode=fight] .fight-top{width:min(390px,calc(100% - 24px));padding:6px 12px}
#hud[data-mode=fight].bars-off:not(.tut) .fight-top{top:max(10px,env(safe-area-inset-top,0px));max-width:calc(100% - 176px)}
@media (max-width:760px) and (min-height:501px){
  #hud[data-mode=fight]:not(.tut){--ft:max(10px,env(safe-area-inset-top,0px))}
  #hud[data-mode=fight]:not(.tut):not(.bars-off){--ft:120px}
  #hud[data-mode=fight]:not(.tut) .topbar{display:flex}
  #hud[data-mode=fight].bars-off:not(.tut) .fight-top{left:12px;transform:none}
}
/* Portrait drill: one flowing card below navigation, metrics below the instruction. */
@media(max-width:760px) and (orientation:portrait){
  #hud[data-mode=fight]:not(.tut) .fight-top{top:112px;left:12px;right:12px;transform:none;width:auto;max-width:none}
  #hud[data-mode=fight].bars-off:not(.tut) .fight-top{top:56px;max-width:none}
  #hud[data-mode=fight] .fight-top #lineHud{position:static;inset:auto;transform:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px;margin-top:10px;padding:8px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;text-align:center}
  #hud[data-mode=fight] .fight-top #lineHud.hidden{display:none}
  #hud[data-mode=fight]:not(.tut) .side-btn{top:var(--drill-bottom,320px);transform:none}
}

/* The active method's main action sits under the right thumb, like spinning.
   Hegene: lift, fly: strip, herring rig: jig, float: bring in; bottom rigs: reel. */
@media (pointer:coarse){
  #hud #fishHud #hegeneActions.out,#hud #fishHud #rigActions.out,#hud #fishHud #poseActions.out{display:flex;flex-wrap:nowrap;left:12px;right:12px;width:auto;transform:none;align-items:flex-end;gap:8px;padding:0 max(14px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px));background:none;border:0;box-shadow:none;pointer-events:none}
  #hegeneActions.out button,#rigActions.out button,#poseActions.out button{min-width:0;pointer-events:auto;flex:0 1 auto;min-height:48px;padding:9px 12px;font-size:12px}
  #hegeneActions.out #liftBtn,#rigActions.out #rigStripBtn,#poseActions.out #floatBtn,
  #rigActions.out[data-method=paternoster] #rigMendBtn{order:10;margin-left:auto;flex:0 0 104px;width:104px;height:104px;border-radius:50%;font-size:14px;font-weight:800;white-space:normal;box-shadow:0 0 0 5px rgba(255,255,255,.1),0 8px 24px rgba(0,0,0,.35)}
  #rigActions.out[data-method=paternoster] #rigStripBtn{order:0;margin-left:0;flex:0 1 auto;width:auto;height:auto;min-height:48px;border-radius:12px;font-size:12px;box-shadow:none}
}
@media (pointer:coarse) and (max-height:500px){
  #hegeneActions.out #liftBtn,#rigActions.out #rigStripBtn,#poseActions.out #floatBtn,#rigActions.out[data-method=paternoster] #rigMendBtn{width:80px;height:80px;flex-basis:80px;font-size:12px}
}

/* Dialog navigation has its own non-shrinking row, independent of the card layout. */
.modal-nav{position:sticky;top:0;z-index:5;display:flex;flex:0 0 auto;align-items:center;align-self:stretch;justify-content:flex-end;grid-column:1 / -1;margin:0 0 10px;padding:0 0 8px;background:var(--panel-solid);isolation:isolate}
.modal-nav > .close{position:static;inset:auto;float:none;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;background:var(--panel-solid)}
/* App dialogs: a separate sticky navigation row keeps Back out of headings and
   purchasing content, including flex layouts and the landscape photo grid. */
html.app-ui .modal-nav{justify-content:flex-start;position:sticky;top:0;z-index:5;display:flex;flex:0 0 auto;align-items:center;align-self:stretch;grid-column:1 / -1;margin:0 0 10px;padding:calc(8px + var(--dialog-nav-safe,0px)) 0 8px;background:var(--panel-solid);isolation:isolate}
html.app-ui .modal-nav > .close{position:static;inset:auto;float:none;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:4px;width:auto;min-width:96px;height:44px;margin:0;padding:0 14px 0 9px;border-radius:99px;background:var(--panel-solid);font-family:inherit;font-size:13.5px;font-weight:700;line-height:1}
html.app-ui .modal-nav > .close .ic{display:none}
html.app-ui .modal-nav > .close::before{content:'‹';font-size:24px;line-height:1;margin-top:-3px}
html.app-ui .modal-nav > .close::after{content:'Zurück'}
html.app-ui .modal-card:has(> .modal-nav):is(.journal-card,.settings-card,.wissen-card,.shop-card,.lake-card,.cup-card,.credits-card,.inbox-card,.quick-card,.depth-card){padding-top:0;--dialog-nav-safe:env(safe-area-inset-top,0px)}
@media (max-height:500px) and (orientation:landscape){
  .photo-card > .modal-nav{grid-column:1 / -1;grid-row:1}
  .photo-card .photo-img{grid-row:2 / span 4;max-height:calc(100dvh - 2 * max(16px,env(safe-area-inset-bottom)) - 90px)}
}
/* Root tabs have no Back row; keep their original top and notch spacing. */
html.app-ui body:has(#title:not(.hidden)) :is(#journalModal,#settingsModal,#rallyeModal):not([style*="z-index"]):not([data-view=water],[data-view=final]) > .modal-card{padding-top:calc(12px + env(safe-area-inset-top,0px))}
/* Messages stay below the water view; navigation remains reachable with hidden bars. */
.toasts{top:auto;bottom:max(12px,env(safe-area-inset-bottom));max-height:36dvh;overflow:auto}
#hud .coach,#hud .tutorial{top:auto;bottom:180px;left:50%;right:auto;transform:translateX(-50%);width:min(460px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:32dvh;overflow:auto}
#hud .coach.quiet{pointer-events:none}
#hud #barsShowBtn,#hud.bars-off #barsShowBtn{display:flex;position:absolute;top:8px;right:10px;width:132px;height:40px;min-height:40px;padding:6px 10px;gap:6px;font-size:12px;z-index:45;opacity:1}
html.app-ui #hud>#appBackBar{display:flex;position:absolute;top:8px;left:10px;z-index:45;min-height:40px;padding:6px 10px;gap:4px}
html.app-ui #hud>#appBackBar span{display:inline}
#hud .topbar{padding-right:154px}
html.app-ui #hud .topbar{padding-left:92px}
html.app-ui #hud .topbar>.brand{display:none}
@media(max-width:760px){
  #hud[data-mode=fish] .fish-chips{top:56px;left:10px;right:10px}
  #hud[data-mode=fish] .fish-chips #wadeBtn{display:none!important}
}
@media(max-height:500px) and (orientation:landscape){#hud .coach,#hud .tutorial{bottom:80px;width:min(420px,calc(100% - 300px))}}
#hud .coach,#hud .tutorial{top:auto!important;bottom:180px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}
html.app-ui #hud.tut>#appBackBar{display:flex}
@media(max-height:500px) and (orientation:landscape){#hud .coach,#hud .tutorial{bottom:80px!important}}

/* iPhone home: one main action, a compact greeting, quieter ways to explore. */
@media (max-width:760px) and (orientation:portrait){
  html[data-app=ios] .title .hero{align-items:center;padding:20px 22px 14px}
  html[data-app=ios] .title .hero-content{max-width:520px;margin:auto}
  html[data-app=ios] .title .brand-name{font-size:clamp(42px,10vw,62px);line-height:1.05;letter-spacing:-.045em}
  html[data-app=ios] .title .brand-subline{font-family:var(--sans);font-size:13px;font-style:normal;opacity:.8;margin:8px 0 0;line-height:1.4}
  html[data-app=ios] .title .title-note{margin:22px 0 24px;padding:0;border:0;transform:none;background:none}
  html[data-app=ios] .title .note-label{font-size:12px;letter-spacing:.08em;color:var(--sa-cream)}
  html[data-app=ios] .title .title-mood{font-family:var(--sans);font-size:14px;line-height:1.45;margin-top:6px;color:#d9e5e3}
  html[data-app=ios] .title .title-week{font-size:12px;line-height:1.4;margin-top:8px;opacity:.8}
  html[data-app=ios] .title .hero-actions{gap:12px;padding-top:0}
  html[data-app=ios] .title #startBtn{min-height:84px;border-radius:20px;padding:18px 20px;animation:none}
  html[data-app=ios] .title #startBtn .gb-text>span{font-size:24px}
  html[data-app=ios] .title #startLake{font-size:14px;margin-top:5px}
  html[data-app=ios] .title #startLake .tour-note{display:none}
  html[data-app=ios] .title #lakeBtn{min-height:52px;border-radius:15px;background:rgba(9,42,57,.7)}
  html[data-app=ios] .title #lakeBtn small{display:none}
  html[data-app=ios] .title #tourBtn{min-height:60px;border-radius:15px;background:rgba(9,42,57,.7);box-shadow:none}
  html[data-app=ios] .title #tourBtn .pike-mini{width:42px;margin:0}
  html[data-app=ios] .title #tourBtn .gb-text>span{font-size:17px}
  html[data-app=ios] .title #tourBtn .gb-text small{font-size:12px}
  html[data-app=ios] .title .quick-row{margin-top:12px}
  html[data-app=ios] .title .quick-row .game-button{min-height:52px;border-radius:15px;background:rgba(9,42,57,.7)}
  html[data-app=ios] .title .title-icons{margin-top:18px}
  html[data-app=ios] .title .title-icons button{min-height:44px;background:none;border-color:rgba(248,244,232,.18)}
  html[data-app=ios] .title .load-state{font-size:11px;opacity:.65}
  html[data-app=ios] .title .masthead{padding: max(16px,env(safe-area-inset-top)) 22px 0}
}
@media(max-width:760px) and (orientation:portrait) and (max-height:700px){
  html[data-app=ios] .title .hero{padding:12px 20px}
  html[data-app=ios] .title .title-note{margin:12px 0 16px}
  html[data-app=ios] .title .title-week{display:none}
  html[data-app=ios] .title .hero-actions{gap:8px}
  html[data-app=ios] .title #startBtn{min-height:68px;padding:12px 16px}
  html[data-app=ios] .title #tourBtn{display:none}
  html[data-app=ios] .title .title-icons{margin-top:10px}
}

/* Hints only appear over the water when the navigation is tucked away. */
body:has(#hud:not(.hidden):not(.bars-off)) #toasts,
#hud:not(.bars-off) .coach,
#hud:not(.bars-off) .tutorial.lesson{display:none!important}
#hud.bars-off .coach,#hud.bars-off .tutorial.lesson{top:56px!important;bottom:auto!important}

/* Optional newcomer layout: only redundant telemetry is hidden. All gameplay
   controls remain available via the unchanged panel and More menu. */
html.beginner-hud #driveHud .drive-stats .stat:nth-child(2){display:none}
html.beginner-hud #fishPanel .panel-head{border-color:var(--sa-amber)}
/* Recovery after a lost WebGL context or an unrecoverable start error:
   plain HTML is still rendered when the GPU canvas no longer works. */
.gfx-recovery{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px env(safe-area-inset-right) 24px env(safe-area-inset-left);background:rgba(6,24,34,.96);color:#f8f4e8}
.gfx-recovery.hidden{display:none}
.gfx-recovery-card{width:min(100%,430px);background:#123c50;border:1px solid rgba(248,244,232,.23);border-radius:18px;padding:24px;text-align:center;box-shadow:0 10px 48px rgba(0,0,0,.35)}
.gfx-recovery-card h2{font-size:clamp(22px,6vw,28px);margin:0 0 12px}
.gfx-recovery-card p{line-height:1.5;margin:0 0 20px}
.gfx-recovery-card button{min-height:48px}

/* Mobile portrait drill: keep the side-steering buttons in the lower touch
   zone, just above Pumpen and Kurbeln. Earlier portrait rules use top/--drill-bottom
   for the HUD readout; they must not drag these two buttons back up.
   Desktop and short-landscape use their existing layouts. */
@media (max-width:760px) and (orientation:portrait) and (pointer:coarse){
  #hud[data-mode=fight]:not(.tut) .fight-hud .side-btn{
    top:auto;
    bottom:calc(188px + env(safe-area-inset-bottom,0px));
    transform:none;
    width:clamp(70px,21vw,86px);
    min-height:64px;
    padding:8px 5px;
    z-index:8;
  }
  #hud[data-mode=fight]:not(.tut) .fight-hud .side-btn.left{left:max(12px,env(safe-area-inset-left,0px))}
  #hud[data-mode=fight]:not(.tut) .fight-hud .side-btn.right{right:max(12px,env(safe-area-inset-right,0px))}
}

/* Brand character from the new app icon: a quiet cutout next to the real
   (accessible) wordmark, not a second background photograph or a button. */
.title .brand-lockup{position:relative;display:flex;align-items:center;width:max-content;max-width:100%;min-width:0}
.title .brand-lockup .brand-name{flex:none}
.title .title-pike{
  position:absolute;left:calc(100% + 14px);top:48%;
  width:clamp(185px,19vw,290px);height:auto;max-width:none;
  transform:translateY(-50%);object-fit:contain;pointer-events:none;user-select:none;
  filter:drop-shadow(0 9px 14px rgba(1,20,28,.52));
}
@media(min-width:681px) and (max-width:1080px){
  .title .title-pike{left:calc(100% + 6px);width:clamp(145px,17vw,205px)}
}
@media(max-width:680px) and (orientation:portrait),(max-aspect-ratio:2/3){
  .title .brand-lockup{display:flex;flex-direction:column;align-items:center;width:100%}
  .title .title-pike{position:static;width:clamp(120px,36vw,166px);max-width:60%;margin:8px auto -3px;transform:none;filter:drop-shadow(0 5px 8px rgba(1,20,28,.55))}
}
@media(max-width:680px) and (max-height:720px) and (orientation:portrait){
  .title .title-pike{width:106px;margin:3px auto -5px}
}
@media(max-height:500px) and (orientation:landscape){
  .title .title-pike{width:clamp(100px,14vw,155px);left:calc(100% + 3px)}
}

/* Shared primary navigation: fixed Start / Karte / Fangbuch / Mehr on every
   mobile water and in the installed app. Only fishing tools occupy the
   secondary strip. Keep Ausblenden as a permanent fifth, compact control so
   an auto-hidden bar can always be restored. Desktop keeps its full toolbar. */
@media (max-width:760px){
  #hud .topbar,html.app-ui #hud .topbar{
    padding:8px 62px 8px 10px;
    justify-content:stretch;
  }
  #hud .top-actions,#hud[data-mode=fish] .top-actions{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
    width:100%;
    min-width:0;
    flex:1 1 auto;
    justify-content:stretch;
  }
  #hud .top-actions :is(#sonarBtn,#settingsBtn,#audioBtn){display:none!important}
  #hud .top-actions :is(#startNavBtn,#mapBtn,#journalBtn,#moreBtn){
    width:100%;
    min-width:0;
    min-height:40px;
    padding:4px 1px;
    flex-direction:column;
    justify-content:center;
    gap:2px;
  }
  #hud .top-actions :is(#startNavBtn,#mapBtn,#journalBtn,#moreBtn) span{
    display:block;
    max-width:100%;
    font-size:10px;
    font-weight:700;
    line-height:1.1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  #hud #barsShowBtn,#hud.bars-off #barsShowBtn{
    display:flex;
    position:absolute;
    top:8px;
    right:10px;
    width:44px;
    min-width:44px;
    height:40px;
    min-height:40px;
    padding:6px;
    justify-content:center;
    align-items:center;
    z-index:45;
  }
  #hud #barsShowBtn span{display:none}
  /* Stable fishing-context strip: the rod/boat options change, their slots do not.
     The absent motor at the bank leaves the middle slot empty on purpose. */
  #hud[data-mode=fish] .fish-chips{
    top:56px;left:10px;right:10px;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-flow:row;
  }
  #hud[data-mode=fish] .fish-chips #leaveBtn{grid-column:1}
  #hud[data-mode=fish] .fish-chips #creepBtn{grid-column:2}
  #hud[data-mode=fish] .fish-chips #tasksBtn{grid-column:3}
  #hud[data-mode=fish] .tasks-card{top:104px}
  #hud[data-mode=fish] .sonar-panel{top:106px}
  #hud[data-mode=fish] .bite-view{top:calc(108px + env(safe-area-inset-top,0px))}
  /* No separate App-back control next to a second Start button. The regular
     Start now works in the web game and in the iOS/Android app alike. */
  html.app-ui #hud[data-mode=drive]>#appBackBar,
  html.app-ui #hud[data-mode=fish]>#appBackBar{display:none}
  /* During onboarding the game intentionally shows only the sound control;
     there must still be a way back in the app. */
  html.app-ui #hud.tut>#appBackBar{display:flex}
}
/* a purchase in the store apps on its way (cardsui.js buyInStore): its progress instead of the price buttons */
#cardModal.store-busy :is(#cardOut,#cardSoon,#cardPurchaseNote,#cardStoreRetry,#cardFree,#cardPartner,.code-row,.consent,#cardStatus){display:none!important}
.card-progress{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(244,163,64,.45);line-height:1.4}
.card-progress.done{background:rgba(76,175,80,.16);border-color:rgba(118,201,121,.7)}
.card-spin{flex:none;width:22px;height:22px;border-radius:50%;border:3px solid rgba(255,255,255,.22);border-top-color:var(--sa-amber,#F4A340);animation:card-spin .8s linear infinite}
.card-check{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#4CAF50;color:#fff;font-size:17px;animation:card-pop .35s ease-out}
@keyframes card-spin{to{transform:rotate(360deg)}}
@keyframes card-pop{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.card-spin{animation-duration:2.4s}.card-check{animation:none}}
/* Start screen (UI review): every control at least 44 px to tap, the small lines at least 12 px and nearly full
   strength, as they stand on the picture. fitTitle (main.js) lets the hints wait before it draws anything smaller */
.title-icons button{min-height:44px}
.install-hint .btn{min-height:44px}
.install-hint .close{width:44px;height:44px;margin:-6px -4px -6px -6px}
.game-button .gb-text small{font-size:12.5px;opacity:.9}
.hero-actions .pc-text small{font-size:12.5px;color:rgba(248,244,232,.9)}
.title-foot,.title-foot .link-btn{font-size:12px}
#appVersion{opacity:.85}
/* phones: the taller targets take no more room than before (the legal links reach into the footer's padding), so the
   column still fits without being drawn smaller */
@media (max-width:680px){.title-foot .link-btn{font-size:12px;min-height:44px;padding:0 4px;margin:-6px 0}.title-note{margin-bottom:0}.title-icons{margin-top:10px}}
#title.hints-wait .install-hint{display:none}
/* the profile invitation: a light row under the buttons, not one more card among them */
.hero-actions .profile-cta{min-height:44px;padding:4px 18px 4px 14px;background:none;border-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.hero-actions .profile-cta:hover{background:rgba(8,37,52,.42);transform:none}
.hero-actions .pc-avatar{width:30px;height:30px;font-size:15px;background:none;border:1.5px solid var(--sa-amber);color:var(--sa-amber)}
.hero-actions .pc-avatar .ic{width:18px;height:18px}
.hero-actions .pc-text b{font-size:15px;font-weight:650}
.hero-actions .profile-cta .tail{font-family:var(--font-cond);font-weight:500}

/* The first round on a wide screen (desktop, a phone held across): its card back at the top, clear of the angler.
   The rule that sends every hint to the bottom (bottom:180px / 80px, above) put it over the angler and the boat
   there, and in the fight under the reel ring's "Halten" tag. Upright phones keep the place below the angler. */
@media (min-width:761px) and (min-height:501px){
  #hud.tut .tutorial{top:12px!important;bottom:auto!important}
  #hud.tut[data-mode=fight] .tutorial{top:204px!important} /* under the fight strip */
  #hud.tut:has(#landCall:not(.hidden)) .tutorial{display:none} /* "Jetzt keschern!" has that place, and says it */
}
@media (max-height:500px) and (orientation:landscape){
  #hud.tut .tutorial{top:8px!important;bottom:auto!important}
  #hud.tut[data-mode=fight] .tutorial{top:60px!important;left:10px!important;transform:none!important;width:min(380px,calc(100% - 330px))} /* under the fight strip, left of the fish */
  /* the bite's and the landing's own cards say the same, and there is no room for both */
  #hud.tut:has(#biteAlert:not(.hidden)) .tutorial,#hud.tut:has(#landCall:not(.hidden)) .tutorial{display:none}
}

/* "Dein Angeltag" (daycard.js): the month's outlook on arriving at the water */
.day-card{width:min(400px,calc(100vw - 28px));max-height:calc(100dvh - 24px);overflow:auto}
.day-card .dc-level{margin:2px 0 12px;font-size:13.5px;font-weight:700;color:var(--sa-cream)}
.day-card .dc-level.zaeh{color:#ffb38a}.day-card .dc-level.mittel{color:#FFCB81}
.day-card ul{text-align:left;margin-bottom:12px}
.day-card li{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:baseline;font-size:14px}
.day-card li small{display:inline;letter-spacing:.02em;font-size:11.5px;font-weight:700;color:#FFCB81;text-align:right}
.day-card li span{grid-column:1 / -1;font-weight:500;font-size:12.5px;line-height:1.4;color:var(--muted)}
.day-card .dc-how{text-align:left;margin:0 0 10px;padding:9px 11px;border-radius:10px;background:rgba(244,163,64,.14);border:1px solid rgba(244,163,64,.4);color:var(--sa-cream);font-size:13px;line-height:1.45}
.day-card .dc-best{font-size:13.5px;color:var(--sa-cream);margin:4px 0 12px}
.day-card .tour-win-btns .btn{flex:1 1 150px}
.day-card .dc-foot{margin:10px 0 0;font-size:11.5px}
