:root{
  --sky:#9dd8df;--surface:#57c5d1;--water-top:#087d9a;--water-mid:#064b70;--water-deep:#061a3c;--abyss:#030b22;
  --ice:#d6fff2;--aqua:#66eadb;--aqua-dim:#56a9b4;--ink:#061326;--line:#3b93a5;--gold:#f4cd82;
  font-family:'VT323',monospace;color:#edffff;background:#020917;font-synthesis:none;text-rendering:optimizeLegibility;
}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#020917}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible{outline:2px solid #efffe5;outline-offset:3px}
.game{position:relative;width:100vw;height:100vh;height:100svh;min-height:540px;overflow:hidden;isolation:isolate;background:linear-gradient(180deg,var(--sky) 0 16%,var(--water-top) 20%,var(--water-mid) 48%,var(--water-deep) 74%,var(--abyss) 100%);transition:background 1.5s ease;color:#ecffff}
.game.depth-abyss{--water-top:#075a7d;--water-mid:#073451;--water-deep:#031a36;--abyss:#010717;--surface:#50b9ca}
.game.depth-midnight{--water-top:#08708a;--water-mid:#075071;--water-deep:#05294b;--abyss:#03132a;--surface:#71d7dc}
.game.depth-twilight{--water-top:#128aa0;--water-mid:#0c6882;--water-deep:#08435f;--abyss:#062a49;--surface:#85e8df}
.game.depth-surface{--water-top:#42b8c4;--water-mid:#1593a8;--water-deep:#0b6684;--abyss:#084261;--surface:#baffed}
.ocean{position:absolute;inset:0;z-index:-1;overflow:hidden;background:linear-gradient(180deg,#a4dce0 0 16%,var(--water-top) 19%,var(--water-mid) 43%,var(--water-deep) 75%,var(--abyss) 100%);transition:background 1.7s ease}
.sky{position:absolute;inset:0 0 83%;background:linear-gradient(180deg,#bce9e5,#8ecbd5 75%,#71b9c8);z-index:0}
.sun{position:absolute;z-index:1;top:4.3%;left:72%;width:54px;height:54px;background:#ffedbd;box-shadow:0 0 0 8px #ffeab327,0 0 70px 28px #fff3cb79;image-rendering:pixelated}
.cloud{position:absolute;z-index:2;width:105px;height:17px;top:4.4%;background:#f1fff0;box-shadow:15px -13px 0 -1px #f1fff0,31px -13px 0 -1px #f1fff0,47px -13px 0 -1px #f1fff0,63px 0 0 -1px #f1fff0,78px 0 0 -1px #f1fff0,31px 13px 0 -1px #e8f5eb;opacity:.88;image-rendering:pixelated}
.cloud-one{left:12%;transform:scale(.8);animation:cloud-drift 34s linear infinite}.cloud-two{left:48%;top:9%;transform:scale(.52);opacity:.48;animation:cloud-drift 48s linear infinite reverse}
@keyframes cloud-drift{from{translate:-28px 0}to{translate:80px 0}}
.sun-rays{position:absolute;z-index:1;left:53%;top:14%;width:45%;height:65%;background:repeating-linear-gradient(108deg,transparent 0 65px,#d1fff01a 66px 86px,transparent 87px 150px);clip-path:polygon(25% 0,100% 0,100% 100%,0 100%);filter:blur(2px);opacity:.8;animation:ray-breathe 8s ease-in-out infinite alternate}
@keyframes ray-breathe{from{opacity:.32;transform:translateX(-10px)}to{opacity:.78;transform:translateX(18px)}}
.surface{position:absolute;z-index:4;left:-4%;right:-4%;top:16.2%;height:22px;border-top:4px solid #d5fff7;border-radius:50%;filter:drop-shadow(0 0 5px #d4fff7a8) drop-shadow(0 0 13px #61e4e3);animation:surface-roll 3.6s ease-in-out infinite alternate}
.surface:before{content:'';position:absolute;left:0;right:0;top:4px;height:12px;border-top:2px solid #f0fff5a1;border-radius:50%}.surface:after{content:'';position:absolute;top:-8px;left:3%;width:95%;height:8px;background:repeating-linear-gradient(90deg,transparent 0 30px,#effff0 30px 48px,transparent 48px 91px);opacity:.55;filter:blur(1px)}
.surface i,.surface b{position:absolute;top:-5px;width:80px;height:3px;background:#ecfff4;opacity:.8}.surface i{left:23%;}.surface b{right:20%;width:55px}
@keyframes surface-roll{from{transform:translateX(-1%) skewY(-.4deg)}to{transform:translateX(1%) skewY(.5deg)}}
.depth-strata{position:absolute;z-index:0;inset:18% 0 0;background:repeating-linear-gradient(180deg,transparent 0 95px,#9ceaf10a 96px 98px,transparent 99px 170px),linear-gradient(180deg,#38b7bf0b 0%,transparent 20%,#03102737 100%);pointer-events:none}
.water-light{position:absolute;z-index:1;top:17%;width:29%;height:65%;background:linear-gradient(180deg,#cafff020,transparent 90%);filter:blur(15px);clip-path:polygon(10% 0,100% 0,68% 100%,0 100%);animation:light-sway 10s ease-in-out infinite alternate}.light-one{left:18%}.light-two{left:57%;width:20%;animation-delay:-4s;opacity:.7}
@keyframes light-sway{from{transform:translateX(-14px) skewX(-5deg)}to{transform:translateX(22px) skewX(7deg)}}
.marine-layer{position:absolute;z-index:2;inset:18% 0 0;pointer-events:none;overflow:hidden}.fish{position:absolute;width:27px;height:9px;background:#021e3b75;clip-path:polygon(0 50%,20% 10%,74% 10%,100% 50%,74% 90%,20% 90%);filter:drop-shadow(0 0 4px #52c2d144);animation:fish-swim var(--speed,25s) linear infinite}.fish:after{content:'';position:absolute;right:-6px;top:1px;width:8px;height:7px;background:#042342;clip-path:polygon(100% 0,0 50%,100% 100%)}
@keyframes fish-swim{0%{transform:translateX(-80px) scaleX(1)}49%{transform:translateX(calc(100vw + 80px)) scaleX(1)}50%{transform:translateX(calc(100vw + 80px)) scaleX(-1)}100%{transform:translateX(-80px) scaleX(-1)}}
.jelly{position:absolute;width:22px;height:18px;border-radius:12px 12px 4px 4px;background:#a79cfb65;box-shadow:0 0 16px #a99cff60;animation:jelly-float 7s ease-in-out infinite}.jelly:after{content:'';position:absolute;left:3px;right:3px;bottom:-14px;height:15px;background:repeating-linear-gradient(90deg,#cac4ff94 0 2px,transparent 2px 6px);clip-path:polygon(0 0,100% 0,80% 100%,55% 0,28% 100%)}
@keyframes jelly-float{50%{transform:translate(11px,-21px)}}
.ruins{position:absolute;z-index:2;right:12%;bottom:5%;width:140px;height:105px;opacity:.45;filter:drop-shadow(0 0 12px #0a2847)}.ruins:before{content:'';position:absolute;left:5px;bottom:0;width:132px;height:33px;background:#020e23;clip-path:polygon(0 0,100% 0,84% 100%,16% 100%)}.ruins:after{content:'';position:absolute;left:43px;bottom:24px;width:42px;height:47px;background:#06162b;clip-path:polygon(0 100%,0 20%,35% 20%,35% 0,75% 0,75% 35%,100% 35%,100% 100%)}.ruins span{position:absolute;left:91px;bottom:28px;width:3px;height:78px;background:#07152a}.ruins i{position:absolute;left:94px;bottom:84px;border-left:0 solid transparent;border-right:46px solid #0a1a2e;border-top:16px solid transparent;border-bottom:17px solid transparent}.ruins b{position:absolute;left:20px;bottom:36px;width:20px;height:26px;border:3px solid #0a1b30}.ruins em{position:absolute;left:51px;bottom:39px;width:20px;height:21px;border:3px solid #0a1b30}
.seabed{position:absolute;z-index:3;left:0;right:0;bottom:-1px;height:14%;background:linear-gradient(180deg,#07182a,#020b1b 76%);clip-path:polygon(0 41%,7% 27%,16% 42%,24% 21%,35% 39%,47% 24%,60% 42%,71% 18%,83% 36%,92% 21%,100% 35%,100% 100%,0 100%)}
.seaweed{position:absolute;bottom:82%;width:8px;height:100px;background:#075568;transform-origin:bottom center;clip-path:polygon(45% 100%,0 0,30% 42%,25% 12%,55% 54%,72% 7%,67% 100%);animation:seaweed-wave 4s ease-in-out infinite alternate}.seaweed-a{left:7%;height:86px}.seaweed-b{right:8%;height:130px;transform:scaleX(-1);animation-delay:-1.7s}
@keyframes seaweed-wave{from{rotate:-5deg}to{rotate:6deg}}
.coral{position:absolute;bottom:72%;width:45px;height:59px;background:#a34c78;clip-path:polygon(42% 100%,36% 48%,6% 29%,11% 8%,39% 31%,44% 0,58% 0,57% 42%,90% 21%,100% 35%,59% 61%,59% 100%);filter:drop-shadow(0 0 4px #f06a8b55)}.coral-a{left:23%}.coral-b{right:26%;transform:scale(.7);background:#cc895a}
.rock{position:absolute;bottom:88%;width:80px;height:28px;background:#102d42;clip-path:polygon(0 100%,8% 48%,33% 23%,48% 0,65% 33%,88% 25%,100% 100%)}.rock-a{left:38%}.rock-b{right:5%;transform:scale(1.3)}
.particle-field{position:absolute;z-index:3;inset:18% 0 0;overflow:hidden;pointer-events:none}.particle{position:absolute;bottom:-20px;left:var(--x);width:var(--size);height:var(--size);border:1px solid #d7ffff72;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffffff9e,#ffffff08 72%);box-shadow:0 0 7px #9afffa35;animation:particle-rise var(--duration) linear var(--delay) infinite}.particle:nth-child(3n){border-radius:3px;opacity:.48}
@keyframes particle-rise{0%{transform:translate3d(0,0,0) scale(.7);opacity:0}10%{opacity:.6}80%{opacity:.48}100%{transform:translate3d(var(--drift),-115vh,0) scale(1.16);opacity:0}}
.hud-top{position:absolute;z-index:15;top:0;left:0;right:0;height:78px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(180deg,#031326d9,#03132655 76%,transparent);border-bottom:1px solid #bdf9f01c}
.brand-lockup{display:flex;align-items:center;gap:11px}.brand-mark{width:38px;height:38px;border:2px solid #a6fff1;color:#bafff0;display:grid;place-items:center;font:26px 'VT323',monospace;text-shadow:0 0 10px #9affed;box-shadow:3px 3px 0 #03101f;background:#06233b}.brand-name{font:10px/1.5 'Press Start 2P',monospace;letter-spacing:-.8px;color:#f1ffff;text-shadow:2px 2px #06172c}.brand-name span{color:#66e9dc}.brand-name small{display:block;font:7px 'Press Start 2P',monospace;letter-spacing:1.3px;color:#7ec6d2;margin-top:6px}
.run-readout{display:flex;gap:12px;align-items:center;color:#dffefa}.readout-label{font:6px 'Press Start 2P',monospace;color:#87bfc9}.run-readout strong{font:18px 'VT323',monospace;color:#effff8}.readout-divider{width:1px;height:22px;background:#c0f1ee55;margin:0 5px}.hud-actions{display:flex;gap:8px}.hud-button{border:1px solid #9bece544;border-radius:0;padding:9px 11px;background:#041c31aa;color:#d9fff5;font:7px 'Press Start 2P',monospace;box-shadow:3px 3px 0 #020917;transition:background .18s,border-color .18s,transform .18s}.hud-button:hover{background:#0a3a51;border-color:#b2fff1;transform:translateY(-2px)}.hud-button b{color:#ffcf85;font-weight:400}.icon-button{width:35px;font-size:18px;padding:4px}
.depth-scale{position:absolute;z-index:8;top:24%;right:27px;bottom:17%;width:45px;display:flex;align-items:center;flex-direction:column;gap:10px;text-shadow:1px 2px #03142a}.scale-title{font:7px 'Press Start 2P',monospace;color:#b7e6e9;writing-mode:vertical-rl;letter-spacing:1.5px}.scale-line{width:2px;flex:1;background:repeating-linear-gradient(180deg,#b9f6e8 0 3px,transparent 3px 13px);position:relative;box-shadow:0 0 6px #8afbea66}.scale-line:before{content:'';position:absolute;left:-4px;top:0;bottom:0;width:10px;border-left:1px solid #aaffed55;border-right:1px solid #aaffed55}.scale-line i{position:absolute;left:-7px;top:0;width:16px;height:3px;background:#fff4bd;box-shadow:0 0 9px #ffefaf;transition:top .9s cubic-bezier(.2,.8,.2,1)}.scale-labels{display:flex;flex-direction:column;gap:23px;font:6px 'Press Start 2P',monospace;color:#a7d9dd}.depth-current{font:8px 'Press Start 2P',monospace;color:#fff4bf;white-space:nowrap}
.ocean-title{position:absolute;z-index:5;top:11%;left:50%;transform:translateX(-50%);text-align:center;white-space:nowrap;pointer-events:none;opacity:.9;transition:opacity .5s}.title-kicker{display:flex;justify-content:center;align-items:center;gap:12px;color:#dffef2;font:6px 'Press Start 2P',monospace;letter-spacing:1.1px;text-shadow:0 1px 5px #05233a}.title-kicker span{width:26px;height:1px;background:#caffed}.ocean-title h1{font:19px 'Press Start 2P',monospace;color:#f5ffff;letter-spacing:-1px;margin:10px 0 6px;text-shadow:3px 3px 0 #07506a,5px 5px 0 #031c35}.ocean-title p{font:7px 'Press Start 2P',monospace;color:#e1ffff;letter-spacing:.7px;text-shadow:0 1px 7px #002338}
.clue-area{position:absolute;z-index:10;top:23%;left:50%;transform:translateX(-50%);width:min(540px,calc(100% - 180px));text-align:center;text-shadow:1px 2px 0 #032039;transition:top .5s}.clue-overline{display:flex;justify-content:center;align-items:center;gap:9px;color:#aaf1e6;font:6px 'Press Start 2P',monospace;letter-spacing:.2px}.pulse-dot{width:6px;height:6px;border-radius:50%;background:#9effdd;box-shadow:0 0 10px #91ffe0;animation:pulse 1.8s infinite}.clue-rule{height:1px;width:24px;background:#b9fff09a}.clue-area h2{font:16px/1.7 'Press Start 2P',monospace;letter-spacing:-.6px;color:#f4ffff;margin:13px 0 7px;text-shadow:2px 3px #03233b,0 0 20px #4ed5d1a8}.clue-area p{font:22px/1.1 'VT323',monospace;color:#c9f1ee;margin:0;text-shadow:1px 2px #062a45}
.player-track{position:absolute;z-index:7;inset:17% 0 8%;pointer-events:none}.player{position:absolute;left:50%;top:83%;transform:translate(-50%,-50%);transition:top 1.1s cubic-bezier(.18,.83,.2,1);display:flex;align-items:center;flex-direction:column;filter:drop-shadow(0 7px 0 #03132485)}.player.floating{animation:player-float 3s ease-in-out infinite}.player.rising{animation:player-rise .78s ease-out}.player.diving{animation:player-dive 1.5s cubic-bezier(.2,.8,.2,1)}
@keyframes player-float{0%,100%{transform:translate(-50%,-50%) rotate(-2deg)}50%{transform:translate(-50%,calc(-50% - 7px)) rotate(2deg)}}@keyframes player-rise{0%{transform:translate(-50%,calc(-50% + 12px)) rotate(0)}35%{transform:translate(-50%,calc(-50% - 18px)) rotate(-8deg)}70%{transform:translate(-50%,calc(-50% + 4px)) rotate(5deg)}100%{transform:translate(-50%,-50%) rotate(0)}}@keyframes player-dive{0%{top:4%;transform:translate(-50%,-50%) rotate(-12deg)}25%{top:22%;transform:translate(-50%,-50%) rotate(11deg)}58%{top:65%;transform:translate(-50%,-50%) rotate(-5deg)}100%{top:83%;transform:translate(-50%,-50%) rotate(0)}}
.player-bubbles{position:absolute;left:50%;top:100%;width:100px;height:100px;transform:translateX(-50%)}.player-shadow{width:72px;height:8px;border-radius:50%;background:#020c1c66;filter:blur(4px);margin-top:11px}
.sprite{position:relative;image-rendering:pixelated;filter:drop-shadow(3px 4px 0 #06182b);transform:translateZ(0)}.bag-sprite{width:74px;height:91px;background:linear-gradient(135deg,#f4fff0 0%,#c8f3e1 34%,#8dc9bd 100%);clip-path:polygon(24% 9%,38% 9%,39% 0,62% 0,64% 9%,78% 9%,96% 100%,4% 100%);border:0}.bag-handle{position:absolute;left:31px;top:-5px;width:15px;height:15px;border:4px solid #effff1;border-bottom:0;border-radius:12px 12px 0 0}.sprite-face{position:absolute;left:0;right:0;top:42px;text-align:center;color:#275b60;font:700 16px 'VT323',monospace;letter-spacing:4px}.bag-crease{position:absolute;left:16px;bottom:15px;width:43px;border-top:2px solid #ffffff9c;transform:rotate(-5deg)}
.ball-sprite{width:73px;height:73px;border-radius:50%;border:3px solid #e2ff8d;background:radial-gradient(circle at 29% 23%,#f8ffb7,#d4ee55 62%,#8da82b);box-shadow:inset -7px -8px #7a982d5e}.ball-curve{position:absolute;top:0;width:28px;height:66px;border:2px solid #f7ffec;border-radius:50%}.curve-a{left:10px;transform:rotate(30deg)}.curve-b{right:10px;transform:rotate(-30deg)}.ball-sprite .sprite-face{top:28px;color:#36502a;font-size:14px}
.coke-sprite{width:56px;height:84px;border-radius:7px 7px 6px 6px;border:2px solid #efaaa0;background:linear-gradient(90deg,#7d0d1d,#e32435 27%,#bb0f27 78%,#760d20);box-shadow:inset 5px 0 7px #ffaaaa2e,inset -4px 0 5px #28061166}.can-top{position:absolute;left:2px;right:2px;top:-4px;height:6px;background:linear-gradient(#f5f9ea,#8f9da1);border:1px solid #d8e0d6;border-radius:50%}.coke-word{position:absolute;left:-5px;right:-5px;top:24px;text-align:center;color:#fff;font:italic bold 16px Georgia,serif;text-shadow:0 1px 2px #51000c}.coke-sprite .sprite-face{top:55px;color:#fff;font-size:10px;letter-spacing:2px}
.surface-warning{position:absolute;left:50%;top:4%;transform:translateX(-50%);color:#f9f0bb;font:6px 'Press Start 2P',monospace;letter-spacing:1px;text-shadow:0 0 7px #fff2aa;opacity:0;transition:opacity .4s}.game.near-surface .surface-warning{opacity:1}
.guess-trail{position:absolute;z-index:12;left:32px;bottom:21%;width:200px;max-height:28vh;overflow:hidden;color:#d3f8f2;text-shadow:0 1px 4px #001a2c}.trail-heading{font:6px 'Press Start 2P',monospace;color:#9ad8dc;letter-spacing:.7px;margin-bottom:10px}.trail-empty{font:16px 'VT323',monospace;color:#a4c9d0}.trail-item{display:flex;align-items:center;gap:8px;font:18px 'VT323',monospace;margin:5px 0;animation:trail-in .3s ease-out}.trail-item .trail-dot{width:6px;height:6px;border-radius:50%;background:#72c6cb;box-shadow:0 0 6px #b8fff2}.trail-item.hot .trail-dot{background:#ffe29b;box-shadow:0 0 8px #ffe29b}.trail-item .trail-score{margin-left:auto;color:#a5d5d9;font:6px 'Press Start 2P',monospace}.trail-item.hot .trail-score{color:#ffe4a1}@keyframes trail-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.world-status{position:absolute;z-index:12;left:50%;bottom:19%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;white-space:nowrap;font:6px 'Press Start 2P',monospace;color:#c1eeee;text-shadow:0 1px 3px #001629}.status-pip{width:6px;height:6px;background:#b7d9b5;box-shadow:0 0 8px #b7d9b5}.status-separator{color:#73b5bf}
.console{position:absolute;z-index:20;left:50%;bottom:4.4%;transform:translateX(-50%);width:min(660px,calc(100% - 52px));padding:12px 16px 10px;background:#04162be8;border:2px solid #56d1ce;box-shadow:0 0 0 3px #06152b,4px 5px 0 #020b1a,0 0 28px #51c9c94a;clip-path:polygon(0 5px,5px 5px,5px 0,calc(100% - 5px) 0,calc(100% - 5px) 5px,100% 5px,100% calc(100% - 5px),calc(100% - 5px) calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,5px calc(100% - 5px),0 calc(100% - 5px))}
.console-topline,.console-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.console-topline{font:6px 'Press Start 2P',monospace;color:#93d3d8;margin-bottom:9px}.console-topline span:last-child{color:#638e9e}.input-shell{display:flex;align-items:center;min-height:43px;border:1px solid #2e6f80;background:#020d1c;box-shadow:inset 0 0 0 1px #ffffff09}.input-prefix{padding:0 12px;color:#7beee0;font:20px 'VT323',monospace}.input-shell input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#f1ffff;font:24px 'VT323',monospace;letter-spacing:.5px;padding:7px 0}.input-shell input::placeholder{color:#6c9ba7}.input-shell button{height:36px;margin:3px 4px;padding:0 14px;border:1px solid #9ff7e7;background:#66dfd0;color:#05243a;font:7px 'Press Start 2P',monospace;box-shadow:2px 2px 0 #02101c}.input-shell button:disabled{opacity:.4;cursor:not-allowed}.input-shell button span{font:15px 'VT323',monospace}.console-foot{margin-top:8px;font:17px 'VT323',monospace;color:#a4cbd1}.console-actions{display:flex;align-items:center;gap:14px}.console-foot button{border:0;background:none;color:#b7ebdd;font:6px 'Press Start 2P',monospace;text-decoration:underline;text-underline-offset:4px}.console-foot button:disabled{opacity:.35;cursor:not-allowed}.console-foot button span{font:14px 'VT323',monospace}
.overlay{position:absolute;z-index:40;inset:0;display:grid;place-items:center;background:linear-gradient(180deg,#071b35a8,#03152ad9 56%,#020b1df0);backdrop-filter:blur(2px);transition:opacity .65s,visibility .65s}.overlay.hidden{opacity:0;visibility:hidden;pointer-events:none}.start-content{position:relative;width:min(590px,90vw);text-align:center;padding:20px;color:#efffff}.start-kicker{color:#9af2e5;font:7px 'Press Start 2P',monospace;letter-spacing:1px}.start-content h1{font:clamp(31px,5vw,54px)/1.35 'Press Start 2P',monospace;letter-spacing:-2px;margin:22px 0 12px;text-shadow:4px 4px 0 #064c67,7px 7px 0 #020a1b}.start-content h1 span{color:#7de6dd}.start-subtitle{font:10px/1.9 'Press Start 2P',monospace;color:#d3f8f0;letter-spacing:.5px}.start-character{height:80px;display:grid;place-items:center;margin:16px auto 22px;animation:start-bob 2.2s ease-in-out infinite}.start-character .sprite{transform:scale(.72);filter:drop-shadow(0 0 12px #74efe6)}@keyframes start-bob{50%{translate:0 -8px}}
.start-instructions{display:flex;justify-content:center;gap:13px;flex-wrap:wrap;color:#85bbc7;font:6px 'Press Start 2P',monospace;margin:15px 0 22px}.begin-button{display:inline-flex;align-items:center;gap:17px;padding:17px 20px;border:2px solid #77f5e5;background:#082c43;color:#edfff9;font:10px 'Press Start 2P',monospace;box-shadow:4px 4px 0 #020a17,0 0 22px #5bdfd24d;transition:transform .16s,background .16s}.begin-button:hover{transform:translateY(-3px);background:#0b4358}.begin-button span{color:#ffcf7d}.start-note{font:6px 'Press Start 2P',monospace;color:#6398a8;margin-top:18px;line-height:1.8}
.skin-menu{position:absolute;z-index:35;top:86px;right:26px;width:290px;padding:14px;background:#03172beF;border:2px solid #62d9d1;box-shadow:5px 5px 0 #010817}.skin-menu[hidden]{display:none}.menu-heading{display:flex;justify-content:space-between;align-items:center;color:#9ce9df;font:7px 'Press Start 2P',monospace;margin-bottom:12px}.menu-heading button{border:0;background:none;color:#fff;font:22px 'VT323',monospace}.skin-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.skin-choice{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:7px;min-height:105px;padding:8px 3px;background:#071e34;border:1px solid #416c7c;color:#c8f1ea}.skin-choice.selected{border-color:#f4d18a;background:#0a2c42}.skin-choice b{font:5px 'Press Start 2P',monospace;text-align:center;line-height:1.6}.mini-sprite{position:relative;display:block;transform:scale(.45);transform-origin:center center;width:74px;height:58px;margin:0 auto -3px}.mini-sprite.bag-sprite{height:62px}.mini-sprite.ball-sprite{width:73px;height:57px}.mini-sprite.coke-sprite{height:58px;width:56px}.skin-choice .sprite-face{top:21px;font-size:16px}.skin-choice .coke-word{top:12px;font-size:14px}.skin-choice .can-top{top:-4px}
.toast{position:absolute;z-index:50;top:92px;left:50%;transform:translateX(-50%) translateY(-8px);padding:9px 14px;border:1px solid #8ae9df;background:#03182ceF;color:#eafff8;font:7px 'Press Start 2P',monospace;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;white-space:nowrap}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.hud-bottom{position:absolute;z-index:12;left:32px;right:32px;bottom:12px;display:flex;justify-content:space-between;color:#74a8b4;font:5px 'Press Start 2P',monospace;letter-spacing:.2px;text-shadow:1px 1px #001225;pointer-events:none}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.hud-top{padding:0 14px;height:65px}.brand-mark{width:32px;height:32px}.brand-name{font-size:8px}.brand-name small{font-size:5px}.run-readout{display:none}.hud-button{font-size:5px;padding:8px 7px}.icon-button{width:28px}.ocean-title{top:10%}.ocean-title h1{font-size:15px}.ocean-title p{font-size:5px}.clue-area{top:23%;width:calc(100% - 100px)}.clue-area h2{font-size:11px;line-height:1.8}.clue-area p{font-size:19px}.depth-scale{right:9px;top:35%;bottom:21%;width:28px}.scale-title{font-size:5px}.scale-labels{font-size:4px;gap:17px}.depth-current{font-size:6px}.guess-trail{left:13px;bottom:21%;width:115px;max-height:19vh}.trail-heading{font-size:5px}.trail-item{font-size:16px}.trail-item .trail-score{font-size:5px}.world-status{bottom:18%;font-size:5px}.console{width:calc(100% - 22px);bottom:3.5%;padding:9px 9px 7px}.console-topline{font-size:5px}.console-topline span:last-child{font-size:4px}.input-shell input{font-size:20px}.input-shell button{font-size:6px;padding:0 9px}.hud-bottom{left:10px;right:10px;bottom:6px;font-size:4px}.ruins{right:4%;transform:scale(.7);transform-origin:bottom right}.start-content h1{font-size:34px}.start-kicker{font-size:6px}.start-instructions{font-size:5px;gap:9px}}
@media(max-width:430px){.clue-area{top:22%;width:calc(100% - 75px)}.clue-area h2{font-size:9px}.clue-overline{font-size:5px}.guess-trail{display:none}.world-status{bottom:19%;}.console{bottom:5%}.console-foot{font-size:15px}.console-foot button{font-size:5px}.start-content h1{font-size:30px}.begin-button{font-size:8px;padding:15px 12px}.start-instructions{line-height:1.8}}
@media(max-height:650px) and (min-width:761px){.hud-top{height:62px}.ocean-title{top:8%}.ocean-title h1{font-size:15px}.clue-area{top:21%}.clue-area h2{margin:8px 0 4px;font-size:13px}.player-track{inset:15% 0 5%}.guess-trail{bottom:19%}.console{bottom:3%;padding:8px 13px}.input-shell{min-height:36px}.input-shell button{height:30px}.world-status{bottom:16%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}


/* Temperature split: cold current on the left, hot current on the right. */
.temperature-sides{position:absolute;z-index:4;inset:17% 0 12%;pointer-events:none;display:flex;justify-content:space-between;}
.temperature-side{position:relative;width:clamp(72px,12vw,160px);display:flex;align-items:center;flex-direction:column;gap:9px;padding-top:13vh;overflow:hidden;text-shadow:0 2px 5px #001323;}
.temperature-side:before{content:"";position:absolute;inset:0;pointer-events:none;}
.cold-side:before{background:linear-gradient(90deg,rgba(45,156,235,var(--cold-glow,.46)),rgba(43,147,227,.13) 58%,transparent);border-right:1px solid #a5e8ff24;}
.hot-side:before{background:linear-gradient(270deg,rgba(255,112,63,var(--hot-glow,.12)),rgba(245,128,72,.08) 58%,transparent);border-left:1px solid #ffd1a21c;}
.temperature-side .side-symbol{position:relative;font:24px 'VT323',monospace;opacity:.8;filter:drop-shadow(0 0 8px currentColor);}
.temperature-side strong{position:relative;font:7px 'Press Start 2P',monospace;letter-spacing:1px;writing-mode:vertical-rl;}
.temperature-side small{position:relative;font:5px 'Press Start 2P',monospace;writing-mode:vertical-rl;opacity:.63;}
.cold-side{color:#b9edff;}
.hot-side{color:#ffd4ac;}
.temperature-side i{position:absolute;top:0;bottom:0;width:1px;background:linear-gradient(transparent,currentColor 20%,currentColor 80%,transparent);opacity:.25;}
.cold-side i{right:0}.hot-side i{left:0}
.temperature-seam{position:absolute;left:50%;top:0;bottom:0;width:1px;background:linear-gradient(transparent,#b3e4e62b 25%,#ffd0a12b 75%,transparent);opacity:.7}
/* Miniature diver: small enough to read as a tiny creature in the ocean. */
.player{z-index:9;filter:drop-shadow(0 3px 5px #00101d88);}
.player.floating{animation:bag-swim 3.4s ease-in-out infinite;}
@keyframes bag-swim{0%,100%{transform:translate(-50%,-50%) translateX(-5px) rotate(-7deg)}25%{transform:translate(-50%,-50%) translate(3px,-7px) rotate(3deg)}50%{transform:translate(-50%,-50%) translateX(8px) rotate(8deg)}75%{transform:translate(-50%,-50%) translate(1px,5px) rotate(-2deg)}}
.player .bag-sprite{width:34px;height:42px;filter:drop-shadow(1px 2px 0 #06182b);}
.player .bag-handle{left:14px;top:-3px;width:7px;height:8px;border-width:2px;border-radius:7px 7px 0 0;}
.player .bag-sprite .sprite-face{top:19px;font-size:9px;letter-spacing:1px;}
.player .bag-crease{left:7px;bottom:7px;width:19px;border-top-width:1px;}
.player .ball-sprite{width:34px;height:34px;border-width:2px;}
.player .ball-curve{width:13px;height:30px;border-width:1px;}
.player .curve-a{left:5px}.player .curve-b{right:5px}
.player .ball-sprite .sprite-face{top:11px;font-size:8px;letter-spacing:1px;}
.player .coke-sprite{width:26px;height:42px;border-radius:4px;border-width:1px;}
.player .can-top{top:-3px;height:4px}.player .coke-word{top:11px;font-size:9px;}.player .coke-sprite .sprite-face{top:28px;font-size:6px;letter-spacing:1px;}
.player-shadow{width:28px;height:3px;margin-top:5px;filter:blur(2px);}
.player-bubbles{position:absolute;left:50%;top:50%;width:74px;height:60px;transform:translate(-50%,-50%);z-index:4;}
.swim-bubble{position:absolute;left:var(--bx);top:var(--by);width:var(--bs);height:var(--bs);border:1px solid #d7ffffb7;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff,#ffffff15 72%);box-shadow:0 0 5px #9df8ff55;opacity:0;animation:swim-bubble-rise var(--bd) ease-in-out var(--delay) infinite;}
@keyframes swim-bubble-rise{0%{opacity:0;transform:translate(0,8px) scale(.55)}24%{opacity:.75}72%{opacity:.58}100%{opacity:0;transform:translate(9px,-24px) scale(1.2)}}
.player .sprite{z-index:5;}
.player.rising{animation:bag-rise .88s ease-out;}
@keyframes bag-rise{0%{transform:translate(-50%,-50%) translateY(8px) rotate(0)}25%{transform:translate(-50%,-50%) translateY(-10px) rotate(-13deg)}52%{transform:translate(-50%,-50%) translateY(4px) rotate(9deg)}100%{transform:translate(-50%,-50%) rotate(0)}}
/* Ten attempts and end-of-dive controls. */
#guessCount{min-width:64px;}
#revealAnswerButton{color:#ffcf9d;}
.console-actions{gap:10px;flex-wrap:wrap;justify-content:flex-end;}
#playAgainButton{color:#9ff7e7;text-decoration:none;border:1px solid #62d9d1;padding:7px 9px;background:#0a3347;}
#revealAnswerButton{border:1px solid #d5a46c;padding:7px 8px;background:#2d241f;text-decoration:none;}
#revealAnswerButton:hover,#playAgainButton:hover{filter:brightness(1.18);}
#revealAnswerButton[hidden],#playAgainButton[hidden]{display:none;}
/* A tiny shopping-bag pointer replaces the standard arrow. */
.game,.game button,.game input{cursor:url("assets/plastic-bag-cursor.png") 6 5, auto;}
.game button{cursor:url("assets/plastic-bag-cursor.png") 6 5, pointer;}
@media(max-width:760px){
 .temperature-side{width:48px;padding-top:19vh;gap:6px;}
 .temperature-side .side-symbol{font-size:18px}.temperature-side strong{font-size:5px}.temperature-side small{font-size:4px;}
 .depth-scale{right:58px;}
 .clue-area{width:calc(100% - 128px);}
 .console{width:calc(100% - 90px);}
 .console-foot{align-items:flex-start;flex-direction:column;gap:7px;}
 .console-actions{justify-content:flex-start;gap:11px;}
 .console-foot button{font-size:5px;}
 .guess-trail{left:55px;bottom:22%;width:100px;}
}
@media(max-width:430px){
 .temperature-side{width:35px;padding-top:23vh;}
 .depth-scale{right:43px;}
 .clue-area{width:calc(100% - 90px);}
 .console{width:calc(100% - 56px);bottom:2.4%;}
 .guess-trail{display:none;}
 .hud-bottom{display:none;}
 .console-topline{font-size:4px;}
 .console-actions{gap:8px;}
 #revealAnswerButton,#playAgainButton{font-size:4px;padding:6px;}
}


/* Directional swimming: low scores drift to the cold current on the left;
   higher scores swim across to the hot current on the right. */
.player{
  left:12%;
  transition:left 1.25s cubic-bezier(.18,.78,.22,1), top 1.1s cubic-bezier(.18,.83,.2,1);
  will-change:left,top,transform;
}
.player.floating.swimming-left{animation:swim-left-current 2.7s ease-in-out infinite;}
.player.floating.swimming-center{animation:swim-mid-current 2.9s ease-in-out infinite;}
.player.floating.swimming-right{animation:swim-right-current 2.7s ease-in-out infinite;}
@keyframes swim-left-current{
  0%,100%{transform:translate(-50%,-50%) translate(-2px,0) rotate(-7deg)}
  35%{transform:translate(-50%,-50%) translate(1px,-6px) rotate(-2deg)}
  68%{transform:translate(-50%,-50%) translate(-4px,3px) rotate(-10deg)}
}
@keyframes swim-mid-current{
  0%,100%{transform:translate(-50%,-50%) translateY(0) rotate(0)}
  35%{transform:translate(-50%,-50%) translate(2px,-6px) rotate(4deg)}
  68%{transform:translate(-50%,-50%) translate(-2px,3px) rotate(-4deg)}
}
@keyframes swim-right-current{
  0%,100%{transform:translate(-50%,-50%) translate(2px,0) rotate(7deg)}
  35%{transform:translate(-50%,-50%) translate(-1px,-6px) rotate(2deg)}
  68%{transform:translate(-50%,-50%) translate(4px,3px) rotate(10deg)}
}
.player.swimming-left .sprite{transform:translateZ(0) rotate(-7deg) scaleX(-1);}
.player.swimming-center .sprite{transform:translateZ(0) rotate(0deg);}
.player.swimming-right .sprite{transform:translateZ(0) rotate(7deg) scaleX(1);}
.player.rising.swimming-left,.player.rising.swimming-center,.player.rising.swimming-right{animation:player-rise .88s ease-out;}
.player.diving{left:50%;}
@media(max-width:760px){.player{left:12%;}}


/* CINEMATIC CAMERA — the whole underwater world moves as one scene. */
.camera-rig{
  position:absolute;inset:0;z-index:1;overflow:visible;pointer-events:none;
  transform-origin:50% 50%;
  transform:translate3d(var(--camera-x,0px),var(--camera-y,0px),0) scale(var(--camera-zoom,1));
  transition:transform 1.45s cubic-bezier(.16,.78,.18,1),filter 1.2s ease;
  will-change:transform;
}
.camera-rig.camera-warm{filter:saturate(1.07) brightness(1.025)}
.camera-rig.camera-hot{filter:saturate(1.14) brightness(1.055)}
.camera-rig.camera-pulse{animation:camera-focus-pulse .68s ease-out}
@keyframes camera-focus-pulse{
  0%{filter:brightness(1.14) saturate(1.18)}
  100%{filter:brightness(1) saturate(1.05)}
}
/* Opening macro shot: the player fills the view before the camera pulls away. */
.game.intro-closeup .camera-rig{transform:scale(1.22);filter:saturate(1.12) brightness(1.08);transition:transform 1.65s cubic-bezier(.2,.78,.18,1),filter 1.4s ease}
.game.intro-closeup .player{
  left:50%!important;top:45%!important;
  animation:intro-macro-float 3.3s ease-in-out infinite;
  filter:drop-shadow(0 0 18px #a1fff1a8);
}
@keyframes intro-macro-float{
  0%,100%{transform:translate(-50%,-50%) scale(4.65) rotate(-5deg)}
  50%{transform:translate(-50%,-50%) scale(4.85) rotate(4deg)}
}
.game.intro-closeup .player-bubbles{opacity:.9;transform:translate(-50%,-50%) scale(1.4)}
.start-character.closeup-character{height:142px;margin:12px auto 15px;}
.start-character.closeup-character .sprite{transform:scale(1.42);filter:drop-shadow(0 0 20px #7cf6e8a8)}
.start-character.closeup-character{animation:start-bob 2.4s ease-in-out infinite,closeup-breathe 3.2s ease-in-out infinite alternate}
@keyframes closeup-breathe{from{filter:drop-shadow(0 0 0 #7cf6e800)}to{filter:drop-shadow(0 0 18px #75efe955)}}
/* The camera recentres with a little lag; the diver remains visibly off-centre. */
.camera-rig .player{transition:left 1.1s cubic-bezier(.16,.78,.2,1),top 1.2s cubic-bezier(.16,.78,.2,1)}
@media(max-width:760px){
 .game.intro-closeup .player{top:45%!important}
 .game.intro-closeup .camera-rig{transform:scale(1.15)}
 .game.intro-closeup .player{animation:intro-macro-float-mobile 3.3s ease-in-out infinite}
 @keyframes intro-macro-float-mobile{
  0%,100%{transform:translate(-50%,-50%) scale(3.8) rotate(-5deg)}
  50%{transform:translate(-50%,-50%) scale(4) rotate(4deg)}
 }
 .start-character.closeup-character{height:105px}
 .start-character.closeup-character .sprite{transform:scale(1.12)}
}
@media(prefers-reduced-motion:reduce){.camera-rig{transition:none!important}.game.intro-closeup .player{animation:none!important;transform:translate(-50%,-50%) scale(3.6)!important}}


/* Fixed ocean backfill prevents empty blue strips while the cinematic camera pans. */
.world-backfill{
  position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  background:
    radial-gradient(ellipse at 14% 31%,#2b8ca32d 0,transparent 35%),
    radial-gradient(ellipse at 86% 48%,#0d72912b 0,transparent 38%),
    repeating-linear-gradient(180deg,transparent 0 86px,#b4f7f00a 87px 89px,transparent 90px 152px),
    linear-gradient(180deg,#a4dce0 0 16%,var(--water-top) 19%,var(--water-mid) 43%,var(--water-deep) 75%,var(--abyss) 100%);
}
.world-backfill:before{
  content:"";position:absolute;inset:16% -10% 0;
  background:
    radial-gradient(ellipse at 18% 70%,#0a243a77 0 7%,transparent 7.5%),
    radial-gradient(ellipse at 77% 85%,#04132788 0 11%,transparent 11.5%),
    repeating-linear-gradient(175deg,transparent 0 125px,#c1ffff07 126px 128px,transparent 129px 220px);
  opacity:.85;
}
.world-backfill:after{
  content:"";position:absolute;left:-10%;right:-10%;bottom:-3%;height:18%;
  background:linear-gradient(180deg,transparent,#020b1b 82%);
  clip-path:polygon(0 40%,8% 28%,17% 44%,28% 22%,39% 41%,51% 24%,63% 43%,74% 18%,86% 38%,100% 25%,100% 100%,0 100%);
}
/* Keep the zoom readable and cap camera translation; all sides stay ocean-filled. */
.camera-rig{z-index:1;overflow:visible;}
.game{background:linear-gradient(180deg,#a4dce0 0 16%,var(--water-top) 19%,var(--water-mid) 43%,var(--water-deep) 75%,var(--abyss) 100%);}

/* Local player profile modal. This is a browser-local profile, not an online login. */
.account-button{min-width:106px;}
.account-button span{color:#9bf0dd;display:inline-block;max-width:74px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap;}
.profile-shortcut{display:block;margin:13px auto 0;padding:7px 9px;background:transparent;border:1px solid #75cfc8;color:#b5fff0;font:6px 'Press Start 2P',monospace;letter-spacing:.2px;}
.profile-shortcut:hover{background:#0d3a50;}
.profile-overlay[hidden]{display:none;}
.profile-overlay{position:absolute;z-index:60;inset:0;display:grid;place-items:center;padding:18px;background:#020c1ddf;backdrop-filter:blur(8px);}
.profile-panel{position:relative;width:min(430px,94vw);max-height:90vh;overflow:auto;padding:28px 25px 22px;background:linear-gradient(155deg,#0b2c43,#041426 72%);border:2px solid #6fe1d3;box-shadow:6px 6px 0 #010813,0 0 40px #4bcabd22;color:#edfffa;text-align:center;}
.profile-close{position:absolute;right:12px;top:8px;border:0;background:transparent;color:#bdeee6;font:28px 'VT323',monospace;}
.profile-kicker{font:6px 'Press Start 2P',monospace;color:#87e7dc;letter-spacing:.8px;}
.profile-panel h2{font:12px/1.8 'Press Start 2P',monospace;margin:17px 0 12px;color:#f1fffa;}
.profile-copy{font:21px/1.1 'VT323',monospace;color:#b1d7db;margin:0 auto 18px;max-width:330px;}
#profileForm{display:flex;flex-direction:column;gap:8px;text-align:left;}
#profileForm label{font:6px 'Press Start 2P',monospace;color:#a1e9df;margin-top:5px;}
#profileForm input{width:100%;min-height:42px;padding:9px 11px;background:#031426;border:1px solid #3d8190;color:#f1fffa;font:20px 'VT323',monospace;border-radius:0;}
#profileForm input:focus{outline:2px solid #82eee0;outline-offset:2px;}
.profile-submit{width:100%;margin-top:9px;padding:13px 9px;background:#0d4656;border:1px solid #78ebdc;color:#f0fff8;box-shadow:3px 3px 0 #010813;font:7px 'Press Start 2P',monospace;line-height:1.8;}
.profile-submit:hover{background:#126078;}
.profile-privacy{font:6px/1.8 'Press Start 2P',monospace;color:#709daa;margin:15px 0 0;}
.profile-avatar{width:50px;height:50px;margin:10px auto;border:2px solid #8cf0df;color:#8cf0df;display:grid;place-items:center;font:30px 'VT323',monospace;background:#05273b;}
.profile-name{display:block;font:11px 'Press Start 2P',monospace;color:#f1fff7;margin:10px 0;}
.profile-email{display:block;font:20px 'VT323',monospace;color:#8fc8d1;}
.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:20px 0;padding:12px 0;border-top:1px solid #75d8d333;border-bottom:1px solid #75d8d333;}
.profile-stats div{display:flex;flex-direction:column;gap:7px;}
.profile-stats strong{font:24px 'VT323',monospace;color:#c6fff0;}
.profile-stats span{font:5px 'Press Start 2P',monospace;color:#81b5be;line-height:1.7;}
@media(max-width:760px){.account-button{min-width:0}.account-button span{max-width:52px}.profile-panel{padding:25px 17px 18px}.profile-panel h2{font-size:10px}}


/* FULL-FRAME OCEAN BACKFILL — the sea remains textured beyond the moving camera. */
.world-backfill{
  z-index:0;
  background:
    radial-gradient(ellipse at 12% 26%,#69d6d02a 0,transparent 32%),
    radial-gradient(ellipse at 87% 36%,#1e9db32c 0,transparent 38%),
    radial-gradient(ellipse at 50% 77%,#0b496d55 0,transparent 54%),
    repeating-linear-gradient(178deg,transparent 0 62px,#c7fff00b 63px 65px,transparent 66px 132px),
    linear-gradient(180deg,#a4dce0 0 16%,var(--water-top) 19%,var(--water-mid) 43%,var(--water-deep) 75%,var(--abyss) 100%);
}
.world-backfill:before{
  inset:-2%;opacity:1;
  background:
    radial-gradient(ellipse at 15% 55%,#0d587055 0 8%,transparent 8.7%),
    radial-gradient(ellipse at 88% 62%,#062a4c66 0 12%,transparent 12.7%),
    radial-gradient(ellipse at 5% 88%,#0d263c99 0 9%,transparent 9.6%),
    radial-gradient(ellipse at 98% 91%,#06172eaa 0 13%,transparent 13.7%),
    repeating-linear-gradient(165deg,transparent 0 110px,#bdf9f008 111px 113px,transparent 114px 195px);
}
.world-backfill:after{
  left:-8%;right:-8%;bottom:-2%;height:24%;
  background:
    radial-gradient(ellipse at 20% 0%,#1a526066,transparent 38%),
    linear-gradient(180deg,transparent,#061629 72%,#020817 100%);
  clip-path:polygon(0 42%,7% 28%,15% 39%,25% 16%,34% 38%,44% 24%,54% 43%,66% 14%,75% 36%,86% 19%,100% 39%,100% 100%,0 100%);
}
.game{background:linear-gradient(180deg,#a4dce0 0 16%,var(--water-top) 19%,var(--water-mid) 43%,var(--water-deep) 75%,var(--abyss) 100%);}
/* The camera may move the diver, but its viewport-sized ocean underlay is never a flat void. */
.camera-rig{overflow:visible;}
.ocean{background-color:var(--water-mid);}

/* Plastic Bag first-party email-code account states. */
#profileForm[hidden],#profileGuestView[hidden],#profileSignedView[hidden],#otpPanel[hidden]{display:none!important;}
#profileEmail,#profileName,#otpCode{width:100%;min-height:42px;padding:9px 11px;background:#031426;border:1px solid #3d8190;color:#f1fffa;font:18px 'VT323',monospace;border-radius:0;}
#profileEmail:focus,#profileName:focus,#otpCode:focus{outline:2px solid #82eee0;outline-offset:2px;}
#profileForm{display:flex;flex-direction:column;gap:8px;text-align:left;}
#profileForm label,#otpForm label{font:6px 'Press Start 2P',monospace;color:#a1e9df;margin-top:5px;}
#otpPanel{margin-top:15px;padding-top:12px;border-top:1px solid #75d8d333;}
.otp-message{font:20px/1.15 'VT323',monospace;color:#bdeee6;overflow-wrap:anywhere;}
#otpForm{display:flex;flex-direction:column;gap:8px;text-align:left;}
#otpCode{text-align:center;letter-spacing:8px;font:26px 'VT323',monospace!important;}
.otp-actions{display:flex;justify-content:space-between;gap:10px;margin-top:12px;}
.otp-actions button{padding:8px 6px;background:transparent;border:1px solid #4d8793;color:#aee9e4;font:6px 'Press Start 2P',monospace;line-height:1.8;}
.auth-status{min-height:18px;margin:12px 0 0;color:#8feadd;font:18px/1.12 'VT323',monospace;overflow-wrap:anywhere;}
.auth-status.error{color:#ffc18f;}
.auth-status{overflow-wrap:anywhere;}
.profile-submit:disabled,.otp-actions button:disabled{opacity:.55;cursor:wait;}

/* Cookie choices: necessary consent plus optional saved diver preferences only. */
.cookie-banner[hidden]{display:none!important;}
.cookie-banner{position:absolute;z-index:80;left:18px;right:18px;bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px;background:#04192aee;border:1px solid #80e8d8;box-shadow:4px 4px 0 #010813,0 10px 35px #0007;backdrop-filter:blur(10px);}
.cookie-copy{max-width:650px;}
.cookie-copy strong{font:7px 'Press Start 2P',monospace;color:#9af0df;}
.cookie-copy p{margin:7px 0 0;color:#bdd9dc;font:19px/1.08 'VT323',monospace;}
.cookie-actions{display:flex;gap:8px;flex-shrink:0;}
.cookie-actions button{padding:10px 12px;background:#0b4656;border:1px solid #89eadb;color:#edfffa;font:6px 'Press Start 2P',monospace;line-height:1.8;}
.cookie-actions button:last-child{background:transparent;border-color:#52808b;color:#c4e8e6;}
.cookie-actions button:hover{filter:brightness(1.2);}
@media(max-width:760px){.cookie-banner{left:8px;right:8px;bottom:8px;display:block;padding:11px}.cookie-copy p{font-size:17px}.cookie-actions{margin-top:10px}.cookie-actions button{flex:1;font-size:5px;padding:8px 5px;}}


/* V8: character-first camera and expressive, full-frame underwater movement. */
.game{--atmosphere-warmth:0;--current-x:.12}
.game:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:
  radial-gradient(ellipse at calc(var(--current-x)*100%) 48%,rgba(238,179,98,.12),transparent 35%),
  linear-gradient(90deg,rgba(9,43,92,.2),transparent 43%,rgba(231,111,55,.13));
  opacity:calc(.3 + var(--atmosphere-warmth)*.55);transition:opacity 1.4s}
.world-backfill{background:
  radial-gradient(ellipse at 12% 60%,#1b74a344,transparent 45%),
  radial-gradient(ellipse at 88% 45%,#d0804838,transparent 45%),
  repeating-linear-gradient(180deg,transparent 0 96px,#a3f2f00a 97px 100px,transparent 101px 170px),
  linear-gradient(180deg,#a3dbe1 0 16%,#137b9a 22%,#073b66 53%,#02152f 100%)}
.camera-rig{transition:transform 1.85s cubic-bezier(.16,.78,.16,1),filter 1.6s}
.camera-rig.camera-beat{animation:cinematic-focus 1s ease-out}
.camera-rig.camera-success{animation:cinematic-success 1.15s ease-out}
@keyframes cinematic-focus{0%{filter:brightness(1.18) saturate(1.2)}45%{filter:brightness(1.07) saturate(1.15)}100%{filter:brightness(1)}}
@keyframes cinematic-success{0%{filter:brightness(1.45) saturate(1.4)}55%{filter:brightness(1.15) saturate(1.25)}100%{filter:brightness(1)}}
.atmosphere-glow{position:absolute;inset:0;z-index:1;pointer-events:none;
 background:linear-gradient(90deg,rgba(46,142,231,.35),rgba(5,23,51,.1) 47%,rgba(244,139,65,.44));
 opacity:calc(.4 + var(--atmosphere-warmth)*.4);transition:opacity 1.5s}
.parallax-specks{position:absolute;inset:-10%;z-index:2;pointer-events:none;opacity:.25;
 background-image:radial-gradient(circle,#c6faff 1px,transparent 1.5px),radial-gradient(circle,#c6faff 1px,transparent 1.5px);
 background-size:107px 131px,149px 173px;background-position:13px 22px,70px 80px;
 animation:water-parallax 24s linear infinite}
@keyframes water-parallax{to{background-position:120px -109px,219px -93px}}
/* Single real diver at the start; no second menu sprite or giant duplicate. */
.game.intro-closeup .camera-rig{transform:scale(1.4);transition:transform 1.8s cubic-bezier(.2,.8,.2,1)}
.game.intro-closeup .player{left:50%!important;top:43%!important;animation:intro-macro-float 3.4s ease-in-out infinite}
@keyframes intro-macro-float{0%,100%{transform:translate(-50%,-50%) scale(5.2) rotate(-5deg)}50%{transform:translate(-50%,-50%) scale(5.35) rotate(5deg)}}
.game.intro-closeup .start-content{transform:translateY(0);display:flex;flex-direction:column;align-items:center}
.game.intro-closeup .start-content h1{margin-bottom:24vh}
.game.intro-closeup .start-content .start-subtitle{display:none}
.game.intro-closeup .start-content .start-instructions{margin-top:0}
.game.intro-closeup .overlay{background:linear-gradient(180deg,#03162caa 0%,transparent 28%,transparent 63%,#031020dd 100%)}
.game.cinematic-descent .camera-rig{transition:transform 2.2s cubic-bezier(.16,.8,.18,1)}
.player{transition:left calc(1.4s / var(--swim-speed,1)) cubic-bezier(.18,.74,.18,1),top 1.6s cubic-bezier(.18,.74,.18,1)!important}
.player.floating.swimming-left,.player.floating.swimming-center,.player.floating.swimming-right{animation:cinematic-swim 2.2s ease-in-out infinite}
@keyframes cinematic-swim{0%,100%{transform:translate(-50%,-50%) rotate(calc(var(--swim-tilt,0deg) - 5deg))}50%{transform:translate(-50%,calc(-50% - 10px)) rotate(calc(var(--swim-tilt,0deg) + 5deg))}}
.player .sprite{transition:transform .7s ease}
.player.swimming-left .sprite{transform:rotate(-10deg) scaleX(-1)}
.player.swimming-right .sprite{transform:rotate(10deg)}
.player.swimming-center .sprite{transform:rotate(0deg)}
.player-bubbles{animation:tiny-wake 2.4s ease-in-out infinite}
@keyframes tiny-wake{50%{translate:-6px 4px;opacity:.65}}
.skin-choices{grid-template-columns:repeat(4,minmax(0,1fr))}
.skin-menu{width:min(410px,calc(100vw - 28px));max-height:75vh;overflow-y:auto}
.skin-choice{min-height:112px}
.jelly-sprite{width:67px;height:58px;border-radius:45% 45% 20% 20%;background:radial-gradient(circle at 30% 22%,#f3d5ff,#ba83e5 66%,#8559bb);border:2px solid #f1caff;box-shadow:0 0 16px #d8a5ff77}
.jelly-tentacles{position:absolute;left:10%;right:10%;bottom:-15px;height:22px;background:repeating-linear-gradient(90deg,#c995e5 0 6px,transparent 6px 13px);border-radius:0 0 9px 9px}
.jelly-sprite .sprite-face{top:19px;color:#563676}
.axolotl-sprite{width:70px;height:57px;border-radius:38% 38% 45% 45%;background:linear-gradient(#ffdfeb,#f5a8c5);border:2px solid #ffe8f2}
.axolotl-gills{position:absolute;left:-14px;right:-14px;top:11px;height:26px;background:linear-gradient(90deg,#d65f9d 0 12px,transparent 12px calc(100% - 12px),#d65f9d calc(100% - 12px));border-radius:9px}
.axolotl-sprite .sprite-face{top:19px;color:#7d4168}
.star-sprite{width:75px;height:72px;background:linear-gradient(140deg,#ffe7a3,#f4a95c);clip-path:polygon(50% 0,63% 32%,98% 35%,72% 58%,82% 97%,50% 75%,18% 97%,28% 58%,2% 35%,37% 32%);filter:drop-shadow(0 0 8px #ffd18b77)}
.star-sprite .sprite-face{top:32px;color:#8c512e;font-size:15px;letter-spacing:2px}
.duck-sprite{width:69px;height:62px;background:linear-gradient(#fff4a0,#f5ce4d);border-radius:48% 48% 40% 40%;border:2px solid #ffeaa0}
.duck-beak{position:absolute;top:36px;right:-13px;width:24px;height:13px;background:#ff9b50;border-radius:3px 9px 9px 3px}
.duck-sprite .sprite-face{top:21px;color:#735321}
.player .jelly-sprite{width:34px;height:29px}.player .jelly-tentacles{bottom:-7px;height:10px;background-size:8px 8px}
.player .jelly-sprite .sprite-face{top:7px;font-size:9px;letter-spacing:1px}
.player .axolotl-sprite{width:36px;height:30px}.player .axolotl-gills{left:-7px;right:-7px;top:6px;height:13px}
.player .axolotl-sprite .sprite-face{top:9px;font-size:9px;letter-spacing:1px}
.player .star-sprite{width:39px;height:38px}.player .star-sprite .sprite-face{top:16px;font-size:8px;letter-spacing:1px}
.player .duck-sprite{width:34px;height:31px}.player .duck-beak{top:16px;right:-7px;width:12px;height:7px}
.player .duck-sprite .sprite-face{top:9px;font-size:9px;letter-spacing:1px}
@media(max-width:760px){.game.intro-closeup .camera-rig{transform:scale(1.2)}.game.intro-closeup .start-content h1{margin-bottom:19vh}.skin-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.parallax-specks,.player-bubbles{animation:none!important}}


/* V10: remove top black strip by matching the sky all the way to viewport edge. */
html,body{background:#a4dce0}
.game{min-height:0;min-height:100dvh;height:100dvh;overflow:hidden}
.world-backfill{inset:-2px!important;background:linear-gradient(180deg,#a4dce0 0%,#a4dce0 17%,#117b9c 21%,#073d66 53%,#02152f 100%)!important}
.camera-rig{inset:-2px!important}
.ocean{inset:-2px!important}
.sky{top:-3px!important}
.game::after{content:"";position:absolute;top:0;left:0;right:0;height:2px;z-index:2;pointer-events:none;background:#a4dce0}
/* Floating best score stays attached to the swimmer, never to the screen HUD. */
.companion-score{position:absolute;left:50%;top:calc(100% + 17px);transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;gap:5px;z-index:12;white-space:nowrap;pointer-events:none;animation:score-drift 2.6s ease-in-out infinite}
.companion-score>span{padding:6px 11px;border:1px solid #b3f7ee99;border-radius:16px;background:#06334ccc;color:#e9ffde;box-shadow:0 4px 16px #00182c99,0 0 14px #80e8d655;font:12px 'Press Start 2P',monospace;text-shadow:0 0 7px #d7ffcb}
.companion-score small{font:7px 'Press Start 2P',monospace;color:#d8f9ef;text-shadow:0 2px 6px #001b2b}
@keyframes score-drift{0%,100%{translate:0 0}50%{translate:0 5px}}
/* The prop springs out from the character's head. */
.character-prop{position:absolute;left:52%;bottom:calc(100% + 4px);z-index:14;display:flex;align-items:center;flex-direction:column;gap:1px;opacity:0;pointer-events:none;transform:translate(-50%,20px) rotate(-14deg) scale(.15);transform-origin:bottom center;filter:drop-shadow(0 4px 5px #031e39)}
.character-prop .prop-icon{font-size:45px;line-height:1.1}
.character-prop .prop-caption{padding:3px 5px;border-radius:4px;background:#fff4c9;color:#674423;font:8px 'Press Start 2P',monospace;white-space:nowrap}
.character-prop.prop-visible{animation:prop-spring 2.6s cubic-bezier(.16,.8,.2,1) both}
.character-prop.prop-cheat.prop-visible{animation:prop-spring 3.2s cubic-bezier(.16,.8,.2,1) both}
@keyframes prop-spring{0%{opacity:0;transform:translate(-50%,20px) rotate(-25deg) scale(.15)}14%{opacity:1;transform:translate(-50%,-23px) rotate(12deg) scale(1.3)}26%{transform:translate(-50%,-15px) rotate(-7deg) scale(.94)}42%,76%{opacity:1;transform:translate(-50%,-18px) rotate(6deg) scale(1)}100%{opacity:0;transform:translate(-50%,-40px) rotate(-18deg) scale(.65)}}
/* Extra organic motion: small fin/body wiggles and changing underwater glints. */
.player .sprite{animation:skin-wiggle 3.1s ease-in-out infinite;transform-origin:50% 70%}
@keyframes skin-wiggle{0%,100%{rotate:-4deg;translate:0 0}40%{rotate:6deg;translate:0 -3px}70%{rotate:-2deg;translate:0 2px}}
.player.swimming-left .sprite{animation:skin-wiggle-left 1.4s ease-in-out infinite}
.player.swimming-right .sprite{animation:skin-wiggle-right 1.4s ease-in-out infinite}
@keyframes skin-wiggle-left{0%,100%{rotate:-11deg;translate:0 0}50%{rotate:5deg;translate:-3px -4px}}
@keyframes skin-wiggle-right{0%,100%{rotate:9deg;translate:0 0}50%{rotate:-6deg;translate:4px -5px}}
.player{filter:drop-shadow(0 0 calc(5px + 12px * var(--score-warmth,0)) rgba(255,220,155,.5))}
.game.intro-closeup .companion-score,.game.intro-closeup .character-prop{display:none}
@media(max-width:600px){.companion-score>span{font-size:9px;padding:5px 8px}.companion-score small{font-size:6px}.character-prop .prop-icon{font-size:35px}}
@media(prefers-reduced-motion:reduce){.companion-score,.player .sprite{animation:none!important}.character-prop.prop-visible{opacity:1;transform:translate(-50%,-18px) scale(1);animation:none!important}}


/* V11: seamless, full-bleed sea without black edge lines. */
:root,html,body{margin:0!important;padding:0!important;background:#a4dce0!important;overflow:hidden}
.game{height:100dvh!important;min-height:0!important;width:100%!important;border:0!important;outline:0!important;
 background:linear-gradient(180deg,#a4dce0 0%,#a4dce0 16%,var(--water-top) 22%,var(--water-mid) 45%,var(--water-deep) 75%,var(--abyss) 100%)!important}
.game:after{display:none!important}
.hud-top{border:0!important;box-shadow:none!important}
.sky{border:0!important;box-shadow:none!important}
.world-backfill{position:absolute!important;inset:-25vh -25vw!important;border:0!important;
 background:linear-gradient(180deg,#a4dce0 0%,#a4dce0 15%,var(--water-top) 22%,var(--water-mid) 45%,var(--water-deep) 75%,var(--abyss) 100%)!important}
.camera-rig{inset:-20vh -20vw!important;border:0!important;outline:0!important}
.ocean{inset:0!important;border:0!important;outline:0!important;
 background:linear-gradient(180deg,#a4dce0 0%,#a4dce0 16%,var(--water-top) 22%,var(--water-mid) 45%,var(--water-deep) 75%,var(--abyss) 100%)!important}
.surface{border-top:0!important}
.game.intro-closeup .camera-rig{transform:scale(1.3)}
/* Percentage follows the swimmer with no surrounding badge or outline. */
.companion-score{top:calc(100% + 13px);gap:2px;z-index:30}
.companion-score>span{padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
 color:#f4fff4!important;font:14px 'Press Start 2P',monospace!important;text-shadow:0 2px 4px #07304a}
.companion-score small{display:none!important}
/* Visible hint bulb and reveal cheat book above the character. */
.character-prop{bottom:calc(100% + 16px)!important;left:50%;z-index:100;filter:drop-shadow(0 4px 5px #083b52)}
.character-prop .prop-icon{font-size:55px!important;filter:drop-shadow(0 0 9px #ffe77b)}
.character-prop .prop-caption{font-size:8px!important;padding:5px 7px}
.character-prop.prop-visible{animation:prop-spring 3.1s cubic-bezier(.16,.8,.2,1) both!important}
.character-prop.prop-cheat.prop-visible{animation:prop-spring 3.6s cubic-bezier(.16,.8,.2,1) both!important}
@media(max-width:600px){.companion-score>span{font-size:11px!important}.character-prop .prop-icon{font-size:45px!important}}


/* V12: guaranteed visible character on the opening menu, independent of camera cropping. */
.game.intro-closeup .camera-rig{transform:scale(1.04)!important}
.game.intro-closeup .player{left:50%!important;top:44%!important;opacity:.32}
.game.intro-closeup .overlay{backdrop-filter:none!important}
.game.intro-closeup .start-content{width:min(540px,94vw);display:flex;flex-direction:column;align-items:center;gap:0}
.game.intro-closeup .start-content h1{margin:12px 0 8px!important}
.start-hero-diver{position:relative;display:grid;place-items:center;width:150px;height:150px;margin:3px auto 16px;z-index:2;
 filter:drop-shadow(0 12px 10px #02182a88);animation:hero-drift 3.4s ease-in-out infinite}
.start-hero-diver .sprite{position:relative!important;transform:scale(1.85)!important;transform-origin:center!important;animation:none!important}
.start-hero-diver .bag-sprite{transform:scale(2.1)!important}
@keyframes hero-drift{0%,100%{translate:0 0;rotate:-4deg}50%{translate:0 -9px;rotate:5deg}}
.game.intro-closeup .start-instructions{margin-top:4px!important}
@media(max-width:600px){.start-hero-diver{width:118px;height:118px;margin-bottom:7px}.start-hero-diver .sprite{transform:scale(1.5)!important}.start-hero-diver .bag-sprite{transform:scale(1.7)!important}}
@media(max-height:650px){.start-hero-diver{width:95px;height:95px;margin-bottom:2px}.start-hero-diver .sprite{transform:scale(1.3)!important}.game.intro-closeup .start-content h1{margin:3px 0!important}}
@media(prefers-reduced-motion:reduce){.start-hero-diver{animation:none!important}}


/* V13: playable swimmer always stays in frame. Do not change opening screen. */
.game:not(.intro-closeup) .player-track{inset:17% 0 8%;overflow:visible}
.game:not(.intro-closeup) .player{opacity:1!important;visibility:visible!important;z-index:30}
.game:not(.intro-closeup) .camera-rig{transform-origin:center center}
@media(max-width:760px){.game:not(.intro-closeup) .player{min-width:30px}}

/* V14 camera follow: world extends beyond every edge at all gameplay zoom levels. */
.game:not(.intro-closeup) .camera-rig{inset:-35vh -35vw!important;transform-origin:center center!important;
 transition:transform 1.45s cubic-bezier(.2,.75,.18,1),filter 1.2s ease!important}
.game:not(.intro-closeup) .player-track{inset:17% 0 8%!important}
.game:not(.intro-closeup) .player{opacity:1!important;visibility:visible!important}
.game:not(.intro-closeup) .ocean{inset:0!important}
@media(prefers-reduced-motion:reduce){.game:not(.intro-closeup) .camera-rig{transition:none!important}}


/* V15: clue is outside the camera rig, remains readable and follows the diver gently. */
.game .clue-area{position:absolute!important;z-index:24!important;top:clamp(80px,16%,145px)!important;
 left:50%!important;transform:translate3d(calc(-50% + var(--clue-follow-x,0px)),0,0)!important;
 transition:transform 1.35s cubic-bezier(.22,.72,.2,1)!important;
 width:min(590px,calc(100% - 110px))!important;pointer-events:none;
 filter:drop-shadow(0 2px 3px rgba(0,18,35,.5))}
.game .clue-area h2{font-size:clamp(10px,1.25vw,16px);line-height:1.6}
.game .clue-area p{font-size:clamp(15px,2.2vw,22px);line-height:1.2}
/* Stable player position: only the inner sprite bobs/tilts, never the tracked parent. */
.game:not(.intro-closeup) .player,
.game:not(.intro-closeup) .player.floating,
.game:not(.intro-closeup) .player.floating.swimming-left,
.game:not(.intro-closeup) .player.floating.swimming-center,
.game:not(.intro-closeup) .player.floating.swimming-right,
.game:not(.intro-closeup) .player.rising,
.game:not(.intro-closeup) .player.diving{animation:none!important;
 transform:translate3d(-50%,-50%,0)!important;
 transition:left 1.45s cubic-bezier(.2,.75,.18,1),top 1.45s cubic-bezier(.2,.75,.18,1)!important}
.game:not(.intro-closeup) .player .sprite{animation:gentle-diver-bob 3.2s ease-in-out infinite!important;
 transform-origin:center center;will-change:transform;
 transition:none!important}
@keyframes gentle-diver-bob{0%,100%{transform:translate3d(0,0,0) rotate(-4deg)}
 50%{transform:translate3d(0,-7px,0) rotate(4deg)}}
/* Never flip the whole sprite back and forth on score threshold changes. */
.game:not(.intro-closeup) .player.swimming-left .sprite,
.game:not(.intro-closeup) .player.swimming-center .sprite,
.game:not(.intro-closeup) .player.swimming-right .sprite{animation:gentle-diver-bob 3.2s ease-in-out infinite!important}
.game:not(.intro-closeup) .camera-rig{transition:transform 1.45s cubic-bezier(.2,.75,.18,1),filter 1.2s ease!important}
@media(max-width:760px){.game .clue-area{top:75px!important;width:calc(100% - 55px)!important}
 .game .clue-area h2{font-size:10px!important}.game .clue-area p{font-size:17px!important}}
@media(max-height:620px){.game .clue-area{top:62px!important}.game .clue-area h2{margin:5px 0!important}}
@media(prefers-reduced-motion:reduce){.game .clue-area,.game:not(.intro-closeup) .player{transition:none!important}
.game:not(.intro-closeup) .player .sprite{animation:none!important}}

/* V18 account and streak styles */
.auth-mode{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.auth-mode .profile-submit{flex:1;min-width:135px}
.profile-streak{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:15px 0;padding:13px 10px;
border:1px solid #ffd78c88;border-radius:12px;background:#f6a6231a;color:#ffe9a3;font-size:12px}
.profile-streak strong{font-size:21px}
.profile-streak small{font-size:9px;opacity:.85}

/* V19 four required word categories */
.category-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(440px,90vw);margin:12px auto}
.category-picker button{cursor:pointer;border:1px solid #b3e9eb88;background:#063a5dbb;color:#eaf9ff;border-radius:10px;padding:10px 9px;display:flex;flex-direction:column;align-items:center;gap:6px;transition:background .2s,transform .2s,border-color .2s}
.category-picker button b{font:9px 'Press Start 2P',monospace}
.category-picker button small{font:10px system-ui,sans-serif;opacity:.85}
.category-picker button:hover,.category-picker button:focus-visible{background:#135b80;transform:translateY(-2px)}
.category-picker button.selected{background:#1a7784;border-color:#b8ffdc;box-shadow:0 0 12px #65ead555}
.begin-button:disabled{opacity:.55;cursor:not-allowed}
@media(max-height:750px){.category-picker{margin:7px auto;gap:5px}.category-picker button{padding:6px 5px;gap:3px}}

/* Eight additional cute underwater divers */
.skin-menu{max-height:min(80vh,720px);overflow-y:auto}
.skin-choices{display:grid;gap:9px}
.emoji-sprite{width:66px;height:66px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,#a5efff55,#245c8b33 70%,transparent);border-radius:50%;border:1px solid #c5faff66}
.emoji-sprite .emoji-art{display:block;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:45px;line-height:1;filter:drop-shadow(0 3px 2px #143c6466)}
.player .emoji-sprite{width:39px;height:39px;border:0;background:transparent}
.player .emoji-sprite .emoji-art{font-size:33px}
.skin-choice .emoji-sprite{margin:auto}

/* V22 — creator credit pinned to bottom of the start screen */
.start-copyright{position:absolute;left:12px;right:12px;bottom:max(13px,env(safe-area-inset-bottom));z-index:2;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;color:#d0f9ef;font:clamp(7px,.75vw,9px)/1.5 'Press Start 2P',monospace;text-shadow:0 2px 5px #03192a;pointer-events:none}
.start-copyright strong{color:#a7ffdf;letter-spacing:1px}
.start-copyright span{font:clamp(7px,.8vw,10px)/1.3 system-ui,sans-serif;letter-spacing:1.5px;color:#d3e9e9;opacity:.88}
@media(max-height:620px){.start-copyright{position:relative;bottom:auto;margin:8px auto 2px}.overlay{overflow-y:auto}.start-content{padding-bottom:8px}}

/* V24: hot current becomes visibly sunlit, amber and tropical.
   The effect follows the actual closeness score rather than a fixed backdrop. */
.game{--heat-intensity:0;--heat-shimmer:0;isolation:isolate}
.game::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
 background:
   radial-gradient(ellipse 60% 72% at 87% 52%,rgba(255,184,72,.68),transparent 78%),
   radial-gradient(ellipse 46% 60% at 78% 16%,rgba(255,237,145,.55),transparent 80%),
   linear-gradient(90deg,transparent 30%,rgba(255,145,67,.12) 57%,rgba(255,107,55,.45) 100%);
 opacity:calc(var(--heat-intensity) * .92);mix-blend-mode:screen;
 transition:opacity 1.4s ease;animation:heat-shimmer 8s ease-in-out infinite alternate}
.hot-side:before{background:linear-gradient(270deg,rgba(255,152,55,calc(.15 + var(--heat-intensity)*.7)),rgba(255,191,87,calc(var(--heat-intensity)*.3)) 60%,transparent);
 box-shadow:inset -18px 0 36px rgba(255,150,60,calc(var(--heat-intensity)*.25))}
.hot-side{color:#ffe3a2;text-shadow:0 0 calc(6px + 12px*var(--heat-intensity)) rgba(255,185,75,.7)}
.atmosphere-glow{background:linear-gradient(90deg,rgba(46,142,231,.35),rgba(5,23,51,.1) 43%,rgba(255,172,73,.72));}
.camera-rig.camera-hot{filter:saturate(1.24) brightness(1.11) sepia(.075)}
@keyframes heat-shimmer{from{transform:translateY(-1%) scale(1)}to{transform:translateY(1%) scale(1.035)}}
@media(prefers-reduced-motion:reduce){.game::after{animation:none}}

/* V28 — richer tropical warmth as the player approaches the answer.
   Layers stay behind HUD, clues and controls; intensity is tied to guess score. */
.game{--heat-intensity:0;--sunset-intensity:0}
.game::after{
 background:
   radial-gradient(ellipse 74% 95% at 92% 43%,rgba(255,112,27,.83),transparent 76%),
   radial-gradient(ellipse 55% 70% at 73% 9%,rgba(255,243,133,.78),transparent 76%),
   radial-gradient(ellipse 70% 75% at 75% 92%,rgba(255,77,43,.48),transparent 78%),
   linear-gradient(90deg,transparent 14%,rgba(255,195,79,.24) 45%,rgba(255,106,35,.62) 100%);
 opacity:calc(var(--heat-intensity) * .97);
 filter:saturate(1.26);
 transition:opacity 1.5s ease;
}
.game::before{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
 background:radial-gradient(ellipse 75% 95% at 88% 50%,rgba(255,191,82,.37),transparent 82%),
 linear-gradient(90deg,transparent 12%,rgba(255,181,76,.1) 42%,rgba(255,128,57,.25));
 opacity:var(--sunset-intensity);mix-blend-mode:screen;transition:opacity 1.5s ease;
}
.hot-side:before{background:linear-gradient(270deg,rgba(255,116,33,calc(.2 + var(--heat-intensity)*.8)),rgba(255,205,80,calc(.12 + var(--heat-intensity)*.48)) 65%,transparent);
 box-shadow:inset -24px 0 50px rgba(255,146,45,calc(var(--heat-intensity)*.45))}
.hot-side{color:#ffecac;text-shadow:0 0 18px rgba(255,165,45,.85)}
.atmosphere-glow{background:linear-gradient(90deg,rgba(46,142,231,.35),rgba(19,72,88,.1) 35%,rgba(255,207,86,.68) 72%,rgba(255,120,39,.82))}
.camera-rig.camera-warm{filter:saturate(1.12) brightness(1.05) sepia(.045)}
.camera-rig.camera-hot{filter:saturate(1.4) brightness(1.13) sepia(.13)}
@media(prefers-reduced-motion:reduce){.game::after{animation:none}}

/* V29: only show clue after category selection, and keep it readable before diving. */
.clue-area[hidden]{display:none!important}


/* V35: A simple, in-game style pop-up with the same bag character and animated sea. */
.pudding-button{display:block;margin:12px auto 0;padding:11px 14px;background:#062b43dd;color:#d9fff8;border:1px solid #80dcd8;border-radius:2px;box-shadow:3px 3px 0 #031424;font:clamp(7px,.9vw,9px)/1.7 'Press Start 2P',monospace;transition:background .2s,transform .2s}
.pudding-button:hover{background:#0c5668;transform:translateY(-2px)}
.pudding-dialog{width:min(430px,calc(100vw - 30px));max-height:calc(100dvh - 30px);padding:0;overflow:auto;color:#e9fffa;background:#06263e;border:2px solid #82e5de;border-radius:3px;box-shadow:6px 6px 0 #031321,0 20px 70px #000b;text-align:center;animation:pudding-popup .28s cubic-bezier(.16,.85,.25,1) both}
.pudding-dialog::backdrop{background:#020d1ec9;backdrop-filter:blur(3px)}
.pudding-scene{height:145px;position:relative;overflow:hidden;background:linear-gradient(180deg,#a3e1e4 0%,#63bdc9 19%,#168fa9 24%,#07577a 64%,#063653 100%);border-bottom:2px solid #83dcd9}
.pudding-wave{position:absolute;top:21%;left:-10%;width:120%;height:12px;border-top:3px solid #dcfff3;border-radius:50%;box-shadow:0 3px 12px #d6fff588;animation:pudding-surface-drift 3.6s ease-in-out infinite alternate}
.pudding-sunbeam{position:absolute;top:22%;left:22%;height:120%;width:65%;background:linear-gradient(180deg,#d4fff04a,transparent 85%);clip-path:polygon(0 0,40% 0,100% 100%,30% 100%);transform-origin:top;animation:pudding-beam 7s ease-in-out infinite alternate}
.pudding-diver{position:absolute;left:50%;top:55%;animation:pudding-float 3.2s ease-in-out infinite;filter:drop-shadow(0 5px 4px #04223e77)}
.pudding-diver .bag-sprite{width:34px;height:42px;position:relative;transform:scale(1.35)}
.pudding-air{position:absolute;bottom:-12px;border:1px solid #d3fffa9c;border-radius:50%;width:8px;height:8px;animation:pudding-bubble 6s linear infinite}
.air-one{left:18%;animation-delay:-1s}.air-two{left:30%;width:5px;height:5px;animation-delay:-4s}.air-three{left:75%;width:11px;height:11px;animation-delay:-2.7s}.air-four{left:88%;width:6px;height:6px;animation-delay:-5s}
.pudding-copy{padding:20px 23px 22px;background:linear-gradient(180deg,#07354c,#052238)}
.pudding-kicker{font:7px/1.6 'Press Start 2P',monospace;letter-spacing:.2px;color:#8edfdc;margin-bottom:13px}
.pudding-dialog h2{font:clamp(12px,2.5vw,16px)/1.7 'Press Start 2P',monospace;color:#d8fff6;margin:0 0 13px;text-shadow:2px 2px #021625}
.pudding-dialog p{font:22px/1.22 'VT323',monospace;color:#d5eff0;margin:0 0 19px}
.pudding-actions{display:flex;flex-direction:column;gap:9px}
.pudding-actions a,.pudding-actions button{display:block;padding:11px 9px;text-decoration:none;font:clamp(7px,1.7vw,9px)/1.6 'Press Start 2P',monospace;border-radius:2px;cursor:pointer}
.pudding-actions a{background:#81e3d5;color:#062f42;border:2px solid #c1fff2;box-shadow:3px 3px 0 #031626}.pudding-actions a:hover{background:#b9fff0}
.pudding-actions button{background:transparent;color:#b5dfdf;border:1px solid #4a8998}.pudding-actions button:hover{background:#0e4356}
@keyframes pudding-popup{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pudding-float{0%,100%{transform:translate(-50%,-50%) rotate(-5deg)}50%{transform:translate(-50%,calc(-50% - 8px)) rotate(5deg)}}
@keyframes pudding-surface-drift{from{transform:translateX(-8px) skewY(-1deg)}to{transform:translateX(8px) skewY(1deg)}}
@keyframes pudding-beam{from{transform:rotate(-5deg)}to{transform:rotate(6deg)}}
@keyframes pudding-bubble{0%{transform:translateY(0);opacity:0}15%{opacity:.8}85%{opacity:.6}100%{transform:translate(12px,-170px);opacity:0}}
@media(prefers-reduced-motion:reduce){.pudding-dialog,.pudding-scene *{animation:none!important}}
@media(max-height:680px){.pudding-scene{height:105px}.pudding-copy{padding:13px 18px}.pudding-dialog p{font-size:19px}}

/* V36 — translucent water-glass popup; the real game ocean remains visible behind it. */
.pudding-dialog{position:fixed;isolation:isolate;overflow:hidden;width:min(440px,calc(100vw - 26px));max-height:calc(100dvh - 28px);background:linear-gradient(145deg,rgba(170,245,245,.16),rgba(16,105,139,.13) 55%,rgba(6,49,85,.24));border:1px solid rgba(205,255,251,.58);border-radius:18px;box-shadow:0 18px 70px rgba(0,17,40,.34),inset 0 1px 0 rgba(255,255,255,.44),inset 0 0 28px rgba(144,239,255,.08);-webkit-backdrop-filter:blur(19px) saturate(150%);backdrop-filter:blur(19px) saturate(150%);animation:pudding-glass-enter .48s cubic-bezier(.18,.9,.22,1) both}
.pudding-dialog::backdrop{background:rgba(0,19,35,.28);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.pudding-dialog::before{content:'';position:absolute;inset:-60% -50%;z-index:0;pointer-events:none;background:repeating-radial-gradient(ellipse at 45% 30%,transparent 0 24px,rgba(202,255,250,.14) 27px,transparent 32px,transparent 58px);transform:rotate(-15deg);animation:pudding-caustics 9s ease-in-out infinite alternate}
.pudding-scene{height:172px;background:linear-gradient(180deg,rgba(205,255,248,.17),rgba(74,197,209,.13) 35%,rgba(3,73,114,.07));border-bottom:1px solid rgba(215,255,251,.26);isolation:isolate}
.pudding-scene::before,.pudding-scene::after{content:'';position:absolute;left:-15%;width:130%;height:75px;top:11%;border-radius:50%;border-top:2px solid rgba(234,255,252,.55);box-shadow:0 -9px 20px rgba(203,255,250,.14),0 7px 14px rgba(87,225,233,.14);animation:pudding-water-flow 4.5s ease-in-out infinite alternate}
.pudding-scene::after{top:19%;opacity:.45;animation-duration:6s;animation-direction:alternate-reverse}
.pudding-wave{top:16%;height:26px;left:-20%;width:140%;border-top:2px solid rgba(237,255,252,.8);box-shadow:0 5px 14px rgba(210,255,253,.28);animation:pudding-water-flow 3.4s ease-in-out infinite alternate}
.pudding-sunbeam{top:0;height:140%;opacity:.65;filter:blur(7px);animation:pudding-beam 5.5s ease-in-out infinite alternate}
.pudding-diver{z-index:2;top:57%;animation:pudding-float 2.8s ease-in-out infinite;filter:drop-shadow(0 8px 8px rgba(0,30,60,.35))}
.pudding-air{z-index:2;border-color:rgba(225,255,255,.72);box-shadow:inset -2px -2px 4px rgba(211,255,255,.24),0 0 8px rgba(200,255,252,.18);animation-duration:4.8s}
.pudding-copy{position:relative;z-index:2;background:linear-gradient(180deg,rgba(2,53,84,.12),rgba(3,43,75,.23));padding:21px 23px 23px}
.pudding-kicker{color:#c7fffa;text-shadow:0 1px 5px rgba(0,35,57,.7)}
.pudding-dialog h2{color:#f0fffc;text-shadow:0 2px 9px rgba(0,34,53,.8)}
.pudding-dialog p{color:#f0fffd;text-shadow:0 1px 7px rgba(0,30,52,.85)}
.pudding-actions a{background:rgba(156,255,231,.85);border:1px solid rgba(236,255,251,.92);border-radius:8px;box-shadow:0 4px 14px rgba(0,33,55,.2);transition:transform .2s,background .2s}
.pudding-actions a:hover{transform:translateY(-2px);background:rgba(202,255,243,.96)}
.pudding-actions button{border-radius:8px;background:rgba(3,48,77,.19);color:#e3fffb;border:1px solid rgba(210,255,250,.37);transition:background .2s}
.pudding-actions button:hover{background:rgba(129,224,226,.22)}
@keyframes pudding-glass-enter{from{opacity:0;transform:translateY(28px) scale(.93);filter:blur(8px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes pudding-water-flow{0%{transform:translateX(-14px) translateY(-4px) rotate(-1deg)}50%{transform:translateX(10px) translateY(5px) rotate(.6deg)}100%{transform:translateX(22px) translateY(-3px) rotate(1deg)}}
@keyframes pudding-caustics{from{transform:translate(-3%,-2%) rotate(-15deg) scale(1)}to{transform:translate(4%,3%) rotate(-8deg) scale(1.12)}}
@media(prefers-reduced-motion:reduce){.pudding-dialog,.pudding-dialog::before,.pudding-scene::before,.pudding-scene::after{animation:none!important}}


/* Refined donation dialog — calm, barely tinted sea glass, not a second ocean scene. */
.pudding-dialog {
  position:fixed; isolation:isolate; box-sizing:border-box;
  width:min(414px,calc(100vw - 32px)); max-height:min(680px,calc(100dvh - 28px));
  overflow:auto; padding:0; text-align:center;
  color:#f2fffe;
  background:linear-gradient(145deg,rgba(186,245,245,.12),rgba(8,62,88,.16) 48%,rgba(4,36,61,.24));
  border:1px solid rgba(228,255,252,.46); border-radius:24px;
  box-shadow:0 24px 85px rgba(0,14,33,.38),0 3px 12px rgba(0,16,33,.12),inset 0 1px 0 rgba(255,255,255,.40);
  -webkit-backdrop-filter:blur(16px) saturate(125%);backdrop-filter:blur(16px) saturate(125%);
  animation:pudding-refined-in .48s cubic-bezier(.2,.85,.2,1) both;
}
.pudding-dialog::backdrop{background:rgba(1,19,36,.30);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.pudding-dialog::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
 background:linear-gradient(112deg,transparent 18%,rgba(224,255,255,.075) 39%,transparent 61%);
 animation:pudding-light-drift 11s ease-in-out infinite alternate}
.pudding-scene{height:132px;position:relative;overflow:hidden;isolation:isolate;
 background:radial-gradient(ellipse 65% 85% at 50% 0%,rgba(208,255,249,.14),transparent 75%);
 border-bottom:1px solid rgba(219,255,252,.15)}
.pudding-scene::before{content:'';position:absolute;left:-10%;top:17px;width:120%;height:42px;
 border-top:1px solid rgba(232,255,253,.28);border-radius:50%;opacity:.8;
 animation:pudding-tide 7s ease-in-out infinite alternate}
.pudding-scene::after{content:'';position:absolute;left:-12%;top:31px;width:124%;height:44px;
 border-top:1px solid rgba(200,251,248,.16);border-radius:50%;animation:pudding-tide 9s ease-in-out infinite alternate-reverse}
.pudding-wave{top:21px;left:-10%;width:120%;height:24px;border-top:1px solid rgba(245,255,255,.30);box-shadow:none;opacity:.6;animation:pudding-tide 6s ease-in-out infinite alternate}
.pudding-sunbeam{opacity:.28;filter:blur(12px);animation:pudding-beam 10s ease-in-out infinite alternate}
.pudding-diver{top:59%;filter:drop-shadow(0 8px 12px rgba(0,24,44,.20));animation:pudding-float 4.5s ease-in-out infinite}
.pudding-diver .bag-sprite{transform:scale(1.4)}
.pudding-air{border-color:rgba(219,255,251,.42);box-shadow:none;opacity:.5;animation-duration:7s}
.pudding-copy{position:relative;z-index:2;padding:24px 27px 27px;background:transparent}
.pudding-kicker{margin-bottom:14px;color:#b5eae5;font:7px/1.7 'Press Start 2P',monospace;letter-spacing:.35px;text-shadow:0 1px 8px rgba(0,22,40,.38)}
.pudding-dialog h2{margin:0 0 15px;color:#f1fffc;font:clamp(13px,3vw,17px)/1.65 'Press Start 2P',monospace;text-shadow:0 2px 13px rgba(0,25,43,.38)}
.pudding-dialog p{max-width:345px;margin:0 auto 23px;color:rgba(240,255,254,.93);font:clamp(20px,4.6vw,23px)/1.23 'VT323',monospace;text-shadow:0 1px 9px rgba(0,23,42,.40)}
.pudding-actions{gap:11px}
.pudding-actions a,.pudding-actions button{box-sizing:border-box;min-height:43px;display:flex;align-items:center;justify-content:center;border-radius:12px;font:clamp(7px,1.7vw,8px)/1.6 'Press Start 2P',monospace;transition:transform .2s,background .2s,border-color .2s}
.pudding-actions a{background:rgba(194,255,235,.92);color:#0b3b49;border:1px solid rgba(247,255,250,.95);box-shadow:0 4px 15px rgba(0,24,42,.14)}
.pudding-actions a:hover{background:#e0fff4;transform:translateY(-2px)}
.pudding-actions button{background:rgba(7,49,73,.12);color:#e0f8f5;border:1px solid rgba(212,255,250,.25)}
.pudding-actions button:hover{background:rgba(197,255,248,.12);border-color:rgba(218,255,250,.46)}
@keyframes pudding-refined-in{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pudding-tide{from{transform:translate(-12px,0) rotate(-.7deg)}to{transform:translate(13px,4px) rotate(.7deg)}}
@keyframes pudding-light-drift{from{transform:translateX(-18%)}to{transform:translateX(18%)}}
@media(prefers-reduced-motion:reduce){.pudding-dialog,.pudding-dialog::before,.pudding-scene *,.pudding-scene::before,.pudding-scene::after{animation:none!important}}
@media(max-height:680px){.pudding-scene{height:94px}.pudding-copy{padding:16px 21px 19px}.pudding-dialog p{margin-bottom:15px}}

/* Slightly larger hint and answer controls for readability. */
.console-foot #hintButton,
.console-foot #revealAnswerButton { font-size: 7.5px; line-height: 1.5; }
@media (max-width: 760px) {
  .console-foot #hintButton, .console-foot #revealAnswerButton { font-size: 6px; }
}
@media (max-width: 430px) {
  .console-foot #hintButton, .console-foot #revealAnswerButton { font-size: 5.5px; }
}

/* Simple current-zone readout; no additional HUD or announcements. */
.world-status{font-size:clamp(7px, .7vw, 9px);gap:10px}
@media(max-width:430px){.world-status{font-size:6px;gap:6px}}

/* Compact temperature/zone label travels with the swimming character. */
.player .world-status{
  position:absolute;left:calc(100% + 11px);right:auto;top:65%;bottom:auto;
  transform:none;display:flex;align-items:flex-start;flex-direction:column;
  gap:5px;font-size:6px;line-height:1.6;white-space:nowrap;
  text-align:left;pointer-events:none;z-index:13;
}
.player .world-status .status-pip,.player .world-status .status-separator{display:none}
.player.swimming-right .world-status{left:auto;right:calc(100% + 11px);text-align:right;align-items:flex-end}
@media(max-width:760px){.player .world-status{font-size:5px;gap:4px;left:calc(100% + 7px)}.player.swimming-right .world-status{right:calc(100% + 7px)}}
@media(max-width:430px){.player .world-status{font-size:4.5px;gap:3px}}

/* Small zone letters physically attached to the swimmer: always follow it. */
.game #player #zoneFollow{
  position:absolute!important;z-index:30!important;
  left:calc(100% + 9px)!important;top:65%!important;
  right:auto!important;bottom:auto!important;
  transform:none!important;display:flex!important;flex-direction:column!important;
  align-items:flex-start!important;gap:5px!important;
  width:max-content!important;white-space:nowrap!important;
  font:6px/1.7 'Press Start 2P',monospace!important;
  color:#c1eeee!important;text-shadow:0 1px 4px #001629,0 0 8px #001629!important;
  pointer-events:none!important;transition:none!important;
}
.game #player #zoneFollow .status-pip,.game #player #zoneFollow .status-separator{display:none!important}
@media(max-width:600px){.game #player #zoneFollow{font-size:5px!important;left:calc(100% + 5px)!important}}

/* Visible sprite follower: independent of the camera's transforms. */
.game #zoneFollow{
  position:absolute!important;z-index:70!important;
  right:auto!important;bottom:auto!important;
  transform:none!important;display:none;
  flex-direction:row!important;align-items:center!important;
  width:max-content!important;max-width:none!important;
  gap:7px!important;white-space:nowrap!important;
  font:6px/1.7 'Press Start 2P',monospace!important;
  color:#c1eeee!important;text-shadow:0 1px 4px #001629,0 0 8px #001629!important;
  pointer-events:none!important;transition:none!important;
}
.game #zoneFollow .status-pip{display:inline-block!important;width:5px;height:5px}
.game #zoneFollow .status-separator{display:inline!important}
@media(max-width:600px){.game #zoneFollow{font-size:5px!important;gap:5px!important}}

/* Zone badge: physically parented to the player, not the screen/camera HUD. */
.game #player #zoneFollow{
  position:absolute!important;
  left:calc(100% + 12px)!important;
  top:63%!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:5px!important;
  width:max-content!important;
  max-width:none!important;
  font:6px/1.7 'Press Start 2P',monospace!important;
  white-space:nowrap!important;
  pointer-events:none!important;
  z-index:30!important;
}
.game #player #zoneFollow .status-pip,
.game #player #zoneFollow .status-separator{display:none!important}
.game.intro-closeup #player #zoneFollow{display:none!important}
@media(max-width:600px){.game #player #zoneFollow{left:calc(100% + 6px)!important;font-size:5px!important}}

/* Screen-space guess history: never moves or scales with the ocean camera. */
.game > #guessTrail{position:absolute!important;left:clamp(14px,2.5vw,34px)!important;bottom:clamp(140px,21%,230px)!important;z-index:25!important;transform:none!important;width:clamp(112px,15vw,200px)!important;pointer-events:none}
@media(max-width:760px){.game > #guessTrail{left:12px!important;bottom:23%!important;width:115px!important}}
@media(max-width:430px){.game > #guessTrail{display:block!important;left:9px!important;bottom:27%!important;width:100px!important;max-height:100px!important}.game > #guessTrail .trail-item{font-size:13px}.game > #guessTrail .trail-heading,.game > #guessTrail .trail-score{font-size:4px}}
/* Zone remains a child of the player, but counter-scales against camera zoom
   so the small pixel letters don't grow huge or disappear out of view. */
.game:not(.intro-closeup) #player #zoneFollow{
  transform:scale(var(--zone-inverse-zoom, .91))!important;
  transform-origin:left center!important;
  left:calc(100% + 10px)!important;top:48%!important;
  font-size:7px!important;line-height:1.6!important;
  filter:drop-shadow(0 1px 2px #001629);
}
@media(max-width:600px){.game:not(.intro-closeup) #player #zoneFollow{font-size:6px!important;left:calc(100% + 6px)!important}}

/* VISIBLE SCREEN HUD: not inside the zooming camera or animated sprite. */
.game > #zoneFollow {
  display:flex!important; position:absolute!important; z-index:110!important;
  top:48%; right:auto!important; bottom:auto!important;
  transform:none!important; flex-direction:column!important;
  align-items:flex-start!important; gap:7px!important;
  width:max-content!important; max-width:190px!important;
  white-space:nowrap!important; pointer-events:none!important;
  font:7px/1.6 'Press Start 2P',monospace!important;
  color:#d8ffff!important; text-shadow:0 1px 3px #001321,0 0 9px #001321!important;
  transition:none!important; filter:none!important;
}
.game > #zoneFollow .status-pip,.game > #zoneFollow .status-separator {display:none!important}
.game.intro-closeup > #zoneFollow {display:none!important}
.game > #guessTrail {
  display:block!important; position:absolute!important; z-index:100!important;
  left:clamp(16px,3vw,42px)!important; bottom:clamp(100px,17vh,170px)!important;
  transform:none!important; width:clamp(150px,17vw,225px)!important;
  opacity:1!important; visibility:visible!important; pointer-events:none!important;
}
.game.intro-closeup > #guessTrail {display:none!important}
.game > #guessTrail .trail-heading{font-size:7px!important}
.game > #guessTrail .trail-item{font-size:19px!important}
@media(max-width:600px){
  .game > #zoneFollow{font-size:5px!important;gap:5px!important}
  .game > #guessTrail{left:10px!important;bottom:25%!important;width:130px!important}
  .game > #guessTrail .trail-item{font-size:15px!important}
}

/* Zone overlay stays legible and reflects the current percentage band. */
.game > #zoneFollow { transition:color .45s ease!important; }
.game > #zoneFollow[data-zone="depth-abyss"] {color:#c9edff!important}
.game > #zoneFollow[data-zone="depth-midnight"] {color:#b5d6ff!important}
.game > #zoneFollow[data-zone="depth-twilight"] {color:#bff5ef!important}
.game > #zoneFollow[data-zone="depth-surface"] {color:#fff0b3!important}
.game > #zoneFollow.zone-on-left {align-items:flex-end!important;text-align:right!important}

/* Startup connection feedback only; existing scene and gameplay are unchanged. */
.connection-status{margin:10px auto 0;min-height:18px;color:#9af2e5;font:7px/1.8 'Press Start 2P',monospace;text-align:center;cursor:default}
.connection-status:has(+ .start-note){max-width:90vw}

button.connection-status{display:block;border:0;background:transparent;padding:0;cursor:pointer}button.connection-status:focus-visible{outline:2px solid #9af2e5;outline-offset:4px}


/* v40: optional Daily Dive, progress and results panels. The existing ocean and
   animated startup experience are deliberately left unchanged. */
.daily-choice{grid-column:1/-1;max-width:340px;justify-self:center;width:100%;border-color:#76e4d1!important;background:linear-gradient(110deg,#0b4058,#082b43)!important}
.start-stats-button{margin:10px auto 0;padding:6px 10px;color:#bfece4;background:transparent;border:1px solid #478a94;font:6px 'Press Start 2P',monospace;line-height:1.8}
.start-stats-button:hover{border-color:#bcfff0;background:#0b3850}
.daily-menu-note{color:#ffda91;font:6px/1.8 'Press Start 2P',monospace;text-align:center;margin:9px 0 0;max-width:420px}
.daily-menu-note[hidden]{display:none}
.signal-guide{font:11px/1.4 'VT323',monospace;color:#82c8d2;margin:5px 2px 0;text-align:center;letter-spacing:.04em}
.dive-panel{position:fixed;z-index:100;width:min(540px,calc(100vw - 26px));max-height:calc(100dvh - 28px);overflow-y:auto;padding:22px;color:#e7fffa;background:linear-gradient(155deg,#0a3c55,#062237 58%,#031525);border:2px solid #7ee9d9;border-radius:12px;box-shadow:0 20px 90px #000b,0 0 35px #70ead025;text-align:center}
.dive-panel::backdrop{background:#010c1dc9;backdrop-filter:blur(5px)}
.dive-panel .panel-topline{display:flex;justify-content:space-between;align-items:center;font:7px 'Press Start 2P',monospace;color:#96e9e0;letter-spacing:1px}
.dive-panel .panel-topline button{border:0;background:none;color:#f4ffff;font:30px 'VT323',monospace;line-height:1;cursor:pointer}
.dive-panel h2{font:clamp(13px,3.6vw,21px)/1.65 'Press Start 2P',monospace;color:#f9fff3;text-shadow:0 0 17px #7fffff55;margin:13px 0 6px}
.dive-panel .panel-subtitle{font:20px/1.2 'VT323',monospace;color:#b2dde4;margin:8px 0 18px}
.result-medal{font-size:47px;line-height:1;margin:12px 0 0;filter:drop-shadow(0 0 15px #b0ffe672)}
.result-answer-label{font:7px 'Press Start 2P',monospace;color:#8cbcc9;margin:16px 0 7px}
.result-answer{font:clamp(25px,7vw,37px) 'VT323',monospace;letter-spacing:2px;color:#ffdf94;overflow-wrap:anywhere}
.result-stats-grid,.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0}
.result-stats-grid>div,.stats-grid>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#021728aa;border:1px solid #3d8793;border-radius:7px;padding:15px 6px}
.result-stats-grid span,.stats-grid span{font:6px/1.55 'Press Start 2P',monospace;color:#9ed6dc}
.result-stats-grid b,.stats-grid b{font:clamp(19px,4vw,25px) 'VT323',monospace;color:#e6fffa;overflow-wrap:anywhere}
.unlocked-list{font:18px 'VT323',monospace;color:#ffda95;margin:8px auto 15px}
.panel-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}
.panel-actions button,.panel-bottom-button{padding:12px 12px;background:#0b445a;color:#f1fffb;border:1px solid #77e3d4;border-radius:5px;font:7px/1.6 'Press Start 2P',monospace}
.panel-actions button:first-child{background:#1a6571}
.panel-actions button:disabled{opacity:.45;cursor:not-allowed}
.stats-panel h3{font:9px 'Press Start 2P',monospace;color:#aef2dc;text-align:left;margin:20px 0 13px}
.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.stats-grid>div{padding:13px 6px}
.achievement-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;text-align:left}
.achievement-row{display:flex;align-items:center;gap:10px;padding:12px 9px;min-height:68px;background:#03192bae;border:1px solid #347685;border-radius:8px}
.achievement-row.locked{opacity:.52}
.achievement-row .achievement-icon{font-size:27px;flex:0 0 28px}
.achievement-row b{display:block;font:7px/1.7 'Press Start 2P',monospace;color:#e4fff4}
.achievement-row small{display:block;font:16px/1.1 'VT323',monospace;color:#aad0d8;margin-top:3px}
.panel-bottom-button{display:block;margin:18px auto 2px}
@media(max-width:760px){.hud-top .stats-open{font-size:5px;padding:8px 5px}.signal-guide{font-size:9px}.dive-panel{padding:16px}}
@media(max-width:420px){.stats-grid span,.result-stats-grid span{font-size:5px}.achievement-row{gap:6px;padding:10px 6px}.achievement-row b{font-size:6px}.start-stats-button{font-size:5px}}
@media(max-height:650px){.dive-panel{max-height:calc(100dvh - 12px)}.dive-panel .panel-subtitle{margin-bottom:8px}}

/* Keep the opening menu uncluttered until the first real guess. */
.game.intro-closeup .signal-guide{display:none}

/* Compact performance text lives over the real ocean, not in a separate overlay. */
.sea-discovery[hidden]{display:none!important}
.sea-discovery{
  position:absolute;z-index:75;top:94px;right:clamp(16px,3.6vw,58px);
  width:clamp(175px,18vw,235px);max-width:calc(100vw - 32px);
  padding:0;margin:0;background:none!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;
  color:#e9ffff;text-align:right;pointer-events:none;
  text-shadow:0 2px 7px #001b2f,0 0 12px #001b2f;
  animation:sea-performance-appear .75s ease-out both;
}
.sea-discovery-kicker{font:7px/1.7 'Press Start 2P',monospace;letter-spacing:.04em;color:#8ceee5}
.sea-discovery-status{margin-top:6px;font:15px/1.1 'VT323',monospace;color:#c8fff1}
.sea-discovery .result-answer{font:clamp(25px,3vw,39px)/1.05 'VT323',monospace;letter-spacing:1px;color:#ffe5a2;overflow-wrap:anywhere}
.sea-performance-main{margin-top:10px;display:flex;align-items:baseline;justify-content:flex-end;gap:10px}
.sea-performance-main span,.sea-performance-line span{font:6px/1.5 'Press Start 2P',monospace;color:#b1e6eb}
.sea-performance-main strong{font:31px/1 'VT323',monospace;color:#fff0b7}
.sea-performance-line{display:flex;justify-content:flex-end;align-items:baseline;gap:10px;margin-top:4px}
.sea-performance-line b{font:23px/1 'VT323',monospace;color:#f1fffd;min-width:45px}
.sea-discovery .discovery-achievements{font:15px/1.1 'VT323',monospace;color:#ffe9a9;margin-top:8px}
@keyframes sea-performance-appear{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
/* Leave the water, camera, diver, HUD, and existing play-again button visible. */
@media(max-width:760px){
  .sea-discovery{top:91px;right:14px;width:170px}
  .sea-discovery-kicker{font-size:6px}
  .sea-discovery .result-answer{font-size:28px}
  .sea-performance-main strong{font-size:27px}
  .sea-performance-line b{font-size:20px}
}
@media(max-width:420px){
  .sea-discovery{top:120px;right:11px;width:156px}
  .sea-discovery-kicker{font-size:5px}
  .sea-discovery .result-answer{font-size:25px}
  .sea-performance-main span,.sea-performance-line span{font-size:5px}
}
@media(prefers-reduced-motion:reduce){.sea-discovery{animation:none}}

/* Completed Daily Dive: a single lightweight floating return action. */
.daily-back-float[hidden]{display:none!important}
.sea-discovery .daily-back-float{
  display:inline-flex;align-items:center;justify-content:center;margin-top:13px;
  padding:10px 13px;border-radius:999px;border:1px solid #a2f4e5a6;
  background:#063f5299;color:#eafffa;backdrop-filter:blur(3px);
  font:6px/1.5 'Press Start 2P',monospace;letter-spacing:.02em;
  text-shadow:0 1px 5px #001725;box-shadow:0 3px 13px #001d2833;
  cursor:pointer;pointer-events:auto;animation:sea-performance-appear .6s ease-out both;
}
.sea-discovery .daily-back-float:hover,.sea-discovery .daily-back-float:focus-visible{
  background:#0b6274b8;border-color:#d0fff5;outline-offset:3px;
}
@media(max-width:420px){.sea-discovery .daily-back-float{font-size:5px;padding:9px 11px;margin-top:10px}}


/* Watery Dive Log refresh: make the stats dialog feel like a floating part of the sea. */
.stats-panel{
  position:fixed;
  width:min(700px,calc(100vw - 24px));
  padding:18px 18px 20px;
  border:1px solid rgba(139,240,231,.62);
  border-radius:28px;
  background:
    radial-gradient(circle at 18% 14%, rgba(170,255,248,.18), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(255,245,170,.12), transparent 18%),
    linear-gradient(180deg, rgba(8,72,98,.88) 0%, rgba(5,39,60,.88) 18%, rgba(4,27,45,.90) 52%, rgba(3,20,34,.94) 100%);
  box-shadow:0 28px 90px rgba(0,8,18,.62), 0 0 0 1px rgba(142,240,235,.08) inset, 0 0 44px rgba(108,235,223,.14);
  backdrop-filter:blur(16px) saturate(1.15);
  overflow:hidden;
}
.stats-panel::before{
  content:"";position:absolute;left:0;right:0;top:0;height:92px;pointer-events:none;
  background:
    radial-gradient(circle at 16% 28%, rgba(255,255,255,.22) 0 10px, transparent 11px),
    radial-gradient(circle at 83% 34%, rgba(255,255,255,.14) 0 7px, transparent 8px),
    radial-gradient(circle at 68% 22%, rgba(255,255,255,.12) 0 4px, transparent 5px),
    linear-gradient(180deg, rgba(157,245,239,.18), rgba(98,206,218,.12) 35%, rgba(0,0,0,0) 100%);
}
.stats-panel::after{
  content:"";position:absolute;left:-10%;right:-10%;top:58px;height:18px;pointer-events:none;opacity:.88;
  background:radial-gradient(ellipse at center, rgba(185,255,251,.34) 0%, rgba(96,215,228,.18) 46%, rgba(0,0,0,0) 70%);
  filter:blur(6px);
}
.stats-panel .panel-topline{
  position:relative;z-index:1;
  padding:10px 14px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(152,245,236,.13), rgba(6,55,78,.16));
  border:1px solid rgba(139,236,230,.2);
  box-shadow:0 8px 30px rgba(0,16,30,.22) inset;
}
.stats-panel .panel-topline button{
  width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;border:1px solid rgba(186,255,250,.38);background:rgba(4,47,66,.64);
  box-shadow:0 0 0 1px rgba(255,255,255,.04) inset, 0 6px 20px rgba(0,7,15,.28);
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.stats-panel .panel-topline button:hover,.stats-panel .panel-topline button:focus-visible{
  transform:translateY(-1px) scale(1.04);background:rgba(10,78,102,.82);border-color:rgba(217,255,252,.78);outline-offset:3px;
}
.stats-panel h2{position:relative;z-index:1;margin:18px 0 4px;font-size:clamp(15px,3.2vw,24px);}
.stats-panel .panel-subtitle{position:relative;z-index:1;color:#c7ebef;margin:6px 0 16px;}
.stats-grid{position:relative;z-index:1;gap:12px;margin:18px 0 20px;}
.stats-grid>div{
  position:relative;overflow:hidden;min-height:106px;
  border:1px solid rgba(130,228,222,.24);border-radius:18px;
  background:linear-gradient(180deg, rgba(6,43,60,.78), rgba(2,24,39,.72));
  box-shadow:0 10px 28px rgba(0,8,18,.25), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.stats-grid>div::before{
  content:"";position:absolute;left:8px;right:8px;top:8px;height:28px;border-radius:999px;
  background:linear-gradient(180deg, rgba(167,247,240,.12), rgba(167,247,240,.02));
  opacity:.8;pointer-events:none;
}
.stats-grid>div::after{
  content:"";position:absolute;right:12px;top:12px;width:10px;height:10px;border-radius:50%;
  background:rgba(210,255,248,.42);box-shadow:-16px 10px 0 -3px rgba(210,255,248,.22), -6px 22px 0 -5px rgba(210,255,248,.16);
  pointer-events:none;
}
.stats-grid span{color:#9edee5;letter-spacing:.04em;}
.stats-grid b{font-size:clamp(23px,4vw,30px);color:#f6fffc;text-shadow:0 3px 12px rgba(0,0,0,.35);}
.stats-panel h3{position:relative;z-index:1;margin:10px 2px 13px;color:#caffea;}
.achievement-gallery{position:relative;z-index:1;gap:11px;}
.achievement-row{
  min-height:82px;border-radius:18px;
  background:linear-gradient(180deg, rgba(5,34,52,.82), rgba(2,22,38,.76));
  border:1px solid rgba(120,223,217,.22);
  box-shadow:0 8px 22px rgba(0,8,16,.2);
}
.achievement-row .achievement-icon{filter:drop-shadow(0 0 10px rgba(174,255,238,.18));}
.achievement-row b{color:#ecfffb;}
.achievement-row small{color:#afdbe0;}
.stats-panel .panel-bottom-button{
  position:relative;z-index:1;margin-top:18px;padding:13px 20px;
  border-radius:999px;border:1px solid rgba(169,249,241,.42);
  background:linear-gradient(180deg, rgba(19,104,120,.92), rgba(10,69,90,.95));
  box-shadow:0 10px 24px rgba(0,11,20,.28), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.stats-panel .panel-bottom-button:hover,.stats-panel .panel-bottom-button:focus-visible{
  background:linear-gradient(180deg, rgba(29,128,148,.96), rgba(12,83,108,.97));border-color:rgba(221,255,250,.78);outline-offset:3px;
}
@media(max-width:760px){
  .stats-panel{width:min(96vw,680px);padding:15px 14px 18px;border-radius:24px;}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .achievement-gallery{grid-template-columns:1fr;}
}
@media(max-width:430px){
  .stats-panel{padding:14px 12px 16px;border-radius:22px;}
  .stats-panel .panel-topline{padding:9px 11px;}
  .stats-panel .panel-topline button{width:34px;height:34px;}
  .stats-grid>div{min-height:92px;border-radius:16px;}
  .stats-grid b{font-size:25px;}
}


/* FLOATING RIGHT DIVE LOG — text over the actual animated ocean, no modal/card. */
#statsDialog.stats-panel{
  position:fixed!important;top:clamp(80px,12vh,118px)!important;right:clamp(12px,3vw,48px)!important;
  left:auto!important;bottom:auto!important;margin:0!important;
  width:clamp(185px,20vw,265px)!important;max-width:calc(100vw - 20px)!important;
  max-height:calc(100dvh - 110px)!important;overflow-y:auto!important;
  padding:0 3px 10px 0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;
  text-align:right!important;color:#effffc!important;
  text-shadow:0 2px 7px #001728,0 0 12px #001728;
  scrollbar-width:thin;scrollbar-color:#75b9c6 transparent;
  animation:sea-performance-appear .45s ease-out both;
}
#statsDialog.stats-panel::before,#statsDialog.stats-panel::after{content:none!important;display:none!important}
#statsDialog.stats-panel::backdrop{background:transparent!important;backdrop-filter:none!important}
#statsDialog.stats-panel .panel-topline{display:flex;justify-content:flex-end;gap:12px;
  padding:0!important;margin:0 0 8px!important;border:0!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;
  font:6px/1.5 'Press Start 2P',monospace;color:#8feee0;
}
#statsDialog.stats-panel .panel-topline button{width:23px!important;height:23px!important;min-width:23px;
  padding:0!important;border:0!important;border-radius:0!important;background:none!important;
  box-shadow:none!important;color:#d6fff7!important;font:25px/1 'VT323',monospace;
}
#statsDialog.stats-panel h2{font:clamp(10px,1.25vw,14px)/1.5 'Press Start 2P',monospace;
  margin:0 0 2px!important;color:#f6fff3!important;text-shadow:0 2px 8px #001728,0 0 10px #a1ffdd66;
}
#statsDialog.stats-panel .panel-subtitle{margin:0 0 13px!important;
  font:6px/1.5 'Press Start 2P',monospace;color:#99dce3;}
#statsDialog.stats-panel .stats-grid{display:flex!important;flex-direction:column!important;
  gap:5px!important;margin:0 0 17px!important;padding:0!important;}
#statsDialog.stats-panel .stats-grid>div{display:flex!important;flex-direction:row!important;
  align-items:baseline!important;justify-content:flex-end!important;gap:9px!important;
  min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;overflow:visible!important;}
#statsDialog.stats-panel .stats-grid>div::before,#statsDialog.stats-panel .stats-grid>div::after{display:none!important;content:none!important;}
#statsDialog.stats-panel .stats-grid span{font:5px/1.5 'Press Start 2P',monospace!important;
  color:#a6e1e7!important;letter-spacing:0!important;white-space:normal;}
#statsDialog.stats-panel .stats-grid b{font:clamp(19px,2.1vw,25px)/1 'VT323',monospace!important;
  color:#fff0b7!important;white-space:nowrap;}
#statsDialog.stats-panel h3{margin:0 0 7px!important;text-align:right!important;
  font:7px/1.6 'Press Start 2P',monospace!important;color:#b6ffeb!important;}
#statsDialog.stats-panel .achievement-gallery{display:flex!important;flex-direction:column!important;
  gap:5px!important;margin:0!important;text-align:right!important;}
#statsDialog.stats-panel .achievement-row{display:flex!important;flex-direction:row-reverse!important;
  justify-content:flex-start!important;align-items:center!important;gap:6px!important;
  min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;}
#statsDialog.stats-panel .achievement-row .achievement-icon{font-size:16px!important;flex:0 0 auto!important;filter:none!important;}
#statsDialog.stats-panel .achievement-row b{font:6px/1.4 'Press Start 2P',monospace!important;color:#e6fff8!important;}
#statsDialog.stats-panel .achievement-row small{font:13px/1.1 'VT323',monospace!important;
  color:#aed8df!important;margin:0!important;}
#statsDialog.stats-panel .achievement-row.locked{opacity:.4!important;}
#statsDialog.stats-panel .panel-bottom-button{display:inline-block!important;margin:13px 0 0!important;
  padding:8px 0!important;border:0!important;border-radius:0!important;background:none!important;
  box-shadow:none!important;color:#b3f6e9!important;font:6px/1.5 'Press Start 2P',monospace!important;
  text-shadow:0 2px 8px #001728;cursor:pointer;}
#statsDialog.stats-panel .panel-bottom-button:hover,#statsDialog.stats-panel .panel-bottom-button:focus-visible{
  color:#fff9c9!important;background:none!important;text-decoration:underline;outline-offset:3px;}
@media(max-width:600px){
  #statsDialog.stats-panel{top:92px!important;right:10px!important;width:min(205px,57vw)!important;
    max-height:calc(100dvh - 110px)!important;}
  #statsDialog.stats-panel .stats-grid span{font-size:4.5px!important;}
  #statsDialog.stats-panel .achievement-row b{font-size:5px!important;}
  #statsDialog.stats-panel .achievement-row small{font-size:12px!important;}
}
@media(prefers-reduced-motion:reduce){#statsDialog.stats-panel{animation:none!important}}

/* Individual Dive Log words scatter upward like bubbles when closing. */
.dive-log-scatter{position:fixed;inset:0;z-index:200;pointer-events:none;overflow:hidden;}
.dive-log-scatter-word{position:fixed;display:block;white-space:pre;transform-origin:center;pointer-events:none;
  animation:dive-log-word-dissolve 720ms cubic-bezier(.16,.65,.27,1) var(--scatter-delay,0ms) both;}
@keyframes dive-log-word-dissolve{
  0%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1);filter:blur(0);}
  48%{opacity:.85;filter:blur(.4px);}
  100%{opacity:0;transform:translate3d(var(--scatter-x),var(--scatter-y),0) rotate(var(--scatter-rot)) scale(.65);filter:blur(5px);}
}
@media(prefers-reduced-motion:reduce){.dive-log-scatter-word{animation:none;}}


/* Starter-screen controls mirror the existing in-game HUD without another Dive Log CTA. */
/* The character selector must sit above the starter overlay while choosing a diver. */
.skin-menu:not([hidden]){z-index:85}


/* Finished dive: lightweight choices in the ocean. A fishing line drops the category sign. */
.finish-choices[hidden],.finish-replay[hidden]{display:none!important}
.finish-choices{position:fixed;z-index:82;top:0;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:0;pointer-events:none;width:min(260px,64vw);text-align:center}
.finish-replay{position:fixed;top:clamp(275px,calc(36vh + 86px),460px);left:50%;transform:translateX(-50%);pointer-events:auto;white-space:nowrap;cursor:pointer;border:1px solid rgba(164,245,230,.5);border-radius:999px;padding:10px 17px;background:rgba(4,53,70,.5);backdrop-filter:blur(3px);color:#e5fff6;font:7px/1.5 'Press Start 2P',monospace;text-shadow:0 2px 8px #001b2e;box-shadow:0 5px 16px #00172844;animation:finish-replay-in .65s .7s both}
.finish-replay:hover,.finish-replay:focus-visible{background:rgba(17,102,118,.8);border-color:#d6fff5;outline-offset:3px}
.fishing-line-wrap{display:flex;align-items:center;flex-direction:column;transform-origin:top center;animation:finish-fish-drop 1.35s cubic-bezier(.18,.8,.25,1.1) both,finish-fish-sway 4.5s ease-in-out 1.35s infinite alternate}
.fishing-line{display:block;width:2px;height:clamp(175px,36vh,360px);background:linear-gradient(180deg,rgba(211,249,246,.1),rgba(205,249,245,.85));box-shadow:0 0 4px #b5fff466}
.fishing-hook{display:block;font:30px/14px 'VT323',monospace;color:#d7fff6;text-shadow:0 0 8px #9bf4e8;transform:translateY(-2px)}
.fishing-category{pointer-events:auto;cursor:pointer;position:relative;display:block;margin-top:1px;white-space:nowrap;padding:12px 16px;border:1px solid rgba(192,251,239,.8);border-radius:9px;background:linear-gradient(150deg,rgba(8,87,104,.85),rgba(5,48,70,.9));box-shadow:0 9px 24px #001a2a88,0 0 18px #7ce8d22a;color:#f2ffeb;font:7px/1.6 'Press Start 2P',monospace;text-shadow:0 1px 5px #002339}
.fishing-category:hover,.fishing-category:focus-visible{background:linear-gradient(150deg,rgba(18,125,136,.95),rgba(8,73,94,.95));border-color:#fff5c4;outline-offset:4px}
.fishing-category span{color:#ffe8a8}
@keyframes finish-fish-drop{0%{transform:translateY(-110%) rotate(-4deg);opacity:.15}65%{transform:translateY(3%) rotate(3deg);opacity:1}82%{transform:translateY(-1%) rotate(-1deg)}100%{transform:translateY(0) rotate(0);opacity:1}}
@keyframes finish-fish-sway{0%{rotate:-1.6deg}100%{rotate:1.6deg}}
@keyframes finish-replay-in{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@media(max-width:600px){.fishing-line{height:clamp(145px,30vh,260px)}.fishing-category{font-size:6px;padding:11px 12px}.finish-replay{top:clamp(255px,calc(30vh + 86px),370px);font-size:6px}}
@media(prefers-reduced-motion:reduce){.fishing-line-wrap,.finish-replay{animation:none!important}}

/* Reuse the ONE original HUD control set on both the starter screen and gameplay.
   No duplicate buttons or proxy handlers. */
.game:has(#startOverlay:not(.hidden)) .hud-top{z-index:48;pointer-events:none;background:transparent;border:0;}
.game:has(#startOverlay:not(.hidden)) .hud-top .hud-actions{pointer-events:auto;}
.game:has(#startOverlay:not(.hidden)) .hud-top .brand-lockup,
.game:has(#startOverlay:not(.hidden)) .hud-top .run-readout{visibility:hidden;}
.game:has(#startOverlay:not(.hidden)) .hud-top .hud-actions{margin-left:auto;}
@media(max-width:600px){
  .game:has(#startOverlay:not(.hidden)) .hud-top{padding:0 8px;height:58px;}
  .game:has(#startOverlay:not(.hidden)) .hud-top .hud-actions{gap:3px;}
}


/* v3: suspended ocean salvage tag — separate drop and sway so motion stays fluid. */
.finish-choices{width:min(270px,70vw);}
.fishing-drop{width:100%;display:flex;justify-content:center;will-change:transform;animation:fish-weighted-descent 2.35s cubic-bezier(.25,.66,.25,1) both;}
.fishing-line-wrap{width:100%;display:flex;align-items:center;flex-direction:column;transform-origin:50% 0;animation:fish-soft-pendulum 6.4s ease-in-out 2.35s infinite alternate!important;}
.fishing-line{width:1px;height:clamp(150px,29vh,290px);background:linear-gradient(180deg,rgba(226,255,247,.04),rgba(212,255,244,.52) 35%,rgba(255,245,208,.78));box-shadow:1px 0 3px rgba(177,250,237,.2);}
.fishing-hook{font:26px/15px 'VT323',monospace;transform:translateY(-3px) rotate(-14deg);color:#c3e8df;filter:drop-shadow(0 2px 3px #001a2b);}
.fishing-category{display:flex;flex-direction:column;align-items:center;gap:7px;white-space:normal;min-width:190px;max-width:min(250px,72vw);padding:13px 19px 14px;margin-top:0;border-radius:13px 13px 18px 18px;border:1px solid rgba(225,252,228,.6);background:linear-gradient(165deg,rgba(31,100,111,.92),rgba(10,55,77,.95) 60%,rgba(7,40,61,.96));box-shadow:inset 0 1px 0 rgba(239,255,238,.2),inset 0 -4px 14px rgba(0,22,34,.2),0 12px 25px rgba(0,15,27,.38),0 0 19px rgba(113,240,219,.14);transform:rotate(-1.5deg);transition:background .3s ease,border-color .3s ease,box-shadow .3s ease,scale .3s ease;}
.fishing-category:before{content:"";position:absolute;top:5px;left:50%;transform:translateX(-50%);width:7px;height:7px;border:1px solid rgba(255,242,201,.66);border-radius:50%;background:#0a3448;box-shadow:inset 0 1px 3px rgba(0,0,0,.5);}
.fishing-tag-kicker{display:block;color:#b2e7dd!important;font:5px/1.5 'Press Start 2P',monospace;letter-spacing:.08em;margin-top:6px;}
.fishing-tag-title{display:block;color:#fff6d4!important;font:8px/1.7 'Press Start 2P',monospace;letter-spacing:.02em;}
.fishing-tag-title span{color:#ffe3a1!important;}
.fishing-category:hover,.fishing-category:focus-visible{scale:1.045;background:linear-gradient(165deg,rgba(38,130,139,.96),rgba(11,76,96,.97));border-color:#fff0c2;box-shadow:0 14px 30px rgba(0,13,27,.44),0 0 26px rgba(155,255,230,.27);}
@keyframes fish-weighted-descent{
  0%{transform:translateY(calc(-100vh - 100px));opacity:.55}
  50%{transform:translateY(20px);opacity:1}
  66%{transform:translateY(-13px)}
  78%{transform:translateY(7px)}
  88%{transform:translateY(-3px)}
  100%{transform:translateY(0);opacity:1}
}
@keyframes fish-soft-pendulum{0%{transform:rotate(-2.3deg)}50%{transform:rotate(.7deg)}100%{transform:rotate(2.1deg)}}
@media(max-width:600px){.fishing-line{height:clamp(125px,24vh,220px)}.fishing-category{min-width:170px;padding:12px 14px}.fishing-tag-title{font-size:7px}.finish-replay{top:clamp(245px,calc(24vh + 102px),350px)}}
@media(prefers-reduced-motion:reduce){.fishing-drop,.fishing-line-wrap{animation:none!important}}

/* Finish controls v2: bare typography, no panels. One animation per layer. */
#playAgainButton{display:none!important}
.finish-choices{position:fixed;top:0;left:50%;width:min(310px,90vw);transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;gap:20px;z-index:82;pointer-events:none}
.fishing-drop{width:100%;display:flex;justify-content:center;transform:translateY(0);animation:fish-text-lower 2.6s cubic-bezier(.22,.75,.26,1) both!important;will-change:transform}
.fishing-line-wrap{width:100%;display:flex;flex-direction:column;align-items:center;transform-origin:top center;animation:fish-text-sway 5.8s ease-in-out 2.6s infinite alternate!important}
.fishing-line{width:1px;height:clamp(235px,46vh,490px);background:linear-gradient(180deg,transparent,rgba(207,252,247,.48) 45%,rgba(232,255,247,.78));box-shadow:0 0 4px #b5fff433}
.fishing-hook{font-size:24px;line-height:13px;opacity:.8}
.fishing-category,.fishing-category:hover,.fishing-category:focus-visible{position:relative;min-width:0;max-width:none;width:auto;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:0;margin:0;padding:12px 9px;border:0!important;border-radius:0!important;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;transform:none!important;scale:1!important;outline-offset:4px;color:#edfff4!important;font:8px/1.7 'Press Start 2P',monospace;letter-spacing:.02em;text-shadow:0 2px 7px #00192c,0 0 13px #77e8dd88;transition:color .25s ease,text-shadow .25s ease!important}
.fishing-category:before{content:none!important}
.fishing-category:hover,.fishing-category:focus-visible{color:#fff2bd!important;text-shadow:0 0 14px #b7fff5,0 2px 8px #00192c!important}
.fishing-tag-title,.fishing-tag-title span{color:inherit!important;font:inherit!important;letter-spacing:inherit!important}
.finish-replay,.finish-replay:hover,.finish-replay:focus-visible{position:relative;top:auto;left:auto;transform:none;display:block;pointer-events:auto;cursor:pointer;white-space:nowrap;padding:11px 10px;border:0!important;border-radius:0!important;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;color:#d6f8ef;font:8px/1.7 'Press Start 2P',monospace;text-shadow:0 2px 7px #00192c,0 0 12px #68c8c780;animation:finish-text-float 4.2s ease-in-out infinite,finish-text-appear 1s 1s both!important;transition:color .25s ease,text-shadow .25s ease}
.finish-replay:hover,.finish-replay:focus-visible{color:#fff2bd;text-shadow:0 0 13px #c2fff3,0 2px 8px #00192c;outline-offset:4px}
.finish-replay[hidden]{display:none!important}
@keyframes fish-text-lower{0%{transform:translateY(-46vh);opacity:0}18%{opacity:1}74%{transform:translateY(9px)}88%{transform:translateY(-3px)}100%{transform:translateY(0);opacity:1}}
@keyframes fish-text-sway{0%{transform:rotate(-1.5deg)}100%{transform:rotate(1.5deg)}}
@keyframes finish-text-float{0%,100%{translate:0 0}50%{translate:0 -9px}}
@keyframes finish-text-appear{from{opacity:0}to{opacity:1}}
@media(max-width:600px){.fishing-line{height:clamp(190px,39vh,340px)}.fishing-category,.finish-replay{font-size:7px!important}}
@media(prefers-reduced-motion:reduce){.fishing-drop,.fishing-line-wrap,.finish-replay{animation:none!important}}


/* Free-swing hook: no descent/bounce animation can override the pendulum.
   The stationary outer layer and the swinging inner layer never share transforms. */
.finish-choices .fishing-drop {
  transform: none !important;
  animation: none !important;
  opacity: 1 !important;
  will-change: auto;
}
.finish-choices .fishing-line-wrap {
  transform-origin: 50% 0 !important;
  animation: ocean-hook-free-swing 7.6s ease-in-out infinite alternate !important;
  animation-delay: 0s !important;
  will-change: transform;
}
@keyframes ocean-hook-free-swing {
  0%   { transform: rotate(-4deg); }
  50%  { transform: rotate(0deg); }
  100% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .finish-choices .fishing-line-wrap { animation: none !important; transform: none !important; }
}

/* Between-dive environmental fact: blends into the underwater results UI. */
#betweenDiveFact {max-width:430px;margin:14px auto 10px;padding:8px 14px;color:#c7f5ee;text-align:center;font-size:clamp(12px,1.5vw,16px);line-height:1.5;letter-spacing:.025em;text-shadow:0 2px 9px #003e58;animation:factFloat 4s ease-in-out infinite;}
@keyframes factFloat {0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){#betweenDiveFact{animation:none}}

/* Keep the between-dive fact left of the centered results text. */
#betweenDiveFact{margin:14px 0 10px;max-width:440px;text-align:left;transform:translateX(-65px);}
@media(max-width:700px){#betweenDiveFact{transform:translateX(-15px);max-width:calc(100% + 15px);}}

/* Fun fact beside the diver, leaving the central swinging category line clear.
   Positioned relative to the viewport, not inside the right-hand results HUD. */
#betweenDiveFact{
  position:fixed;z-index:76;left:clamp(18px,5vw,80px);top:52%;
  width:min(295px,27vw);max-width:none;margin:0;padding:8px 10px;
  text-align:left;transform:none;pointer-events:none;
  font-size:clamp(12px,1.25vw,15px);
}
#betweenDiveFact[hidden]{display:none!important}
@media(max-width:760px){
  #betweenDiveFact{left:14px;top:60%;width:min(210px,38vw);font-size:12px}
}
@media(max-width:420px){
  #betweenDiveFact{left:10px;top:65%;width:39vw;font-size:11px;line-height:1.45}
}


/* About Us: only on the opening screen, like a small floating Dive Log. */
.about-us-launch{position:absolute;z-index:5;left:clamp(14px,3vw,46px);bottom:clamp(36px,8vh,92px);border:0;background:transparent;color:#b8fff0;cursor:pointer;font:clamp(7px,.75vw,9px)/1.8 'Press Start 2P',monospace;text-shadow:0 2px 8px #001728,0 0 12px #001728;animation:factFloat 4.2s ease-in-out infinite;padding:9px 4px;}
.about-us-launch:hover,.about-us-launch:focus-visible{color:#fff2bb;text-decoration:underline;outline-offset:3px}
.about-us-panel[hidden]{display:none!important}
.about-us-panel{position:absolute;z-index:90;left:clamp(15px,4vw,60px);bottom:clamp(75px,16vh,170px);width:min(340px,calc(100vw - 30px));max-height:min(70vh,520px);overflow:auto;padding:4px 4px 8px;background:transparent;border:0;color:#effffc;text-align:left;text-shadow:0 2px 7px #001728,0 0 12px #001728;animation:sea-performance-appear .45s ease-out both;}
.about-us-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;font:7px/1.5 'Press Start 2P',monospace;color:#8feee0}
.about-us-topline button{border:0;background:none;color:#d6fff7;cursor:pointer;font:28px/1 'VT323',monospace;padding:0 6px}
.about-us-panel h2{margin:10px 0 4px;font:clamp(10px,1.3vw,14px)/1.6 'Press Start 2P',monospace;color:#fff}
.about-us-subtitle{font:6px/1.8 'Press Start 2P',monospace;color:#99dce3;margin:0 0 17px}
.about-us-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:7px;margin:0 0 12px}
.about-us-row span,.about-us-fact>span{font:6px/1.7 'Press Start 2P',monospace;color:#a6e1e7}
.about-us-row strong{font:21px/1 'VT323',monospace;color:#fff0b7;font-weight:normal}
.about-us-fact{margin:21px 0 13px}
.about-us-fact p{font:19px/1.25 'VT323',monospace;color:#e6fff8;margin:7px 0}
.about-us-fact small{font:12px/1.25 'VT323',monospace;color:#aed8df;display:block}
.about-us-done{border:0;background:transparent;padding:8px 0;color:#b3f6e9;cursor:pointer;font:6px/1.5 'Press Start 2P',monospace;text-shadow:0 2px 8px #001728}
.about-us-done:hover,.about-us-done:focus-visible{text-decoration:underline;color:#fff9c9}
@media(max-width:600px){.about-us-launch{left:12px;bottom:70px;font-size:7px}.about-us-panel{left:13px;bottom:110px;width:min(300px,calc(100vw - 26px))}}
@media(max-height:580px){.about-us-launch{bottom:34px}.about-us-panel{bottom:65px;max-height:70vh}}
@media(prefers-reduced-motion:reduce){.about-us-launch,.about-us-panel{animation:none!important}}

/* Floating sea jokes: right-hand counterpart to About Us, not part of the category buttons. */
.sea-joke-card[hidden]{display:none!important}
.sea-joke-card{position:absolute;right:clamp(15px,4vw,64px);bottom:clamp(55px,11vh,118px);z-index:6;width:min(300px,26vw);pointer-events:none;text-align:left;color:#eafffb;text-shadow:0 2px 8px #001728,0 0 12px #001728;animation:factFloat 4.2s ease-in-out infinite}
.sea-joke-heading{display:block;color:#9af2e5;font:clamp(6px,.65vw,8px)/1.7 'Press Start 2P',monospace;margin-bottom:8px}
.sea-joke-card p{margin:0;font:clamp(17px,1.8vw,23px)/1.2 'VT323',monospace;overflow-wrap:break-word}
/* Removing the redundant explanatory copy frees vertical space for the actual controls. */
.game.intro-closeup .start-content{gap:4px}
.game.intro-closeup .category-picker{margin:10px auto 7px}
.game.intro-closeup .begin-button{margin:5px auto 0}
.game.intro-closeup .pudding-button{margin-top:10px}
@media(max-width:760px){.sea-joke-card{right:12px;bottom:82px;width:min(180px,39vw)}.sea-joke-card p{font-size:17px}}
@media(max-width:480px){.sea-joke-card{right:10px;bottom:66px;width:min(145px,40vw)}.sea-joke-card p{font-size:15px}.sea-joke-heading{font-size:6px}}
@media(prefers-reduced-motion:reduce){.sea-joke-card{animation:none}}

/* Smaller, softer joke lettering, kept readable over the ocean. */
.sea-joke-card p{font-size:clamp(15px,1.35vw,19px);line-height:1.32;letter-spacing:.015em;text-shadow:0 1px 7px rgba(0,22,36,.72)}
.sea-joke-heading{opacity:.87;margin-bottom:6px}
@media(max-width:760px){.sea-joke-card p{font-size:15px;line-height:1.3}}
@media(max-width:480px){.sea-joke-card p{font-size:13px;line-height:1.3}}

/* Joke text only: no label */
.sea-joke-card p{margin-top:0}

/* Discord community link: floating at the bottom right, beneath the sea joke. */
.discord-launch{position:absolute;z-index:7;right:clamp(17px,3vw,49px);bottom:clamp(12px,2.5vh,26px);display:flex;align-items:center;justify-content:center;width:40px;height:36px;color:#c0fff3;text-decoration:none;filter:drop-shadow(0 2px 7px #001728);animation:factFloat 4.2s ease-in-out infinite;transition:color .2s,transform .2s}
.discord-launch:hover,.discord-launch:focus-visible{color:#fff1ba;transform:scale(1.08);outline-offset:4px}
@media(max-width:600px){.discord-launch{right:13px;bottom:12px;width:36px;height:32px}}
@media(max-height:580px){.discord-launch{bottom:8px}}
@media(prefers-reduced-motion:reduce){.discord-launch{animation:none}}

/* Phrase Dive: 3 main modes and an expandable four-difficulty selector. */
.category-picker{width:min(465px,92vw);grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.category-picker button{min-width:0;padding:12px 5px;gap:5px}
.category-picker button b{font-size:clamp(6px,.7vw,9px);white-space:nowrap}
.category-picker button small{font-size:clamp(9px,.83vw,11px);line-height:1.2}
.phrase-difficulty[hidden],.phrase-score[hidden]{display:none!important}
.phrase-difficulty{width:min(470px,94vw);margin:4px auto 2px;padding:9px 10px 10px;background:rgba(3,35,59,.52);border:1px solid rgba(134,232,239,.3);border-radius:12px;animation:phraseIn .25s ease-out both}
.phrase-difficulty-label{font:6px/1.6 'Press Start 2P',monospace;color:#b3faf4;letter-spacing:.04em;margin-bottom:8px;text-align:center}
.phrase-levels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.phrase-levels button{border:1px solid #87d6ec77;border-radius:9px;background:#0a3c5a9c;color:#e9ffff;min-width:0;cursor:pointer;padding:9px 4px;display:flex;flex-direction:column;align-items:center;gap:6px;transition:background .18s,transform .18s,border-color .18s}
.phrase-levels button b{font:clamp(5px,.55vw,7px)/1.4 'Press Start 2P',monospace;white-space:nowrap}
.phrase-levels button small{font:10px/1.2 system-ui,sans-serif;color:#c4edf1}
.phrase-levels button:hover,.phrase-levels button:focus-visible{background:#216783;transform:translateY(-2px)}
.phrase-levels button.selected{background:#1a7784;border-color:#b8ffdc;box-shadow:0 0 13px #6af3de55}
.phrase-score{margin:6px auto 0;text-align:center;color:#c7fcf1;font:clamp(8px,.95vw,11px)/1.5 'VT323',monospace;letter-spacing:.055em;text-shadow:0 1px 8px #001c32}
.game.phrase-mode .clue-area h2{font-size:clamp(13px,2vw,26px)!important;line-height:1.4!important;max-width:min(750px,85vw)!important;margin-inline:auto}
@keyframes phraseIn{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.category-picker{width:min(340px,94vw);gap:5px}.category-picker button{padding:9px 3px}.category-picker button b{font-size:5.5px}.category-picker button small{font-size:8px}.phrase-difficulty{width:min(345px,94vw);padding:8px 5px}.phrase-levels{gap:4px}.phrase-levels button{padding:8px 2px}.phrase-levels button b{font-size:5px}.phrase-levels button small{font-size:8px}.game.phrase-mode .clue-area h2{font-size:clamp(12px,3.5vw,19px)!important}}
@media(max-height:720px){.phrase-difficulty{padding:5px 8px 6px}.phrase-difficulty-label{margin-bottom:3px}.phrase-levels button{padding:5px 2px;gap:2px}.category-picker button{padding:6px 3px}}
@media(prefers-reduced-motion:reduce){.phrase-difficulty{animation:none}}
/* Reset the old full-width Daily Dive layout now that three modes share one row. */
.category-picker .daily-choice{grid-column:auto;max-width:none;justify-self:stretch;width:auto}
/* The expanded difficulty selector should stay above the gameplay HUD. */
.game.intro-closeup.phrase-mode .start-content{transform:translateY(-5.5vh)}
@media(max-width:600px){.game.intro-closeup.phrase-mode .start-content{transform:translateY(-2vh)}.game.intro-closeup.phrase-mode .overlay{overflow-y:auto}}

/* Phrase Dive difficulty is an actual depth: Shore is sunlit, Abyss is nearly black. */
.game.phrase-depth-easy{--water-top:#52c6d1;--water-mid:#1e9ab0;--water-deep:#146780;--abyss:#0a4561;--surface:#d2ffff}
.game.phrase-depth-normal{--water-top:#188fa7;--water-mid:#096780;--water-deep:#063c60;--abyss:#052544;--surface:#a3e9ec}
.game.phrase-depth-hard{--water-top:#084d6c;--water-mid:#062e4c;--water-deep:#04182f;--abyss:#020d20;--surface:#6aa5c1}
.game.phrase-depth-expert{--water-top:#03182d;--water-mid:#020f20;--water-deep:#010919;--abyss:#00030c;--surface:#34576c}
.game.phrase-depth-expert .ocean::after,.game.phrase-depth-hard .ocean::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0008,#0005 30%,#000a);pointer-events:none}
.game.phrase-depth-expert .ocean::after{background:linear-gradient(180deg,#000c,#0009 30%,#000d)}
.game.phrase-mode .clue-area h2{font-family:system-ui,sans-serif!important;font-weight:650!important;letter-spacing:.015em!important;text-transform:none!important;font-size:clamp(17px,2.5vw,30px)!important;line-height:1.55!important}

/* Phrase Dive: consistent site typography and smoothly animated depth lighting. */
.game.phrase-mode .clue-area h2{font-family:'VT323',monospace!important;font-weight:400!important;letter-spacing:.02em!important;font-size:clamp(23px,3.1vw,40px)!important;line-height:1.25!important;text-transform:none!important}
/* A separate light-absorbing layer fades smoothly instead of snapping colors. */
.game .ocean::before{content:'';position:absolute;inset:0;z-index:5;pointer-events:none;background:#000;opacity:0;transition:opacity 1.8s ease-in-out}
.game.phrase-depth-easy .ocean::before{opacity:0}
.game.phrase-depth-normal .ocean::before{opacity:.18}
.game.phrase-depth-hard .ocean::before{opacity:.42}
.game.phrase-depth-expert .ocean::before{opacity:.7}
/* Disable the old immediate darkness overlay; use the transitioning layer above. */
.game.phrase-depth-hard .ocean::after,.game.phrase-depth-expert .ocean::after{display:none}
@media(prefers-reduced-motion:reduce){.game .ocean::before{transition:none}}

/* Depth change: the existing bag swims naturally into brighter/darker water.
   Animate the outer track so the bag's own continuous floating never restarts. */
.game .player-track{translate:0 var(--depth-travel-y,0px);transition:translate 1.35s cubic-bezier(.32,.08,.19,1)!important;will-change:translate}
@media(prefers-reduced-motion:reduce){.game .player-track{transition:none!important}}

/* One balanced Phrase Dive: dark, blue-black abyss with a little extra visibility. */
.game.phrase-depth-normal{
  --water-top:#0a3a56;--water-mid:#062c48;--water-deep:#03192f;
  --abyss:#010b1b;--surface:#70b5ca;
}
.game.phrase-depth-normal .ocean::before{opacity:.51}

/* Annoying Prawn stays on the menu, swimming past without blocking game controls. */
.annoying-prawn{position:absolute;inset:0;z-index:12;pointer-events:none;overflow:hidden}
.annoying-prawn .prawn-swimmer{position:absolute;top:clamp(105px,23%,235px);left:0;border:0;background:transparent;color:#c5fffa;pointer-events:auto;cursor:pointer;display:flex;align-items:center;gap:8px;filter:drop-shadow(0 3px 5px #001526);animation:prawn-swim 23s ease-in-out infinite}
.annoying-prawn .prawn-swimmer:hover,.annoying-prawn .prawn-swimmer:focus-visible{animation-play-state:paused}
.prawn-sprite{width:clamp(28px,4vw,42px);height:auto;image-rendering:pixelated;display:inline-block;transform:scaleX(-1);animation:prawn-bob 2.4s ease-in-out infinite}
.prawn-nudge{font:clamp(6px,.7vw,9px)/1.7 'Press Start 2P',monospace;color:#b7ffec;background:#05283edb;border:1px solid #57aeb8;padding:9px 10px;white-space:nowrap;box-shadow:3px 3px 0 #001422}
@keyframes prawn-swim{0%{left:-120px;top:23%;transform:rotate(-9deg)}15%{top:29%;transform:rotate(8deg)}32%{top:17%;transform:rotate(-7deg)}50%{top:31%;transform:rotate(10deg)}68%{top:20%;transform:rotate(-8deg)}85%{top:26%;transform:rotate(6deg)}100%{left:calc(100% + 120px);top:18%;transform:rotate(-5deg)}}
@keyframes prawn-bob{0%,100%{translate:0 0;rotate:-6deg}30%{translate:0 -6px;rotate:8deg}65%{translate:0 5px;rotate:-10deg}}
.prawn-signal{position:absolute;left:clamp(12px,5vw,75px);top:clamp(160px,38%,360px);width:min(360px,calc(100vw - 24px));padding:14px 16px;color:#b8fff3;background:#03192ff2;border:2px solid #5cbfc7;box-shadow:0 0 0 3px #00101dbd,0 0 24px #0ab6c144;pointer-events:auto;font:21px/1.25 'VT323',monospace}
.prawn-signal[hidden]{display:none!important}
.prawn-signal-head{display:flex;justify-content:space-between;gap:10px;font:8px/1.7 'Press Start 2P',monospace;color:#70dcd4}
.prawn-signal-head button{background:transparent;border:0;color:#b8fff3;font:25px 'VT323',monospace;cursor:pointer}
.prawn-signal p{margin:12px 0;min-height:55px}
.prawn-signal small{font:7px 'Press Start 2P',monospace;color:#5b9eae}
.overlay.hidden .annoying-prawn{display:none}
@media(max-width:650px){.annoying-prawn .prawn-swimmer{top:18%}.prawn-nudge{font-size:6px;padding:6px}.prawn-signal{top:auto;bottom:85px;font-size:19px}}
@media(prefers-reduced-motion:reduce){.annoying-prawn .prawn-swimmer{animation:none;transform:translateX(16px)}.prawn-sprite{animation:none}}

/* Annoying Prawn: tiny bespectacled krill, bottom-left, gentle free swimming. */
.annoying-prawn{position:absolute;inset:0;z-index:12;pointer-events:none;overflow:visible}
.annoying-prawn .prawn-swimmer{position:absolute;top:auto;left:clamp(8px,2vw,26px);bottom:clamp(28px,8vh,85px);animation:prawn-corner-drift 8.5s ease-in-out infinite alternate;transform-origin:center;z-index:1}
.annoying-prawn .prawn-swimmer:hover,.annoying-prawn .prawn-swimmer:focus-visible{animation-play-state:paused}
.annoying-prawn .prawn-sprite{width:clamp(24px,3vw,34px);height:auto;image-rendering:pixelated;transform:none;animation:prawn-tail-bob 1.9s ease-in-out infinite alternate}
.annoying-prawn .prawn-nudge{border:0;background:none;box-shadow:none;text-shadow:1px 2px #001d2b;padding:0 2px;font-size:6px;color:#c6f4e9}
@keyframes prawn-corner-drift{0%{translate:0 0;rotate:-7deg}23%{translate:14px -12px;rotate:6deg}49%{translate:26px -3px;rotate:-5deg}73%{translate:10px -18px;rotate:7deg}100%{translate:30px -8px;rotate:-4deg}}
@keyframes prawn-tail-bob{0%{transform:translateY(0) rotate(-4deg)}100%{transform:translateY(-3px) rotate(6deg)}}
.annoying-prawn .prawn-signal{position:absolute;top:auto;bottom:clamp(92px,17vh,160px);left:clamp(12px,3vw,36px);width:min(360px,calc(100vw - 30px));padding:4px 2px;background:transparent!important;border:0!important;box-shadow:none!important;filter:drop-shadow(1px 2px 2px #00101d);font:20px/1.25 'VT323',monospace;text-shadow:1px 2px #001422;color:#c0fff3}
.annoying-prawn .prawn-signal-head{font-size:7px;text-shadow:1px 1px #001422}
.annoying-prawn .prawn-signal p{margin:7px 0;min-height:0}
.annoying-prawn .prawn-signal small{font-size:6px}
@media(max-width:650px){.annoying-prawn .prawn-swimmer{top:auto;bottom:52px}.annoying-prawn .prawn-signal{top:auto;bottom:112px;font-size:18px}}
@media(prefers-reduced-motion:reduce){.annoying-prawn .prawn-swimmer,.annoying-prawn .prawn-sprite{animation:none}}

/* Prawn v2: keep the About Us control and panel completely clear. */
.annoying-prawn .prawn-swimmer{left:clamp(12px,3vw,44px);bottom:clamp(116px,18vh,168px);z-index:1}
.annoying-prawn .prawn-sprite{width:clamp(31px,3.6vw,42px);height:auto;image-rendering:pixelated}
.annoying-prawn .prawn-signal{left:clamp(12px,3vw,44px);bottom:clamp(185px,30vh,245px);width:min(330px,calc(100vw - 28px));max-height:30vh;overflow-y:auto}
/* Opening About Us suppresses the prawn and its fact, without closing either. */

#aboutUsPanel{z-index:100}
@media(max-width:650px){.annoying-prawn .prawn-swimmer{bottom:126px;left:12px}.annoying-prawn .prawn-signal{bottom:190px;left:12px;max-height:26vh}}
@media(max-height:600px){.annoying-prawn .prawn-swimmer{bottom:90px}.annoying-prawn .prawn-signal{bottom:142px;max-height:25vh}}

/* Krillion-inspired cheeky shrimp mascot: compact, recognizable krill, nerd glasses. */
.annoying-prawn{overflow:visible!important;z-index:12;pointer-events:none}
.annoying-prawn .prawn-swimmer{left:clamp(12px,3vw,44px)!important;bottom:clamp(142px,21vh,190px)!important;top:auto!important;animation:krill-wander 7.3s ease-in-out infinite!important;transform-origin:25px 25px;pointer-events:auto;max-width:230px}
.annoying-prawn .prawn-sprite{width:clamp(36px,4vw,48px)!important;height:auto!important;transform:none!important;animation:krill-tail 1.8s ease-in-out infinite alternate!important;image-rendering:pixelated}
.annoying-prawn .prawn-nudge{background:none!important;border:0!important;box-shadow:none!important;padding:0 2px!important;color:#c7fff1!important;font-size:6px!important;text-shadow:0 2px 5px #00111e!important}
.annoying-prawn .prawn-signal{left:clamp(12px,3vw,44px)!important;bottom:clamp(212px,32vh,270px)!important;top:auto!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:3px!important;max-height:25vh;overflow:auto;pointer-events:auto}
.annoying-prawn .prawn-signal-head,.annoying-prawn .prawn-signal p,.annoying-prawn .prawn-signal small{text-shadow:0 2px 6px #001522,1px 1px #001522}

@keyframes krill-wander{0%,100%{translate:0 0;rotate:-5deg}19%{translate:8px -8px;rotate:7deg}38%{translate:18px 0;rotate:-4deg}58%{translate:10px -15px;rotate:9deg}77%{translate:25px -5px;rotate:-7deg}}
@keyframes krill-tail{0%{transform:rotate(-3deg) scaleX(1)}100%{transform:rotate(4deg) scaleX(.96)}}
@media(max-width:650px){.annoying-prawn .prawn-swimmer{bottom:148px!important}.annoying-prawn .prawn-signal{bottom:218px!important;width:min(320px,calc(100vw - 24px))!important}}
@media(max-height:600px){.annoying-prawn .prawn-swimmer{bottom:96px!important}.annoying-prawn .prawn-signal{bottom:154px!important}}
@media(prefers-reduced-motion:reduce){.annoying-prawn .prawn-swimmer,.annoying-prawn .prawn-sprite{animation:none!important}}


/* FINAL OVERRIDE: small recognizable emoji shrimp, lively but confined to bottom-left.
   These rules supersede earlier prawn prototypes without altering other game UI. */
#startOverlay .annoying-prawn {
  position:absolute!important; inset:0!important; overflow:hidden!important;
  pointer-events:none!important; z-index:5!important;
}
#startOverlay .annoying-prawn .prawn-swimmer {
  position:absolute!important;
  left:clamp(10px,2vw,25px)!important;
  bottom:clamp(112px,20vh,172px)!important;
  top:auto!important;
  max-width:160px!important;
  padding:0!important;
  display:flex!important; align-items:center!important; gap:5px!important;
  background:none!important; border:0!important; box-shadow:none!important;
  pointer-events:auto!important;
  transform-origin:16px 18px!important;
  animation:prawn-free-swim 5.8s cubic-bezier(.45,.05,.55,.95) infinite!important;
}
#startOverlay .annoying-prawn .prawn-sprite {
  display:inline-block!important;
  width:34px!important; height:34px!important;
  font-size:27px!important; line-height:34px!important;
  text-align:center!important; flex:none!important;
  transform:none!important;
  animation:prawn-fin-wiggle .85s ease-in-out infinite alternate!important;
  filter:drop-shadow(1px 2px 1px #001b2c);
}
#startOverlay .annoying-prawn .prawn-sprite canvas {
  display:block;width:34px;height:34px;image-rendering:pixelated;
}
#startOverlay .annoying-prawn .prawn-nudge {
  display:inline-block!important;
  padding:0!important; margin:0!important;
  background:transparent!important; border:0!important; box-shadow:none!important;
  font:7px/1.5 'Press Start 2P',monospace!important;
  letter-spacing:0!important; white-space:nowrap!important;
  color:#b9fff1!important; text-shadow:1px 2px 2px #00202f!important;
  animation:prawn-label-float 1.9s ease-in-out infinite alternate!important;
}
@keyframes prawn-free-swim {
  0% {translate:0 0;rotate:-9deg}
  12% {translate:11px -12px;rotate:8deg}
  25% {translate:24px -5px;rotate:-11deg}
  39% {translate:14px -24px;rotate:9deg}
  53% {translate:38px -15px;rotate:-6deg}
  67% {translate:25px 5px;rotate:12deg}
  81% {translate:9px -14px;rotate:-12deg}
  92% {translate:18px -4px;rotate:4deg}
  100% {translate:0 0;rotate:-9deg}
}
@keyframes prawn-fin-wiggle {
  from{transform:rotate(-9deg) scaleX(1)}
  to{transform:rotate(8deg) scaleX(.92)}
}
@keyframes prawn-label-float {
  from{translate:0 -2px;opacity:.85}
  to{translate:2px 3px;opacity:1}
}
#startOverlay .annoying-prawn .prawn-signal {
  position:absolute!important;
  left:clamp(12px,2vw,28px)!important;
  bottom:clamp(182px,32vh,246px)!important;
  top:auto!important;
  width:min(290px,calc(100vw - 24px))!important;
  max-height:20vh!important; overflow:auto!important;
  padding:0!important;
  border:0!important; background:transparent!important;
  box-shadow:none!important; font-size:19px!important;
  pointer-events:auto!important;
}

@media(max-width:650px) {
  #startOverlay .annoying-prawn .prawn-swimmer{bottom:120px!important}
  #startOverlay .annoying-prawn .prawn-signal{bottom:185px!important}
}
@media(max-height:580px) {
  #startOverlay .annoying-prawn .prawn-swimmer{bottom:70px!important}
  #startOverlay .annoying-prawn .prawn-signal{bottom:125px!important}
}
@media(prefers-reduced-motion:reduce){
  #startOverlay .annoying-prawn .prawn-swimmer,
  #startOverlay .annoying-prawn .prawn-sprite,
  #startOverlay .annoying-prawn .prawn-nudge{animation:none!important}
}

/* Gentle, Discord-like idle: prawn stays in one place and subtly floats. */
#startOverlay .annoying-prawn .prawn-swimmer {
 left:clamp(12px,2vw,24px)!important;
 bottom:clamp(145px,24vh,188px)!important;
 top:auto!important;
 max-width:175px!important;
 transform:none!important;
 animation:prawn-idle 4.2s ease-in-out infinite!important;
}
#startOverlay .annoying-prawn .prawn-sprite {
 width:52px!important;height:33px!important;object-fit:contain!important;
 image-rendering:pixelated!important;
 font-size:0!important;
 transform:none!important;
 animation:prawn-tail-idle 3.1s ease-in-out infinite!important;
}
#startOverlay .annoying-prawn .prawn-nudge {
 font-size:7px!important;animation:none!important;
}
#startOverlay .annoying-prawn .prawn-signal {
 bottom:clamp(210px,33vh,252px)!important;
 max-height:23vh!important;
}
@keyframes prawn-idle {
 0%,100% {translate:0 0;rotate:-2deg}
 50% {translate:0 -5px;rotate:2deg}
}
@keyframes prawn-tail-idle {
 0%,100% {transform:rotate(-2deg)!important}
 50% {transform:rotate(2deg)!important}
}
@media(max-width:650px) {
 #startOverlay .annoying-prawn .prawn-swimmer{bottom:148px!important}
 #startOverlay .annoying-prawn .prawn-signal{bottom:205px!important}
}
@media(max-height:580px) {
 #startOverlay .annoying-prawn .prawn-swimmer{bottom:96px!important}
 #startOverlay .annoying-prawn .prawn-signal{bottom:155px!important}
}
@media(prefers-reduced-motion:reduce) {
 #startOverlay .annoying-prawn .prawn-swimmer,
 #startOverlay .annoying-prawn .prawn-sprite{animation:none!important}
}

/* Gentle bioluminescent halo on the prawn only; no extra movement. */
#startOverlay .annoying-prawn .prawn-sprite {
  filter: drop-shadow(0 0 3px rgba(255,139,115,.58)) drop-shadow(0 0 8px rgba(255,101,82,.32))!important;
  transition:filter .25s ease!important;
}
#startOverlay .annoying-prawn .prawn-swimmer:hover .prawn-sprite,
#startOverlay .annoying-prawn .prawn-swimmer:focus-visible .prawn-sprite {
  filter: drop-shadow(0 0 4px rgba(255,165,130,.78)) drop-shadow(0 0 12px rgba(255,112,91,.45))!important;
}

/* New approved prawn sprite only; preserve position, gentle movement, glow, and label. */
#startOverlay .annoying-prawn .prawn-sprite {
  width:52px!important;height:auto!important;object-fit:contain!important;
  image-rendering:pixelated!important;
}

/* Annoying Prawn: stay in place; fade when About Us opens.
   The sprite's gentle idle animation remains independent of opacity. */
#startOverlay .annoying-prawn {
  opacity:1!important;
  visibility:visible!important;
  display:block!important;
  overflow:visible!important;
  pointer-events:none!important;
  transition:opacity 320ms ease-in-out!important;
}
#startOverlay .annoying-prawn.prawn-about-faded {
  opacity:0!important;
  pointer-events:none!important;
}
#startOverlay .annoying-prawn .prawn-swimmer {
  animation:none!important;
  transform:none!important;
  translate:none!important;
  rotate:none!important;
  transition:none!important;
  pointer-events:auto!important;
}
#startOverlay .annoying-prawn.prawn-about-faded .prawn-swimmer {
  pointer-events:none!important;
}
#startOverlay .annoying-prawn .prawn-sprite {
  animation:prawn-soft-hover 3.8s ease-in-out infinite!important;
}
@keyframes prawn-soft-hover {
  0%,100% {transform:translateY(0) rotate(-1deg)}
  50% {transform:translateY(-3px) rotate(1deg)}
}
@media(prefers-reduced-motion:reduce) {
  #startOverlay .annoying-prawn {transition:none!important;}
  #startOverlay .annoying-prawn .prawn-sprite {animation:none!important;}
}

/* Scatter only the title's letters when Begin Descent is pressed.
   CSS custom properties give each letter a different trajectory; no transform
   on the menu, overlay, or prawn, so existing animations remain untouched. */
#startOverlay .title-scatter-letter {
  display:inline-block;
  font:inherit;
  font-style:normal;
  color:inherit;
  text-shadow:inherit;
  will-change:transform,opacity;
}
#startOverlay .title-scattering .title-scatter-letter {
  animation:title-letter-scatter .62s cubic-bezier(.25,.62,.5,1) both;
  animation-delay:calc(var(--scatter-i) * 17ms);
}
/* Browser-compatible trajectories (no CSS mod() dependency). */
#startOverlay .title-scattering .title-scatter-letter:nth-of-type(3n+1){--scatter-y:-78px}
#startOverlay .title-scattering .title-scatter-letter:nth-of-type(3n+2){--scatter-y:44px}
#startOverlay .title-scattering .title-scatter-letter:nth-of-type(3n){--scatter-y:-22px}
@keyframes title-letter-scatter {
  0% {transform:translate(0,0) rotate(0deg) scale(1);opacity:1}
  30% {opacity:1}
  100% {transform:translate(calc((var(--scatter-i) - 4.5) * 19px),var(--scatter-y,-50px)) rotate(calc((var(--scatter-i) - 4.5) * 13deg)) scale(.72);opacity:0}
}
@media(prefers-reduced-motion:reduce){
  #startOverlay .title-scattering .title-scatter-letter{animation:none}
}

/* Instagram alongside Discord; independent of game and prawn animations. */
#startOverlay .instagram-launch {
  position:absolute;
  z-index:7;
  right:clamp(65px,calc(3vw + 48px),97px);
  bottom:clamp(12px,2.5vh,26px);
  display:flex;align-items:center;justify-content:center;
  width:40px;height:36px;
  color:#ffc6e6;text-decoration:none;
  filter:drop-shadow(0 2px 7px #001728);
  animation:factFloat 4.2s ease-in-out infinite;
  animation-delay:-1s;
  transition:color .2s,transform .2s;
}
#startOverlay .instagram-launch:hover,#startOverlay .instagram-launch:focus-visible {
  color:#fff1ba;transform:scale(1.08);outline-offset:4px;
}
@media(max-width:600px){
  #startOverlay .instagram-launch{right:57px;bottom:12px;width:36px;height:32px}
}
@media(max-height:580px){#startOverlay .instagram-launch{bottom:8px}}
@media(prefers-reduced-motion:reduce){#startOverlay .instagram-launch{animation:none}}

/* Daily Dive streak next to Stats, independent of the general win streak. */
.daily-streak-hud{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #ffcd7b8a;background:#452e1bba;box-shadow:3px 3px 0 #020917;color:#ffe8ad;white-space:nowrap}
.daily-streak-hud span{font:6px 'Press Start 2P',monospace}
.daily-streak-hud b{font:22px 'VT323',monospace;color:#fff4ca}
@media(max-width:760px){.daily-streak-hud{padding:5px 6px;gap:4px}.daily-streak-hud span{font-size:5px}.daily-streak-hud b{font-size:18px}}
@media(max-width:410px){.daily-streak-hud span{font-size:0}.daily-streak-hud span::before{content:'🔥';font-size:12px}}
/* Animated cookie card, with honest choices and prawn explanation. */
.cookie-banner{border:2px solid #80e8d8;border-radius:12px;background:linear-gradient(135deg,#052c42f5,#071b34f7 68%,#17334af5);box-shadow:0 0 0 4px #031426bb,0 0 32px #47c6c650,6px 7px 0 #010813;animation:cookie-arrive .55s cubic-bezier(.2,1.35,.35,1) both}
.cookie-banner.cookie-leaving{animation:cookie-depart .32s ease-in forwards;pointer-events:none}
.cookie-prawn{display:flex;align-items:center;gap:10px;max-width:310px;flex-shrink:1}
.cookie-prawn img{width:76px;height:76px;object-fit:contain;filter:drop-shadow(0 0 9px #f59a6a88);animation:cookie-prawn-bob 2.5s ease-in-out infinite}
.cookie-prawn-speech{background:#0c3d50e6;border:1px solid #68d3c9;border-radius:9px;padding:10px}
.cookie-prawn-speech span{font:6px 'Press Start 2P',monospace;color:#ffc99e}
.cookie-prawn-speech p{font:17px/1.1 'VT323',monospace;color:#e5fff8;margin:8px 0 0}
.cookie-actions button{border-radius:5px;transition:transform .2s,box-shadow .2s;cursor:pointer}
.cookie-actions button:hover{transform:translateY(-3px);box-shadow:0 4px 14px #61e5d344}
.cookie-actions button:first-child{background:#136b71}
@keyframes cookie-arrive{from{opacity:0;transform:translateY(70px) scale(.93)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes cookie-depart{to{opacity:0;transform:translateY(30px) scale(.97)}}
@keyframes cookie-prawn-bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-7px) rotate(3deg)}}
@media(max-width:1050px){.cookie-banner{flex-wrap:wrap;justify-content:center}.cookie-prawn{max-width:43%}.cookie-copy{flex:1;min-width:240px}.cookie-actions{width:100%;justify-content:center}}
@media(max-width:760px){.cookie-banner{max-height:85vh;overflow-y:auto}.cookie-prawn{max-width:none;margin-bottom:9px}.cookie-prawn img{width:54px;height:54px}.cookie-prawn-speech p{font-size:16px}.cookie-copy{min-width:0}.cookie-actions{display:flex;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.cookie-banner,.cookie-banner.cookie-leaving,.cookie-prawn img{animation:none!important}}


/* Refined Daily Dive streak: a small HUD chip, not a second oversized button. */
.hud-actions .daily-streak-hud{
  position:relative;display:flex;align-items:center;gap:7px;
  min-height:34px;padding:5px 10px 5px 8px;
  background:linear-gradient(125deg,#061f32e8,#09283be8);
  border:1px solid #467786a8;border-radius:5px;
  box-shadow:inset 0 1px 0 #8ae8d71c,2px 3px 0 #020e1b;
  color:#d1e9e9;white-space:nowrap;
}
.daily-streak-hud .daily-fire{font-size:20px;line-height:1;filter:grayscale(1) brightness(.52);opacity:.66;transition:filter .4s,opacity .4s,transform .4s}
.daily-streak-meta{display:flex;flex-direction:column;gap:3px}
.daily-streak-hud .daily-streak-label{font:5px 'Press Start 2P',monospace;letter-spacing:.1px;color:#89b6bc}
.daily-streak-value{display:flex;align-items:baseline;gap:4px;line-height:1}
.daily-streak-hud .daily-streak-value b{font:20px/1 'VT323',monospace;color:#e8f8f4}
.daily-streak-hud .daily-streak-value small{font:5px 'Press Start 2P',monospace;color:#91c6ca}
.hud-actions .daily-streak-hud.daily-fire-lit{border-color:#efad64aa;background:linear-gradient(125deg,#302416f0,#09283be8);box-shadow:inset 0 1px 0 #ffcd7740,0 0 12px #ff9e3330,2px 3px 0 #020e1b}
.daily-streak-hud.daily-fire-lit .daily-fire{filter:drop-shadow(0 0 5px #ffb13b);opacity:1;animation:daily-flame-flicker 1.8s ease-in-out infinite}
.daily-streak-hud.daily-fire-lit .daily-streak-value b{color:#ffd796}
.daily-streak-hud.daily-fire-ignite .daily-fire{animation:daily-flame-ignite .65s cubic-bezier(.2,1.3,.3,1) both,daily-flame-flicker 1.8s ease-in-out .65s infinite}
@keyframes daily-flame-flicker{0%,100%{transform:rotate(-4deg) scale(1)}50%{transform:rotate(4deg) scale(1.1)}}
@keyframes daily-flame-ignite{0%{transform:scale(.5) rotate(-20deg);filter:grayscale(1);opacity:.45}55%{transform:scale(1.45) rotate(9deg);filter:drop-shadow(0 0 12px #ffae39);opacity:1}100%{transform:scale(1);filter:drop-shadow(0 0 5px #ffb13b);opacity:1}}
@media(max-width:760px){.hud-actions .daily-streak-hud{min-height:29px;padding:3px 6px;gap:4px}.daily-streak-hud .daily-fire{font-size:16px}.daily-streak-hud .daily-streak-label{font-size:4px}.daily-streak-hud .daily-streak-value b{font-size:17px}.daily-streak-hud .daily-streak-value small{font-size:4px}}
@media(max-width:480px){.daily-streak-hud .daily-streak-label{display:none}.daily-streak-hud .daily-streak-value small{display:none}}
@media(prefers-reduced-motion:reduce){.daily-streak-hud.daily-fire-lit .daily-fire,.daily-streak-hud.daily-fire-ignite .daily-fire{animation:none}}

/* Cookie request: melt into the underwater scenery rather than read as a box.
   Keep the prawn, dialogue, actions, and existing entrance/exit animations. */
#cookieBanner.cookie-banner{
  background:linear-gradient(105deg,rgba(5,38,55,.84) 0%,rgba(7,41,59,.77) 52%,rgba(7,29,50,.86) 100%);
  border:1px solid rgba(126,221,216,.28);
  border-radius:22px;
  box-shadow:0 12px 42px rgba(0,11,26,.28),inset 0 1px 0 rgba(198,248,242,.12);
  backdrop-filter:blur(17px) saturate(115%);
  -webkit-backdrop-filter:blur(17px) saturate(115%);
  overflow:visible;
}
#cookieBanner.cookie-banner::before{
  content:"";position:absolute;inset:-8px;z-index:-1;pointer-events:none;
  border-radius:30px;
  background:radial-gradient(ellipse at 22% 45%,rgba(57,174,184,.14),transparent 63%);
  filter:blur(17px);
}
#cookieBanner .cookie-prawn-speech{
  background:rgba(8,65,79,.35);
  border:1px solid rgba(116,217,209,.25);
  border-radius:15px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
#cookieBanner .cookie-prawn img{
  filter:drop-shadow(0 0 11px rgba(255,159,118,.28));
}
#cookieBanner .cookie-actions button{
  border-radius:12px;
  border-color:rgba(136,225,215,.4);
  background:rgba(14,98,107,.54);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
#cookieBanner .cookie-actions button:last-child{
  background:rgba(9,37,53,.3);
  border-color:rgba(134,190,195,.3);
}
#cookieBanner .cookie-actions button:hover{
  background:rgba(27,125,130,.72);
  box-shadow:0 5px 20px rgba(55,192,184,.15);
}
@media(max-width:760px){#cookieBanner.cookie-banner{border-radius:17px}}

/* Cookie consent floats within the sea, without a solid panel or speech box. */
#cookieBanner.cookie-banner{
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  padding:14px clamp(12px,3vw,34px) 18px;
  gap:clamp(12px,2vw,26px);align-items:center;
  text-shadow:0 2px 7px #001321,0 0 15px #001321;
}
#cookieBanner.cookie-banner::before{display:none!important}
#cookieBanner .cookie-prawn-speech{
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;padding:4px 6px!important;
}
#cookieBanner .cookie-prawn-speech p{font-size:19px;line-height:1.08;color:#f0fff9;text-shadow:0 2px 8px #00101d,0 0 18px #00101d}
#cookieBanner .cookie-prawn-speech span{color:#ffd2a8;text-shadow:0 1px 7px #00101d}
#cookieBanner .cookie-prawn{max-width:410px;gap:6px}
#cookieBanner .cookie-prawn img{width:85px;height:85px}
#cookieBanner .cookie-copy{max-width:410px}
#cookieBanner .cookie-copy p{color:#e4f5f2;text-shadow:0 2px 8px #00101d,0 0 14px #00101d}
#cookieBanner .cookie-actions button{backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
@media(max-width:760px){
  #cookieBanner.cookie-banner{gap:8px;max-height:80vh;padding:10px 12px 16px}
  #cookieBanner .cookie-prawn{max-width:100%}
  #cookieBanner .cookie-prawn img{width:60px;height:60px}
  #cookieBanner .cookie-prawn-speech p{font-size:17px}
  #cookieBanner .cookie-copy{max-width:100%}
}

/* Cookie consent: compact top-left cluster, below the top HUD. */
#cookieBanner.cookie-banner{
  position:absolute;top:clamp(64px,9vh,90px)!important;bottom:auto!important;
  left:clamp(10px,2vw,24px)!important;right:auto!important;
  width:min(390px,calc(100% - 24px));max-width:390px;
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
  gap:7px!important;padding:8px 10px 10px!important;
  max-height:calc(100% - 110px);overflow-y:auto!important;
  animation:cookie-top-arrive .55s cubic-bezier(.2,1.2,.3,1) both;
}
#cookieBanner.cookie-banner.cookie-leaving{animation:cookie-top-leave .32s ease-in forwards}
#cookieBanner .cookie-prawn{max-width:100%!important;gap:7px}
#cookieBanner .cookie-prawn img{width:58px;height:58px;flex-shrink:0}
#cookieBanner .cookie-prawn-speech p{font-size:17px;line-height:1.08}
#cookieBanner .cookie-copy{max-width:100%!important;min-width:0!important}
#cookieBanner .cookie-copy p{font-size:15px;line-height:1.1;margin-top:4px}
#cookieBanner .cookie-actions{width:100%;display:flex;gap:7px;margin:2px 0 0}
#cookieBanner .cookie-actions button{flex:1;padding:8px 5px;font-size:5px}
@keyframes cookie-top-arrive{from{opacity:0;transform:translate(-24px,-18px) scale(.96)}to{opacity:1;transform:translate(0,0) scale(1)}}
@keyframes cookie-top-leave{to{opacity:0;transform:translate(-18px,-12px) scale(.97)}}
@media(max-width:600px){
 #cookieBanner.cookie-banner{top:64px!important;left:8px!important;width:min(340px,calc(100% - 16px));max-height:calc(100% - 90px)}
 #cookieBanner .cookie-prawn img{width:48px;height:48px}
 #cookieBanner .cookie-prawn-speech p{font-size:16px}
}
@media(prefers-reduced-motion:reduce){#cookieBanner.cookie-banner,#cookieBanner.cookie-banner.cookie-leaving{animation:none!important}}


/* Trivia Dive — a luminous in-world question mode, without changing other modes. */
.category-picker .trivia-choice{grid-column:1/-1;border-color:#8bdedbaa;background:linear-gradient(100deg,#0c3f5dbb,#154f63bb);box-shadow:inset 0 0 12px #4fe5d011}
.category-picker .trivia-choice b{color:#c4fff1}
.category-picker .trivia-choice:hover{box-shadow:0 0 18px #5ae8da66}
.trivia-screen[hidden]{display:none!important}
.trivia-screen{position:absolute;z-index:65;inset:0;overflow-y:auto;display:flex;flex-direction:column;align-items:center;color:#efffff;background:linear-gradient(180deg,#021327f2 0%,#053d56e9 45%,#020d24f8 100%);animation:trivia-surface .45s ease-out both}
.trivia-screen:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.18;background:repeating-linear-gradient(110deg,transparent 0 115px,#5ae8e51c 135px,transparent 155px 245px);animation:trivia-rays 12s linear infinite}
.trivia-water-glow{position:absolute;pointer-events:none;width:min(90vw,700px);height:500px;top:8%;border-radius:50%;background:radial-gradient(ellipse,#3ab9bc23 0%,transparent 70%);filter:blur(20px)}
.trivia-topline{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;width:min(960px,94vw);padding:24px 0 10px}
.trivia-back{border:1px solid #7bced499;background:#073b50b0;color:#d7ffff;border-radius:5px;padding:11px 13px;font:7px 'Press Start 2P',monospace;cursor:pointer}
.trivia-back:hover{background:#14586a}
.trivia-counter,.trivia-score{font:8px 'Press Start 2P',monospace;color:#a8e5df}
.trivia-score{color:#ffe4a4}
.trivia-content{position:relative;z-index:1;width:min(700px,92vw);margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 0 40px}
.trivia-kicker{font:7px 'Press Start 2P',monospace;letter-spacing:1px;color:#9df4df}
.trivia-content h2{margin:15px 0 0;font:clamp(20px,4.8vw,42px)/1.35 'Press Start 2P',monospace;text-shadow:4px 5px 0 #002b48,0 0 20px #70e7d066}
.trivia-content h2 span{color:#83e6df}
.trivia-depth{color:#b0e8ff;margin:6px 0 17px;letter-spacing:9px;animation:trivia-bob 3s ease-in-out infinite}
.trivia-question-card{width:100%;padding:24px 25px 20px;border:1px solid #70d3d16b;border-radius:17px;background:linear-gradient(140deg,#07354b80,#05283a70);backdrop-filter:blur(6px);box-shadow:0 0 30px #3bcbcf1b,inset 0 1px 0 #c0ffff18}
.trivia-question-head{display:flex;justify-content:space-between;gap:10px;color:#9adfd9;font:6px 'Press Start 2P',monospace;line-height:1.8}
.trivia-question{font:clamp(20px,3.2vw,29px)/1.25 'VT323',monospace;color:#fff;min-height:70px;margin:20px auto 23px;max-width:580px}
.trivia-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.trivia-option{display:flex;align-items:center;gap:12px;text-align:left;min-height:76px;padding:12px;border:1px solid #72cbd5a0;border-radius:10px;background:#092b43c9;color:#f3ffff;font:clamp(18px,2.3vw,23px)/1.1 'VT323',monospace;cursor:pointer;transition:transform .2s,background .2s,box-shadow .2s}
.trivia-option:not(:disabled):hover,.trivia-option:not(:disabled):focus-visible{transform:translateY(-3px);background:#14556b;box-shadow:0 0 17px #62e8dc40}
.trivia-option-key{flex:none;display:grid;place-items:center;width:34px;height:34px;border:1px solid #82f5e7;border-radius:6px;color:#b9fff1;font:11px 'Press Start 2P',monospace;background:#12536a}
.trivia-option.is-correct{border-color:#b8ffb0;background:#175b4c;box-shadow:0 0 15px #5cff9c45}
.trivia-option.is-wrong{border-color:#ff9ca8;background:#632e47}
.trivia-option:disabled{cursor:default}
.trivia-feedback{min-height:28px;margin:20px 0 8px;color:#d3f5e8;font:clamp(16px,2vw,19px)/1.2 'VT323',monospace}
.trivia-next{padding:13px 20px;background:linear-gradient(120deg,#9ce9d9,#7cb4f5);border:0;border-radius:7px;color:#073247;font:8px 'Press Start 2P',monospace;cursor:pointer;box-shadow:0 5px 0 #0a5361}
.trivia-next:hover{filter:brightness(1.1)}
.trivia-next[hidden]{display:none}
.trivia-bottom{display:flex;justify-content:space-between;gap:12px;width:100%;padding-top:17px;font:6px 'Press Start 2P',monospace;color:#9bd7d2;line-height:1.8}
@keyframes trivia-surface{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
@keyframes trivia-bob{50%{transform:translateY(-6px)}}
@keyframes trivia-rays{50%{transform:translateX(35px)}}
@media(max-width:650px){.trivia-topline{padding-top:12px}.trivia-back,.trivia-counter,.trivia-score{font-size:5px}.trivia-content{margin:10px auto}.trivia-question-card{padding:16px 12px}.trivia-options{grid-template-columns:1fr;gap:8px}.trivia-option{min-height:56px}.trivia-question{margin:13px 0}.trivia-bottom{font-size:5px;flex-direction:column;align-items:center}}
@media(prefers-reduced-motion:reduce){.trivia-screen,.trivia-depth,.trivia-screen:before{animation:none}}


/* Trivia Dive: same actual ocean and swimming character, no custom background, no panels. */
.game.trivia-in-ocean .trivia-screen{
  position:absolute;inset:0;z-index:65;display:flex;flex-direction:column;
  background:transparent!important;backdrop-filter:none!important;
  box-shadow:none!important;border:0!important;overflow-y:auto;
  color:#efffff;animation:trivia-surface .45s ease-out both;
}
.game.trivia-in-ocean .trivia-screen:before,.game.trivia-in-ocean .trivia-water-glow{display:none!important}
.game.trivia-in-ocean .trivia-content{
  width:min(670px,92vw);margin:auto;gap:0;padding:20px 0 35px;
  filter:drop-shadow(0 2px 3px #001627);
}
.game.trivia-in-ocean .trivia-question-card{
  background:transparent!important;border:0!important;box-shadow:none!important;
  backdrop-filter:none!important;border-radius:0!important;padding:8px 4px!important;
}
.game.trivia-in-ocean .trivia-option{
  background:transparent!important;box-shadow:none!important;border:0!important;
  border-bottom:1px solid #b0f9ed80!important;border-radius:0!important;
  padding:10px 4px!important;min-height:57px;
  text-shadow:0 2px 4px #001726;
}
.game.trivia-in-ocean .trivia-option:not(:disabled):hover,
.game.trivia-in-ocean .trivia-option:not(:disabled):focus-visible{
  background:transparent!important;color:#9effea!important;
  transform:translateX(5px)!important;box-shadow:none!important;
}
.game.trivia-in-ocean .trivia-option-key{
  background:transparent!important;border:0!important;
  color:#8cf9eb!important;width:25px;height:auto;
}
.game.trivia-in-ocean .trivia-option.is-correct{color:#aaffb5!important;border-bottom-color:#aaffb5!important}
.game.trivia-in-ocean .trivia-option.is-wrong{color:#ffb6be!important;border-bottom-color:#ffb6be!important}
.game.trivia-in-ocean .trivia-next,.game.trivia-in-ocean .trivia-back{
  background:transparent!important;border:0!important;box-shadow:none!important;
  color:#d0fff3!important;text-shadow:0 2px 4px #001726;cursor:pointer;
}
.game.trivia-in-ocean .trivia-next:hover,.game.trivia-in-ocean .trivia-back:hover{color:#83f5e0!important}
.game.trivia-in-ocean .trivia-content h2{font-size:clamp(17px,3.3vw,30px)}
.game.trivia-in-ocean .trivia-depth{margin:0 0 5px}
.game.trivia-in-ocean .trivia-question{min-height:0;margin:10px auto 14px}
.game.trivia-in-ocean .trivia-feedback{margin:12px 0 4px}
.game.trivia-in-ocean .trivia-bottom{padding-top:4px}
.game.trivia-in-ocean .hud-top,.game.trivia-in-ocean .hud-bottom,
.game.trivia-in-ocean .console,.game.trivia-in-ocean .clue-area,
.game.trivia-in-ocean .depth-scale,.game.trivia-in-ocean .temperature-sides,
.game.trivia-in-ocean .ocean-title,.game.trivia-in-ocean .sea-discovery,
.game.trivia-in-ocean #guessTrail{visibility:hidden!important;pointer-events:none!important}
.game.trivia-in-ocean .player-track{pointer-events:none}
@media(max-width:650px){
  .game.trivia-in-ocean .trivia-topline{padding:12px 0 0}
  .game.trivia-in-ocean .trivia-content{padding:8px 0 18px}
  .game.trivia-in-ocean .trivia-options{grid-template-columns:1fr;gap:4px}
  .game.trivia-in-ocean .trivia-option{min-height:44px}
  .game.trivia-in-ocean .trivia-kicker,.game.trivia-in-ocean .trivia-question-head{font-size:5px}
}

/* Trivia Dive: title higher; make the Hadal Zone unmistakable without panels. */
.game.trivia-in-ocean .trivia-content{margin:clamp(8px,3vh,28px) auto auto!important;padding-top:0!important}
.game.trivia-in-ocean .trivia-content h2{margin:8px 0 0!important}
.game.trivia-in-ocean .trivia-kicker{margin:0!important}
.game.trivia-in-ocean .trivia-hadal-label{font:clamp(7px,1.4vw,10px)/1.7 'Press Start 2P',monospace;color:#9df9ee;text-shadow:0 2px 5px #00131f,0 0 12px #6df3e6;margin:10px 0 1px;letter-spacing:1px}
.game.trivia-in-ocean .trivia-question-card{padding-top:0!important}
.game.trivia-in-ocean .trivia-depth{margin:0!important}
@media(max-width:650px){.game.trivia-in-ocean .trivia-content{margin:6px auto auto!important}.game.trivia-in-ocean .trivia-hadal-label{font-size:7px;margin-top:6px}}


/* Spacious Trivia Dive — text on the existing ocean, never on the title or controls. */
.game.trivia-in-ocean .trivia-screen{box-sizing:border-box;gap:0;padding-bottom:clamp(22px,5vh,52px);scrollbar-width:thin}
.game.trivia-in-ocean .trivia-topline{flex:none;padding:clamp(16px,3vh,30px) 0 clamp(15px,3vh,30px)!important}
.game.trivia-in-ocean .trivia-content{box-sizing:border-box;margin:0 auto!important;width:min(650px,88vw);padding:0 0 28px!important;gap:0}
.game.trivia-in-ocean .trivia-kicker{margin:0 0 13px!important}
.game.trivia-in-ocean .trivia-hadal-label{margin:0 0 15px!important;line-height:2!important}
.game.trivia-in-ocean .trivia-content h2{margin:0 0 clamp(26px,5vh,54px)!important;line-height:1.5}
.game.trivia-in-ocean .trivia-question-card{padding:0!important}
.game.trivia-in-ocean .trivia-question-head{margin:0 0 16px}
.game.trivia-in-ocean .trivia-question{margin:0 auto clamp(20px,3vh,34px)!important;line-height:1.42;max-width:580px}
.game.trivia-in-ocean .trivia-options{gap:clamp(8px,1.5vh,16px) clamp(18px,3vw,34px)}
.game.trivia-in-ocean .trivia-option{padding:13px 8px!important;line-height:1.3;min-height:65px}
.game.trivia-in-ocean .trivia-feedback{margin:clamp(20px,3vh,32px) 0 16px!important;line-height:1.4}
.game.trivia-in-ocean .trivia-bottom{margin-top:clamp(20px,4vh,40px);padding:0!important}
.game.trivia-in-ocean .trivia-depth{display:none!important}
@media(max-width:650px){
 .game.trivia-in-ocean .trivia-topline{padding:16px 0 24px!important}
 .game.trivia-in-ocean .trivia-content{width:min(500px,88vw)}
 .game.trivia-in-ocean .trivia-content h2{margin-bottom:25px!important}
 .game.trivia-in-ocean .trivia-options{grid-template-columns:1fr;gap:7px}
 .game.trivia-in-ocean .trivia-option{min-height:48px;padding:8px 4px!important}
 .game.trivia-in-ocean .trivia-question{margin-bottom:16px!important}
 .game.trivia-in-ocean .trivia-bottom{margin-top:24px}
}

/* Trivia only: remove gameplay temperature/zone HUD, keep the living ocean. */
.game.trivia-in-ocean #zoneFollow,
.game.trivia-in-ocean .world-status {display:none!important}
/* The original menu prawn is untouched. These reading buddies only exist in Trivia. */
.trivia-reading-buddies{position:relative;flex:none;align-self:flex-end;display:flex;align-items:flex-end;justify-content:center;gap:3px;width:clamp(125px,19vw,210px);height:clamp(90px,13vh,132px);margin:8px max(5vw,20px) 14px auto;pointer-events:none;z-index:2;filter:drop-shadow(0 4px 4px #001b2b)}
.trivia-reading-buddies::before{content:"";position:absolute;bottom:0;width:94%;height:20px;border-radius:65% 55% 20% 20%;background:linear-gradient(#77999b,#315e6b 60%,#1a3d50);border-top:3px solid #b1d5c3;box-shadow:0 5px 0 #00253980}
.trivia-reading-buddies .trivia-bag-reader{position:relative;z-index:2;width:58px;height:70px;transform:rotate(-8deg);animation:trivia-read-bob 4s ease-in-out infinite}
.trivia-reading-buddies .trivia-bag-reader::before{content:"";position:absolute;top:0;left:14px;width:26px;height:19px;border:7px solid #c9f4e7;border-bottom:0;border-radius:13px 13px 0 0}
.trivia-reading-buddies .trivia-bag-body{position:absolute;bottom:10px;left:4px;width:52px;height:52px;border:3px solid #9bd9d0;background:linear-gradient(135deg,#d6f6ebdc,#92d7d1aa);clip-path:polygon(9% 0,91% 0,100% 100%,0 100%);border-radius:3px 3px 10px 10px;display:flex;align-items:center;justify-content:center;color:#205c67;font:18px monospace}
.trivia-reading-buddies .trivia-book{position:relative;z-index:5;align-self:flex-end;margin-bottom:14px;width:45px;height:31px;transform:rotate(-7deg);animation:trivia-page-wiggle 5s ease-in-out infinite}
.trivia-reading-buddies .trivia-book::before,.trivia-reading-buddies .trivia-book::after{content:"";position:absolute;top:0;width:21px;height:30px;background:repeating-linear-gradient(to bottom,#f7edce 0 5px,#b4b6a1 6px 7px);border:2px solid #617f80}
.trivia-reading-buddies .trivia-book::before{left:0;transform:skewY(8deg)}
.trivia-reading-buddies .trivia-book::after{right:0;transform:skewY(-8deg)}
.trivia-reading-buddies .trivia-prawn-reader{position:relative;z-index:3;width:clamp(44px,6vw,65px);height:auto;margin-bottom:13px;transform:rotate(8deg);animation:trivia-prawn-read 3.5s ease-in-out infinite}
.trivia-reading-buddies .trivia-bubble{position:absolute;top:4px;right:9px;color:#b8f9e9;font:16px monospace;animation:trivia-read-bob 4s ease-in-out infinite}
@keyframes trivia-read-bob{50%{transform:rotate(-4deg) translateY(-3px)}}
@keyframes trivia-prawn-read{50%{transform:rotate(13deg) translateY(-4px)}}
@keyframes trivia-page-wiggle{50%{transform:rotate(1deg)}}
@media(max-width:650px){.trivia-reading-buddies{width:140px;height:90px;margin:12px 6vw 16px auto;transform:scale(.82);transform-origin:bottom right}}
@media(prefers-reduced-motion:reduce){.trivia-reading-buddies *{animation:none!important}}


/* Trivia polish: no duplicate player bag, stable reading corner, gentle quiz transitions. */
.game.trivia-in-ocean #player,
.game.trivia-in-ocean .player,
.game.trivia-in-ocean .player-track{display:none!important;visibility:hidden!important}
/* Never let the buddy scene participate in the quiz's changing content height. */
.game.trivia-in-ocean .trivia-screen{position:absolute;isolation:isolate;padding-bottom:clamp(160px,24vh,210px)!important}
.game.trivia-in-ocean .trivia-reading-buddies{
 position:fixed!important;right:clamp(16px,5vw,65px)!important;bottom:clamp(14px,3vh,36px)!important;
 margin:0!important;align-self:auto!important;flex:none!important;
 transform:none!important;transform-origin:center bottom!important;
 z-index:4;pointer-events:none;
}
/* Stable reserved height keeps the answers from pushing the buddies around. */
.game.trivia-in-ocean .trivia-question{min-height:3.1em!important}
.game.trivia-in-ocean .trivia-feedback{min-height:2.8em!important}
.game.trivia-in-ocean .trivia-question-card{width:100%}
.game.trivia-in-ocean .trivia-question,
.game.trivia-in-ocean .trivia-question-head,
.game.trivia-in-ocean .trivia-options,
.game.trivia-in-ocean .trivia-feedback,
.game.trivia-in-ocean .trivia-next{transition:opacity .32s ease,transform .32s ease,color .25s ease}
.game.trivia-in-ocean .trivia-is-loading .trivia-options{opacity:0;transform:translateY(8px)}
.game.trivia-in-ocean .trivia-option{animation:trivia-answer-enter .42s both;animation-delay:calc(var(--trivia-option-order,0) * 65ms)}
.game.trivia-in-ocean .trivia-option.is-correct{animation:trivia-correct-pop .48s ease both}
.game.trivia-in-ocean .trivia-option.is-wrong{animation:trivia-wrong-shake .35s ease both}
.game.trivia-in-ocean .trivia-is-answered .trivia-feedback{animation:trivia-answer-enter .38s ease both}
.game.trivia-in-ocean .trivia-next:not([hidden]){animation:trivia-answer-enter .36s ease both}
.game.trivia-in-ocean .trivia-is-loading .trivia-question{animation:trivia-signal-pulse 1.5s ease-in-out infinite}
@keyframes trivia-answer-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes trivia-correct-pop{0%{transform:scale(.97)}55%{transform:scale(1.025)}100%{transform:scale(1)}}
@keyframes trivia-wrong-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}70%{transform:translateX(5px)}}
@keyframes trivia-signal-pulse{0%,100%{opacity:.65}50%{opacity:1}}
@media(max-width:650px){
 .game.trivia-in-ocean .trivia-screen{padding-bottom:150px!important}
 .game.trivia-in-ocean .trivia-reading-buddies{right:12px!important;bottom:12px!important;transform:scale(.83)!important;transform-origin:bottom right!important}
 .game.trivia-in-ocean .trivia-question{min-height:2.8em!important}
}
@media(prefers-reduced-motion:reduce){
 .game.trivia-in-ocean .trivia-option,.game.trivia-in-ocean .trivia-feedback,
 .game.trivia-in-ocean .trivia-next,.game.trivia-in-ocean .trivia-question{animation:none!important;transition:none!important}
}

/* Trivia readers: anchor to the actual full-screen Trivia layer, not the changing quiz layout. */
.game.trivia-in-ocean .trivia-screen{position:absolute!important;inset:0!important;transform:none!important;}
.game.trivia-in-ocean .trivia-reading-buddies{
 position:absolute!important;right:clamp(14px,3vw,40px)!important;bottom:clamp(12px,2.5vh,26px)!important;
 top:auto!important;left:auto!important;margin:0!important;
 width:clamp(125px,17vw,185px)!important;height:clamp(90px,12vh,120px)!important;
 transform:none!important;animation:none!important;flex-shrink:0!important;
 pointer-events:none!important;z-index:10!important;
}
/* Keep the characters' tiny reading motions, without moving their shared base. */
@media(max-width:650px){
 .game.trivia-in-ocean .trivia-reading-buddies{right:10px!important;bottom:10px!important;width:126px!important;height:90px!important;transform:none!important;}
 .game.trivia-in-ocean .trivia-screen{padding-bottom:135px!important;}
}

/* FIX: Trivia reading buddies live outside the question/content flow. */
.game.trivia-in-ocean #triviaScreen.trivia-screen{position:absolute!important;inset:0!important;isolation:isolate;transform:none!important;overflow-y:auto!important;padding-bottom:0!important}
.game.trivia-in-ocean #triviaScreen .trivia-content{padding-bottom:clamp(135px,23vh,200px)!important;box-sizing:border-box}
.game.trivia-in-ocean #triviaScreen > .trivia-reading-buddies{
 position:fixed!important;left:clamp(12px,3vw,40px)!important;right:auto!important;
 bottom:clamp(12px,2.5vh,28px)!important;top:auto!important;
 margin:0!important;width:clamp(125px,17vw,185px)!important;height:clamp(90px,12vh,120px)!important;
 transform:none!important;animation:none!important;transform-origin:bottom left!important;
 z-index:90!important;pointer-events:none!important;
}
/* The starting-screen bag is normal-sized again; only Trivia gets the reading illustration. */
.game.intro-closeup .player{animation:player-float 3s ease-in-out infinite!important;filter:drop-shadow(0 3px 5px #00101d88)!important}
.game.intro-closeup .player .sprite{transform:scale(1)!important}
@media(max-width:650px){
 .game.trivia-in-ocean #triviaScreen .trivia-content{padding-bottom:145px!important}
 .game.trivia-in-ocean #triviaScreen > .trivia-reading-buddies{left:10px!important;right:auto!important;bottom:10px!important;width:126px!important;height:90px!important;transform:none!important}
}

/* Auto-enter modes: no BEGIN confirmation. A retry button appears only on load failure. */
#beginButton { display:inline-flex!important; }
#beginButton.auto-retry-visible { display:block!important; }

/* Ocean reward moments: lightweight overlays, never alter character layout. */
.dive-reward{position:absolute;z-index:120;left:50%;top:19%;width:min(85vw,510px);transform:translate(-50%,-15px) scale(.95);display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;pointer-events:none;opacity:0;visibility:hidden;color:#dcfff9;text-shadow:0 3px 6px #001627,0 0 18px #007c86;transition:opacity .24s ease,transform .32s ease,visibility .24s}
.dive-reward.reward-show{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1)}
.dive-reward-icon{font-size:clamp(25px,4vw,44px);filter:drop-shadow(0 0 10px #6bffe6)}
.dive-reward strong{font-size:clamp(12px,2.1vw,22px);letter-spacing:.09em;line-height:1.45}
.dive-reward small{font-size:clamp(8px,1.15vw,12px);line-height:1.6;letter-spacing:.07em;color:#a7e9e3}
.reward-particles{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:115}
.reward-bubble{position:absolute;bottom:15%;width:8px;height:8px;border:1px solid #9ef9e6;border-radius:50%;box-shadow:0 0 10px #75f7dc;background:#b1fff129;opacity:0;animation:reward-bubble-rise 1.6s ease-out var(--delay,0s) both}
@keyframes reward-bubble-rise{0%{transform:translate(0,0) scale(.3);opacity:0}18%{opacity:.85}100%{transform:translate(var(--drift,0px),-60vh) scale(1.6);opacity:0}}
.game.reward-ocean-flash .ocean{filter:brightness(1.1) saturate(1.08);transition:filter .35s ease}
.game.trivia-in-ocean .dive-reward{top:13%;z-index:130}
@media(max-width:650px){.dive-reward{top:13%;width:88vw}.game.trivia-in-ocean .dive-reward{top:9%}}
@media(prefers-reduced-motion:reduce){.reward-bubble{animation:none;display:none}.dive-reward{transition:none;transform:translate(-50%,0)}}

/* Sink or Think: ocean-integrated, no floating reward overlays */
.sink-screen[hidden]{display:none!important}
.sink-screen{position:absolute;inset:0;z-index:75;overflow-y:auto;display:flex;flex-direction:column;align-items:center;color:#edffff;background:linear-gradient(180deg,#04192dcc,#03283bbb,#021122dd);font-family:inherit}
.game.sink-in-ocean .player,.game.sink-in-ocean #player{visibility:hidden!important}
.sink-top{width:min(94%,850px);display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px auto 0;font-size:12px;letter-spacing:1px}
.sink-top button{background:transparent;border:0;color:#b8f4f0;cursor:pointer;font:inherit}
.sink-center{width:min(90%,650px);margin:auto;text-align:center;padding:25px 0 75px}
.sink-kicker{font-size:13px;letter-spacing:3px;color:#8fe3db;margin-bottom:22px}
.sink-center h2{font-size:clamp(23px,4vw,38px);line-height:1.3;margin:0 0 15px;color:#fff}
#sinkRule{color:#c2e6e6;font-size:13px;margin:0 0 22px}
.sink-meters{display:flex;justify-content:space-between;align-items:center;font-size:13px;letter-spacing:1px;margin:0 0 8px}
#sinkTimer{font-size:26px;font-variant-numeric:tabular-nums;color:#fff}
.sink-progress{height:9px;border:1px solid #7ec7c7;border-radius:12px;overflow:hidden;background:#0c2a3b}
#sinkProgressBar{width:0;height:100%;background:#68d7bf;transition:width .2s}
.sink-answers{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;min-height:55px;margin:18px 0}
.sink-answers span{border:1px solid #5db6ae;border-radius:6px;padding:9px 12px;background:#164657;color:#e6ffff;font-size:13px}
#sinkForm{display:flex;gap:9px;max-width:540px;margin:auto}
#sinkInput{min-width:0;flex:1;padding:14px 13px;background:#06263a;color:white;border:1px solid #7eb6b8;border-radius:7px;font:inherit}
#sinkSubmit,#sinkNext{border:1px solid #8bd9d2;border-radius:7px;background:#14606b;color:#fff;padding:13px 16px;cursor:pointer;font:inherit;font-size:12px}
#sinkSubmit:disabled,#sinkInput:disabled{opacity:.5;cursor:wait}
#sinkFeedback{min-height:26px;font-size:13px;color:#b9e6e3;margin:15px 0}
#sinkNext{margin:10px auto 0}
.sink-bottom{margin:0 auto 22px;text-align:center;color:#8ec8cc;font-size:10px;letter-spacing:1px;padding:0 10px}
@media(max-width:540px){.sink-top{font-size:9px}.sink-center{padding-top:40px}.sink-bottom{font-size:9px}#sinkForm{flex-direction:column}}

/* Sink or Think: floating in the existing ocean, no background panel or replacement scene */
.sink-screen{background:transparent!important;pointer-events:none;overflow:hidden;justify-content:space-between;text-shadow:0 2px 7px #001a2b,0 1px 2px #001a2b}
.sink-screen button,.sink-screen input,.sink-center,.sink-top{pointer-events:auto}
.sink-top{position:relative;z-index:2;margin-top:clamp(20px,4vh,48px);max-width:780px}
.sink-center{position:relative;z-index:2;width:min(92%,700px);padding:10px 0 15px;margin:auto;filter:drop-shadow(0 3px 8px #001726)}
.sink-center h2{font-size:clamp(27px,4.4vw,47px);line-height:1.2;max-width:680px;margin:16px auto 16px;letter-spacing:.015em}
.sink-kicker{letter-spacing:4px;color:#b1f7ed;animation:sinkFloat 3.5s ease-in-out infinite}
.sink-center.sink-arrive{animation:sinkArrive .5s cubic-bezier(.2,.8,.3,1) both}
.sink-progress{height:5px;background:#082c3b77;border:0;max-width:540px;margin:auto}
.sink-answers{min-height:35px;margin:12px auto}
.sink-answers span{background:#0d4d5a99;border-color:#91ead7;animation:sinkPop .38s ease-out}
#sinkForm{width:min(100%,520px)}
#sinkInput{background:#072c3baf;backdrop-filter:blur(3px);border-color:#9adbd2;box-shadow:0 3px 16px #001e2b55}
#sinkSubmit,#sinkNext{background:#0b6470d9;box-shadow:0 4px 14px #001a2855;transition:transform .15s,background .15s}
#sinkSubmit:hover,#sinkNext:hover{transform:translateY(-3px);background:#13818b}
#sinkFeedback{font-weight:700;min-height:36px}
.sink-bottom{position:relative;z-index:2}
.sink-pop{animation:sinkPop .5s ease-out}
#sinkParticles{position:absolute;inset:0;pointer-events:none;overflow:hidden}
#sinkParticles i{position:absolute;bottom:15%;width:8px;height:8px;border:1px solid #c0fff3;border-radius:50%;box-shadow:0 0 14px #b5fff3;animation:sinkBubble 1.6s ease-out forwards}
@keyframes sinkFloat{50%{transform:translateY(-6px)}}
@keyframes sinkArrive{from{opacity:0;transform:translateY(17px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes sinkPop{0%{transform:scale(.82);opacity:.5}65%{transform:scale(1.14)}100%{transform:scale(1);opacity:1}}
@keyframes sinkBubble{from{transform:translateY(0) scale(.6);opacity:1}to{transform:translateY(-240px) scale(2);opacity:0}}
@media(prefers-reduced-motion:reduce){.sink-screen *{animation:none!important;transition:none!important}}

/* Sink or Think: HUD language, open-ocean floating UI, countdown and descent */
.sink-screen{z-index:150!important;background:transparent!important;overflow-y:auto!important;scrollbar-width:thin}
.sink-top{flex-shrink:0;margin-top:16px;font-weight:700}
.sink-depth{position:relative;z-index:2;display:flex;align-items:center;gap:12px;width:min(92%,650px);margin:6px auto 0;font-size:10px;letter-spacing:1.5px;color:#a4e7e1;text-shadow:0 2px 8px #001927}
.sink-depth strong{font-size:20px;color:white;font-variant-numeric:tabular-nums;white-space:nowrap}
.sink-depth-track{flex:1;height:4px;background:#04334488;border-radius:10px;overflow:hidden}
#sinkDepthBar{height:100%;width:0;background:#a5fff0;transition:width .7s ease;box-shadow:0 0 12px #a5fff0}
.sink-center{padding:12px 0!important;margin:auto!important}
.sink-source{font-size:11px;letter-spacing:1.1px;color:#b4dfdd;margin:6px auto 12px}
.sink-transmit{width:min(100%,540px);margin:10px auto 6px;display:flex;justify-content:space-between;gap:10px;text-align:left;font-size:11px;font-weight:800;letter-spacing:1px;color:#d6f6f2}
.sink-transmit span{font-weight:500;color:#a1d7d1;font-size:10px;text-align:right}
#sinkForm{border:1px solid #a2e4dc;border-radius:7px;overflow:hidden;background:#062d3c9c;gap:0;align-items:center}
.sink-chevron{padding:0 8px 0 14px;font-size:20px;color:#b7eee7}
#sinkInput{border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none;outline-offset:-2px}
#sinkSubmit{border:0;border-left:1px solid #84c4c0;border-radius:0;box-shadow:none;align-self:stretch;white-space:nowrap;font-weight:800}
.sink-utilities{display:flex;justify-content:space-between;gap:8px;align-items:center;max-width:540px;margin:0 auto;font-size:10px;letter-spacing:.7px;color:#c3e9e6}
#sinkReveal{border:0;background:none;color:#d8f9f4;cursor:pointer;font:inherit;letter-spacing:inherit;text-shadow:inherit}
.sink-signal{margin:18px auto 0;font-size:10px;letter-spacing:.6px;color:#b9d7d5}
#sinkTimer{display:inline-block;min-width:90px;text-align:right;font-size:clamp(24px,4vw,34px);transition:color .2s}
#sinkTimer.sink-urgent{color:#ffb5a0;animation:sinkTimerPulse .7s infinite alternate}
.sink-bottom{margin:8px auto 16px!important}
@keyframes sinkTimerPulse{to{transform:scale(1.07);filter:brightness(1.5)}}
@media(max-height:720px){.sink-center h2{font-size:clamp(20px,3.4vw,32px);margin:8px auto}.sink-kicker{margin-bottom:6px}.sink-answers{min-height:25px;margin:5px auto}.sink-signal{margin-top:8px}.sink-center{padding:5px 0!important}}
@media(max-width:540px){.sink-top{gap:4px;font-size:9px}.sink-depth{gap:6px}.sink-depth strong{font-size:15px}.sink-transmit{font-size:9px}#sinkForm{flex-direction:row!important}#sinkInput{padding:12px 5px!important;width:100%;font-size:12px}#sinkSubmit{padding:12px 9px;font-size:11px}.sink-signal{font-size:9px}.sink-utilities{font-size:9px}}

/* Signal scoring: compact guess history on the original ocean. */
.sink-guess-chip{display:inline-block;margin:3px 4px;padding:5px 9px;border:1px solid rgba(151,227,219,.5);border-radius:999px;background:rgba(6,44,60,.24);color:#d9fff5;font-size:11px;letter-spacing:.4px}

/* Sink or Think / Ocean text mode: the actual Casual Dive sea, no cards, panels, or tinted backdrop. */
#sinkScreen.sink-screen{background:none!important;background-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;border:0!important;isolation:auto!important;text-shadow:0 2px 5px #002238,0 0 13px #002b45;z-index:100!important}
#sinkScreen .sink-center,#sinkScreen .sink-top,#sinkScreen .sink-depth,#sinkScreen .sink-bottom{background:none!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important;filter:none!important}
#sinkScreen .sink-kicker{font-family:'Press Start 2P',monospace;font-size:clamp(8px,1vw,11px);line-height:2;letter-spacing:1px;color:#d7fff4}
#sinkScreen h2{font-family:'Press Start 2P',monospace;font-size:clamp(12px,2vw,22px);line-height:1.85;max-width:730px;color:#f5ffff;text-shadow:2px 3px #06465c,0 3px 13px #00273b}
#sinkScreen .sink-source,#sinkScreen #sinkRule,#sinkScreen .sink-transmit,#sinkScreen .sink-utilities,#sinkScreen .sink-signal,#sinkScreen .sink-bottom{color:#e0fff8}
#sinkScreen .sink-guess-chip,#sinkScreen .sink-answers span{background:none!important;backdrop-filter:none!important;border:0!important;border-bottom:1px solid #9de3d8!important;border-radius:0!important;box-shadow:none!important}
#sinkScreen #sinkForm{background:none!important;backdrop-filter:none!important;border:0!important;border-bottom:2px solid #c5fff0!important;border-radius:0!important;box-shadow:none!important}
#sinkScreen #sinkInput{background:none!important;color:#fff!important;font-size:clamp(16px,2vw,22px)}
#sinkScreen #sinkSubmit,#sinkScreen #sinkNext{background:none!important;border:1px solid #b9f5e9!important;border-radius:3px!important;box-shadow:none!important;color:#e8fff8!important}
#sinkScreen .sink-progress,#sinkScreen .sink-depth-track{background:#082f4155!important}
#sinkScreen .sink-center{width:min(92%,730px);padding:5px 0!important}
#sinkScreen .sink-answers{max-height:75px;overflow-y:auto}
#sinkScreen .sink-top{margin-top:12px!important}
#sinkScreen #sinkFeedback{font-size:clamp(10px,1.3vw,14px);line-height:1.7}
/* Keep the actual plastic bag visible while its regular HUD is replaced by text prompts. */
.game.sink-in-ocean .player,.game.sink-in-ocean #player{visibility:visible!important}
.game.sink-in-ocean .ocean{visibility:visible!important}
.game.sink-in-ocean .ocean-title,.game.sink-in-ocean .clue-area,.game.sink-in-ocean .guess-trail,.game.sink-in-ocean .console,.game.sink-in-ocean .world-status,.game.sink-in-ocean .depth-scale{visibility:hidden!important;pointer-events:none!important}
@media(max-width:600px){#sinkScreen h2{font-size:12px;line-height:1.65}#sinkScreen .sink-kicker{font-size:7px}#sinkScreen .sink-center{padding:0!important}#sinkScreen .sink-answers{max-height:52px}#sinkScreen .sink-top{font-size:9px}}

/* Sink or Think: Casual Dive-inspired open-ocean signal feedback, no background boxes. */
#sinkScreen .sink-signal-meter{height:3px;width:min(100%,520px);margin:2px auto 10px;background:rgba(137,214,221,.23);overflow:hidden;border-radius:0;border:0}
#sinkSignalFill{width:0%;height:100%;background:#a4eee4;transition:width .42s cubic-bezier(.16,.8,.23,1),background .2s;box-shadow:0 0 12px #b5ffed}
#sinkBurst{height:16px;min-height:16px;margin:0 auto;color:#cbfff2;font-family:'Press Start 2P',monospace;font-size:clamp(7px,.9vw,10px);text-shadow:0 0 13px #a1fff1;opacity:0;pointer-events:none}
#sinkBurst.sink-burst-play{animation:sinkBurstRise 1.3s ease-out both}
#sinkFeedback.sink-feedback-pop{animation:sinkFeedbackPop .4s ease-out}
@keyframes sinkBurstRise{0%{opacity:0;transform:translateY(10px)}20%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translateY(-14px)}}
@keyframes sinkFeedbackPop{from{opacity:.45;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
#sinkScreen .sink-bottom{font-family:'Press Start 2P',monospace;font-size:clamp(6px,.65vw,9px);line-height:1.8}
#sinkScreen .sink-depth-track,#sinkScreen .sink-progress{height:3px;background:rgba(130,209,217,.22)!important;border-radius:0}
#sinkScreen .sink-guess-chip{font-family:inherit;padding:4px 8px;margin:2px 4px;background:none!important;border:0!important;border-bottom:1px dotted rgba(200,255,245,.55)!important}
@media(prefers-reduced-motion:reduce){#sinkBurst,#sinkFeedback{animation:none!important}#sinkSignalFill{transition:none}}


/* TRUTH DIVE — the EXISTING Casual Dive ocean stays visible; no backdrop or cards. */
.game.sink-in-ocean{--truth-water:#278da4;--truth-glimmer:#b8ffe9;--truth-sea-dark:#063b58}
.game.sink-in-ocean.truth-reef-stage{--water-top:#63cbd2;--water-mid:#169aad;--water-deep:#086481;--abyss:#063d60;--truth-water:#51b9bc;--truth-glimmer:#d8fff0}
.game.sink-in-ocean.truth-twilight-stage{--water-top:#207d9b;--water-mid:#0e5677;--water-deep:#073652;--abyss:#03182d;--truth-water:#15809b;--truth-glimmer:#87f8ef}
.game.sink-in-ocean.truth-midnight-stage{--water-top:#0d4c6c;--water-mid:#062b4a;--water-deep:#03192f;--abyss:#010c1d;--truth-water:#124c78;--truth-glimmer:#69f6db}
.game.sink-in-ocean.truth-abyss-stage{--water-top:#092c48;--water-mid:#041d34;--water-deep:#021228;--abyss:#000917;--truth-water:#0b314e;--truth-glimmer:#6ddefb}
.game.sink-in-ocean.truth-trench-stage{--water-top:#06182c;--water-mid:#031428;--water-deep:#01091b;--abyss:#00050d;--truth-water:#081d33;--truth-glimmer:#65eae7}
.game.sink-in-ocean .player-track{transform:translateY(var(--truth-descent,0px));transition:transform 1.6s cubic-bezier(.2,.7,.25,1)}
#sinkScreen.sink-screen{background:transparent!important;background-image:none!important;backdrop-filter:none!important;overflow-y:auto!important;isolation:isolate!important;z-index:120!important}
#sinkScreen .truth-scene{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
#sinkScreen .sink-center,#sinkScreen .sink-top,#sinkScreen .sink-depth,#sinkScreen .sink-bottom{position:relative;z-index:3;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important}
#sinkScreen .truth-rays{position:absolute;inset:-18%;background:repeating-conic-gradient(from 179deg at 50% -5%,transparent 0deg 9deg,#bafcfd19 11deg 13deg,transparent 15deg 25deg);opacity:.46;animation:truthSway 14s ease-in-out infinite alternate}
.game.truth-midnight-stage .truth-rays,.game.truth-abyss-stage .truth-rays,.game.truth-trench-stage .truth-rays{opacity:.03}
.truth-reef{position:absolute;bottom:-3%;width:25vw;height:34%;opacity:.78;background:radial-gradient(ellipse at 50% 100%,#083b53 0 43%,transparent 44%),repeating-linear-gradient(105deg,transparent 0 20px,#136b7988 21px 25px,transparent 26px 46px);clip-path:polygon(0 100%,5% 62%,14% 82%,20% 18%,29% 70%,37% 35%,46% 89%,56% 12%,67% 76%,74% 45%,81% 84%,94% 30%,100% 100%)}
.truth-reef-left{left:-4%}.truth-reef-right{right:-5%;transform:scaleX(-1)}
.game.truth-midnight-stage .truth-reef,.game.truth-abyss-stage .truth-reef,.game.truth-trench-stage .truth-reef{opacity:.05}
.truth-jelly{position:absolute;left:15%;top:40%;width:40px;height:25px;background:radial-gradient(ellipse at 50% 95%,#d8fff4aa,#56eee78a 58%,#35b8ce44 80%);border-radius:55% 55% 33% 33%;box-shadow:0 0 26px #60fff399;animation:truthJelly 7s ease-in-out infinite alternate;opacity:0}
.truth-jelly:after{content:'';position:absolute;left:7px;right:7px;top:19px;height:54px;background:repeating-linear-gradient(90deg,#8effea88 0 2px,transparent 2px 8px);clip-path:polygon(0 0,100% 0,93% 93%,76% 60%,55% 100%,39% 60%,19% 90%)}
.truth-jelly-two{left:auto;right:14%;top:26%;transform:scale(.7);animation-delay:-3s}
.game.truth-midnight-stage .truth-jelly,.game.truth-abyss-stage .truth-jelly,.game.truth-trench-stage .truth-jelly{opacity:.8}
.truth-mountain{position:absolute;bottom:-8%;left:0;right:0;height:36%;background:linear-gradient(180deg,#0a2941,#020e22);clip-path:polygon(0 100%,0 78%,13% 66%,24% 84%,35% 34%,43% 72%,56% 45%,64% 70%,77% 19%,88% 71%,100% 54%,100% 100%);opacity:0;transition:opacity 1.5s}
.game.truth-abyss-stage .truth-mountain,.game.truth-trench-stage .truth-mountain{opacity:.94}
.truth-vent{position:absolute;bottom:10%;left:31%;width:18px;height:100px;border-left:10px solid #031525;border-right:9px solid #041728;opacity:0}
.truth-vent i{position:absolute;bottom:80%;left:-10px;width:34px;height:55px;border:2px dotted #a6fff4a0;border-radius:50%;animation:truthVent 5s ease-out infinite}
.truth-vent i:nth-child(2){animation-delay:-1.7s}.truth-vent i:nth-child(3){animation-delay:-3.4s}
.game.truth-abyss-stage .truth-vent,.game.truth-trench-stage .truth-vent{opacity:.68}
.truth-marine-snow{position:absolute;inset:0;background-image:radial-gradient(#d2fff799 1px,transparent 1.5px),radial-gradient(#65dfe788 1px,transparent 1.5px);background-size:63px 86px,101px 79px;background-position:13px 34px,47px 59px;animation:truthSnow 20s linear infinite;opacity:.25}
.game.truth-midnight-stage .truth-marine-snow,.game.truth-abyss-stage .truth-marine-snow,.game.truth-trench-stage .truth-marine-snow{opacity:.63}
#sinkScreen .sink-top{padding:4px 0 0}
#sinkScreen .sink-top,#sinkScreen .sink-depth,#sinkScreen .sink-source,#sinkScreen .sink-bottom{letter-spacing:1.4px}
#sinkScreen .sink-kicker{color:var(--truth-glimmer);font-size:clamp(8px,1vw,11px)}
#sinkScreen h2{font-family:'Press Start 2P',monospace;font-size:clamp(12px,1.85vw,21px);line-height:1.8;text-shadow:2px 3px #073851,0 4px 17px #021829;color:#fff}
#sinkScreen .sink-source{font-size:9px;opacity:.85}
#sinkScreen #sinkForm{background:transparent!important;border:0!important;border-bottom:2px solid #affff0!important;box-shadow:none!important;backdrop-filter:none!important}
#sinkScreen #sinkInput,#sinkScreen #sinkSubmit,#sinkScreen #sinkNext{background:transparent!important;box-shadow:none!important}
#sinkScreen #sinkSubmit,#sinkScreen #sinkNext{border:1px solid #a4e9e2!important}
#sinkScreen .sink-guess-chip{background:transparent!important;border:0!important;border-bottom:1px solid #8cead7!important;border-radius:0!important;color:#c5fff0}
#sinkScreen .sink-guess-chip.truth-invalid{color:#ffb4a8;border-color:#ffb4a888!important}
#sinkScreen #sinkFeedback{max-width:610px;margin-left:auto;margin-right:auto;font-size:clamp(11px,1.2vw,14px);line-height:1.6}
#sinkScreen #sinkBurst{height:auto;min-height:22px}
@keyframes truthSnow{to{background-position:13px 320px,47px 280px}}
@keyframes truthJelly{to{translate:18px -25px;filter:brightness(1.35)}}
@keyframes truthVent{to{transform:translateY(-105px) scale(1.8);opacity:0}}
@keyframes truthSway{to{transform:rotate(7deg) translateX(3%)}}
@media(max-width:600px){.truth-reef{width:36vw;height:25%}#sinkScreen .sink-top{margin-top:8px!important}#sinkScreen .sink-center{width:92%;padding:0!important}#sinkScreen h2{font-size:11px;line-height:1.8}#sinkScreen .sink-signal{font-size:7px;line-height:1.8}#sinkScreen .sink-answers{max-height:60px}#sinkScreen #sinkFeedback{font-size:11px}#sinkScreen .sink-depth{margin-top:8px}}
@media(prefers-reduced-motion:reduce){#sinkScreen .truth-scene *{animation:none!important;transition:none!important}}

/* Truth Dive v3: dedicated HUD-free Casual-style open-ocean layout.
   These rules intentionally win over the older legacy Sink or Think declarations. */
.game.sink-in-ocean .hud-top,
.game.sink-in-ocean .hud-bottom,
.game.sink-in-ocean .ocean-title,
.game.sink-in-ocean .world-status,
.game.sink-in-ocean .guess-trail,
.game.sink-in-ocean .clue-area,
.game.sink-in-ocean .console,
.game.sink-in-ocean .depth-scale,
.game.sink-in-ocean .phrase-score,
.game.sink-in-ocean .player-hud{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
#sinkScreen.sink-screen{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto!important;align-items:stretch!important;justify-items:center!important;gap:0!important;box-sizing:border-box!important;padding:clamp(10px,2.3vh,23px) clamp(12px,3vw,32px) clamp(10px,2vh,18px)!important;overflow-x:hidden!important;overflow-y:auto!important}
#sinkScreen[hidden]{display:none!important}
#sinkScreen .sink-top{display:grid!important;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;box-sizing:border-box;width:min(100%,930px);max-width:none;margin:0!important;padding:5px 0 11px!important;border-bottom:1px solid #acfff047!important;font-size:clamp(9px,1.1vw,12px);white-space:nowrap}
#sinkScreen #sinkExit{justify-self:start;text-align:left}
#sinkScreen #sinkRound{justify-self:center}
#sinkScreen #sinkScore{justify-self:end}
#sinkScreen .sink-depth{width:min(100%,930px);box-sizing:border-box;display:grid!important;grid-template-columns:auto auto 1fr;align-items:center;gap:12px;margin:0!important;padding:12px 0 0!important;font-size:clamp(8px,1vw,10px)}
#sinkScreen .sink-depth strong{font-size:clamp(15px,2.1vw,21px)}
#sinkScreen .sink-center{box-sizing:border-box;min-width:0;width:min(100%,760px)!important;margin:auto!important;padding:clamp(6px,1.2vh,14px) 0!important;align-self:center;max-height:none;position:relative;z-index:3}
#sinkScreen .sink-kicker{font-size:clamp(7px,.85vw,10px);line-height:1.7}
#sinkScreen .sink-source{font-size:clamp(8px,1vw,11px);margin:5px auto 8px}
#sinkScreen h2{font-size:clamp(12px,1.65vw,20px);line-height:1.65;margin:clamp(6px,1.4vh,13px) auto!important;max-width:700px}
#sinkScreen #sinkRule{font-size:clamp(9px,1vw,11px);margin:7px auto 10px;line-height:1.5}
#sinkScreen .sink-meters{margin:8px auto 4px}
#sinkScreen .sink-answers{margin:8px auto 2px!important;min-height:26px;max-height:55px}
#sinkScreen .sink-transmit{width:min(100%,600px);margin:8px auto 5px}
#sinkScreen #sinkForm{width:min(100%,600px);display:block!important;margin:0 auto!important;border:0!important;border-bottom:0!important;padding:0!important}
#sinkScreen #sinkForm .input-shell{display:flex!important;align-items:center;min-width:0;width:100%;border:1px solid #a9ecdd!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;overflow:hidden;min-height:52px}
#sinkScreen #sinkForm .input-prefix{flex:0 0 auto;padding:0 11px;color:#cffff1;font-size:20px}
#sinkScreen #sinkInput{flex:1 1 auto!important;width:1px!important;min-width:0!important;border:0!important;outline:0!important;color:#fff!important;background:transparent!important;padding:12px 8px!important;font-size:clamp(13px,1.4vw,17px)!important}
#sinkScreen #sinkInput::placeholder{color:#d3e8e5a8}
#sinkScreen #sinkSubmit{flex:0 0 auto;border:0!important;border-left:1px solid #9edfd1!important;align-self:stretch!important;padding:10px 18px!important;font-size:clamp(11px,1.2vw,13px)!important;cursor:pointer}
#sinkScreen .sink-utilities{width:min(100%,600px);max-width:none!important;margin:4px auto 0!important}
#sinkScreen #sinkFeedback{max-width:600px;margin:8px auto!important;min-height:20px}
#sinkScreen .sink-bottom{justify-self:center;align-self:end;max-width:100%;margin:4px auto 0!important;text-align:center;font-size:clamp(6px,.8vw,9px)!important}
#sinkScreen #sinkNext{margin:9px auto!important;padding:10px 16px!important}
#sinkScreen .sink-signal{font-size:clamp(7px,.85vw,10px);line-height:1.7;margin:11px auto 0}
@media(max-width:600px){
 #sinkScreen.sink-screen{padding:10px 10px 12px!important}
 #sinkScreen .sink-top{gap:5px;font-size:8px;padding-bottom:8px!important}
 #sinkScreen .sink-depth{grid-template-columns:auto auto;gap:5px;padding-top:7px!important}
 #sinkScreen .sink-depth-track{grid-column:1/-1}
 #sinkScreen .sink-center{padding:5px 0!important}
 #sinkScreen h2{font-size:clamp(10px,3vw,14px);line-height:1.6}
 #sinkScreen #sinkRule{font-size:9px}
 #sinkScreen .sink-transmit{font-size:9px}
 #sinkScreen .sink-transmit span:last-child{font-size:8px}
 #sinkScreen #sinkForm .input-shell{min-height:44px}
 #sinkScreen #sinkSubmit{padding:8px 10px!important}
 #sinkScreen .sink-utilities{font-size:8px}
 #sinkScreen .sink-signal{font-size:7px}
 #sinkScreen .sink-bottom{font-size:6px!important}
}
@media(max-height:690px){#sinkScreen .sink-kicker{animation:none}#sinkScreen .sink-center{padding:2px 0!important}#sinkScreen .sink-signal{margin:5px auto 0}#sinkScreen .sink-answers{max-height:40px;min-height:10px}#sinkScreen h2{margin:4px auto!important}#sinkScreen .sink-bottom{margin:0 auto!important}}

/* THREE-MODE REVISION · the original world is shared by Casual, Daily and Phrase. */
#sinkScreen,#triviaScreen,.sink-screen,.trivia-screen{display:none!important}
.game.blind-dive #hintButton{display:none!important}
.game.blind-dive .clue-area{pointer-events:none}
.game.blind-dive .clue-area h2{font-size:clamp(11px,1.5vw,18px)!important;color:#e6fff7;text-shadow:0 2px #03162c,0 0 28px #6cf6e480;letter-spacing:.07em}
.game.blind-dive .clue-area p{font:clamp(12px,1.7vw,18px)/1.5 'VT323',monospace!important;color:#a9e9df!important;letter-spacing:.06em}
.game.blind-dive .console{box-shadow:0 0 22px #4be8d11b,0 8px 55px #01132285!important}
.signal-reward{position:absolute;left:50%;top:-38px;transform:translate(-50%,14px) scale(.85);opacity:0;z-index:40;pointer-events:none;white-space:nowrap;color:#d8fff3;text-shadow:0 2px 1px #031c2e,0 0 13px #5affde;font:clamp(7px,1vw,11px) 'Press Start 2P',monospace}
.signal-reward.reward-pop{animation:signal-reward-pop 1.55s steps(8,end) both}
@keyframes signal-reward-pop{0%{opacity:0;transform:translate(-50%,12px) scale(.8)}15%,65%{opacity:1;transform:translate(-50%,-3px) scale(1.07)}100%{opacity:0;transform:translate(-50%,-32px) scale(1)}}
.game.signal-surge .water-light{animation:signal-light-surge .72s ease-out 1!important}
@keyframes signal-light-surge{0%{filter:brightness(2.2);opacity:.8}100%{filter:brightness(1);opacity:initial}}
}
.game.depth-abyss{--water-top:#0a526b;--water-mid:#072f4e;--water-deep:#03152c;--abyss:#010713}
.game.depth-midnight{--water-top:#0a7183;--water-mid:#074b67;--water-deep:#042742;--abyss:#031127}
.game.depth-twilight{--water-top:#168c98;--water-mid:#0c6480;--water-deep:#063859;--abyss:#03213c}
.game.depth-surface{--water-top:#50bac1;--water-mid:#19879e;--water-deep:#0e536b;--abyss:#07354b}
@media(max-width:600px){.signal-reward{font-size:7px;top:-26px;max-width:90vw;white-space:normal;text-align:center}.game.blind-dive .clue-area h2{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.signal-reward.reward-pop,.game.signal-surge .water-light,.game .ocean:after{animation:none!important}}

/* EVERYDAY DIVE · hand-shaped pixel ocean scenery, not a screen overlay */
.game .ocean::after{content:none!important;display:none!important;animation:none!important}
.game .depth-strata{background:linear-gradient(180deg,#41b5bd09,transparent 38%,#02172b35 100%)!important}
.game .parallax-specks{opacity:.17!important}
.ocean-scenery{position:absolute;inset:18% 0 0;z-index:2;overflow:hidden;pointer-events:none;image-rendering:pixelated}
.ocean-scenery>div{position:absolute;transition:opacity 1.5s ease,transform 2s ease;transform-origin:bottom center}
/* Tall, softly swaying kelp forests in shallower water. */
.scene-kelp{bottom:0;width:150px;height:40%;opacity:.18;animation:kelp-current 8s ease-in-out infinite alternate}
.kelp-left{left:3%}.kelp-right{right:2%;transform:scaleX(-1);animation-delay:-3s}
.scene-kelp i{position:absolute;bottom:0;width:12px;height:90%;background:#0a6671;clip-path:polygon(38% 100%,32% 68%,0 57%,36% 62%,24% 42%,3% 27%,43% 36%,36% 13%,60% 0,64% 35%,100% 22%,64% 45%,76% 72%,95% 66%,66% 81%,60% 100%)}
.scene-kelp i:nth-child(1){left:12%;height:85%}.scene-kelp i:nth-child(2){left:43%;height:100%;background:#0d7481}.scene-kelp i:nth-child(3){left:70%;height:68%}.scene-kelp i:nth-child(4){left:90%;height:80%;background:#0a5168}
@keyframes kelp-current{to{translate:8px 0;rotate:2deg}}
.scene-coral{bottom:0;width:150px;height:25%;opacity:.23}
.coral-cluster-left{left:18%}.coral-cluster-right{right:14%;transform:scale(.8)}
.scene-coral i{position:absolute;bottom:0;width:52px;height:92%;background:#c5718a;clip-path:polygon(36% 100%,36% 55%,8% 40%,10% 30%,42% 49%,43% 19%,30% 11%,35% 0,53% 13%,54% 54%,85% 30%,94% 37%,59% 65%,61% 100%)}
.scene-coral i:nth-child(2){left:52px;height:72%;background:#e59b81;transform:scaleX(-1)}.scene-coral i:nth-child(3){left:90px;height:55%;background:#a976bb}
/* Wreck silhouette appears in the darker mid-water zones. */
.scene-wreck{right:8%;bottom:4%;width:260px;height:165px;opacity:0;transform:translateY(15px) rotate(-6deg)}
.wreck-hull{position:absolute;bottom:0;left:0;width:260px;height:65px;background:#082438;clip-path:polygon(0 3%,23% 29%,89% 20%,100% 0,87% 88%,32% 100%,7% 74%);box-shadow:0 7px 0 #031626}
.wreck-deck{position:absolute;bottom:60px;left:48px;width:154px;height:8px;background:#0b3041;transform:rotate(4deg)}
.wreck-mast{position:absolute;bottom:58px;left:135px;width:9px;height:120px;background:#05233c;transform:rotate(-9deg)}
.wreck-sail{position:absolute;bottom:100px;left:135px;width:85px;height:75px;background:#1a57624a;clip-path:polygon(0 0,90% 20%,95% 85%,0 100%)}
.scene-wreck i{position:absolute;bottom:25px;width:13px;height:12px;background:#a2d7b966;border:3px solid #103746;box-shadow:0 0 9px #5ec7bc3a}
.scene-wreck i:nth-of-type(1){left:60px}.scene-wreck i:nth-of-type(2){left:105px}.scene-wreck i:nth-of-type(3){left:150px}
/* Abyssal walls and vents are physical scenery elements. */
.scene-trench{bottom:-5%;height:47%;width:27%;opacity:0;background:linear-gradient(105deg,#092e40,#020e21);clip-path:polygon(0 0,17% 17%,23% 7%,39% 28%,51% 11%,65% 42%,80% 24%,100% 62%,100% 100%,0 100%)}
.trench-left{left:-2%}.trench-right{right:-2%;transform:scaleX(-1)}
.scene-vent{bottom:-2%;height:28%;width:70px;opacity:0;background:#09293a;clip-path:polygon(10% 100%,25% 57%,34% 55%,38% 25%,72% 25%,77% 59%,97% 100%)}
.vent-left{left:30%}.vent-right{right:24%;height:17%}
.scene-vent i{position:absolute;left:35%;top:0;width:15px;height:22px;background:#49d6ca44;box-shadow:0 -17px 25px #53e1d17a}
.game.depth-surface .scene-kelp,.game.depth-twilight .scene-kelp{opacity:.75}
.game.depth-surface .scene-coral,.game.depth-twilight .scene-coral{opacity:.75}
.game.depth-twilight .scene-wreck,.game.depth-midnight .scene-wreck{opacity:.72;transform:translateY(0) rotate(-6deg)}
.game.depth-midnight .scene-kelp,.game.depth-abyss .scene-kelp,.game.depth-abyss .scene-coral{opacity:.05}
.game.depth-midnight .scene-trench,.game.depth-abyss .scene-trench{opacity:.88}
.game.depth-abyss .scene-vent,.game.depth-midnight .scene-vent{opacity:.8}
.game.depth-abyss .scene-wreck{opacity:.17}
@media(max-width:650px){.scene-wreck{right:-7%;transform:scale(.7) rotate(-6deg);transform-origin:bottom right}.scene-kelp{width:100px}.scene-trench{height:30%}.scene-coral{width:100px}}
@media(prefers-reduced-motion:reduce){.scene-kelp{animation:none}}


/* DEEP DIVE UI — clean headings, real descent, strong feedback, no AI advertising. */
.game.blind-dive .ocean-title{display:none!important}
.game.blind-dive .clue-area{
  top:clamp(94px,15.5vh,165px)!important;
  left:50%!important;width:min(640px,calc(100% - 110px))!important;
  transform:translateX(-50%)!important;filter:none!important;
}
.game.blind-dive .clue-overline{opacity:.8}
.game.blind-dive .clue-area h2{font-size:clamp(12px,1.8vw,23px)!important;line-height:1.5!important;letter-spacing:.02em!important;margin:12px 0 9px!important;color:#f1fffa!important}
.game.blind-dive .clue-area p{max-width:560px;margin:auto!important;font:clamp(14px,1.7vw,19px)/1.3 'VT323',monospace!important;letter-spacing:.04em;color:#b5e9dd!important}
.remaining-guesses{display:none}
.game.blind-dive .remaining-guesses{display:block;margin-top:13px;font:clamp(8px,.85vw,11px)/1.5 'Press Start 2P',monospace;color:#ffe3a3;text-shadow:0 2px 7px #001b2b}
.game.blind-dive .console-topline span:last-child{display:none!important}
.game.blind-dive #feedback{font-size:clamp(13px,1.3vw,17px);color:#b2e1de}
.game.blind-dive #revealAnswerButton{display:none!important}
.game.blind-dive .console{width:min(670px,calc(100% - 30px));padding:12px 15px;bottom:clamp(18px,4.2vh,52px)}
.game.blind-dive .depth-scale{display:flex!important;right:clamp(17px,4vw,65px);top:25%;bottom:24%;gap:9px;width:62px;z-index:18}
.game.blind-dive .scale-title{font-size:7px;color:#b5ebde}
.game.blind-dive .scale-line{width:4px;background:#032b46a8;border:1px solid #6db3c088;box-shadow:0 0 8px #6ed8de33;overflow:visible}
.game.blind-dive .scale-line::before{border:0;width:0}
.game.blind-dive .scale-line .depth-travel{position:absolute;top:0;left:0;width:100%;height:0;background:linear-gradient(#67dcd9,#b6ffbc);box-shadow:0 0 12px #70ffd9a8;transition:height 1.25s cubic-bezier(.2,.8,.2,1)}
.game.blind-dive #depthMarker{top:0;left:-6px;width:16px;height:5px;transition:top 1.25s cubic-bezier(.2,.8,.2,1);z-index:2;background:#ffe6a7;box-shadow:0 0 12px #ffe4ab}
.game.blind-dive .scale-labels{justify-content:space-between;height:100%;gap:0;font-size:6px}
.game.blind-dive .depth-current{font-size:8px;color:#ffe5ae}
.game.blind-dive .player-track{inset:17% 0 8%!important}
.game.blind-dive .player{transition:left 1.35s cubic-bezier(.2,.8,.2,1),top 1.4s cubic-bezier(.2,.8,.2,1)!important}
.game.blind-dive .guess-trail{max-height:220px;overflow:hidden}
.game.blind-dive .guess-trail .trail-item{font-size:18px!important}
.game.blind-dive #zoneFollow{font-size:6px!important;opacity:.8}
/* Let actual scenery carry the visual progression: sunlit reef → wreck → trench → abyss. */
.game.blind-dive .sun-rays{opacity:.15;transition:opacity 1.4s}
.game.blind-dive.depth-surface .sun-rays{opacity:.48}
.game.blind-dive.depth-abyss .sun-rays{opacity:0}
.game.blind-dive .ocean-scenery{inset:14% 0 0}
.game.blind-dive .scene-kelp{height:46%}
.game.blind-dive .scene-coral{height:32%}
.game.blind-dive .scene-wreck{height:195px;transform:translateY(22px) rotate(-5deg)}
.game.blind-dive.depth-twilight .scene-wreck,.game.blind-dive.depth-midnight .scene-wreck{transform:translateY(0) rotate(-5deg);opacity:.9}
.game.blind-dive.depth-abyss .scene-vent{opacity:1}
.game.blind-dive.depth-abyss .scene-trench{opacity:1}
/* Floating score-to-depth line: appears only after a transmitted guess. */
.dive-reveal{pointer-events:none;position:absolute;left:50%;bottom:calc(100% + 17px);transform:translate(-50%,14px);width:min(360px,85vw);padding:10px 0 0;text-align:center;opacity:0;z-index:55;filter:drop-shadow(0 2px 6px #00172b)}
.dive-reveal.is-visible{animation:deep-reveal 1.7s steps(9,end) both}
.dive-reveal>span{display:block;font:clamp(9px,1.2vw,14px) 'Press Start 2P',monospace;color:#edfff1;margin-bottom:10px;text-shadow:0 0 12px #75ffde}
.dive-reveal-track{height:6px;border:1px solid #95f0e1;background:#062840;box-shadow:0 0 11px #4affc64d}
.dive-reveal-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,#4ebbd0,#9afcc7);transition:width 1s ease;box-shadow:0 0 10px #b8ffdd}
.dive-reveal small{display:block;margin-top:8px;font:7px 'Press Start 2P',monospace;color:#a7dcd5}
@keyframes deep-reveal{0%{opacity:0;transform:translate(-50%,16px) scale(.96)}12%,78%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-12px)}}
@media(max-width:760px){.game.blind-dive .clue-area{top:82px!important;width:calc(100% - 60px)!important}.game.blind-dive .clue-area h2{font-size:12px!important}.game.blind-dive .clue-area p{font-size:17px!important}.game.blind-dive .depth-scale{right:9px;top:32%;bottom:27%;width:38px}.game.blind-dive .scale-labels{font-size:4px}.game.blind-dive .guess-trail{bottom:25%!important;max-height:90px}.dive-reveal{bottom:calc(100% + 8px)}}
@media(max-height:650px){.game.blind-dive .clue-area{top:68px!important}.game.blind-dive .clue-area h2{font-size:11px!important;margin:6px 0!important}.game.blind-dive .remaining-guesses{margin-top:5px}}
@media(prefers-reduced-motion:reduce){.dive-reveal.is-visible{animation:none;opacity:1}.game.blind-dive .scale-line .depth-travel{transition:none}}

/* CINEMATIC OCEAN DESCENT · score changes the world, not just the bag's top. */
.game.blind-dive .camera-rig{
  transition:transform 2.05s cubic-bezier(.12,.82,.16,1),filter 2.05s ease!important;
}
.game.blind-dive .player{
  transition:left 2s cubic-bezier(.18,.85,.2,1),top 2s cubic-bezier(.18,.85,.2,1)!important;
}
.game.blind-dive .ocean{isolation:isolate}
.deep-water-wash{
  position:absolute;inset:0;z-index:6;pointer-events:none;
  background:linear-gradient(180deg,#001224a0,#000a1d 52%,#000715);
  opacity:var(--deep-water-opacity,0.04);
  transition:opacity 2.1s cubic-bezier(.14,.75,.16,1);
}
/* Sunbeams vanish as daylight is left behind, instead of overlaying the
   underwater world with an artificial grid or web texture. */
.game.blind-dive .sun-rays,.game.blind-dive .water-light{
  opacity:calc(.56 * (1 - var(--deep-water-opacity,0.04)));
  transition:opacity 1.8s ease!important;
}
/* A brief falling-current rush appears only during a transmitted guess. */
.descent-speedlines{position:absolute;inset:12% 12% 15%;z-index:9;pointer-events:none;opacity:0;overflow:hidden}
.descent-speedlines i{
 position:absolute;top:-35%;height:28%;width:2px;background:linear-gradient(transparent,#98ffef9c,transparent);
 filter:drop-shadow(0 0 4px #aaffee);opacity:0;
}
.descent-speedlines i:nth-child(1){left:9%}.descent-speedlines i:nth-child(2){left:23%;height:18%}
.descent-speedlines i:nth-child(3){left:35%;height:34%}.descent-speedlines i:nth-child(4){left:48%;height:22%}
.descent-speedlines i:nth-child(5){left:63%;height:29%}.descent-speedlines i:nth-child(6){left:78%;height:20%}
.descent-speedlines i:nth-child(7){left:91%;height:35%}
.game.blind-dive.descent-rush .descent-speedlines{opacity:.8;animation:rush-window 1.45s ease-out both}
.game.blind-dive.descent-rush .descent-speedlines i{animation:current-rush 1.25s cubic-bezier(.22,.65,.45,1) both}
.game.blind-dive.descent-rush .descent-speedlines i:nth-child(even){animation-delay:.12s}
@keyframes current-rush{0%{opacity:0;transform:translateY(-30vh) scaleY(.4)}16%{opacity:.7}80%{opacity:.24}100%{opacity:0;transform:translateY(110vh) scaleY(1.8)}}
@keyframes rush-window{0%,85%{opacity:.7}100%{opacity:0}}
/* Maintain UI in screen-space during camera pans. */
.game.blind-dive .clue-area,.game.blind-dive .console,.game.blind-dive .guess-trail,.game.blind-dive .world-status{
  position:absolute;z-index:20;
}
/* The line and marker are a stable HUD, not enlarged by the ocean camera. */
.game.blind-dive .depth-scale{position:fixed!important;z-index:18}
@media(prefers-reduced-motion:reduce){
 .game.blind-dive .camera-rig,.game.blind-dive .player,.deep-water-wash{transition:none!important}
 .game.blind-dive .descent-speedlines{display:none!important}
}


/* LIVING OCEAN v47 — visible metres, living creatures and travelling scenery */
.game.blind-dive .depth-scale{width:86px!important;right:clamp(14px,3vw,50px)!important;top:21%!important;bottom:21%!important;z-index:31!important;align-items:center;}
.game.blind-dive .depth-current{order:-2;font:clamp(11px,1.15vw,16px)/1.5 'Press Start 2P',monospace!important;color:#f2fff4!important;white-space:nowrap;text-shadow:0 2px 8px #001725,0 0 15px #6dd9e7}
.game.blind-dive .depth-max{order:-1;font:6px/1.5 'Press Start 2P',monospace;color:#b2ded9;white-space:nowrap;margin-bottom:10px}
.game.blind-dive .depth-zone-name{font:6px/1.6 'Press Start 2P',monospace;color:#b5f9dd;max-width:110px;text-align:center;margin-top:8px}
.game.blind-dive .scale-labels{font-size:6px!important;min-width:42px}
.game.blind-dive .scale-line{flex:1;min-height:60px}
.exit-dive-button{color:#c8fff0!important;border-color:#79bcb0!important;font-size:7px!important;white-space:nowrap}
.exit-dive-button[hidden]{display:none!important}
.game.intro-closeup .exit-dive-button{display:none!important}
/* The scenery is inside the camera world. Separate layers give a moving-ocean illusion. */
.game.blind-dive .scene-kelp,.game.blind-dive .scene-coral{translate:0 calc(var(--sea-journey,0) * -1.7px)}
.game.blind-dive .scene-wreck{translate:0 calc(var(--sea-journey,0) * -3.3px)}
.game.blind-dive .scene-trench,.game.blind-dive .scene-vent{translate:0 calc(var(--sea-journey,0) * -1.1px)}
.game.blind-dive .ocean-scenery>div{transition:opacity 2s ease,transform 2.2s cubic-bezier(.16,.8,.2,1),translate 2.2s cubic-bezier(.16,.8,.2,1)}
.game.blind-dive .ocean{background:linear-gradient(180deg,#72ccdb 0%,#136e9b 25%,#072d55 52%,#04172f 76%,#010b1c 100%)}
.game.blind-dive .deep-water-wash{background:linear-gradient(180deg,#00203988 0%,#001329bd 52%,#000713 100%)}
/* All creatures are CSS illustrations — no overlay grid or repeating white web. */
.sea-life{position:absolute;opacity:0;pointer-events:none;image-rendering:pixelated;filter:drop-shadow(0 0 9px #67dcd73a);transition:opacity 1.9s ease,transform 2.2s ease!important}
.life-shoal{top:15%;left:7%;width:185px;height:105px;animation:fish-drift 13s ease-in-out infinite alternate}
.life-shoal i{position:absolute;display:block;width:21px;height:10px;background:#9edcdd;clip-path:polygon(0 50%,24% 0,73% 9%,80% 50%,73% 91%,24% 100%);box-shadow:4px 2px 0 #447e9e}
.life-shoal i:nth-child(1){top:12%;left:12%}.life-shoal i:nth-child(2){top:31%;left:36%;scale:.75}.life-shoal i:nth-child(3){top:65%;left:21%;scale:1.2}.life-shoal i:nth-child(4){top:56%;left:75%;scale:.8}.life-shoal i:nth-child(5){top:7%;left:75%;scale:.7}.life-shoal i:nth-child(6){top:85%;left:53%;scale:.6}
.life-turtle{top:29%;right:13%;width:94px;height:63px;animation:fish-drift 11s ease-in-out infinite alternate-reverse}
.life-turtle:before{content:'';position:absolute;top:17px;left:19px;width:51px;height:34px;border-radius:46% 55% 45% 45%;background:#3b968d;border:5px solid #20666a;box-shadow:inset 7px 4px #81b7a1}
.life-turtle:after{content:'';position:absolute;top:28px;left:67px;width:23px;height:16px;border-radius:45%;background:#61b7a4}
.life-turtle i,.life-turtle b,.life-turtle em{position:absolute;width:24px;height:15px;border-radius:50%;background:#458b88;transform:rotate(26deg);top:7px;left:18px}
.life-turtle b{top:46px;left:52px;transform:rotate(-27deg)}.life-turtle em{top:4px;left:57px;transform:rotate(-33deg)}
.life-manta{top:40%;left:16%;width:150px;height:70px;animation:fish-drift 14s ease-in-out infinite alternate}
.life-manta:before{content:'';display:block;width:100%;height:100%;background:#092d55;clip-path:polygon(0 44%,35% 12%,52% 30%,64% 12%,100% 46%,68% 62%,54% 56%,52% 98%,48% 58%,31% 66%);filter:drop-shadow(0 0 6px #2b8298)}
.life-manta i{position:absolute;left:50%;top:28px;width:4px;height:22px;background:#7db3b7}
.life-lantern{top:37%;right:11%;width:110px;height:125px;animation:fish-drift 10s ease-in-out infinite alternate-reverse}
.life-lantern i{position:absolute;left:18px;top:15px;width:30px;height:15px;background:#1e7185;clip-path:polygon(0 50%,30% 0,79% 0,100% 50%,79% 100%,30% 100%);box-shadow:2px 2px 0 #79d7e1;filter:drop-shadow(0 0 10px #56d9e8)}
.life-lantern i:after{content:'';position:absolute;left:20px;top:5px;width:3px;height:3px;background:#d0ffeb;box-shadow:0 0 10px 3px #85f5ef}
.life-lantern i:nth-child(2){left:70px;top:46px;scale:.8}.life-lantern i:nth-child(3){left:8px;top:92px;scale:.66}
.life-angler{bottom:21%;left:9%;width:120px;height:80px;animation:fish-drift 9s ease-in-out infinite alternate}
.life-angler:before{content:'';position:absolute;top:24px;left:25px;width:66px;height:44px;background:#15304b;border-radius:55% 43% 45% 48%;box-shadow:inset -7px 5px 0 #274a60}
.life-angler:after{content:'';position:absolute;top:35px;left:4px;width:32px;height:29px;background:#15304b;clip-path:polygon(0 0,100% 50%,0 100%)}
.life-angler i{position:absolute;top:12px;left:74px;width:34px;height:26px;border-top:3px solid #6ba5a7;border-right:3px solid #6ba5a7;border-radius:0 70% 0 0}
.life-angler i:after{content:'';position:absolute;top:20px;right:-7px;width:10px;height:10px;background:#d8ffc6;border-radius:50%;box-shadow:0 0 18px 6px #a3f2cc}
.life-angler b{position:absolute;top:39px;left:78px;width:6px;height:6px;background:#f5dbaa;box-shadow:0 0 9px #b8fff0}
.life-jellies{bottom:19%;right:15%;height:115px;width:110px;animation:fish-drift 12s ease-in-out infinite alternate-reverse}
.life-jellies i{position:absolute;top:7px;left:10px;width:42px;height:25px;border-radius:50% 50% 25% 25%;background:#529bc5bb;box-shadow:0 0 20px #72cce6}
.life-jellies i:after{content:'';position:absolute;top:23px;left:7px;width:3px;height:52px;background:#a3cdea88;box-shadow:10px 0 #8bc2df88,21px 0 #a2bdda88}
.life-jellies i:nth-child(2){top:50px;left:67px;scale:.6}.life-jellies i:nth-child(3){top:8px;left:72px;scale:.45}
.game.blind-dive.depth-surface .life-shoal,.game.blind-dive.depth-surface .life-turtle{opacity:.82}
.game.blind-dive.depth-twilight .life-turtle{opacity:.45}
.game.blind-dive.depth-twilight .life-manta{opacity:.72}
.game.blind-dive.depth-midnight .life-lantern,.game.blind-dive.depth-midnight .life-jellies{opacity:.8}
.game.blind-dive.depth-abyss .life-angler,.game.blind-dive.depth-abyss .life-jellies{opacity:.95}
@keyframes fish-drift{0%{transform:translate3d(-13px,2px,0)}100%{transform:translate3d(25px,-14px,0)}}
@media(max-width:760px){.game.blind-dive .depth-scale{width:53px!important;right:4px!important;top:27%!important;bottom:24%!important}.game.blind-dive .depth-current{font-size:8px!important}.game.blind-dive .depth-max,.game.blind-dive .depth-zone-name{font-size:4px}.game.blind-dive .scale-labels{font-size:4px!important}.exit-dive-button{font-size:5px!important;padding:7px 5px!important}.life-shoal,.life-turtle,.life-manta,.life-angler{scale:.65;transform-origin:center}}
@media(prefers-reduced-motion:reduce){.sea-life{animation:none!important;transition:none!important}}


/* DEEP SEA VISUAL UPGRADE v48 — hand-shaped sea environment, not a graphic overlay. */
/* A brighter surface persists through 20% of the dive, then darkens continuously. */
.game.blind-dive .ocean{
  background:linear-gradient(180deg,#91e2df 0%,#3cb2c3 19%,#0a668d 48%,#073759 78%,#03172e 100%);
}
.game.blind-dive .deep-water-wash{
  background:linear-gradient(180deg,#00243b 0%,#01172b 40%,#000918 100%);
  opacity:var(--deep-water-opacity,.015);
}
.game.blind-dive .sky,.game.blind-dive .sun,.game.blind-dive .cloud,.game.blind-dive .surface{
  opacity:var(--ocean-shallows,1);
  transition:opacity 2.1s cubic-bezier(.16,.8,.2,1);
}
.game.blind-dive .sun-rays{opacity:var(--ray-opacity,.54)!important;transition:opacity 2s ease!important}
.game.blind-dive .water-light{opacity:var(--water-light-opacity,.4)!important;transition:opacity 2s ease!important}
.game.blind-dive .depth-strata{opacity:.26;transition:opacity 2s ease}
/* A subtle, physical horizon of distant seamounts, always behind the game UI. */
.game.blind-dive .scene-seamount{
  left:22%;bottom:-9%;width:58%;height:40%;opacity:var(--mountain-opacity,.2);
  background:linear-gradient(160deg,#15546b,#082c4b 55%,#041a37);
  clip-path:polygon(0 100%,11% 73%,17% 79%,27% 37%,32% 49%,41% 19%,54% 58%,63% 47%,73% 67%,85% 39%,100% 100%);
}
.game.blind-dive .scene-seamount i{position:absolute;inset:0;background:linear-gradient(165deg,#7cd1c31e,transparent 44%)}
.game.blind-dive .scene-seamount b{position:absolute;inset:10%;background:#07263e44;clip-path:polygon(0 100%,25% 30%,54% 85%,74% 18%,100% 100%)}
/* Reef silhouettes grow with the player at the top, and recede into the blue below. */
.game.blind-dive .scene-kelp{opacity:var(--reef-scenery-opacity,.86)!important}
.game.blind-dive .scene-coral{opacity:var(--coral-scenery-opacity,.84)!important}
.game.blind-dive .scene-wreck{opacity:var(--wreck-opacity,0)!important;transform:rotate(-5deg) translateY(0)!important}
.game.blind-dive .scene-trench{opacity:var(--trench-opacity,0)!important}
.game.blind-dive .scene-vent{opacity:var(--vent-opacity,0)!important}
.game.blind-dive .life-shoal,.game.blind-dive .life-turtle{opacity:var(--reef-life-opacity,.82)!important}
.game.blind-dive .life-manta{opacity:var(--mid-life-opacity,0)!important}
.game.blind-dive .life-lantern,.game.blind-dive .life-jellies{opacity:var(--deep-life-opacity,0)!important}
.game.blind-dive .life-angler{opacity:var(--angler-opacity,0)!important}
/* Finer details: seahorse in the reef, passing squid at twilight, and a distant whale. */
.life-seahorse{left:27%;bottom:31%;width:51px;height:92px;animation:fish-drift 12s ease-in-out infinite alternate}
.life-seahorse:before{content:'';position:absolute;left:19px;top:20px;width:22px;height:49px;background:#e4aa74;clip-path:polygon(18% 0,93% 0,100% 23%,53% 30%,79% 45%,69% 77%,89% 97%,33% 100%,20% 80%,28% 47%,0 30%);box-shadow:inset -6px 0 #9b645e}
.life-seahorse:after{content:'';position:absolute;left:6px;top:5px;width:33px;height:23px;background:#f4b77a;clip-path:polygon(0 43%,37% 32%,39% 0,78% 11%,100% 54%,75% 96%,36% 73%,0 72%)}
.life-seahorse i{position:absolute;left:32px;top:12px;width:4px;height:4px;background:#193a48;z-index:1}
.life-seahorse b{position:absolute;left:11px;top:58px;width:25px;height:29px;border:6px solid #c78768;border-left-color:transparent;border-radius:50%;transform:rotate(22deg)}
.life-seahorse em{position:absolute;left:24px;top:38px;width:17px;height:19px;background:#e7bd8f;clip-path:polygon(0 0,100% 47%,0 100%)}
.life-squid{right:21%;top:29%;width:90px;height:128px;animation:fish-drift 14s ease-in-out infinite alternate-reverse}
.life-squid:before{content:'';position:absolute;left:24px;top:7px;width:47px;height:66px;background:#6a85b7;clip-path:polygon(50% 0,100% 39%,85% 93%,15% 93%,0 39%);box-shadow:inset -5px -5px #2c527e}
.life-squid:after{content:'';position:absolute;left:18px;top:58px;width:57px;height:27px;background:#567ca8;clip-path:polygon(0 0,100% 0,85% 80%,12% 80%)}
.life-squid i{position:absolute;left:30px;top:78px;width:3px;height:46px;background:#8fb7ce;border-radius:0 0 50% 50%}
.life-squid i:nth-child(2){left:43px;height:42px}.life-squid i:nth-child(3){left:56px;height:48px}.life-squid i:nth-child(4){left:66px;height:37px}
.life-whale{left:8%;top:13%;width:225px;height:96px;animation:fish-drift 19s ease-in-out infinite alternate}
.life-whale:before{content:'';position:absolute;inset:19px 24px 15px 0;background:#0b3856;clip-path:polygon(0 47%,18% 29%,45% 8%,71% 0,94% 21%,100% 52%,93% 78%,64% 100%,32% 88%,13% 66%)}
.life-whale:after{content:'';position:absolute;right:0;top:3px;width:49px;height:55px;background:#0a3853;clip-path:polygon(0 35%,76% 0,100% 10%,79% 52%,100% 91%,74% 100%,0 63%)}
.life-whale i{position:absolute;top:48px;left:107px;width:30px;height:25px;background:#0c304b;clip-path:polygon(0 0,100% 50%,0 100%)}
.game.blind-dive .life-seahorse{opacity:var(--reef-life-opacity,.82)!important}
.game.blind-dive .life-squid,.game.blind-dive .life-whale{opacity:var(--whale-opacity,0)!important}
/* Hydrothermal activity has a soft teal glow, not a decorative mesh. */
.scene-thermal-glow{bottom:1%;left:30%;width:39%;height:29%;opacity:var(--thermal-opacity,0)!important;background:radial-gradient(ellipse at 48% 100%,#4bcdb052,transparent 68%);filter:blur(22px)}
/* The large overlay must not swallow delicate deep creatures. */
.game.blind-dive .ocean-scenery{z-index:7}
.game.blind-dive .sea-life{filter:drop-shadow(0 0 8px #7bd6d944)}
/* Metres, depth-track fill and marker all come from the same animated depth. */
.game.blind-dive .scale-line i,.game.blind-dive .scale-line .depth-travel{transition:none!important}
@media(max-width:760px){
 .life-seahorse{scale:.7;left:13%}.life-squid{scale:.62;right:8%}.life-whale{scale:.58;left:-9%}
 .game.blind-dive .scene-seamount{width:72%;left:15%}
}
@media(prefers-reduced-motion:reduce){.life-seahorse,.life-squid,.life-whale{animation:none!important}}


/* CLEAN DEPTH LANDING v50
   No home-screen meter or floating temperature widgets. Gameplay keeps only
   a tiny header reading, a subdued fixed-level line and a slim edge ruler. */
.game .depth-scale,.game .temperature-sides{display:none!important}
.game.intro-closeup .ocean-ruler,.game.intro-closeup .depth-landing,
.game.intro-closeup #zoneFollow,.game.intro-closeup .companion-score,
.game.intro-closeup .character-prop,.game.intro-closeup .surface-warning,
.game.intro-closeup .run-readout{display:none!important}
/* Keep temperature and zone text off the diver: all attention on the line. */
.game.blind-dive #zoneFollow,.game.blind-dive .companion-score,
.game.blind-dive .character-prop,.game.blind-dive .surface-warning{display:none!important}
.game.blind-dive .dive-reveal{display:none!important}
/* The scene itself remains the main attraction: no heavy panel behind results. */
.depth-landing{
  position:absolute;top:51%;left:clamp(24px,7vw,110px);right:clamp(37px,4.8vw,77px);
  height:1px;z-index:32;pointer-events:none;opacity:0;
  transition:opacity .45s ease;
  filter:drop-shadow(0 1px 3px #00182d);
}
.game.blind-dive:not(.intro-closeup) .depth-landing{opacity:.4}
.depth-landing .landing-horizontal{position:absolute;left:0;right:0;top:0;height:1px;
 background:repeating-linear-gradient(90deg,#83cadf88 0 6px,transparent 6px 13px)}
.depth-landing .landing-horizontal:before{content:'';position:absolute;inset:-1px 0;
 background:linear-gradient(90deg,transparent 0%,#84e8e966 46%,#84e8e966 54%,transparent 100%);
 opacity:.35;transition:opacity .4s}
.depth-landing .landing-line-caption{position:absolute;top:-18px;left:0;
 font:6px 'Press Start 2P',monospace;letter-spacing:.04em;color:#a8d6da;
 opacity:0;text-shadow:0 2px 4px #001827}
.depth-landing .landing-result{position:absolute;left:50%;top:12px;transform:translateX(-50%);
 display:flex;align-items:center;flex-direction:row;justify-content:center;gap:12px;
 max-width:min(450px,80vw);white-space:nowrap;opacity:0;
 text-shadow:0 2px 6px #001726,0 1px 3px #001726}
.depth-landing .landing-result>span{font:clamp(8px,.84vw,11px) 'Press Start 2P',monospace;
 color:#f4ffff;max-width:160px;overflow:hidden;text-overflow:ellipsis}
.depth-landing .landing-result>strong{font:clamp(17px,1.4vw,21px) 'VT323',monospace;
 color:#a8e8e1;letter-spacing:.04em;font-weight:normal}
.depth-landing .landing-result>small{font:clamp(7px,.7vw,9px) 'Press Start 2P',monospace;color:#b1d9dc}
.depth-landing.is-visible{opacity:1!important}
.depth-landing.is-visible .landing-horizontal{background:repeating-linear-gradient(90deg,#9be9edbf 0 7px,transparent 7px 14px)}
.depth-landing.is-visible .landing-horizontal:before{opacity:.85}
.depth-landing.is-visible .landing-line-caption{animation:line-label 2.55s ease both}
.depth-landing.is-visible .landing-result{animation:small-score-reveal 2.55s cubic-bezier(.12,.82,.22,1) both}
.depth-landing.is-record .landing-result>strong{color:#fff3b3;text-shadow:0 0 12px #f9df8977,0 1px 5px #001326}
.depth-landing.is-perfect .landing-result>strong{color:#b9ffe7}
@keyframes small-score-reveal{0%,8%{opacity:0;translate:0 7px}25%,76%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -4px}}
@keyframes line-label{0%,12%{opacity:0}26%,72%{opacity:.9}100%{opacity:0}}
/* Edge rule reflects the CURRENT ocean altitude, not progress on a fixed bar.
   Numeric ticks scroll relative to the marker so the line and bag stay linked. */
.ocean-ruler{position:absolute;z-index:30;right:7px;inset-block:0;width:69px;
 overflow:hidden;pointer-events:none;--line-y:50vh;color:#95cad2;
 text-shadow:0 2px 4px #001325}
.ocean-ruler-track{position:absolute;right:9px;top:0;bottom:0;width:1px;background:#9bcbd126;
 border-right:1px solid #8bb5c021}
.ocean-ruler-ticks{position:absolute;inset:0}
.ocean-tick{position:absolute;right:9px;top:calc(var(--line-y) + var(--tick-offset));
 transform:translateY(-50%);height:1px;display:flex;align-items:center;gap:7px;
 color:#a8ccd0}
.ocean-tick i{width:7px;height:1px;background:#90b7be64;display:block}
.ocean-tick.major i{width:12px;background:#9fcbd18c}
.ocean-tick.major small{display:block;width:48px;font:7px 'VT323',monospace;
 letter-spacing:.06em;text-align:right;white-space:nowrap}
.ocean-ruler-you{position:absolute;right:0;top:var(--line-y);height:1px;width:100%;
 display:flex;align-items:center;justify-content:flex-end;transform:translateY(-50%);
 color:#f3d09f;z-index:2}
.ocean-ruler-you span{font:7px 'VT323',monospace;letter-spacing:.08em;margin-right:5px;
 filter:drop-shadow(0 0 5px #ffdca77a)}
.ocean-ruler-you i{width:13px;height:2px;background:#f6cf8d;box-shadow:0 0 7px #ffdd9a8c;
 clip-path:polygon(0 50%,55% 0,100% 0,100% 100%,55% 100%)}
/* Metres are integrated into the EXISTING header, not another metre panel. */
.run-readout .readout-depth{color:#9feade;text-shadow:0 0 8px #75dcca55}
.game.blind-dive .hud-top{z-index:35}
.game.blind-dive .guess-trail{z-index:34}
.game.blind-dive .clue-area{z-index:34}
/* A softer, more organic sea: remove harsh light columns, enhance marine silhouettes. */
.game.blind-dive .water-light{filter:blur(23px);mix-blend-mode:screen;opacity:calc(var(--water-light-opacity,.4) * .55)!important}
.game.blind-dive .sun-rays{filter:blur(15px);opacity:calc(var(--ray-opacity,.54) * .64)!important}
.game.blind-dive .scene-wreck{filter:drop-shadow(0 12px 21px #001c33a8)}
.game.blind-dive .scene-trench{filter:drop-shadow(0 0 14px #001523d2)}
.game.blind-dive .scene-kelp,.game.blind-dive .scene-coral{filter:drop-shadow(0 3px 5px #001e2c77)}
.game.blind-dive .life-jellies{filter:drop-shadow(0 0 15px #4adbe88c)}
.game.blind-dive .life-angler{filter:drop-shadow(0 0 13px #4cdbdb66)}
/* Animate the underwater camera without moving the diver through the HUD line. */
.game.blind-dive .camera-rig{transition:transform 1.85s cubic-bezier(.14,.82,.14,1),filter 1.85s ease!important}
@media(max-width:760px){
 .ocean-ruler{right:2px;width:49px}
 .ocean-tick.major small{width:32px;font-size:6px}
 .depth-landing{left:12px;right:30px}
 .depth-landing .landing-result{gap:6px;max-width:calc(100vw - 76px)}
 .depth-landing .landing-result>span{max-width:86px;font-size:7px}
 .depth-landing .landing-result>strong{font-size:17px}
 .depth-landing .landing-result>small{font-size:6px}
 .run-readout{display:flex!important;position:absolute;top:67px;left:50%;transform:translateX(-50%);
  width:max-content;max-width:90%;gap:7px;font-size:6px}
 .game.intro-closeup .run-readout{display:none!important}
}
@media(prefers-reduced-motion:reduce){
 .depth-landing.is-visible .landing-result,.depth-landing.is-visible .landing-line-caption{animation:none;opacity:1}
}
/* Phrase Dive keeps its original presentation; the new landing ruler belongs
   only to the eight-guess Casual/Daily mode. */
.game:not(.blind-dive) .ocean-ruler{display:none!important}

/* POLISHED PIXEL OCEAN v51: small hand-drawn 8-bit fauna, no smooth silhouettes. */
.pixel-fish::before{content:"";position:absolute;left:0;top:0;width:3px;height:3px;box-shadow:12px 0px 0 #4b9bb7,15px 0px 0 #4b9bb7,6px 3px 0 #4b9bb7,9px 3px 0 #4b9bb7,12px 3px 0 #4b9bb7,15px 3px 0 #4b9bb7,18px 3px 0 #4b9bb7,21px 3px 0 #4b9bb7,3px 6px 0 #4b9bb7,6px 6px 0 #4b9bb7,9px 6px 0 #92d9d9,12px 6px 0 #92d9d9,15px 6px 0 #4b9bb7,18px 6px 0 #4b9bb7,21px 6px 0 #4b9bb7,24px 6px 0 #4b9bb7,0px 9px 0 #4b9bb7,3px 9px 0 #4b9bb7,6px 9px 0 #92d9d9,9px 9px 0 #92d9d9,12px 9px 0 #92d9d9,15px 9px 0 #92d9d9,18px 9px 0 #4b9bb7,21px 9px 0 #4b9bb7,24px 9px 0 #4b9bb7,27px 9px 0 #4b9bb7,30px 9px 0 #f3bd7d,0px 12px 0 #4b9bb7,3px 12px 0 #92d9d9,6px 12px 0 #92d9d9,9px 12px 0 #12344e,12px 12px 0 #92d9d9,15px 12px 0 #92d9d9,18px 12px 0 #4b9bb7,21px 12px 0 #4b9bb7,24px 12px 0 #4b9bb7,27px 12px 0 #4b9bb7,30px 12px 0 #f3bd7d,33px 12px 0 #f3bd7d,0px 15px 0 #4b9bb7,3px 15px 0 #4b9bb7,6px 15px 0 #92d9d9,9px 15px 0 #92d9d9,12px 15px 0 #92d9d9,15px 15px 0 #92d9d9,18px 15px 0 #4b9bb7,21px 15px 0 #4b9bb7,24px 15px 0 #4b9bb7,27px 15px 0 #4b9bb7,30px 15px 0 #f3bd7d,3px 18px 0 #4b9bb7,6px 18px 0 #4b9bb7,9px 18px 0 #92d9d9,12px 18px 0 #92d9d9,15px 18px 0 #4b9bb7,18px 18px 0 #4b9bb7,21px 18px 0 #4b9bb7,24px 18px 0 #4b9bb7,6px 21px 0 #4b9bb7,9px 21px 0 #4b9bb7,12px 21px 0 #4b9bb7,15px 21px 0 #4b9bb7,18px 21px 0 #4b9bb7,21px 21px 0 #4b9bb7,12px 24px 0 #4b9bb7,15px 24px 0 #4b9bb7;image-rendering:pixelated}
.pixel-crab::before{content:"";position:absolute;left:0;top:0;width:3px;height:3px;box-shadow:6px 0px 0 #df806d,27px 0px 0 #df806d,9px 3px 0 #df806d,24px 3px 0 #df806d,12px 6px 0 #df806d,15px 6px 0 #df806d,18px 6px 0 #df806d,21px 6px 0 #df806d,6px 9px 0 #df806d,9px 9px 0 #df806d,12px 9px 0 #df806d,15px 9px 0 #df806d,18px 9px 0 #df806d,21px 9px 0 #df806d,24px 9px 0 #df806d,27px 9px 0 #df806d,3px 12px 0 #df806d,6px 12px 0 #df806d,9px 12px 0 #1d3549,12px 12px 0 #df806d,15px 12px 0 #df806d,18px 12px 0 #df806d,21px 12px 0 #df806d,24px 12px 0 #1d3549,27px 12px 0 #df806d,30px 12px 0 #df806d,0px 15px 0 #df806d,3px 15px 0 #df806d,6px 15px 0 #df806d,9px 15px 0 #df806d,12px 15px 0 #df806d,15px 15px 0 #df806d,18px 15px 0 #df806d,21px 15px 0 #df806d,24px 15px 0 #df806d,27px 15px 0 #df806d,30px 15px 0 #df806d,33px 15px 0 #df806d,0px 18px 0 #df806d,6px 18px 0 #df806d,9px 18px 0 #df806d,12px 18px 0 #df806d,15px 18px 0 #df806d,18px 18px 0 #df806d,21px 18px 0 #df806d,24px 18px 0 #df806d,27px 18px 0 #df806d,33px 18px 0 #df806d,0px 21px 0 #df806d,9px 21px 0 #df806d,24px 21px 0 #df806d,33px 21px 0 #df806d,9px 24px 0 #df806d,24px 24px 0 #df806d;image-rendering:pixelated}
.pixel-angler::before{content:"";position:absolute;left:0;top:0;width:3px;height:3px;box-shadow:21px 0px 0 #e9dd94,18px 3px 0 #e9dd94,21px 3px 0 #e9dd94,24px 3px 0 #e9dd94,18px 6px 0 #e9dd94,15px 9px 0 #e9dd94,9px 12px 0 #457a92,12px 12px 0 #457a92,15px 12px 0 #457a92,18px 12px 0 #457a92,21px 12px 0 #457a92,24px 12px 0 #457a92,27px 12px 0 #457a92,3px 15px 0 #457a92,6px 15px 0 #457a92,9px 15px 0 #457a92,12px 15px 0 #457a92,15px 15px 0 #457a92,18px 15px 0 #457a92,21px 15px 0 #457a92,24px 15px 0 #457a92,27px 15px 0 #457a92,30px 15px 0 #457a92,0px 18px 0 #457a92,3px 18px 0 #457a92,6px 18px 0 #457a92,9px 18px 0 #b5e5cd,12px 18px 0 #b5e5cd,15px 18px 0 #0c263b,18px 18px 0 #b5e5cd,21px 18px 0 #b5e5cd,24px 18px 0 #457a92,27px 18px 0 #457a92,30px 18px 0 #457a92,33px 18px 0 #457a92,0px 21px 0 #457a92,3px 21px 0 #457a92,6px 21px 0 #457a92,9px 21px 0 #457a92,12px 21px 0 #b5e5cd,15px 21px 0 #b5e5cd,18px 21px 0 #b5e5cd,21px 21px 0 #b5e5cd,24px 21px 0 #457a92,27px 21px 0 #457a92,30px 21px 0 #457a92,33px 21px 0 #457a92,36px 21px 0 #457a92,3px 24px 0 #457a92,6px 24px 0 #457a92,9px 24px 0 #457a92,12px 24px 0 #457a92,15px 24px 0 #457a92,18px 24px 0 #457a92,21px 24px 0 #457a92,24px 24px 0 #457a92,27px 24px 0 #457a92,30px 24px 0 #457a92,33px 24px 0 #457a92,36px 24px 0 #457a92,9px 27px 0 #457a92,12px 27px 0 #457a92,15px 27px 0 #457a92,18px 27px 0 #457a92,21px 27px 0 #457a92,24px 27px 0 #457a92,27px 27px 0 #457a92,30px 27px 0 #457a92,15px 30px 0 #457a92,18px 30px 0 #457a92,21px 30px 0 #457a92,24px 30px 0 #457a92;image-rendering:pixelated}
.pixel-ray::before{content:"";position:absolute;left:0;top:0;width:3px;height:3px;box-shadow:18px 0px 0 #7398bd,12px 3px 0 #7398bd,15px 3px 0 #7398bd,18px 3px 0 #7398bd,21px 3px 0 #7398bd,24px 3px 0 #7398bd,6px 6px 0 #7398bd,9px 6px 0 #7398bd,12px 6px 0 #7398bd,15px 6px 0 #7398bd,18px 6px 0 #7398bd,21px 6px 0 #7398bd,24px 6px 0 #7398bd,27px 6px 0 #7398bd,30px 6px 0 #7398bd,0px 9px 0 #7398bd,3px 9px 0 #7398bd,6px 9px 0 #7398bd,9px 9px 0 #7398bd,12px 9px 0 #7398bd,15px 9px 0 #7398bd,18px 9px 0 #7398bd,21px 9px 0 #7398bd,24px 9px 0 #7398bd,27px 9px 0 #7398bd,30px 9px 0 #7398bd,33px 9px 0 #7398bd,36px 9px 0 #7398bd,3px 12px 0 #7398bd,6px 12px 0 #7398bd,9px 12px 0 #7398bd,12px 12px 0 #7398bd,15px 12px 0 #7398bd,18px 12px 0 #7398bd,21px 12px 0 #7398bd,24px 12px 0 #7398bd,27px 12px 0 #7398bd,30px 12px 0 #7398bd,33px 12px 0 #7398bd,9px 15px 0 #7398bd,12px 15px 0 #7398bd,15px 15px 0 #7398bd,18px 15px 0 #7398bd,21px 15px 0 #7398bd,24px 15px 0 #7398bd,27px 15px 0 #7398bd,15px 18px 0 #7398bd,18px 18px 0 #7398bd,21px 18px 0 #7398bd,18px 21px 0 #7398bd,18px 24px 0 #7398bd;image-rendering:pixelated}

.pixel-ocean-fauna{position:absolute;z-index:5;pointer-events:none;image-rendering:pixelated;filter:drop-shadow(0 3px 2px #001c2d80);transition:opacity 1.6s ease;opacity:0}
.pixel-fish{left:17%;top:29%;animation:pixel-swim 13s ease-in-out infinite alternate;opacity:calc(var(--reef-life-opacity,.7) * .9)}
.pixel-crab{right:19%;bottom:16%;animation:pixel-bob 4.3s steps(6,end) infinite;opacity:var(--reef-life-opacity,.7)}
.pixel-ray{left:70%;top:31%;animation:pixel-swim 18s ease-in-out infinite alternate-reverse;opacity:var(--whale-opacity,0)}
.pixel-angler{right:28%;bottom:31%;animation:pixel-bob 5s steps(8,end) infinite;opacity:var(--angler-opacity,0)}
@keyframes pixel-swim{0%{transform:translate(-10px,0)}100%{transform:translate(65px,-13px)}}
@keyframes pixel-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
/* Keep legacy scenery subtle behind sharper pixel creatures. */
.game.blind-dive .life-seahorse,.game.blind-dive .life-squid{opacity:.13!important}
.game.blind-dive .life-whale{opacity:calc(var(--whale-opacity,0) * .35)!important}
/* Small, quiet landing marker. The line stops near the swimmer, not edge to edge. */
.game.blind-dive .depth-landing{left:50%;right:auto;width:clamp(130px,23vw,300px);transform:translateX(-50%);height:1px;filter:none}
.game.blind-dive .depth-landing .landing-horizontal{background:linear-gradient(90deg,transparent,#92d9dc77 16%,#b6e5e4a3 50%,#92d9dc77 84%,transparent)!important;height:1px}
.game.blind-dive .depth-landing.is-visible .landing-horizontal{background:linear-gradient(90deg,transparent,#b4f4e5b3 20%,#f0f6d7 50%,#b4f4e5b3 80%,transparent)!important}
.game.blind-dive .depth-landing .landing-horizontal:before{display:none}
.game.blind-dive .depth-landing .landing-line-caption{top:-12px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:5px;letter-spacing:.02em}
.game.blind-dive .depth-landing .landing-result{top:9px;gap:8px;max-width:300px}
.game.blind-dive .depth-landing .landing-result>span{font-size:7px;max-width:105px}
.game.blind-dive .depth-landing .landing-result>strong{font-size:16px}
.game.blind-dive .depth-landing .landing-result>small{font-size:6px}
.game.blind-dive .ocean-ruler{opacity:.75;width:52px}
.game.blind-dive .ocean-ruler-track{background:#9bcbd116}
/* Keep the player and the ocean readable even at deeper depths. */
.game.blind-dive .sea-life{image-rendering:pixelated}
@media(max-width:760px){.game.blind-dive .depth-landing{width:clamp(125px,46vw,220px)}.game.blind-dive .depth-landing .landing-result{gap:5px}.game.blind-dive .depth-landing .landing-result>span{max-width:65px;font-size:6px}.pixel-ocean-fauna{scale:.8}}
@media(prefers-reduced-motion:reduce){.pixel-ocean-fauna{animation:none!important}}

/* A compact arcade countdown, no card or panel behind it. */
.console{position:absolute}
.guess-clock{position:absolute;right:12px;top:-59px;width:49px;height:49px;display:grid;place-items:center;filter:drop-shadow(0 2px 2px #001525);pointer-events:none;z-index:6}
.guess-clock[hidden]{display:none!important}
.guess-clock svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.guess-clock circle{fill:none;stroke-width:4;stroke-linecap:round}
.guess-clock .clock-rail{stroke:#184358;opacity:.8}
.guess-clock .clock-progress{stroke:#7af5d8;stroke-dasharray:131.947;stroke-dashoffset:0;transition:stroke .2s}
.guess-clock span{font:14px 'VT323',monospace;color:#e7fff8;text-shadow:1px 2px #03283c;line-height:1}
.guess-clock.is-urgent .clock-progress{stroke:#ffad77}
.guess-clock.is-urgent span{color:#ffd5ad;animation:clockBeat .55s steps(2,end) infinite}
.guess-clock.is-paused{opacity:.6}
@keyframes clockBeat{50%{transform:scale(1.12)}}
@media(max-width:760px){.guess-clock{right:6px;top:-49px;width:40px;height:40px}.guess-clock span{font-size:13px}}

/* Resign is an explicit, always-visible in-round action, including word dives. */
.game.blind-dive #revealAnswerButton{display:inline-flex!important;align-items:center;justify-content:center}
#revealAnswerButton{color:#ffd9a6;background:rgba(36,30,30,.55);border:1px solid rgba(255,207,157,.48);border-radius:2px;font-size:6px;letter-spacing:0;white-space:nowrap}
#revealAnswerButton:hover:not(:disabled){background:rgba(75,48,36,.85);border-color:#ffd9a6}

/* TIMER VISIBILITY FIX: keep the countdown INSIDE the clipped pixel console.
   Earlier top:-59px placed the whole dial outside its clipping polygon. */
.console{position:absolute}
.console .guess-clock{
  position:absolute!important;
  top:7px!important;
  right:10px!important;
  width:48px!important;
  height:48px!important;
  z-index:70!important;
  display:grid;
  place-items:center;
  opacity:1;
  visibility:visible;
  filter:drop-shadow(0 1px 2px #001827);
}
.console .guess-clock[hidden]{display:none!important}
.console .guess-clock svg{width:100%;height:100%;}
.console .guess-clock .clock-rail{stroke:#245f70;opacity:1;stroke-width:4.5}
.console .guess-clock .clock-progress{stroke:#8affdb;stroke-width:5;filter:drop-shadow(0 0 2px #3be4c9)}
.console .guess-clock span{font-size:19px;font-weight:bold;color:#f2fff9;text-shadow:0 1px 3px #001322}
.console .console-topline{padding-right:57px;min-height:18px}
.console .input-shell{margin-right:56px}
@media(max-width:760px){
  .console .guess-clock{top:8px!important;right:7px!important;width:44px!important;height:44px!important}
  .console .console-topline{padding-right:51px}
  .console .input-shell{margin-right:49px}
  .console .guess-clock span{font-size:18px}
}
@media(max-width:430px){
  .console .console-topline span:last-child{display:none}
  .console .input-shell{margin-right:46px}
}

/* Refined landing depth: a medium-width broken pixel line, not a solid hairline. */
.game.blind-dive .depth-landing{
  width:clamp(225px,35vw,430px);
  max-width:calc(100vw - 88px);
}
.game.blind-dive .depth-landing .landing-horizontal,
.game.blind-dive .depth-landing.is-visible .landing-horizontal{
  height:2px;
  background:repeating-linear-gradient(90deg,
    rgba(188,244,239,.92) 0 17px,
    transparent 17px 27px)!important;
  box-shadow:none;
}
.game.blind-dive .depth-landing:not(.is-visible) .landing-horizontal{opacity:.55}
@media(max-width:760px){
  .game.blind-dive .depth-landing{width:clamp(210px,65vw,330px);max-width:calc(100vw - 54px)}
  .game.blind-dive .depth-landing .landing-horizontal,
  .game.blind-dive .depth-landing.is-visible .landing-horizontal{
    background:repeating-linear-gradient(90deg,rgba(188,244,239,.92) 0 13px,transparent 13px 22px)!important;
  }
}

/* Landing marker refinement: invisible until a scored guess, with tight pixel dashes. */
.game.blind-dive .depth-landing,
.game.blind-dive:not(.intro-closeup) .depth-landing{
  opacity:0;
  width:clamp(210px,30vw,355px);
  max-width:calc(100vw - 76px);
  transition:opacity .16s ease;
}
.game.blind-dive .depth-landing.is-visible,
.game.blind-dive:not(.intro-closeup) .depth-landing.is-visible{opacity:1}
.game.blind-dive .depth-landing .landing-horizontal,
.game.blind-dive .depth-landing.is-visible .landing-horizontal{
  height:2px;
  opacity:1;
  background:repeating-linear-gradient(90deg,rgba(185,240,232,.85) 0 13px,transparent 13px 19px)!important;
}
.game.blind-dive .depth-landing .landing-line-caption{top:-13px;letter-spacing:0}
.game.blind-dive .depth-landing .landing-result{top:10px;gap:7px}
@media(max-width:760px){
  .game.blind-dive .depth-landing{width:clamp(195px,61vw,275px)}
  .game.blind-dive .depth-landing .landing-horizontal,
  .game.blind-dive .depth-landing.is-visible .landing-horizontal{
    background:repeating-linear-gradient(90deg,rgba(185,240,232,.85) 0 10px,transparent 10px 15px)!important;
  }
}

/* Daily Dive: concise six-stage progress, matching the original pixel typography. */
body:has(.sea-discovery:not([hidden])) #resultAnswer {max-width:min(86vw,650px);overflow-wrap:anywhere;}

/* Six-stage dives: one clean colour-coded grade, no explanation panels. */
.grade-reveal{position:absolute;z-index:24;left:50%;top:41%;transform:translate(-50%,-40%) scale(.82);display:flex;flex-direction:column;align-items:center;gap:0;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .17s ease,transform .25s steps(5,end),visibility .17s;font-family:'VT323',monospace;color:var(--grade-color,#d9fff6);text-shadow:3px 4px 0 #03172a,0 0 18px var(--grade-glow,#53fff566)}
.grade-reveal.show{opacity:1;visibility:visible;transform:translate(-50%,-40%) scale(1)}
.grade-reveal span{font-size:19px;letter-spacing:2px;color:#d7fff7}
.grade-reveal strong{font:normal clamp(88px,13vw,148px)/.85 'VT323',monospace;color:var(--grade-color);text-shadow:5px 6px 0 #03172a,0 0 24px var(--grade-glow)}
.grade-reveal small{font-size:24px;color:#e3fff7}
.grade-a{--grade-color:#9dffcb;--grade-glow:#33ffa988;color:#9dffcb!important}
.grade-b{--grade-color:#b4f98c;--grade-glow:#b4f98c77;color:#b4f98c!important}
.grade-c{--grade-color:#e5f287;--grade-glow:#e5f28777;color:#e5f287!important}
.grade-d{--grade-color:#ffe28a;--grade-glow:#ffe28a77;color:#ffe28a!important}
.grade-e{--grade-color:#ffc17a;--grade-glow:#ffc17a77;color:#ffc17a!important}
.grade-f{--grade-color:#ff9b87;--grade-glow:#ff9b8777;color:#ff9b87!important}
.grade-g{--grade-color:#f17c9b;--grade-glow:#f17c9b77;color:#f17c9b!important}
.grade-h{--grade-color:#b6a1c9;--grade-glow:#b6a1c977;color:#b6a1c9!important}
#resultAnswer.grade-a,#resultAnswer.grade-b,#resultAnswer.grade-c,#resultAnswer.grade-d,#resultAnswer.grade-e,#resultAnswer.grade-f,#resultAnswer.grade-g,#resultAnswer.grade-h{font:normal clamp(80px,14vw,150px)/1 'VT323',monospace;text-shadow:4px 5px 0 #03172a,0 0 22px var(--grade-glow)}
/* More distinct colour depth; preserve original sprite art and gentle scene transitions. */
.game.depth-surface{--water-top:#4cb7c4;--water-mid:#187e9e;--water-deep:#105779;--abyss:#083953;--surface:#b9f8eb}
.game.depth-twilight{--water-top:#177b9d;--water-mid:#115577;--water-deep:#0a345a;--abyss:#072143;--surface:#78d4d4}
.game.depth-midnight{--water-top:#0c476f;--water-mid:#092e58;--water-deep:#071b3e;--abyss:#040e29;--surface:#417f9d}
.game.depth-abyss{--water-top:#082947;--water-mid:#061c36;--water-deep:#041127;--abyss:#020717;--surface:#285674}
.game.depth-abyss .sun-rays,.game.depth-midnight .sun-rays{opacity:0!important}
.game.depth-twilight .sun-rays{opacity:.13!important}
.game.depth-abyss .sky,.game.depth-midnight .sky{opacity:.15}
.game.depth-twilight .sky{opacity:.5}
.game .sky{transition:opacity 1.4s ease}
/* Keep result details short and below the character. */
.game .depth-landing .landing-result{gap:7px}
@media(max-width:640px){.grade-reveal{top:44%}.grade-reveal strong{font-size:98px}.grade-reveal span{font-size:16px}.grade-reveal small{font-size:21px}}


/* 2026-11-16: compact, left-lower grade and soft transitions. */
.game .grade-reveal{
  left:clamp(18px,5vw,76px);top:61%;bottom:auto;
  transform:translate3d(-8px,10px,0) scale(.94);
  align-items:flex-start;gap:0;z-index:22;
  opacity:0;visibility:hidden;
  transition:opacity .34s ease-out,transform .46s cubic-bezier(.18,.8,.25,1),visibility .34s;
  filter:drop-shadow(0 3px 4px #03172566);
  text-shadow:1px 2px 0 #03172a;
}
.game .grade-reveal.show{opacity:1;visibility:visible;transform:translate3d(0,0,0) scale(1)}
.game .grade-reveal span{font-size:clamp(12px,1.1vw,15px);letter-spacing:.06em;line-height:1.1}
.game .grade-reveal strong{
  font:normal clamp(54px,6.5vw,82px)/.91 'VT323',monospace;
  text-shadow:2px 3px 0 #03172a,0 0 12px var(--grade-glow);
}
.game .grade-reveal small{font-size:clamp(15px,1.6vw,20px);line-height:1.1}
.game .depth-landing.is-visible{transition:opacity .4s ease,filter .4s ease;filter:drop-shadow(0 2px 3px #00162955)}
.game .depth-landing .landing-result{transition:opacity .35s ease,transform .45s ease}
.game .trail-item{animation:trail-arrive .5s cubic-bezier(.18,.85,.2,1) both}
@keyframes trail-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.game .clue-sub,.game #clueText,.game #clueSub,.game #feedback{transition:opacity .3s ease,transform .3s ease}
.game.word-switching #clueText,.game.word-switching #clueSub,.game.word-switching #feedback{opacity:0;transform:translateY(7px)}
@media(max-width:640px){
 .game .grade-reveal{left:16px;top:60%}
 .game .grade-reveal strong{font-size:58px}
 .game .grade-reveal span{font-size:12px}
 .game .grade-reveal small{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
 .game .grade-reveal,.game .depth-landing .landing-result,.game .trail-item,
 .game #clueText,.game #clueSub,.game #feedback{transition:none!important;animation:none!important}
}

/* Lower-right result toast and quiet bottom-stage counter */
.game .grade-reveal{left:auto;right:clamp(20px,5.5vw,82px);top:auto;bottom:clamp(90px,14vh,145px);align-items:center;transform:translate3d(0,14px,0) scale(.86);opacity:0;visibility:hidden;z-index:35;transition:opacity .45s ease,transform .5s cubic-bezier(.16,.8,.25,1),visibility .45s;pointer-events:none}
.game .grade-reveal.show{opacity:1;visibility:visible;transform:translate3d(0,0,0) scale(1)}
.game .grade-reveal strong{font-size:clamp(56px,7vw,88px);line-height:.9}
.game .grade-reveal span{font-size:14px}
.game .grade-reveal small{font-size:18px}
.word-stage-counter{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);z-index:29;pointer-events:none;color:#d9fff4;font:normal 22px/1 'VT323',monospace;letter-spacing:.09em;text-shadow:1px 2px #063044;opacity:0;transition:opacity .25s ease}
.game:not(.phrase-mode) .word-stage-counter{opacity:1}
.game:has(#startOverlay:not(.hidden)) .word-stage-counter{opacity:0}
@media(max-width:640px){.game .grade-reveal{right:16px;bottom:105px}.game .grade-reveal strong{font-size:62px}.word-stage-counter{bottom:12px;font-size:19px}}
@media(prefers-reduced-motion:reduce){.game .grade-reveal{transition:none!important}}

/* Smooth six-word round transitions: quiet stage marker, one loading indicator. */
.game .word-stage-counter{left:clamp(22px,5vw,74px);bottom:clamp(38px,7vh,76px);transform:none;font-size:clamp(19px,2vw,24px);letter-spacing:.045em;opacity:0;transition:opacity .3s ease}
.game:not(.phrase-mode) .word-stage-counter{opacity:1}
.game:has(#startOverlay:not(.hidden)) .word-stage-counter{opacity:0}
.game #clueText,.game #clueSub,.game #feedback,.game #remainingGuesses,.game #clueLabel{transition:opacity .4s ease,transform .4s ease;will-change:opacity,transform}
.game.word-switching #clueText,.game.word-switching #clueSub,.game.word-switching #feedback{opacity:0;transform:translateY(-7px)}
.game.word-loading #clueText{opacity:1!important;transform:none!important;animation:pb-wait-dots 1.2s steps(3,end) infinite}
.game.word-loading #clueSub{opacity:0}
.game.word-loading #feedback{opacity:.65;transform:none}
.game.word-entering #clueText,.game.word-entering #clueSub,.game.word-entering #feedback{animation:pb-word-enter .6s cubic-bezier(.2,.75,.25,1) both}
.game.word-entering #clueSub{animation-delay:.1s}
.game.word-entering #feedback{animation-delay:.16s}
@keyframes pb-wait-dots{0%{opacity:.3}33%{opacity:.6}66%,100%{opacity:1}}
@keyframes pb-word-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){.game .word-stage-counter{left:16px;bottom:62px;font-size:19px}}
@media(prefers-reduced-motion:reduce){.game.word-loading #clueText,.game.word-entering #clueText,.game.word-entering #clueSub,.game.word-entering #feedback{animation:none!important}}


/* Deeper six-stage journey: longer, deliberate camera movement and stronger biome identity. */
.game.blind-dive .camera-rig{transition:transform 2.9s cubic-bezier(.12,.74,.16,1),filter 2.9s ease!important}
.game.blind-dive .ocean-scenery>div{transition:opacity 2.9s ease,transform 3s cubic-bezier(.12,.74,.16,1),translate 3s cubic-bezier(.12,.74,.16,1)}
.game.blind-dive .scene-kelp,.game.blind-dive .scene-coral{translate:0 calc(var(--sea-journey,0) * -2.8px)}
.game.blind-dive .scene-wreck{translate:0 calc(var(--sea-journey,0) * -5px)}
.game.blind-dive .scene-trench,.game.blind-dive .scene-vent{translate:0 calc(var(--sea-journey,0) * -2.4px)}
.game.blind-dive .depth-landing{transition:opacity .7s ease,filter .7s ease!important}
.game.blind-dive .depth-landing.is-visible .landing-result{animation:small-score-reveal 3.75s cubic-bezier(.12,.82,.22,1) both}
/* Clear surface -> blue twilight -> indigo midnight -> almost black abyss. */
.game.depth-surface{--water-top:#56c6cf;--water-mid:#228fae;--water-deep:#125b86;--abyss:#0b375e;--surface:#a2e8df}
.game.depth-twilight{--water-top:#176c91;--water-mid:#0b436e;--water-deep:#092c55;--abyss:#071c3e;--surface:#6cb6c7}
.game.depth-midnight{--water-top:#0b355f;--water-mid:#08254b;--water-deep:#051535;--abyss:#030d24;--surface:#376f98}
.game.depth-abyss{--water-top:#061c38;--water-mid:#04132c;--water-deep:#030b1f;--abyss:#010612;--surface:#1e496b}
/* Pixel-floor silhouette appears only in the last part of the six-word dive. */
.game.blind-dive .ocean-scenery:after{content:"";position:absolute;pointer-events:none;z-index:2;left:-5%;right:-5%;bottom:-8%;height:30%;opacity:clamp(0,calc((var(--sea-progress,0) - .72) * 3.6),1);transition:opacity 3s ease;background:linear-gradient(180deg,transparent 0%,#091b32a8 33%,#041021 75%),repeating-linear-gradient(90deg,#112c40 0 22px,#081a2c 22px 41px,#0b2635 41px 65px);clip-path:polygon(0 56%,7% 47%,13% 51%,20% 34%,27% 43%,35% 25%,43% 42%,50% 36%,58% 23%,66% 39%,75% 28%,83% 48%,91% 32%,100% 45%,100% 100%,0 100%);image-rendering:pixelated}
@media(prefers-reduced-motion:reduce){.game.blind-dive .camera-rig,.game.blind-dive .ocean-scenery>div,.game.blind-dive .depth-landing{transition:none!important}}


/* Six-stage dive: make the actual visual journey match the long result reveal.
   The ocean travels for nearly the entire 4-second result window; the depth
   meter still advances by 1/6 per word, independent of performance points. */
.game.blind-dive:not(.intro-closeup) .camera-rig{
  transition:transform 3.75s cubic-bezier(.22,.42,.14,1),filter 3.75s ease!important;
}
.game.blind-dive .ocean-scenery>div{
  transition:opacity 3.65s ease,transform 3.75s cubic-bezier(.22,.42,.14,1),translate 3.75s cubic-bezier(.22,.42,.14,1)!important;
}
.game.blind-dive .scene-kelp,.game.blind-dive .scene-coral{
  translate:0 calc(var(--sea-journey,0) * -5.5px)!important;
}
.game.blind-dive .scene-wreck{
  translate:0 calc(var(--sea-journey,0) * -8px)!important;
}
.game.blind-dive .scene-trench,.game.blind-dive .scene-vent{
  translate:0 calc(var(--sea-journey,0) * -5.5px)!important;
}
.game.blind-dive .depth-landing.is-visible{transition:opacity .5s ease!important}
@media(prefers-reduced-motion:reduce){
 .game.blind-dive:not(.intro-closeup) .camera-rig,.game.blind-dive .ocean-scenery>div{transition:none!important}
}


/* ------------------------------------------------------------
   PLASTIC BAG / REFINED CONTINUOUS UNDERWATER WORLD
   The world is one authored background image, not twelve repeated sections.
   The same pixels appear on the home screen and throughout both word modes.
   Everything growing in the reef is anchored to a rock shelf.
   Phrase Dive retains its own original scenery and camera behavior.
   ------------------------------------------------------------ */
.dive-map-viewport {
  position:absolute;
  inset:0;
  display:block;
  z-index:0;
  overflow:hidden;
  contain:paint;
  pointer-events:none;
  opacity:1!important;
  transition:none!important;
}
.dive-map-world {
  position:absolute;
  top:0;
  left:-3%;
  width:106%;
  height:1200%;
  background:#05192d;
  image-rendering:auto;
  will-change:transform;
  transform:translate3d(0,0,0);
}
.game:not(.phrase-mode) .world-backfill,
.game:not(.phrase-mode) .camera-rig>.ocean,
.game:not(.phrase-mode) .camera-rig>.ocean * {
  display:none!important;
}
.game:not(.phrase-mode) .dive-map-viewport {display:block!important;}
.game.phrase-mode .dive-map-viewport {display:none!important;}
/* The old 6th-word artificial floor is not part of this endless water column. */
.game:not(.phrase-mode) .camera-rig .ocean-scenery::after {content:none!important;}
.game:not(.phrase-mode){background:#083957}
.game:not(.phrase-mode)::before,.game:not(.phrase-mode)::after{opacity:0!important}
/* A subtle luminous edge to bring 16-bit depth into gameplay without UI collisions. */
.game:not(.phrase-mode) .dive-map-viewport::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:radial-gradient(ellipse 62% 70% at 48% 35%,transparent 46%,#01192c25 100%);
}
@media (prefers-reduced-motion:reduce){
  .dive-map-world {will-change:auto;}
}

/* Refined authored map — no sprite sheets, no repeating backgrounds, no floating plants */
.dive-map-world{background-color:#0a4966!important;background-image:none!important;background-position:center top!important;background-repeat:no-repeat!important;background-size:100% 100%!important;image-rendering:auto!important;}
.game:not(.phrase-mode) .dive-map-viewport{display:block!important;visibility:visible!important;opacity:1!important;}
.game:not(.phrase-mode) .camera-rig > .ocean,.game:not(.phrase-mode) .world-backfill{display:none!important;visibility:hidden!important;}
.game:not(.phrase-mode) .dive-map-viewport::after{background:radial-gradient(ellipse 70% 80% at 50% 35%,transparent 54%,#02132226 100%)!important;}
.game:not(.phrase-mode) .ocean-scenery::after{content:none!important;display:none!important;}

/* ============ ORIGINAL PHRASE DIVE OCEAN, EXTENDED ============ */
/* One genuine copy of the Phrase Dive ocean occupies the opening viewport.
   Later sections only extend the water column; no image asset and no repeated sky. */
.dive-map-viewport {display:block!important;position:absolute!important;inset:0!important;overflow:hidden!important;z-index:0!important;opacity:1!important;pointer-events:none!important;contain:paint!important}
.dive-map-world {position:absolute!important;left:0!important;top:0!important;width:100%!important;height:900%!important;background:linear-gradient(to bottom,#061a3c 0%,#061b3b 11%,#05203e 18%,#061d39 32%,#04182e 47%,#04132a 67%,#020c21 86%,#02091a 100%)!important;background-image:none!important;background-size:auto!important;image-rendering:auto!important;will-change:transform}
.pb-world-opening,.pb-world-layer{height:calc(100% / 9);position:relative;overflow:hidden;isolation:isolate}
.pb-world-opening>.ocean{position:absolute!important;inset:0!important;display:block!important;visibility:visible!important;opacity:1!important;z-index:0!important;isolation:isolate;background:linear-gradient(180deg,#a4dce0 0 16%,var(--water-top) 19%,var(--water-mid) 43%,var(--water-deep) 75%,var(--abyss) 100%)!important}
/* The opening uses the original classes and original scenery without substitutes.
   Remove only distracting floor geometry when the camera starts going lower. */
.pb-world-layer{background:transparent;pointer-events:none}
.pb-world-layer::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.6;background:radial-gradient(ellipse at 50% 30%,#5fcee91a,transparent 68%)}
.pb-zone-the-shelf{background:linear-gradient(180deg,#061a3c,#0b3155)}
.pb-zone-the-channel{background:linear-gradient(180deg,#0b3155,#08284b)}
.pb-zone-jelly-pass{background:linear-gradient(180deg,#08284b,#072441)}
.pb-zone-wreck-water{background:linear-gradient(180deg,#072441,#061e36)}
.pb-zone-midnight{background:linear-gradient(180deg,#061e36,#04182f)}
.pb-zone-abyss-wall{background:linear-gradient(180deg,#04182f,#031428)}
.pb-zone-black-current{background:linear-gradient(180deg,#031428,#020c1f)}
.pb-zone-open-dark{background:linear-gradient(180deg,#020c1f,#02091a)}
.pb-ledge{position:absolute;top:var(--top);height:var(--height);width:var(--width);background:linear-gradient(180deg,#17445b,#0a283e);image-rendering:pixelated;filter:drop-shadow(0 9px 0 #05152a99)}
.pb-ledge.left{left:0;clip-path:polygon(0 0,93% 0,100% 16%,82% 25%,78% 53%,51% 62%,32% 100%,0 100%)}
.pb-ledge.right{right:0;clip-path:polygon(8% 0,100% 0,100% 100%,70% 81%,53% 57%,18% 45%,0 15%)}
.pb-ridge{position:absolute;top:var(--top);height:var(--height);width:clamp(55px,17vw,210px);background:#081d36;opacity:.84;clip-path:polygon(0 0,80% 14%,100% 44%,78% 72%,100% 100%,0 100%)}
.pb-ridge.left{left:-3%}.pb-ridge.right{right:-3%;transform:scaleX(-1)}
.pb-sea-life{position:absolute!important;animation:fish-drift 14s ease-in-out infinite alternate!important;opacity:.6;filter:drop-shadow(0 0 5px #9bdbf455)}
.pb-glow{position:absolute;width:140px;height:140px;border-radius:50%;background:radial-gradient(circle,#66d6e722,transparent 66%);filter:blur(8px)}
.pb-glow.jelly{left:18%;top:22%}.pb-glow.distant{right:14%;top:52%}.pb-glow.deep{left:25%;top:38%}.pb-glow.bottom{left:60%;top:62%}
.pb-wreck{position:absolute;bottom:14%;right:5%;width:230px;height:160px;opacity:.58;transform:rotate(-9deg);filter:drop-shadow(0 7px 12px #020f2099)}
.pb-wreck .wreck-hull{position:absolute;bottom:4px;left:15px;width:210px;height:58px;background:#193c4d;clip-path:polygon(0 0,100% 0,83% 100%,23% 85%)}
.pb-wreck .wreck-mast{position:absolute;bottom:40px;left:121px;width:8px;height:122px;background:#365669;transform:rotate(10deg)}
.pb-wreck .wreck-sail{position:absolute;left:133px;top:10px;width:90px;height:87px;background:#39627666;clip-path:polygon(0 0,100% 60%,0 90%)}
/* Safety: the map scrolls, the bag does NOT leave the viewport with the rig. */
.game.blind-dive:not(.intro-closeup) .camera-rig{position:absolute!important;inset:0!important;transform:none!important;translate:none!important;filter:none!important;transition:none!important;opacity:1!important;visibility:visible!important;overflow:visible!important;pointer-events:none!important}
.game.blind-dive:not(.intro-closeup) .player-track{position:absolute!important;inset:0!important;transform:none!important;translate:none!important;overflow:visible!important;display:block!important;opacity:1!important;visibility:visible!important;pointer-events:none!important}
.game.blind-dive:not(.intro-closeup) .player{top:46%!important;left:50%!important;position:absolute!important;transform:translate3d(-50%,-50%,0)!important;translate:none!important;opacity:1!important;visibility:visible!important;display:flex!important;z-index:50!important;animation:none!important;transition:none!important;filter:drop-shadow(0 3px 7px #00101dcc)!important;backface-visibility:hidden}
.game.blind-dive:not(.intro-closeup) .player .sprite{animation:pb-gentle-drift 4.8s ease-in-out infinite!important;transform-origin:50% 50%!important;backface-visibility:hidden}
@keyframes pb-gentle-drift{0%,100%{transform:translate3d(-2px,1px,0) rotate(-2deg)}50%{transform:translate3d(3px,-5px,0) rotate(3deg)}}
.game.blind-dive:not(.intro-closeup) .player-bubbles{opacity:.65!important}
.game.blind-dive:not(.intro-closeup) .descent-speedlines{opacity:0!important}
/* Phrase Dive keeps its original, unmodified ocean renderer. */
.game.phrase-mode .dive-map-viewport{display:none!important}
.game.phrase-mode .camera-rig>.ocean{display:block!important;visibility:visible!important}
/* Never paint both ocean systems at once in the word modes. */
.game.blind-dive .camera-rig>.ocean{display:none!important}
@media(prefers-reduced-motion:reduce){.game.blind-dive .player .sprite,.pb-sea-life{animation:none!important}.dive-map-world{will-change:auto!important}}


/* LIVING ORIGINAL OCEAN — extension of the unchanged Phrase Dive starting view.
   All movement lives in the ocean, never in text or score panels. */
.dive-map-world{will-change:transform;}
.game:not(.phrase-mode) .dive-map-viewport::after{
  background:linear-gradient(180deg,#8cedf10a,transparent 28%,#01081c27 100%),
    radial-gradient(ellipse 78% 68% at 50% 27%,transparent 30%,#03152725 100%)!important;
  animation:pb-water-shimmer 13s ease-in-out infinite alternate;
}
/* The original top is a literal clone of the Phrase Dive scenery: no edits. */
.pb-world-layer{transition:filter .7s ease;}
.pb-zone-the-shelf{background:linear-gradient(180deg,#0a4a68,#0e5276 52%,#093a60)!important;}
.pb-zone-the-channel{background:linear-gradient(180deg,#0a3a60,#0a4269 52%,#092e53)!important;}
.pb-zone-jelly-pass{background:linear-gradient(180deg,#082d55,#0b355b 45%,#072645)!important;}
.pb-zone-wreck-water{background:linear-gradient(180deg,#072645,#092d4e 47%,#061f39)!important;}
.pb-zone-midnight{background:linear-gradient(180deg,#061f39,#072342 50%,#041830)!important;}
.pb-zone-abyss-wall{background:linear-gradient(180deg,#041830,#051b35 52%,#031329)!important;}
.pb-zone-black-current{background:linear-gradient(180deg,#031329,#031426 55%,#020c20)!important;}
.pb-zone-open-dark{background:linear-gradient(180deg,#020c20,#021126 55%,#02081c)!important;}
/* Shafts and suspended light near the top, bioluminescence deeper down. */
.pb-world-layer::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.42;
 background:linear-gradient(99deg,transparent 10%,#a4f5ff18 21%,transparent 32%,transparent 55%,#a4f5ff0c 65%,transparent 76%);
 animation:pb-light-sway 15s ease-in-out infinite alternate;}
.pb-zone-midnight::after,.pb-zone-abyss-wall::after,.pb-zone-black-current::after,.pb-zone-open-dark::after{
 opacity:.3;background:radial-gradient(ellipse 20% 23% at 21% 40%,#4bdeff26,transparent 90%),
 radial-gradient(ellipse 18% 30% at 82% 70%,#6c9ff825,transparent 90%);animation:pb-light-sway 22s ease-in-out infinite alternate;}
.pb-world-layer .pb-ledge::before{content:"";position:absolute;top:0;left:0;right:0;height:6px;
 background:linear-gradient(90deg,#8ce8cf48,#a0f8ed25,#65b9cc16);opacity:.7;}
.pb-zone-the-shelf .pb-ledge::after,.pb-zone-jelly-pass .pb-ledge::after{
 content:"";position:absolute;top:-19px;left:22%;width:23px;height:22px;opacity:.6;
 background:linear-gradient(100deg,transparent 27%,#74c8b2 29% 38%,transparent 40%),
 linear-gradient(80deg,transparent 56%,#9dd6af 57% 64%,transparent 65%);
 transform-origin:bottom center;animation:pb-seaweed-sway 5s ease-in-out infinite alternate;}
.pb-motes{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:3;}
.pb-motes i{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);border-radius:50%;
 background:#b1faff;opacity:.19;box-shadow:0 0 6px #99ecff55;
 animation:pb-mote-rise var(--t) linear var(--d) infinite;}
.pb-zone-midnight .pb-motes i,.pb-zone-abyss-wall .pb-motes i,.pb-zone-black-current .pb-motes i,
.pb-zone-open-dark .pb-motes i{background:#88d8ff;opacity:.13;}
.pb-sea-life{animation:pb-fauna-drift 9.7s ease-in-out infinite alternate!important;}
.pb-world-layer:nth-child(2n) .pb-sea-life{animation-delay:-3.6s!important;animation-duration:15.2s!important;}
.pb-world-layer:nth-child(3n) .pb-sea-life{animation-delay:-5.2s!important;animation-duration:12.3s!important;}
.pb-glow{animation:pb-glow-breathe 7.3s ease-in-out infinite alternate;}
.game.blind-dive:not(.intro-closeup) .player .sprite{animation:pb-gentle-drift 5.8s ease-in-out infinite!important;}
/* During a scored descent the environment brightens slightly around the moving diver,
   then the water settles back. Driven by the same frame loop as the camera. */
.game.blind-dive .dive-map-viewport::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
 background:radial-gradient(ellipse 36% 47% at 50% 46%,#7bd8f51b,transparent 82%);
 opacity:calc(var(--pb-travel,0) * .9);}
@keyframes pb-water-shimmer{from{opacity:.44;transform:translateX(-1.3%)}to{opacity:.66;transform:translateX(1.3%)}}
@keyframes pb-light-sway{from{transform:translateX(-2%);opacity:.32}to{transform:translateX(2%);opacity:.56}}
@keyframes pb-seaweed-sway{from{transform:rotate(-7deg)}to{transform:rotate(8deg)}}
@keyframes pb-mote-rise{from{transform:translate3d(-5px,18px,0);opacity:0}18%{opacity:.17}80%{opacity:.14}to{transform:translate3d(9px,-85px,0);opacity:0}}
@keyframes pb-fauna-drift{from{translate:-9px 3px}to{translate:12px -7px}}
@keyframes pb-glow-breathe{from{opacity:.5;transform:scale(.92)}to{opacity:.89;transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){.pb-world-layer::after,.game:not(.phrase-mode) .dive-map-viewport::after,
 .pb-world-layer .pb-ledge::after,.pb-motes i,.pb-sea-life,.pb-glow,.game.blind-dive:not(.intro-closeup) .player .sprite
 {animation:none!important;}}

/* 2026-11-16: ONE bag motion system for word modes, including the menu.
   The intro's 5x macro animation and camera zoom must not take over during
   asynchronous word loading. Phrase Dive deliberately retains its renderer. */
.game:not(.phrase-mode) .camera-rig,
.game:not(.phrase-mode).intro-closeup .camera-rig,
.game:not(.phrase-mode).cinematic-descent .camera-rig {
  position:absolute!important;
  inset:0!important;
  transform:none!important;
  translate:none!important;
  filter:none!important;
  transition:none!important;
  animation:none!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:none!important;
}
.game:not(.phrase-mode) .player-track,
.game:not(.phrase-mode).intro-closeup .player-track {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  transform:none!important;
  translate:none!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
  pointer-events:none!important;
}
.game:not(.phrase-mode) .player,
.game:not(.phrase-mode).intro-closeup .player,
.game:not(.phrase-mode) .player.floating,
.game:not(.phrase-mode) .player.diving,
.game:not(.phrase-mode) .player.rising {
  position:absolute!important;
  left:50%!important;
  top:46%!important;
  transform:translate3d(-50%,-50%,0)!important;
  translate:none!important;
  animation:none!important;
  transition:none!important;
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
  z-index:50!important;
  backface-visibility:hidden;
  filter:drop-shadow(0 3px 7px #00101dcc)!important;
}
.game:not(.phrase-mode) .player .sprite,
.game:not(.phrase-mode).intro-closeup .player .sprite,
.game:not(.phrase-mode) .player.swimming-left .sprite,
.game:not(.phrase-mode) .player.swimming-right .sprite,
.game:not(.phrase-mode) .player.swimming-center .sprite {
  transform-origin:50% 50%!important;
  transform:none!important;
  animation:pb-stable-bag-bob 5.8s ease-in-out infinite!important;
  transition:none!important;
  backface-visibility:hidden;
}
@keyframes pb-stable-bag-bob {
  0%,100% { translate:-2px 1px; rotate:-2deg; }
  50% { translate:3px -5px; rotate:3deg; }
}
/* Remove the intro-only bubble scale; it also made the bag appear to jump. */
.game:not(.phrase-mode).intro-closeup .player-bubbles {
  transform:none!important;
  opacity:.65!important;
}
@media(prefers-reduced-motion:reduce){
  .game:not(.phrase-mode) .player .sprite {animation:none!important;transform:none!important;}
}


/* Single, controlled menu-to-dive transition for word modes (v63).
   Text fades once; changing the loading copy doesn't restart the ocean or bag. */
.game:not(.phrase-mode) #clueArea,
.game:not(.phrase-mode) #console {
  transition:opacity .65s ease, filter .65s ease!important;
}
.game:not(.phrase-mode).pb-ui-entering:not(.pb-ui-ready) #clueArea,
.game:not(.phrase-mode).pb-ui-entering:not(.pb-ui-ready) #console {
  opacity:0!important; filter:blur(3px)!important;
}
.game:not(.phrase-mode).pb-ui-entering.pb-ui-ready #clueArea,
.game:not(.phrase-mode).pb-ui-entering.pb-ui-ready #console {
  opacity:1!important; filter:none!important;
}
/* Never animate the title by scattering letters when entering a word dive. */
.game:not(.phrase-mode) .start-content h1 .title-scatter-letter {animation:none!important;}
/* Remove the added plant silhouettes entirely, including the fake tufts on
   ledges. The copied original Phrase Dive opening remains untouched. */
.pb-world-layer .pb-ledge::after,
.pb-world-layer .pb-ledge .scene-kelp,
.pb-world-layer .pb-ledge .scene-coral,
.pb-world-layer .pb-plant,
.pb-world-layer .pb-kelp,
.pb-world-layer .pb-seaweed,
.pb-world-layer .pb-coral {content:none!important;display:none!important;}
/* Keep a single world and a single anchored bag layer during all text updates. */
.game:not(.phrase-mode) .camera-rig,
.game:not(.phrase-mode).word-loading .camera-rig,
.game:not(.phrase-mode).word-entering .camera-rig,
.game:not(.phrase-mode).pb-ui-entering .camera-rig {
  transform:none!important;transition:none!important;animation:none!important;
}
.game:not(.phrase-mode).word-loading .dive-map-viewport,
.game:not(.phrase-mode).word-entering .dive-map-viewport {opacity:1!important;filter:none!important;transition:none!important;}
.game:not(.phrase-mode).word-loading .player,
.game:not(.phrase-mode).word-entering .player {
  top:46%!important;left:50%!important;transform:translate3d(-50%,-50%,0)!important;
  animation:none!important;transition:none!important;opacity:1!important;visibility:visible!important;
}
@media(prefers-reduced-motion:reduce){
  .game:not(.phrase-mode) #clueArea,.game:not(.phrase-mode) #console{transition:none!important}
}

/* v64 — authored ocean creatures and subtle layered currents.
   The original Phrase Dive opening is untouched; all these elements live
   exclusively in the additional world sections below that first viewport. */
.pb-world-layer .pb-sea-life{display:none!important}
.pb-world-layer .pb-creature{
  position:absolute;left:var(--creature-left);top:var(--creature-top);
  width:var(--creature-width);height:auto;z-index:4;pointer-events:none;
  transform-origin:50% 45%;opacity:.78;
  filter:drop-shadow(0 8px 9px #00172b44);
  animation:pb-model-swim 10s cubic-bezier(.38,.1,.6,.9) infinite alternate;
}
.pb-world-layer .pb-creature img{display:block;width:100%;height:auto;object-fit:contain;user-select:none}
.pb-world-layer .pb-creature.pb-cruise-reverse{animation-duration:13.5s;animation-delay:-3.2s}
.pb-world-layer .pb-creature.pb-pulse{animation:pb-model-pulse 6.2s ease-in-out infinite alternate;opacity:.66;filter:drop-shadow(0 0 10px #95d8ff44)}
.pb-world-layer .pb-creature.pb-drift{animation:pb-model-drift 11s ease-in-out infinite alternate;opacity:.64}
.pb-zone-the-channel .pb-creature{opacity:.68}
.pb-zone-black-current .pb-creature{opacity:.73}
@keyframes pb-model-swim{0%{transform:translate3d(-15px,3px,0) rotate(-2deg)}45%{transform:translate3d(5px,-5px,0) rotate(1.5deg)}100%{transform:translate3d(25px,1px,0) rotate(-1.5deg)}}
@keyframes pb-model-pulse{0%{transform:translate3d(-4px,6px,0) scale(.96);opacity:.52}100%{transform:translate3d(7px,-13px,0) scale(1.05);opacity:.85}}
@keyframes pb-model-drift{0%{transform:translate3d(-8px,-4px,0) rotate(-3deg)}100%{transform:translate3d(12px,10px,0) rotate(4deg)}}
/* Extra light without replacing or washing out the original starting ocean. */
.pb-zone-the-shelf{background:linear-gradient(180deg,#105b77,#10526f 52%,#0b4167)!important}
.pb-zone-the-channel{background:linear-gradient(180deg,#0b4167,#0d4166 45%,#0a3156)!important}
.pb-zone-jelly-pass{background:linear-gradient(180deg,#0a3156,#0b345c 51%,#092745)!important}
.pb-zone-wreck-water{background:linear-gradient(180deg,#092745,#0a2e4e 50%,#061e39)!important}
.pb-zone-midnight{background:linear-gradient(180deg,#061e39,#082440 52%,#051830)!important}
.pb-zone-the-shelf::after,.pb-zone-the-channel::after{
 background:linear-gradient(101deg,transparent 7%,#b8efff13 14%,transparent 30%,transparent 49%,#b8efff0c 60%,transparent 72%)!important;
 opacity:.72!important;
}
.pb-current-overlay{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none;opacity:clamp(.14,calc(.20 + var(--pb-travel,0) * .42),.69);transition:opacity .28s ease}
.pb-current-overlay i{position:absolute;display:block;top:105%;height:clamp(15px,4vh,45px);width:2px;border-radius:2px;
 background:linear-gradient(180deg,transparent,#b7edff88,transparent);
 animation:pb-water-current 7s linear infinite;filter:blur(.5px);
}
.pb-current-overlay i:nth-child(1){left:9%;animation-duration:8.7s;animation-delay:-4.1s}
.pb-current-overlay i:nth-child(2){left:24%;animation-duration:6.9s;animation-delay:-1.4s}
.pb-current-overlay i:nth-child(3){left:42%;animation-duration:10.2s;animation-delay:-6s}
.pb-current-overlay i:nth-child(4){left:63%;animation-duration:7.5s;animation-delay:-2.9s}
.pb-current-overlay i:nth-child(5){left:81%;animation-duration:9.1s;animation-delay:-5.8s}
.pb-current-overlay i:nth-child(6){left:94%;animation-duration:11.5s;animation-delay:-8.2s}
@keyframes pb-water-current{from{transform:translate3d(-7px,0,0)}to{transform:translate3d(10px,-125vh,0)}}
@media(max-width:600px){.pb-world-layer .pb-creature{max-width:32vw}.pb-current-overlay i:nth-child(2n){display:none}}
@media(prefers-reduced-motion:reduce){.pb-world-layer .pb-creature,.pb-current-overlay i{animation:none!important}.pb-current-overlay{opacity:.1}}

/* v65: keep the copied Phrase Dive opening, but remove duplicated foreground
   foliage and floor silhouettes that flash over the bag on start. */
.game:not(.phrase-mode) .pb-world-opening .seabed,
.game:not(.phrase-mode) .pb-world-opening .scene-kelp,
.game:not(.phrase-mode) .pb-world-opening .scene-coral,
.game:not(.phrase-mode) .pb-world-opening .seaweed,
.game:not(.phrase-mode) .pb-world-opening .coral,
.game:not(.phrase-mode) .pb-world-layer .pb-ledge::after {
  display:none!important; animation:none!important;
}
.game:not(.phrase-mode) .pb-world-opening .ocean-scenery {
  opacity:.55!important;transition:none!important;
}
.game:not(.phrase-mode) .dive-map-world {
  backface-visibility:hidden;transform-style:flat;
}
.game:not(.phrase-mode) .pb-world-layer .pb-creature {
  animation-duration:15s!important;
}
.game:not(.phrase-mode) .pb-current-overlay {
  opacity:.24!important;
}
@media(prefers-reduced-motion:reduce) {
  .game:not(.phrase-mode) .pb-world-layer .pb-creature{animation:none!important}
}

/* v66: the menu exits as a single intentional transition, not multiple
   competing page animations. */
#startOverlay.pb-start-exiting {
  transition:opacity .9s ease,visibility .9s!important;
}
#startOverlay.pb-start-exiting .start-content {
  animation:pb-menu-disperse .9s cubic-bezier(.18,.72,.26,1) both!important;
  pointer-events:none!important;
}
#startOverlay.pb-start-exiting .start-content > *:nth-child(2n) {
  animation:pb-menu-piece-left .88s cubic-bezier(.2,.65,.2,1) both!important;
}
#startOverlay.pb-start-exiting .start-content > *:nth-child(2n+1) {
  animation:pb-menu-piece-right .88s cubic-bezier(.2,.65,.2,1) both!important;
}
@keyframes pb-menu-disperse {
  from{opacity:1;filter:blur(0)}
  to{opacity:0;filter:blur(5px)}
}
@keyframes pb-menu-piece-left {
  from{opacity:1;translate:0 0;rotate:0}
  to{opacity:0;translate:-34px -18px;rotate:-2deg}
}
@keyframes pb-menu-piece-right {
  from{opacity:1;translate:0 0;rotate:0}
  to{opacity:0;translate:34px 22px;rotate:2deg}
}
/* The camera owns the long descent. The bag gets a short tug then recovers
   to its original anchor without the player or camera fighting for transform. */
.game:not(.phrase-mode).pb-guess-pull .player .sprite,
.game:not(.phrase-mode).pb-guess-pull .player.swimming-left .sprite,
.game:not(.phrase-mode).pb-guess-pull .player.swimming-center .sprite,
.game:not(.phrase-mode).pb-guess-pull .player.swimming-right .sprite {
  animation:pb-guess-bag-tug 1.55s cubic-bezier(.15,.75,.25,1) both!important;
}
@keyframes pb-guess-bag-tug {
  0%{translate:0 0;rotate:0deg;scale:1}
  18%{translate:0 31px;rotate:9deg;scale:.93}
  43%{translate:-7px 47px;rotate:-8deg;scale:.90}
  73%{translate:4px 13px;rotate:4deg;scale:.98}
  100%{translate:0 0;rotate:0deg;scale:1}
}
.game:not(.phrase-mode).pb-guess-pull .player-bubbles {
  animation:pb-guess-bubbles 1.65s ease-out both!important;
}
@keyframes pb-guess-bubbles {
  0%{opacity:.6}
  20%{opacity:1}
  100%{opacity:.5}
}
/* Continuous gentle environmental drift, independent from the map's scroll. */
.game:not(.phrase-mode) .pb-world-layer .pb-creature{
  animation-duration:10.5s!important;
}
.game:not(.phrase-mode) .pb-current-overlay {
  opacity:clamp(.16,calc(.22 + var(--pb-travel,0) * .28),.5)!important;
}
@media(prefers-reduced-motion:reduce) {
 #startOverlay.pb-start-exiting .start-content,
 #startOverlay.pb-start-exiting .start-content > *,
 .game:not(.phrase-mode).pb-guess-pull .player .sprite {animation:none!important}
}

/* v67 — One continuous background for the menu, loading, and gameplay.
   The two decorative surface wave strips are hidden in all modes. */
.game .surface,
.game .surface::before,
.game .surface::after,
.game .surface > * {display:none!important;animation:none!important}
/* Opening colors are independent of game state (intro, loading, depth class). */
.game:not(.phrase-mode) .pb-world-opening > .ocean {
  --water-top:#56c6cf!important;
  --water-mid:#228fae!important;
  --water-deep:#125b86!important;
  --abyss:#0b375e!important;
  --surface:#a2e8df!important;
  background:linear-gradient(180deg,#a4dce0 0 16%,#56c6cf 19%,#228fae 43%,#125b86 75%,#0b375e 100%)!important;
  transition:none!important;
  animation:none!important;
}
/* Never crossfade or reinitialize the map when starting a word dive. */
.game:not(.phrase-mode) .dive-map-viewport,
.game:not(.phrase-mode) .dive-map-world,
.game:not(.phrase-mode) .pb-world-opening,
.game:not(.phrase-mode) .pb-world-opening > .ocean {
  opacity:1!important;visibility:visible!important;
  filter:none!important;
}
.game:not(.phrase-mode) .dive-map-world {transition:none!important}

/* v68 — continuous dive motion: two independent motion channels.
   Player wrapper glides around its anchor; sprite twists/rolls inside it.
   This does not reset the map, its colors, or the start screen. */
.game:not(.phrase-mode) .player-track .player,
.game:not(.phrase-mode).intro-closeup .player-track .player {
  animation:pb-adventure-swim 8.6s ease-in-out infinite!important;
  animation-play-state:running!important;
  will-change:translate,rotate;
}
@keyframes pb-adventure-swim {
  0%,100% {translate:0 0;rotate:-2deg}
  15% {translate:12px -15px;rotate:4deg}
  34% {translate:21px 3px;rotate:-5deg}
  53% {translate:-5px 17px;rotate:5deg}
  73% {translate:-19px -3px;rotate:-4deg}
  88% {translate:-8px -15px;rotate:2deg}
}
.game:not(.phrase-mode) .player-track .player .sprite,
.game:not(.phrase-mode).intro-closeup .player-track .player .sprite,
.game:not(.phrase-mode) .player-track .player.swimming-left .sprite,
.game:not(.phrase-mode) .player-track .player.swimming-right .sprite,
.game:not(.phrase-mode) .player-track .player.swimming-center .sprite {
  animation:pb-adventure-bag 3.35s ease-in-out infinite!important;
  transform-origin:50% 18%!important;
  will-change:translate,rotate,scale;
}
@keyframes pb-adventure-bag {
  0%,100% {translate:0 0;rotate:-8deg;scale:.98 1.02}
  22% {translate:3px -7px;rotate:3deg;scale:1.04 .96}
  48% {translate:-2px -12px;rotate:11deg;scale:.96 1.04}
  73% {translate:-5px -4px;rotate:-3deg;scale:1.025 .98}
}
.game:not(.phrase-mode).pb-guess-pull .player-track .player {
  animation:pb-adventure-plunge 3.1s cubic-bezier(.23,.7,.27,1) both!important;
}
@keyframes pb-adventure-plunge {
  0% {translate:0 0;rotate:0deg}
  12% {translate:5px -12px;rotate:-9deg}
  29% {translate:13px 54px;rotate:14deg}
  49% {translate:-12px 90px;rotate:-12deg}
  69% {translate:7px 63px;rotate:8deg}
  86% {translate:-3px 16px;rotate:-3deg}
  100% {translate:0 0;rotate:0deg}
}
.game:not(.phrase-mode).pb-guess-pull .player-track .player .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-left .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-right .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-center .sprite {
  animation:pb-adventure-tumble 3.1s cubic-bezier(.23,.7,.27,1) both!important;
}
@keyframes pb-adventure-tumble {
  0% {translate:0 0;rotate:-8deg;scale:1}
  20% {translate:0 5px;rotate:17deg;scale:.93 1.08}
  46% {translate:0 14px;rotate:-24deg;scale:1.08 .92}
  72% {translate:0 -6px;rotate:12deg;scale:.95 1.05}
  100% {translate:0 0;rotate:-8deg;scale:1}
}
/* Flowing light shafts give depth without adding plants or wave strips. */
.game:not(.phrase-mode) .dive-map-viewport::after {
  content:"";position:absolute;inset:-30% -25%;z-index:5;pointer-events:none;
  background:repeating-linear-gradient(107deg,transparent 0 11%,rgba(166,242,250,.07) 13%,transparent 18% 27%);
  mix-blend-mode:screen;opacity:.36;
  animation:pb-adventure-rays 19s ease-in-out infinite alternate;
}
@keyframes pb-adventure-rays {
  from{transform:translate3d(-3%,0,0) skewX(-4deg);opacity:.21}
  to{transform:translate3d(4%,3%,0) skewX(5deg);opacity:.43}
}
.game:not(.phrase-mode) .player-bubbles .swim-bubble {animation-duration:2.3s!important}
@media(prefers-reduced-motion:reduce) {
  .game:not(.phrase-mode) .player-track .player,
  .game:not(.phrase-mode) .player-track .player .sprite,
  .game:not(.phrase-mode) .dive-map-viewport::after {animation:none!important}
}

/* v69: no decorative stripes in either the menu or game.
   The same ocean is continuously visible in both states. */
.game:not(.phrase-mode) .dive-map-viewport::after,
.game:not(.phrase-mode) .pb-current-overlay,
.game:not(.phrase-mode) .pb-current-overlay *,
.game:not(.phrase-mode) .pb-world-opening .ocean::before,
.game:not(.phrase-mode) .pb-world-opening .ocean::after {
  display:none!important;content:none!important;animation:none!important;
}
/* The sudden 'mountain' is original seabed geometry under the cloned
   opening ocean. Remove it from the persistent map, not just its plants. */
.game:not(.phrase-mode) .pb-world-opening .seabed,
.game:not(.phrase-mode) .pb-world-opening .seabed *,
.game:not(.phrase-mode) .pb-world-opening .ocean-floor,
.game:not(.phrase-mode) .pb-world-opening .sea-floor,
.game:not(.phrase-mode) .pb-world-opening .floor,
.game:not(.phrase-mode) .pb-world-opening .scene-trench,
.game:not(.phrase-mode) .pb-world-opening .scene-rocks,
.game:not(.phrase-mode) .pb-world-opening .rock,
.game:not(.phrase-mode) .pb-world-opening .rocks {
  display:none!important;
}
/* Bag leaps ahead; camera catches up after a short delay. All offsets
   resolve to zero, so the normal free-swim animation continues seamlessly. */
@keyframes pb-adventure-plunge {
  0%{translate:0 0;rotate:0deg}
  12%{translate:4px -10px;rotate:-8deg}
  28%{translate:13px 78px;rotate:12deg}
  46%{translate:-14px 120px;rotate:-12deg}
  67%{translate:9px 80px;rotate:7deg}
  85%{translate:-4px 20px;rotate:-3deg}
  100%{translate:0 0;rotate:0deg}
}

/* v70: remove the REAL sources of the menu-to-game glitches.
   Earlier patches targeted pseudo-elements, but the stripes are actual
   .sun-rays/.water-light nodes and the mountain is .scene-seamount. */
.game:not(.phrase-mode) .sun-rays,
.game:not(.phrase-mode) .water-light,
.game:not(.phrase-mode) .depth-strata,
.game:not(.phrase-mode) .scene-seamount,
.game:not(.phrase-mode) .scene-seamount *,
.game:not(.phrase-mode) .pb-world-opening .sun-rays,
.game:not(.phrase-mode) .pb-world-opening .water-light,
.game:not(.phrase-mode) .pb-world-opening .depth-strata,
.game:not(.phrase-mode) .pb-world-opening .scene-seamount,
.game:not(.phrase-mode) .pb-world-opening .scene-seamount * {
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  animation:none!important;
  transition:none!important;
}
.game:not(.phrase-mode) .dive-map-viewport::before,
.game:not(.phrase-mode) .dive-map-viewport::after,
.game:not(.phrase-mode) .pb-world-opening .ocean::before,
.game:not(.phrase-mode) .pb-world-opening .ocean::after {
  content:none!important;display:none!important;animation:none!important;
}

/* v71: deliberate camera-follow choreography.
   First ~1.2 s: the bag dives rapidly while the camera holds still.
   Then the world scroll accelerates to catch up as the bag returns to frame.
   No new background layers or start-screen decoration. */
.game:not(.phrase-mode).pb-guess-pull .player-track .player {
  animation:pb-bag-outruns-camera 4.1s cubic-bezier(.18,.75,.25,1) both!important;
}
@keyframes pb-bag-outruns-camera {
  0%   {translate:0 0;rotate:0deg}
  9%   {translate:2px -15px;rotate:-9deg}
  23%  {translate:11px 92px;rotate:12deg}
  36%  {translate:-9px 158px;rotate:-13deg}
  49%  {translate:8px 147px;rotate:9deg}
  67%  {translate:-5px 85px;rotate:-5deg}
  84%  {translate:3px 26px;rotate:3deg}
  100% {translate:0 0;rotate:0deg}
}
.game:not(.phrase-mode).pb-guess-pull .player-track .player .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-left .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-right .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-center .sprite {
  animation:pb-bag-dive-tumble 4.1s ease-in-out both!important;
}
@keyframes pb-bag-dive-tumble {
  0%{rotate:-8deg;scale:1}
  24%{rotate:22deg;scale:.9 1.12}
  43%{rotate:-27deg;scale:1.1 .9}
  66%{rotate:13deg;scale:.95 1.05}
  100%{rotate:-8deg;scale:1}
}

/* v76: One restrained animation channel for the original bag.
   Keep the original art, avoid rigid scale/tumble effects. */
.game:not(.phrase-mode) .player-track .player,
.game:not(.phrase-mode).intro-closeup .player-track .player {
  animation:pb76-float 6.8s ease-in-out infinite!important;
}
@keyframes pb76-float {
  0%,100% {translate:0 0;rotate:-3deg}
  25% {translate:8px -10px;rotate:2deg}
  52% {translate:2px -16px;rotate:5deg}
  78% {translate:-9px -6px;rotate:-2deg}
}
.game:not(.phrase-mode) .player-track .player .sprite,
.game:not(.phrase-mode).intro-closeup .player-track .player .sprite,
.game:not(.phrase-mode) .player-track .player.swimming-left .sprite,
.game:not(.phrase-mode) .player-track .player.swimming-right .sprite,
.game:not(.phrase-mode) .player-track .player.swimming-center .sprite {
  animation:pb76-soft-bag 5.2s ease-in-out infinite!important;
}
@keyframes pb76-soft-bag {
  0%,100% {rotate:-4deg;scale:1 1}
  48% {rotate:5deg;scale:1.025 .985}
}
.game:not(.phrase-mode).pb-guess-pull .player-track .player {
  animation:pb76-dive 5.2s cubic-bezier(.22,.65,.3,1) both!important;
}
@keyframes pb76-dive {
  0% {translate:0 0;rotate:-3deg}
  13% {translate:3px 16px;rotate:1deg}
  31% {translate:11px 118px;rotate:8deg}
  47% {translate:5px 152px;rotate:5deg}
  70% {translate:-5px 83px;rotate:-4deg}
  88% {translate:-2px 20px;rotate:-2deg}
  100% {translate:0 0;rotate:-3deg}
}
.game:not(.phrase-mode).pb-guess-pull .player-track .player .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-left .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-right .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-center .sprite {
  animation:pb76-dive-flex 5.2s ease-in-out both!important;
}
@keyframes pb76-dive-flex {
  0%,100% {rotate:-4deg;scale:1 1}
  32% {rotate:7deg;scale:.975 1.045}
  53% {rotate:2deg;scale:1.035 .975}
  78% {rotate:-5deg;scale:.99 1.01}
}
/* Percentage similarity is meaningful only for Phrase Dive. */
.game:not(.phrase-mode) #companionScore {display:none!important}
/* No stripe overlays while the bag and camera are travelling. */
.game.pb-guess-pull .sun-rays,
.game.pb-guess-pull .water-light,
.game.pb-guess-pull .pb-current-overlay,
.game.pb-guess-pull .dive-map-viewport::before,
.game.pb-guess-pull .dive-map-viewport::after {opacity:0!important;visibility:hidden!important}
@media(prefers-reduced-motion:reduce){
 .game:not(.phrase-mode).pb-guess-pull .player-track .player,
 .game:not(.phrase-mode).pb-guess-pull .player-track .player .sprite {animation:none!important}
}

/* v79: responsive, fish-like downward glide; the bag narrows against the current,
   swings to either side, then expands and settles at the destination. */
.game:not(.phrase-mode).pb-guess-pull .player-track .player {
  animation:pb79-fish-dive 5.2s cubic-bezier(.2,.64,.29,1) both!important;
}
@keyframes pb79-fish-dive {
  0% {translate:0 0;rotate:-3deg}
  10% {translate:-7px 24px;rotate:-9deg}
  25% {translate:12px 92px;rotate:11deg}
  43% {translate:-10px 162px;rotate:-10deg}
  59% {translate:13px 135px;rotate:8deg}
  76% {translate:-5px 63px;rotate:-5deg}
  91% {translate:3px 8px;rotate:2deg}
  100% {translate:0 0;rotate:-3deg}
}
.game:not(.phrase-mode).pb-guess-pull .player-track .player .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-left .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-right .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-center .sprite {
  animation:pb79-fish-flex 5.2s ease-in-out both!important;
  transform-origin:50% 24%;
}
@keyframes pb79-fish-flex {
  0%,100% {rotate:-3deg;scale:1 1}
  15% {rotate:7deg;scale:.93 1.08}
  30% {rotate:-8deg;scale:.87 1.16}
  46% {rotate:9deg;scale:.9 1.12}
  62% {rotate:-6deg;scale:1.05 .95}
  80% {rotate:4deg;scale:.97 1.03}
  92% {rotate:-2deg;scale:1.04 .96}
}
/* Depth dash/marker stays invisible until the completed descent callback. */
.game:not(.phrase-mode).pb-guess-pull .depth-landing {opacity:0!important;visibility:hidden!important}
.game:not(.phrase-mode) .descent-speedlines {opacity:0!important;visibility:hidden!important}
#remainingGuesses {display:none!important}
.pb-text-enter {animation:pb79-text-entrance .55s cubic-bezier(.18,.75,.25,1) both}
@keyframes pb79-text-entrance {from{opacity:0;translate:0 9px;filter:blur(3px)}to{opacity:1;translate:0 0;filter:blur(0)}}
@media(prefers-reduced-motion:reduce){.pb-text-enter{animation:none!important}}

/* v80: one entrance animation per clue. Loading dots and word-entering
   must never compete with the older per-element entrance animation. */
.game.word-loading #clueText,
.game.word-switching #clueText {animation:none!important}
.game.word-loading #clueText {opacity:1!important;filter:none!important;translate:none!important}
.game.word-entering #clueText,
.game.word-entering #clueSub,
.game.word-entering #feedback {animation:pb-word-enter .6s cubic-bezier(.2,.75,.25,1) both!important}
.game.word-entering #clueSub {animation-delay:.1s!important}
.game.word-entering #feedback {animation-delay:.16s!important}
.game.word-loading .pb-text-enter,
.game.word-switching .pb-text-enter {animation:none!important}

/* The dashed distance marker swings down from a 70-degree hinge and
   rebounds gently to horizontal only when is-visible is applied on arrival. */
.game.blind-dive .depth-landing .landing-horizontal {
  transform-origin: 4% 50%;
  transform:rotate(-70deg);
  transition:none!important;
}
.game.blind-dive .depth-landing.is-visible .landing-horizontal {
  animation:pb80-depth-hinge .95s cubic-bezier(.22,.72,.22,1) both!important;
}
@keyframes pb80-depth-hinge {
  0% {transform:rotate(-70deg);opacity:0}
  22% {opacity:1}
  68% {transform:rotate(8deg);opacity:1}
  84% {transform:rotate(-3deg)}
  100% {transform:rotate(0deg);opacity:1}
}
@media(prefers-reduced-motion:reduce){
  .game.blind-dive .depth-landing .landing-horizontal,
  .game.blind-dive .depth-landing.is-visible .landing-horizontal {animation:none!important;transform:none!important}
}

/* v81 — menu composition and landing marker cleanup.
   Keep the same in-world bag; only its anchor shifts when the menu exits. */
.game:not(.phrase-mode) .player {
  transition:top 1.45s cubic-bezier(.18,.72,.2,1)!important;
}
.game:not(.phrase-mode) #startOverlay:not(.hidden) ~ .never-used {display:none}
.game:not(.phrase-mode):has(#startOverlay:not(.hidden)) .player {
  top:34%!important;
}
/* Preserve the ocean and bag behind the title, rather than cloning a sprite. */
.game:not(.phrase-mode):has(#startOverlay:not(.hidden)) .player .sprite {
  filter:drop-shadow(0 0 8px #9de9e455);
}
/* Landing dashes swing down once, stay horizontal briefly, then fade away.
   They never rotate back upward when their entrance animation ends. */
.game.blind-dive .depth-landing .landing-horizontal {
  opacity:0;
  transform-origin:4% 50%;
  transform:rotate(-70deg);
  animation:none!important;
}
.game.blind-dive .depth-landing.is-visible .landing-horizontal {
  animation:pb81-land-and-fade 2.65s cubic-bezier(.2,.75,.2,1) both!important;
}
@keyframes pb81-land-and-fade {
  0% {transform:rotate(-70deg);opacity:0}
  12% {opacity:1}
  32% {transform:rotate(4deg);opacity:1}
  42%,73% {transform:rotate(0deg);opacity:1}
  100% {transform:rotate(0deg);opacity:0}
}
@media(prefers-reduced-motion:reduce){
  .game:not(.phrase-mode) .player{transition:none!important}
  .game.blind-dive .depth-landing.is-visible .landing-horizontal{animation:none!important;transform:rotate(0deg);opacity:0}
}

/* v83: The follower zone/temperature label is a Phrase Dive-only feature.
   This overrides legacy !important rules without affecting the depth landing line. */
.game:not(.phrase-mode) > #zoneFollow,
.game.blind-dive > #zoneFollow,
.game:not(.phrase-mode) #companionScore,
.game.blind-dive #companionScore { display:none!important; visibility:hidden!important; }

/* v85 — unified text timing. Only one owner animates each text region. */
.game.word-loading #clueText { animation:pb85-loading-breathe 1.65s ease-in-out infinite!important; opacity:1!important; transform:none!important; translate:none!important; filter:none!important; }
@keyframes pb85-loading-breathe { 0%,100%{opacity:.62} 50%{opacity:1} }
.game.word-switching #clueText,.game.word-switching #clueSub,.game.word-switching #feedback {animation:none!important;opacity:0!important;transform:translateY(-6px)!important;filter:none!important}
.game.word-entering #clueText,.game.word-entering #clueSub,.game.word-entering #feedback {animation:pb85-clue-in .62s cubic-bezier(.2,.8,.22,1) both!important;filter:none!important}
.game.word-entering #clueSub {animation-delay:.09s!important}
.game.word-entering #feedback {animation-delay:.15s!important}
@keyframes pb85-clue-in {from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
/* Prevent generic text effects from overriding depth-landing's own motion. */
.depth-landing .pb-text-enter {animation:none!important}
/* Menu copy appears in a short, legible sequence; it does not replay when gameplay starts. */
@keyframes pb85-menu-enter {from{opacity:0;translate:0 12px;filter:blur(2px)}to{opacity:1;translate:0 0;filter:blur(0)}}
#startOverlay:not(.hidden) .start-kicker {animation:pb85-menu-enter .55s ease-out both}
#startOverlay:not(.hidden) .start-subtitle {animation:pb85-menu-enter .65s .12s ease-out both}
@media(prefers-reduced-motion:reduce){
 .game.word-loading #clueText,.game.word-entering #clueText,.game.word-entering #clueSub,.game.word-entering #feedback,
 #startOverlay:not(.hidden) .start-kicker,#startOverlay:not(.hidden) .start-subtitle {animation:none!important;opacity:1!important;translate:none!important;transform:none!important;filter:none!important}
}



/* v88: once a depth line has faded, no old base-state rule may reveal it.
   Keep the marker horizontal throughout the fade; never swing it back up. */
.game.blind-dive .depth-landing:not(.is-visible) {opacity:0!important;visibility:hidden!important;transition:none!important;}
.game.blind-dive .depth-landing:not(.is-visible) .landing-horizontal {opacity:0!important;animation:none!important;transform:rotate(0deg)!important;}
.game.blind-dive .depth-landing.is-visible {visibility:visible!important;}
.game.blind-dive .depth-landing.is-visible .landing-horizontal {animation:pb88-depth-drop-fade 2.65s cubic-bezier(.2,.75,.2,1) both!important;}
@keyframes pb88-depth-drop-fade {
  0% {transform:rotate(-70deg);opacity:0}
  12% {opacity:1}
  32% {transform:rotate(4deg);opacity:1}
  42%,73% {transform:rotate(0deg);opacity:1}
  100% {transform:rotate(0deg);opacity:0}
}

/* v89: the last dive frame must match the idle transform; no final snap. */
.game:not(.phrase-mode).pb-guess-pull .player-track .player {animation-fill-mode:both!important}
@keyframes pb79-fish-dive {
  0% {translate:0 0;rotate:0deg}
  10% {translate:-7px 24px;rotate:-9deg}
  25% {translate:12px 92px;rotate:11deg}
  43% {translate:-10px 162px;rotate:-10deg}
  59% {translate:13px 135px;rotate:8deg}
  76% {translate:-5px 63px;rotate:-5deg}
  91% {translate:2px 6px;rotate:1deg}
  100% {translate:0 0;rotate:0deg}
}
@keyframes pb79-fish-flex {
  0%,100% {rotate:0deg;scale:1 1}
  15% {rotate:7deg;scale:.93 1.08}
  30% {rotate:-8deg;scale:.87 1.16}
  46% {rotate:9deg;scale:.9 1.12}
  62% {rotate:-6deg;scale:1.05 .95}
  80% {rotate:4deg;scale:.97 1.03}
  92% {rotate:-1deg;scale:1.015 .99}
}
/* On Back/Reset, restore the original ocean and reveal the menu with one sequence. */
#startOverlay.pb-menu-reenter:not(.hidden) .start-content {animation:pb89-menu-return .8s cubic-bezier(.16,.72,.25,1) both!important}
#startOverlay.pb-menu-reenter:not(.hidden) .start-content > * {animation:none!important}
#startOverlay.pb-menu-reenter:not(.hidden) .start-content h1 {animation:pb89-title-return .9s cubic-bezier(.16,.72,.25,1) both!important}
@keyframes pb89-menu-return {from{opacity:0;transform:translateY(22px) scale(.98);filter:blur(6px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes pb89-title-return {from{opacity:0;transform:translateY(-12px);filter:blur(5px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@media(prefers-reduced-motion:reduce){#startOverlay.pb-menu-reenter:not(.hidden) .start-content,#startOverlay.pb-menu-reenter:not(.hidden) .start-content h1{animation:none!important}}

/* v95: make AI errors and retry affordance readable */
#game:not(.word-loading) #clueText[title] { cursor:pointer; text-decoration:underline dotted rgba(140,240,245,.6); text-underline-offset:5px; }

/* v100: the HTML hidden attribute must win over component layout styles.
   Prevents hidden Daily controls and dialogs from being displayed as flex/grid. */
[hidden] { display: none !important; }
/* Specificity guard against legacy .game.blind-dive button display!important. */
.game.blind-dive #revealAnswerButton[hidden] { display: none !important; }

/* Account surface — scoped to the sign-in dialog */
#pbAccountDialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:0;border:1px solid #fff;border-radius:28px;background:linear-gradient(150deg,#f7ffff,#d9f4f4);color:#17495c;box-shadow:0 24px 90px #12667b55;font:15px/1.5 system-ui,sans-serif;text-align:left;isolation:isolate}
#pbAccountDialog *{box-sizing:border-box}#pbAccountDialog[open]{animation:pbAccountIn .55s cubic-bezier(.2,.8,.2,1) both}#pbAccountDialog::backdrop{background:#83d7e255;backdrop-filter:blur(8px);animation:pbAccountFade .4s ease both}#pbAccountDialog.closing{animation:pbAccountOut .25s ease both}#pbAccountDialog.closing::backdrop{animation:pbAccountFade .25s ease reverse both}
#pbAccountDialog .pb-account-hero{position:relative;isolation:isolate;overflow:hidden;padding:26px 24px 32px;min-height:204px;background:radial-gradient(ellipse at 80% 0%,#f8fff5,transparent 60%),linear-gradient(155deg,#d9fff4,#75cfdc);border-bottom:1px solid #fff}
#pbAccountDialog .pb-account-hero>:not(.pb-account-ocean){position:relative;z-index:1}#pbAccountDialog .pb-account-brand,#pbAccountDialog .pb-account-tag{display:block;font:700 10px/1.4 system-ui;letter-spacing:.16em;color:#225d6d}#pbAccountDialog .pb-account-brand{padding-right:42px}#pbAccountDialog .pb-account-tag{margin-top:40px;max-width:65%}#pbAccountDialog h2{font:750 clamp(25px,6vw,34px)/1.12 system-ui;letter-spacing:-.045em;color:#123e50;margin:8px 0;text-transform:none;max-width:72%}#pbAccountDialog #pbAccountIntro{margin:0;color:#28596b;font:14px/1.45 system-ui;max-width:70%}
.pb-account-ocean{position:absolute;inset:0;pointer-events:none;overflow:hidden}.pb-account-ocean svg{position:absolute;right:0;bottom:0;width:34%;height:85%;overflow:visible}.pb-account-bag{transform-origin:75px 85px;animation:pbAccountFloat 5s ease-in-out infinite}.pb-account-rays{position:absolute;inset:-70% -20% 0;background:repeating-linear-gradient(112deg,transparent 0 13%,#fff7 16%,transparent 23%);transform-origin:70% 0;animation:pbAccountRays 12s ease-in-out infinite alternate}.pb-account-bubble{position:absolute;bottom:-25px;left:var(--x);width:var(--s);height:var(--s);border:1px solid #ffffffcc;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff9,transparent 50%);animation:pbAccountBubble var(--t) var(--d) linear infinite}
#pbAccountDialog .pb-account-body{padding:23px 24px 24px}#pbAccountDialog[open] .pb-account-body{animation:pbAccountBody .55s .08s both}#pbAccountDialog #pbAccountMsg{margin:0 0 16px;color:#315f70;overflow-wrap:anywhere;font:14px/1.5 system-ui}#pbAccountDialog label{display:block;color:#285d68;font:700 11px/1.4 system-ui;letter-spacing:.12em;margin:14px 0 7px}#pbAccountDialog input,#pbAccountDialog button{width:100%;min-height:48px;border-radius:13px;font:600 15px/1.3 system-ui;margin:0 0 10px;padding:12px 14px;box-shadow:none;text-transform:none;letter-spacing:normal;transition:background .22s,box-shadow .22s,transform .22s}#pbAccountDialog input{background:#fff;border:1px solid #9bcbd3;color:#123e50;outline:none}#pbAccountDialog input:focus{border-color:#167e89;box-shadow:0 0 0 4px #167e8922}#pbAccountDialog input::placeholder{color:#587b87}#pbAccountDialog button{background:#176d79;color:#fff;border:1px solid #176d79;cursor:pointer;text-align:center}#pbAccountDialog button:hover:not(:disabled){background:#105461;transform:translateY(-2px)}#pbAccountDialog button:disabled{opacity:.6;cursor:wait}#pbAccountDialog button:focus-visible{outline:3px solid #126b71;outline-offset:3px}#pbAccountDialog #pbAccountClose{position:absolute;top:14px;right:14px;width:39px;min-height:39px;height:39px;border-radius:50%;padding:0;margin:0;background:#ffffffbb;color:#164e60;border:1px solid #fff;font:25px/1 system-ui;z-index:3}#pbAccountDialog #pbAccountCode{text-align:center;font:26px/1.3 monospace;letter-spacing:8px}#pbAccountDialog .pb-account-foot{margin:8px 0 0;color:#426c7d;text-align:center;font:12px/1.5 system-ui}#pbAccountDialog [hidden]{display:none!important}
@keyframes pbAccountIn{from{opacity:0;transform:translateY(35px) scale(.96)}to{opacity:1;transform:none}}@keyframes pbAccountOut{to{opacity:0;transform:translateY(20px) scale(.98)}}@keyframes pbAccountFade{from{opacity:0}to{opacity:1}}@keyframes pbAccountBody{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes pbAccountFloat{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-12px) rotate(7deg)}}@keyframes pbAccountRays{to{transform:rotate(9deg) translateX(4%)}}@keyframes pbAccountBubble{0%{transform:translate(0,0);opacity:0}15%,75%{opacity:.8}100%{transform:translate(18px,-235px);opacity:0}}@media(prefers-reduced-motion:reduce){#pbAccountDialog,#pbAccountDialog *,#pbAccountDialog::backdrop{animation:none!important;transition:none!important}}
/* Deep ocean polish — preserve existing map and camera geometry. */
.pb-zone-the-shelf{background:linear-gradient(180deg,#12394b,#102c40 58%,#0b2136)!important}
.pb-zone-the-channel{background:linear-gradient(180deg,#0b2136,#0c263d 50%,#091b31)!important}
.pb-zone-jelly-pass{background:linear-gradient(180deg,#091b31,#0c2038 50%,#071529)!important}
.pb-zone-wreck-water{background:linear-gradient(180deg,#071529,#0a1a2d 50%,#050f20)!important}
.pb-zone-midnight{background:linear-gradient(180deg,#050f20,#071425 52%,#040b19)!important}
.pb-zone-abyss-wall{background:linear-gradient(180deg,#040b19,#071021 52%,#030915)!important}
.pb-zone-black-current{background:linear-gradient(180deg,#030915,#050d1a 55%,#020610)!important}
.pb-zone-open-dark{background:linear-gradient(180deg,#020610,#040a15 55%,#02050d)!important}
.pb-world-layer .pb-creature{filter:brightness(.78) saturate(.82);}
.pb-world-layer .pb-motes i{box-shadow:0 0 6px #9dd4ed45;}
.game:not(.phrase-mode).pb-guess-pull .player-track .player{animation:pbDeepDive 2.2s ease-in-out both!important}
.game:not(.phrase-mode).pb-guess-pull .player-track .player .sprite{animation:pb79-fish-flex 2.2s ease-in-out both!important}
@keyframes pbDeepDive{0%,100%{translate:0 0;rotate:0deg} 24%{translate:-5px 55px;rotate:-5deg} 48%{translate:6px 94px;rotate:4deg} 76%{translate:-2px 34px;rotate:-2deg}}
.game.blind-dive .depth-landing.is-visible .landing-horizontal{height:2px!important;background:repeating-linear-gradient(90deg,#a7deecb0 0 9px,transparent 9px 17px)!important;animation:pbDepthTrace 1.5s ease both!important;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
@keyframes pbDepthTrace{0%{opacity:0;transform:scaleX(.45)}25%,72%{opacity:1;transform:scaleX(1)}100%{opacity:0;transform:scaleX(1)}}
.game.word-entering #clueText,.game.word-entering #clueSub,.game.word-entering #feedback{animation:pbDeepText .44s cubic-bezier(.2,.7,.25,1) both!important}
.game.word-entering #clueSub{animation-delay:.06s!important}.game.word-entering #feedback{animation-delay:.1s!important}
@keyframes pbDeepText{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
#clueSub.pb-text-enter,#feedback.pb-text-enter{animation:pbDeepText .33s ease-out both!important}
.game.pb-scoring #feedback{animation:pb85-loading-breathe 1.3s ease-in-out infinite!important}
.game.word-loading #clueText{animation:pb85-loading-breathe 1.3s ease-in-out infinite!important}
@media(prefers-reduced-motion:reduce){.game:not(.phrase-mode).pb-guess-pull .player-track .player,.game:not(.phrase-mode).pb-guess-pull .player-track .player .sprite,.game.blind-dive .depth-landing.is-visible .landing-horizontal,.game.word-entering #clueText,.game.word-entering #clueSub,.game.word-entering #feedback,.game.pb-scoring #feedback,.game.word-loading #clueText,#clueSub.pb-text-enter,#feedback.pb-text-enter{animation:none!important;opacity:1!important;transform:none!important}}
#startOverlay [hidden],#pbShop [hidden]{display:none!important}#startOverlay .category-picker{display:none!important}#startOverlay .start-content{gap:clamp(8px,1.5vh,16px)}

/* Coordinated dive: one motion owner per element; short horizontal marker. */
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-left .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-right .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-center .sprite {animation:pb79-fish-flex 2.2s ease-in-out both!important}
.game.blind-dive .depth-landing.is-visible .landing-horizontal {transform:rotate(0deg);transform-origin:left center;mask-image:none;animation:pbTraceRetract 1.25s ease-in-out both!important}
@keyframes pbTraceRetract {0%{clip-path:inset(0 100% 0 0);opacity:0;transform:rotate(0deg)}30%,66%{clip-path:inset(0 0 0 0);opacity:1;transform:rotate(0deg)}100%{clip-path:inset(0 100% 0 0);opacity:0;transform:rotate(0deg)}}
.game.blind-dive .depth-landing.is-visible .landing-result{animation:small-score-reveal 1.25s ease both!important}
.game.pb-guess-pull #feedback,.game.pb-guess-pull #clueSub{animation:none!important}
@media(prefers-reduced-motion:reduce){.game:not(.phrase-mode).pb-guess-pull .player-track .player .sprite,.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-left .sprite,.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-right .sprite,.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-center .sprite,.game.blind-dive .depth-landing.is-visible .landing-horizontal,.game.blind-dive .depth-landing.is-visible .landing-result{animation:none!important;clip-path:none;opacity:1;transform:none!important}}

/* Abyss polish: one descent, one result, then the next clue. */
.game:not(.phrase-mode).pb-guess-pull .player-track .player{animation:pbAbyssGlide 3.1s ease-in-out both!important}
@keyframes pbAbyssGlide{0%,100%{translate:0 0;rotate:-3deg}20%{translate:3px 32px;rotate:1deg}46%{translate:8px 85px;rotate:5deg}72%{translate:-3px 38px;rotate:-2deg}90%{translate:0 5px;rotate:-3deg}}
.game:not(.phrase-mode).pb-guess-pull .player-track .player .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-left .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-right .sprite,
.game:not(.phrase-mode).pb-guess-pull .player-track .player.swimming-center .sprite{animation:pbAbyssFlex 3.1s ease-in-out both!important}
@keyframes pbAbyssFlex{0%,100%{rotate:-4deg;scale:1 1}36%{rotate:3deg;scale:.94 1.09}68%{rotate:-2deg;scale:1.025 .985}}
.game.blind-dive .depth-landing.is-visible .landing-horizontal{animation:pbAbyssTrace 2.8s linear both!important;transform:none!important;filter:drop-shadow(0 0 4px #a2e6ec66);background:repeating-linear-gradient(90deg,#bde9e9 0 10px,transparent 10px 18px)!important}
@keyframes pbAbyssTrace{0%{clip-path:inset(0 100% 0 0);opacity:1}17%,82%{clip-path:inset(0 0 0 0);opacity:1}100%{clip-path:inset(0 100% 0 0);opacity:1}}
.game.blind-dive .depth-landing.is-visible .landing-result,.game.blind-dive .depth-landing.is-visible .landing-line-caption{animation:pbAbyssRead 2.8s ease both!important}
@keyframes pbAbyssRead{0%,14%{opacity:0}25%,78%{opacity:1}96%,100%{opacity:0}}
.game.blind-dive .depth-landing .landing-result>strong{font-size:clamp(22px,3vw,32px);color:#dcf6f3!important}
.game.pb-guess-pull #clueText,.game.pb-guess-pull #clueLabel,.game.pb-guess-pull #clueSub,.game.pb-guess-pull #feedback{animation:none!important;transition:none!important}
/* Persistent optical layers: no flashing when the dive class changes. */
.game:not(.phrase-mode) .dive-map-viewport::after,
.game:not(.phrase-mode).pb-guess-pull .dive-map-viewport::after{content:""!important;display:block!important;position:absolute;inset:0;pointer-events:none;z-index:4;visibility:visible!important;opacity:1!important;animation:none!important;transition:none!important;background:radial-gradient(ellipse at 50% 38%,transparent 22%,#02081440 68%,#01040cb0 100%),linear-gradient(180deg,#071a3020,transparent 42%,#01081165)!important}
.game:not(.phrase-mode) .pb-world-opening > .ocean{--water-top:#3c8294!important;--water-mid:#19556e!important;--water-deep:#10364e!important;--abyss:#12394b!important;background:linear-gradient(180deg,#80b2bd 0%,#4b8e9f 14%,#245d75 28%,#123b54 70%,#12394b 100%)!important}
.pb-world-layer::before{opacity:.85!important;background:radial-gradient(ellipse at 35% 18%,#86dce51d,transparent 55%),radial-gradient(ellipse at 82% 68%,#3d81951a,transparent 62%)!important}
.pb-world-layer .pb-motes i{background:#bceff5;box-shadow:0 0 7px #93d9e54a;opacity:.24}
.pb-world-layer .pb-creature img{filter:drop-shadow(0 0 7px #6ac8da23)}
@media(prefers-reduced-motion:reduce){.game:not(.phrase-mode).pb-guess-pull .player-track .player,.game:not(.phrase-mode).pb-guess-pull .player-track .player .sprite,.game.blind-dive .depth-landing.is-visible .landing-horizontal,.game.blind-dive .depth-landing.is-visible .landing-result,.game.blind-dive .depth-landing.is-visible .landing-line-caption{animation:none!important;clip-path:none!important;opacity:1!important}}

/* Rank stamp: isolated from swimmer and camera transforms. */
.game.blind-dive .depth-landing.rank-impact{--rank-ink:#d5faff;width:clamp(235px,42vw,470px);max-width:calc(100vw - 62px);z-index:36;transition:none!important}
.depth-landing.rank-impact[data-rank="A"]{--rank-ink:#a2ffcf!important}
.depth-landing.rank-impact[data-rank="B"]{--rank-ink:#c5f788!important}
.depth-landing.rank-impact[data-rank="C"]{--rank-ink:#f5ee88!important}
.depth-landing.rank-impact[data-rank="D"]{--rank-ink:#ffd68a!important}
.depth-landing.rank-impact[data-rank="E"]{--rank-ink:#ffb37e!important}
.depth-landing.rank-impact[data-rank="F"]{--rank-ink:#ff938b!important}
.depth-landing.rank-impact[data-rank="G"]{--rank-ink:#f17c9b!important}
.depth-landing.rank-impact[data-rank="H"]{--rank-ink:#c2afd6!important}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-horizontal{height:3px!important;background:repeating-linear-gradient(90deg,var(--rank-ink) 0 16px,transparent 16px 23px)!important;animation:pbRankLine 3.2s linear both!important;filter:drop-shadow(0 0 5px var(--rank-ink));mask-image:none!important}
.game.blind-dive .depth-landing.rank-impact .landing-line-caption{font-size:9px;top:-18px;color:#e4faff;letter-spacing:.08em}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-line-caption{animation:pbRankMeta 3.2s linear both!important}
.game.blind-dive .depth-landing.rank-impact .landing-result{top:9px;gap:12px;max-width:100%;transition:none!important;overflow:visible}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result{animation:pbRankMeta 3.2s linear both!important}
.game.blind-dive .depth-landing.rank-impact .landing-result>strong{font:bold clamp(54px,8vw,90px)/.9 'VT323',monospace;color:var(--rank-ink)!important;letter-spacing:0;text-shadow:3px 4px 0 #031523,0 0 16px var(--rank-ink);transform-origin:center;display:block}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result>strong{animation:pbRankStamp 3.2s linear both!important}
.game.blind-dive .depth-landing.rank-impact .landing-result>span,.game.blind-dive .depth-landing.rank-impact .landing-result>small{font:clamp(8px,1vw,11px) 'Press Start 2P',monospace;color:#e2f8ff}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result::after{content:"";position:absolute;left:50%;top:50%;width:42px;height:42px;border:2px solid var(--rank-ink);transform:translate(-50%,-50%) rotate(45deg);animation:pbRankShock 3.2s linear both;pointer-events:none}
@keyframes pbRankLine{0%{clip-path:inset(-23px 100% -8px 0)}7%,88%{clip-path:inset(-23px 0 -8px 0)}100%{clip-path:inset(-23px 0 -8px 100%)}}
@keyframes pbRankMeta{0%,5%{opacity:0}9%,87%{opacity:1}94%,100%{opacity:0}}
@keyframes pbRankStamp{0%,6%{opacity:0;transform:scale(1.85) rotate(-8deg)}8%{opacity:1;transform:scale(.88) rotate(3deg)}11%{transform:scale(1.12) rotate(-2deg)}15%,86%{opacity:1;transform:scale(1) rotate(0)}94%,100%{opacity:0;transform:scale(.96)}}
@keyframes pbRankShock{0%,7%{opacity:0;scale:.7}8%{opacity:.65;scale:.8}19%,100%{opacity:0;scale:2.3}}
@media(max-width:640px){.game.blind-dive .depth-landing.rank-impact .landing-result{gap:8px}.game.blind-dive .depth-landing.rank-impact .landing-result>strong{font-size:58px}.game.blind-dive .depth-landing.rank-impact .landing-result>span{max-width:85px}}
@media(prefers-reduced-motion:reduce){.game.blind-dive .depth-landing.rank-impact.is-visible .landing-horizontal,.game.blind-dive .depth-landing.rank-impact.is-visible .landing-line-caption,.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result,.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result>strong{animation:none!important;clip-path:none!important;opacity:1!important}.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result::after{display:none}}


/* Cinematic rank: one timeline, no nested grade animation. */
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-horizontal{animation:pbCinemaLine 3.2s linear both!important;transform:none!important;filter:none!important;mask-image:none!important}
.game.blind-dive .depth-landing.rank-impact .landing-horizontal::before{display:none!important}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-line-caption{animation:pbCinemaCaption 3.2s linear both!important;filter:none!important}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result{animation:pbCinemaResult 3.2s linear both!important;transform:translateX(-50%)!important;transition:none!important}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result>strong{animation:none!important;transform:none;translate:none!important;scale:none!important;font:normal clamp(40px,6.3vw,66px)/.9 'VT323',monospace;letter-spacing:0;text-shadow:0 3px 9px #00111d!important}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result::after{display:none!important;content:none!important}
@keyframes pbCinemaLine{0%{clip-path:inset(-28px 100% -12px 0);translate:0 -4px;opacity:1;animation-timing-function:cubic-bezier(.12,.85,.2,1)} 11%{clip-path:inset(-28px 0 -12px 0);translate:0 0;opacity:1} 83%{clip-path:inset(-28px 0 -12px 0);translate:0 5px;opacity:1;animation-timing-function:cubic-bezier(.5,0,.8,.4)} 100%{clip-path:inset(-28px 0 -12px 100%);translate:0 17px;opacity:0}}
@keyframes pbCinemaCaption{0%,3%{opacity:0} 11%,83%{opacity:1} 100%{opacity:0}}
@keyframes pbCinemaResult{0%,12%{opacity:0;translate:0 -32px;filter:blur(4px);animation-timing-function:cubic-bezier(.12,.85,.22,1)} 26%{opacity:1;translate:0 -2px;filter:blur(0)} 80%{opacity:1;translate:0 7px;filter:blur(0);animation-timing-function:cubic-bezier(.45,0,.8,.6)} 100%{opacity:0;translate:0 40px;filter:blur(3px)}}
.game.word-entering #clueText,.game.word-entering #clueSub,.game.word-entering #feedback{animation:pbCinemaClue .48s cubic-bezier(.12,.82,.22,1) both!important}
@keyframes pbCinemaClue{from{opacity:0;translate:0 -13px;filter:blur(2px)}to{opacity:1;translate:0 0;filter:blur(0)}}
@media(prefers-reduced-motion:reduce){.game.blind-dive .depth-landing.rank-impact.is-visible .landing-horizontal,.game.blind-dive .depth-landing.rank-impact.is-visible .landing-line-caption,.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result,.game.word-entering #clueText,.game.word-entering #clueSub,.game.word-entering #feedback{animation:none!important;clip-path:none!important;translate:none!important;filter:none!important;opacity:1!important}}
/* Offline retro coastal art direction. Existing world dimensions and camera remain intact. */
#startOverlay:not(.hidden){background:#071322 url('assets/retro-coast.svg') center/100% 100% no-repeat!important;backdrop-filter:none!important;overflow:auto}
#startOverlay:not(.hidden) .start-content{width:min(620px,92vw)!important;height:100%;min-height:475px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:9px!important;padding:12px 12px clamp(42px,7vh,78px)!important;transform:none!important}
#startOverlay:not(.hidden) .start-content h1{position:absolute;top:22%;margin:0!important;font-size:clamp(45px,8vw,100px)!important;line-height:.85!important;letter-spacing:.06em!important;color:#12384b!important;text-shadow:3px 3px 0 #f0f7ed!important}
#startOverlay:not(.hidden) .start-content h1 span{color:#146a82!important}
#startOverlay:not(.hidden) .start-subtitle{position:absolute;top:43%;display:block!important;color:#234b60!important;font:clamp(14px,2vw,22px)/1.3 'VT323',monospace!important;letter-spacing:.09em!important;margin:0!important}
#startOverlay:not(.hidden) #beginButton,#startOverlay:not(.hidden) #pbShopOpen,#startOverlay:not(.hidden) #pbExtraOpen{display:flex;align-items:center;justify-content:center;width:min(100%,480px);border:2px solid #75d8eb!important;border-radius:0!important;background:#11243a!important;color:#e6f3f9!important;box-shadow:inset 0 0 0 3px #081521,4px 4px 0 #050c16!important;font:clamp(19px,2.5vw,27px)/1.1 'VT323',monospace!important;letter-spacing:.09em;padding:15px 12px!important;margin:0!important;min-height:52px;transition:background .15s,transform .15s!important}
#startOverlay:not(.hidden) #pbShopOpen,#startOverlay:not(.hidden) #pbExtraOpen{width:min(100%,320px);min-height:38px;font-size:18px!important;border-color:#477b90!important;padding:8px!important}
#startOverlay:not(.hidden) #beginButton:hover,#startOverlay:not(.hidden) #pbShopOpen:hover{background:#1d4057!important;transform:translateY(-2px)!important}
#startOverlay:not(.hidden) #connectionStatus,#startOverlay:not(.hidden) .daily-menu-note{color:#a6c8d9!important;font:15px 'VT323',monospace!important;max-width:100%;margin:0!important}
#startOverlay:not(.hidden) .annoying-prawn{opacity:.75}
.game:not(.phrase-mode) .pb-world-opening > .ocean{background:linear-gradient(180deg,#aacbd8 0 13%,#245a7f 13.2%,#173e60 32%,#0b253c 65%,#0b2136 100%)!important}
.game:not(.phrase-mode) .pb-world-opening .sky{background:linear-gradient(#8bbcd1,#d3e4e4)!important;bottom:87%!important}
.game:not(.phrase-mode) .pb-world-layer{background-image:linear-gradient(180deg,var(--retro-top,#0b2136),var(--retro-bottom,#081725))!important}
.pb-zone-the-channel{--retro-top:#081725;--retro-bottom:#071423}.pb-zone-jelly-pass{--retro-top:#071423;--retro-bottom:#06111f}.pb-zone-wreck-water{--retro-top:#06111f;--retro-bottom:#050e1a}.pb-zone-midnight{--retro-top:#050e1a;--retro-bottom:#040b16}.pb-zone-abyss-wall{--retro-top:#040b16;--retro-bottom:#030914}.pb-zone-black-current{--retro-top:#030914;--retro-bottom:#020710}.pb-zone-open-dark{--retro-top:#020710;--retro-bottom:#02050d}
.game .hud-button,.game .input-shell,.game .input-shell button,.game .console{border-radius:0!important;box-shadow:none!important;border-color:#487a90!important}
.game .hud-button,.game .input-shell button{background:#10263b!important;color:#ddf4fa!important}
.game .console{background:#091a2be8!important}.game .input-shell{background:#071522!important}
@media(max-height:600px){#startOverlay:not(.hidden) .start-content h1{top:15%;font-size:54px!important}#startOverlay:not(.hidden) .start-subtitle{top:37%}#startOverlay:not(.hidden) .start-content{padding-bottom:32px!important}}

/* Shared retro world: menu is UI only, never a separate painted backdrop. */
#startOverlay,#startOverlay:not(.hidden){background:transparent!important;backdrop-filter:none!important}
.game:not(.phrase-mode) .dive-map-world{background:#030912!important;width:calc(100% + 16px)!important;left:-8px!important}
.game:not(.phrase-mode) .pb-world-opening.retro-world-surface{background:#060e1a url('assets/retro-coast.svg') center/100% 100% no-repeat!important}
.game:not(.phrase-mode) .pb-world-layer.retro-world-zone{background:linear-gradient(180deg,var(--r1),var(--r2))!important;filter:none!important;isolation:isolate}
.retro-zone-0{--r1:#060e1a;--r2:#0a2032}.retro-zone-1{--r1:#0a2032;--r2:#091b2b}.retro-zone-2{--r1:#091b2b;--r2:#071725}.retro-zone-3{--r1:#071725;--r2:#06121f}.retro-zone-4{--r1:#06121f;--r2:#050e1a}.retro-zone-5{--r1:#050e1a;--r2:#040c16}.retro-zone-6{--r1:#040c16;--r2:#030912}.retro-zone-7{--r1:#030912;--r2:#02070e}
.game:not(.phrase-mode) .retro-world-zone::before,.game:not(.phrase-mode) .retro-world-zone::after,.game:not(.phrase-mode) .pb-current-overlay{display:none!important}
.game:not(.phrase-mode) .dive-map-viewport::before{display:none!important}
.game:not(.phrase-mode) .dive-map-viewport::after,.game:not(.phrase-mode).pb-guess-pull .dive-map-viewport::after{content:""!important;display:block!important;position:absolute;inset:0;z-index:5;pointer-events:none;background:repeating-linear-gradient(180deg,transparent 0 2px,#06121c18 2px 3px)!important;opacity:1!important;visibility:visible!important;animation:none!important;filter:none!important;transition:none!important}
.retro-speck{position:absolute;width:var(--s);height:var(--s);background:#91b8c5;opacity:.22;animation:retro-speck-drift 16s var(--delay) linear infinite;pointer-events:none}
.retro-life{position:absolute;height:auto;image-rendering:pixelated;opacity:.74;animation:retro-life-drift var(--period) var(--delay) ease-in-out infinite alternate;pointer-events:none}
.retro-rock{position:absolute;bottom:0;left:0;width:23%;height:30%;background:#050e19;clip-path:polygon(0 0,23% 0,23% 13%,42% 13%,42% 29%,64% 29%,64% 48%,81% 48%,81% 67%,100% 67%,100% 100%,0 100%);opacity:.65}
.retro-rock.right{left:auto;right:0;transform:scaleX(-1)}
@keyframes retro-speck-drift{0%{transform:translate(0,12px)}100%{transform:translate(8px,-12px)}}
@keyframes retro-life-drift{from{transform:translate(-12px,4px)}to{transform:translate(22px,-7px)}}
.game:not(.phrase-mode):has(#startOverlay:not(.hidden)) .player-track .player{top:64%!important}
@media(prefers-reduced-motion:reduce){.retro-life,.retro-speck{animation:none!important}}

/* Cohesive pixel environment: world-anchored strata, clear swim corridor. */
.game:not(.phrase-mode) .pb-world-layer.retro-world-zone{background-image:var(--terrain),linear-gradient(180deg,var(--r1),var(--r2))!important;background-size:100% 100%!important;background-repeat:no-repeat!important}
.game:not(.phrase-mode) .dive-map-viewport::before,.game:not(.phrase-mode).pb-guess-pull .dive-map-viewport::before{content:""!important;display:block!important;position:absolute;inset:0;pointer-events:none;z-index:4;visibility:visible!important;opacity:var(--lantern-dark,0)!important;animation:none!important;transition:none!important;background:radial-gradient(circle at var(--lantern-x,50%) var(--lantern-y,39%),transparent 0,transparent calc(var(--lantern-radius,220px)*.34),#02081344 calc(var(--lantern-radius,220px)*.7),#020813ac var(--lantern-radius,220px),#01050ece calc(var(--lantern-radius,220px)*1.65))!important}
.game:has(#startOverlay:not(.hidden)) .dive-map-viewport::before{opacity:0!important}
.retro-life{opacity:.5;filter:none!important}.retro-speck{opacity:.18}

/* Progressive ocean: matched section boundaries, no double-darkening. */
.game:not(.phrase-mode) .pb-world-layer.retro-world-zone{background-image:var(--terrain),linear-gradient(180deg,var(--r1) 0%,var(--r2) 100%)!important;}
.game:not(.phrase-mode) .retro-world-surface{background-color:#183d5a!important}
.game:not(.phrase-mode) .dive-map-viewport::before,.game:not(.phrase-mode).pb-guess-pull .dive-map-viewport::before{background:radial-gradient(circle at var(--lantern-x,50%) var(--lantern-y,39%),#69b2ce12 0%,transparent calc(var(--lantern-radius,220px)*.45),#01071055 calc(var(--lantern-radius,220px)*1.25),#010710a0 calc(var(--lantern-radius,220px)*2.5))!important}
.retro-life{opacity:.65}.retro-zone-3 .retro-life,.retro-zone-4 .retro-life{opacity:.53}.retro-zone-5 .retro-life,.retro-zone-6 .retro-life,.retro-zone-7 .retro-life{opacity:.72}

/* Pixel kelp and rock shelves, fixed in world space. */
.reef-shelf{position:absolute;height:5%;background:#11283b;clip-path:polygon(0 30%,12% 30%,12% 17%,35% 17%,35% 0,60% 0,60% 24%,83% 24%,83% 50%,100% 50%,100% 100%,0 100%);opacity:var(--reef-opacity);pointer-events:none;z-index:0}
.reef-growth{position:absolute;object-fit:fill;image-rendering:pixelated;transform-origin:50% 100%;opacity:var(--plant-opacity);z-index:1;pointer-events:none;animation:reef-current var(--sway) var(--phase) ease-in-out infinite alternate}
@keyframes reef-current{from{transform:skewX(-2deg)}to{transform:skewX(3deg)}}
.retro-zone-0 .reef-shelf,.retro-zone-1 .reef-shelf{background:#163d4c}.retro-zone-5 .reef-shelf,.retro-zone-6 .reef-shelf,.retro-zone-7 .reef-shelf{background:#122032}
@media(prefers-reduced-motion:reduce){.reef-growth{animation:none}}

/* Distinct offline biomes */
.game:not(.phrase-mode) .retro-world-zone{image-rendering:pixelated}.vent-plume{position:absolute;width:5px;height:5px;background:#78999a;opacity:0;pointer-events:none;animation:vent-rise 5s var(--delay) linear infinite}@keyframes vent-rise{0%{opacity:0;transform:translate(0,0)}20%{opacity:.45}100%{opacity:0;transform:translate(12px,-110px)}}@media(prefers-reduced-motion:reduce){.vent-plume{animation:none}}

/* Forgotten Ocean: original pixel scenery, shared camera and gameplay. */
.game:not(.phrase-mode) .pb-world-opening.retro-world-surface,.game:not(.phrase-mode) .pb-world-layer.retro-world-zone{background:#102b32 var(--forgotten) center/100% 100% no-repeat!important;image-rendering:pixelated!important}
.game:not(.phrase-mode) .dive-map-viewport::after,.game:not(.phrase-mode).pb-guess-pull .dive-map-viewport::after{background:none!important;opacity:0!important}
#startOverlay:not(.hidden) .start-content h1,#startOverlay:not(.hidden) .start-content h1 span{color:#d7e3c8!important;text-shadow:2px 3px #183d40!important}
#startOverlay:not(.hidden) .start-subtitle{color:#d0dfcc!important;text-shadow:1px 2px #173a3e}
#startOverlay:not(.hidden) #beginButton,#startOverlay:not(.hidden) #pbShopOpen,#startOverlay:not(.hidden) #pbExtraOpen{border-color:#668d80!important;background:#173c40!important;color:#e3e7d4!important;box-shadow:inset 0 0 0 2px #254f4f,3px 4px #10282d!important;border-radius:3px!important}


/* Hard rank hit: no opacity interpolation, no changes to player motion. */
.game.blind-dive .depth-landing.rank-impact,.game.blind-dive .depth-landing.rank-impact.is-visible{transition:none!important}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result{animation:pbHardRankVisibility 3.2s steps(1,end) both!important;filter:none!important;translate:none!important;opacity:1!important}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result>strong{animation:pbHardRankHit 3.2s linear both!important;opacity:1!important;transform-origin:center;filter:none!important;font:normal clamp(40px,6.3vw,66px)/.9 'VT323',monospace!important}
@keyframes pbHardRankVisibility{0%{visibility:hidden}10%{visibility:visible}94%,100%{visibility:hidden}}
@keyframes pbHardRankHit{0%,10%{transform:scale(2.4)} 15%{transform:scale(.91);animation-timing-function:ease-out}19%{transform:scale(1.05)}23%,100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result,.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result>strong{animation:none!important;visibility:visible!important;opacity:1!important;filter:none!important}.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result>strong{transform:none!important}}

/* Grade-coloured wake: independent of the bag's existing transforms. */
.pb-rank-wake{position:absolute;inset:0;pointer-events:none;z-index:-1;animation:pbWakeEnvelope 3.25s linear both;}
.pb-rank-wake::before{content:"";position:absolute;left:50%;top:50%;width:150px;height:150px;transform:translate(-50%,-50%);background:radial-gradient(circle,color-mix(in srgb,var(--wake-colour) 35%,transparent),transparent 67%);opacity:var(--wake-strength)}
.pb-rank-wake i{position:absolute;left:50%;top:50%;width:var(--size);height:var(--size);background:var(--wake-colour);box-shadow:0 0 6px var(--wake-colour);animation:pbWakeSpark .95s linear infinite;animation-delay:var(--delay)}
@keyframes pbWakeSpark{0%{transform:translate(0,0);opacity:.8}100%{transform:translate(var(--dx),var(--dy));opacity:0}}
@keyframes pbWakeEnvelope{0%{opacity:0}12%,65%{opacity:1}100%{opacity:0}}
.game.pb-surfacing .player-track .player{top:var(--rise-top,46%)!important;left:var(--rise-x,50%)!important;transition:none!important;animation:none!important;transform:translate3d(-50%,-50%,0)!important}
.game.pb-surfacing .player .sprite{animation:pbRiseFlex 1.25s ease-in-out infinite!important}
@keyframes pbRiseFlex{0%,100%{transform:rotate(-8deg) scale(.93,1.08)}50%{transform:rotate(8deg) scale(1.03,.98)}}
.game.pb-surfacing .clue-area,.game.pb-surfacing .depth-landing{visibility:hidden!important;pointer-events:none!important}
@media(prefers-reduced-motion:reduce){.pb-rank-wake{display:none}}

/* Particle-only wake, no emitted light. Independent console and surface motion. */
.pb-rank-wake::before{display:none!important;content:none!important}
.pb-rank-wake{z-index:1;overflow:visible;animation:pbWakeEnvelope 3.25s linear both}
.pb-rank-wake i{box-shadow:none!important;animation-duration:1.25s;image-rendering:pixelated}
.pb-rank-wake i:nth-child(3n){height:calc(var(--size)*3);width:calc(var(--size)*.65)}
.game:not(.phrase-mode).pb-surfacing .player-track .player{animation:pb76-float 6.8s ease-in-out infinite!important;top:var(--rise-top,46%)!important;left:var(--rise-x,50%)!important;transition:none!important}
.game:not(.phrase-mode).pb-surfacing .player-track .player .sprite,.game:not(.phrase-mode).pb-surfacing .player-track .player.swimming-left .sprite,.game:not(.phrase-mode).pb-surfacing .player-track .player.swimming-right .sprite,.game:not(.phrase-mode).pb-surfacing .player-track .player.swimming-center .sprite{animation:pb76-soft-bag 5.2s ease-in-out infinite!important}
.game #console,.game:not(.phrase-mode) #console{opacity:1!important;filter:none!important;translate:0 145%;visibility:hidden;pointer-events:none;transition:translate .42s cubic-bezier(.4,0,.65,1),visibility 0s linear .42s!important;animation:none!important}
.game.pb-input-active #console,.game:not(.phrase-mode).pb-ui-entering.pb-ui-ready.pb-input-active #console{translate:0 0;visibility:visible;pointer-events:auto;transition:translate .65s cubic-bezier(.13,.88,.22,1),visibility 0s!important;opacity:1!important;filter:none!important}
.game:has(#startOverlay:not(.hidden)) #console{visibility:hidden!important;pointer-events:none!important;translate:0 145%!important}
.game.pb-reviewing .clue-area{visibility:hidden!important}
@media(prefers-reduced-motion:reduce){.game #console,.game.pb-input-active #console{transition:none!important}.pb-rank-wake{display:none!important}}

/* Unified S–F rank palette */
.grade-s{--grade-color:#e8b72e;--grade-glow:#e8b72e77;color:#e8b72e!important}
.depth-landing.rank-impact[data-rank="S"]{--rank-ink:#e8b72e!important}
.grade-a{--grade-color:#36c878;--grade-glow:#36c87877;color:#36c878!important}
.depth-landing.rank-impact[data-rank="A"]{--rank-ink:#36c878!important}
.grade-b{--grade-color:#37bfcf;--grade-glow:#37bfcf77;color:#37bfcf!important}
.depth-landing.rank-impact[data-rank="B"]{--rank-ink:#37bfcf!important}
.grade-c{--grade-color:#5289ed;--grade-glow:#5289ed77;color:#5289ed!important}
.depth-landing.rank-impact[data-rank="C"]{--rank-ink:#5289ed!important}
.grade-d{--grade-color:#ae79db;--grade-glow:#ae79db77;color:#ae79db!important}
.depth-landing.rank-impact[data-rank="D"]{--rank-ink:#ae79db!important}
.grade-e{--grade-color:#e99542;--grade-glow:#e9954277;color:#e99542!important}
.depth-landing.rank-impact[data-rank="E"]{--rank-ink:#e99542!important}
.grade-f{--grade-color:#e55353;--grade-glow:#e5535377;color:#e55353!important}
.depth-landing.rank-impact[data-rank="F"]{--rank-ink:#e55353!important}
#resultAnswer.grade-s{font:normal clamp(80px,14vw,150px)/1 'VT323',monospace;text-shadow:4px 5px 0 #03172a,0 0 22px var(--grade-glow)}

/* Rank sweep: one 4.25s marker timeline, separate from swimmer motion. */
.game.blind-dive .depth-landing.rank-impact{width:clamp(200px,52vw,540px);max-width:calc(100vw - 48px)}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-horizontal{height:1px!important;background:repeating-linear-gradient(90deg,var(--rank-ink) 0 14px,transparent 14px 16px)!important;animation:pbSweepLine 4.25s linear both!important;clip-path:none;filter:none!important;transform:none!important}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-line-caption{animation:pbSweepCaption 4.25s linear both!important}
.game.blind-dive .depth-landing.rank-impact .landing-result{width:100%;max-width:none;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:clamp(5px,1.5vw,18px);align-items:center;top:3px}
.game.blind-dive .depth-landing.rank-impact .landing-result>span{justify-self:end;min-width:0;max-width:100%}
.game.blind-dive .depth-landing.rank-impact .landing-result>small{justify-self:end;font-size:clamp(6px,.7vw,9px)}
.game.blind-dive .depth-landing.rank-impact .landing-result>#landingPoints{font:clamp(14px,1.7vw,19px)/1 'VT323',monospace;color:var(--rank-ink);justify-self:end}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result{animation:pbSweepVisibility 4.25s steps(1,end) both!important}
.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result>strong{animation:pbSweepHit 4.25s linear both!important;font:normal clamp(21px,2.8vw,32px)/.9 'VT323',monospace!important}
@keyframes pbSweepLine{0%{translate:-105% 0;opacity:0;animation-timing-function:cubic-bezier(.16,1,.3,1)}12%,79%{translate:0 0;opacity:1}83%{translate:-1% 0;opacity:1;animation-timing-function:cubic-bezier(.55,0,.85,.5)}100%{translate:110% 3px;opacity:0}}
@keyframes pbSweepCaption{0%,8%{opacity:0}14%,82%{opacity:1}100%{opacity:0}}
@keyframes pbSweepVisibility{0%{visibility:hidden}9%{visibility:visible}96%,100%{visibility:hidden}}
@keyframes pbSweepHit{0%,9%{transform:translate(8px,-4px) scale(1.35);animation-timing-function:cubic-bezier(.2,.75,.3,1)}15%{transform:translate(0,0) scale(.96);animation-timing-function:ease-out}21%,81%{transform:translate(0,0) scale(1)}96%,100%{transform:translate(23px,-3px) scale(.95)}}
@media(prefers-reduced-motion:reduce){.game.blind-dive .depth-landing.rank-impact.is-visible .landing-horizontal,.game.blind-dive .depth-landing.rank-impact.is-visible .landing-line-caption,.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result,.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result>strong{animation:none!important;translate:none!important;visibility:visible!important;opacity:1!important;transform:none}.game.blind-dive .depth-landing.rank-impact.is-visible .landing-result{transform:translateX(-50%)!important}}

/* Home wordmark: lighter pixel typography and cool ocean palette. */
#startOverlay:not(.hidden) .start-content h1 {
  font-family: 'VT323', monospace !important;
  font-weight: 400 !important;
  font-size: clamp(72px, 13vw, 144px) !important;
  line-height: .64 !important;
  letter-spacing: .055em !important;
  color: #d7e9e5 !important;
  text-shadow: 1px 2px 0 #28474c !important;
}
#startOverlay:not(.hidden) .start-content h1 span {
  color: #b8d8d8 !important;
  text-shadow: inherit !important;
  font-weight: inherit !important;
}
@media (max-height: 600px) {
  #startOverlay:not(.hidden) .start-content h1 {font-size: clamp(62px, 10vw, 84px) !important;}
}
/* Unified daily-result action treatment; preserve sprite and icon controls. */
button:not(.prawn-swimmer):not(.skin-choice):not(.icon-button), #pbAccountDialog button:not(#pbAccountClose), #pbShop button:not(#pbShopClose), #startOverlay:not(.hidden) #beginButton,#startOverlay:not(.hidden) #pbShopOpen,#startOverlay:not(.hidden) #pbExtraOpen {background:#173c40!important;color:#e3e7d4!important;border:2px solid #668d80!important;border-radius:3px!important;box-shadow:inset 0 0 0 2px #254f4f,3px 4px #10282d!important;font-family:'VT323',monospace!important;letter-spacing:.06em;}
button:not(.prawn-swimmer):not(.skin-choice):not(.icon-button):hover:not(:disabled){filter:brightness(1.15)}
#pbAccountOpen{position:absolute;left:16px;top:12px;z-index:100;pointer-events:auto;font-size:20px!important;margin:0;padding:8px 14px;min-height:34px;}
.game:not(:has(#startOverlay:not(.hidden))) #pbAccountOpen{display:none!important}
@media(max-width:600px){#pbAccountOpen{left:6px;top:5px;font-size:14px!important;padding:4px 6px;min-height:25px}.game:has(#startOverlay:not(.hidden)) .hud-top .hud-actions{margin-top:30px}}

/* Readable controls: restore legible sizing after the shared palette override. */
#startOverlay #connectionStatus[hidden],#startOverlay #dailyMenuNote{display:none!important}
#startOverlay:not(.hidden) #connectionStatus:not([hidden]){font:18px/1.2 'VT323',monospace!important;padding:8px 12px;min-height:36px}
#startOverlay:not(.hidden) :is(#beginButton,#pbShopOpen,#pbExtraOpen){box-sizing:border-box;width:min(100%,420px)!important;min-height:48px!important;height:auto!important;padding:10px 16px!important;font:normal clamp(23px,3vw,29px)/1.15 'VT323',monospace!important;letter-spacing:.035em!important;white-space:normal;text-align:center;gap:8px}
#startOverlay:not(.hidden) #beginButton{min-height:54px!important}
.game .hud-button,.game .console-actions button,.game .input-shell button,.game .about-us-launch,.game .panel-bottom-button,.game .about-us-done,.game .fishing-category,.game .finish-replay{font:normal 20px/1.15 'VT323',monospace!important;letter-spacing:.025em!important;text-shadow:none!important;height:auto;min-height:34px;padding:6px 10px;box-sizing:border-box}
#pbAccountOpen{font:normal 23px/1.1 'VT323',monospace!important;width:auto!important;max-width:36vw;min-height:38px!important;padding:6px 12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pbAccountDialog .pb-account-body button,#pbShop article button,#pbShopAccount{font:normal 23px/1.15 'VT323',monospace!important;letter-spacing:.025em!important;min-height:42px;height:auto;padding:9px 12px!important;white-space:normal}
#startOverlay:not(.hidden) .start-content{padding-bottom:clamp(30px,6vh,64px)!important;gap:12px!important;box-sizing:border-box}
@media(max-width:760px){.game .hud-button{font-size:17px!important;padding:5px 7px;min-height:30px}.game .console-actions button{font-size:17px!important}.game:has(#startOverlay:not(.hidden)) .hud-top .hud-actions{margin-top:0;gap:4px;max-width:60%;flex-wrap:wrap;justify-content:flex-end}.game:has(#startOverlay:not(.hidden)) .hud-top .brand-lockup{display:none}#pbAccountOpen{font-size:20px!important;left:8px;top:8px}.game .about-us-launch{font-size:17px!important;bottom:10px;left:8px}}
@media(max-height:600px){#startOverlay:not(.hidden) .start-content{min-height:440px;padding-bottom:42px!important;gap:9px!important}#startOverlay:not(.hidden) :is(#beginButton,#pbShopOpen,#pbExtraOpen){min-height:42px!important;padding:7px 12px!important}}

/* Matching wide homepage corner buttons, with HUD on its own row. */
.game:has(#startOverlay:not(.hidden)) .hud-top{height:auto;min-height:90px;align-items:flex-start}
.game:has(#startOverlay:not(.hidden)) .hud-top :is(#pbAccountOpen,#pbShopOpen){position:absolute;top:12px;z-index:100;pointer-events:auto;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:clamp(112px,19vw,180px)!important;max-width:none;min-height:42px!important;height:42px!important;margin:0!important;padding:6px 10px!important;font:normal clamp(20px,2.5vw,25px)/1 'VT323',monospace!important;letter-spacing:.035em!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game:has(#startOverlay:not(.hidden)) #pbAccountOpen{left:16px;right:auto}
.game:has(#startOverlay:not(.hidden)) #pbShopOpen{right:16px;left:auto}
.game:not(:has(#startOverlay:not(.hidden))) #pbShopOpen{display:none!important}
.game:has(#startOverlay:not(.hidden)) .hud-top .hud-actions{margin:64px auto 0!important;max-width:100%;justify-content:center;flex-wrap:wrap}
.game:has(#startOverlay:not(.hidden)) .hud-top :is(.brand-lockup,.run-readout){display:none}
@media(max-width:600px){.game:has(#startOverlay:not(.hidden)) .hud-top :is(#pbAccountOpen,#pbShopOpen){top:8px;width:clamp(110px,39vw,160px)!important;height:38px!important;min-height:38px!important}.game:has(#startOverlay:not(.hidden)) #pbAccountOpen{left:8px}.game:has(#startOverlay:not(.hidden)) #pbShopOpen{right:8px}.game:has(#startOverlay:not(.hidden)) .hud-top .hud-actions{margin-top:54px!important}}

/* Cookie choices: readable matching Aqua buttons on every screen. */
#cookieBanner .cookie-actions{display:flex;flex-wrap:wrap;gap:10px;padding:0 3px 5px;box-sizing:border-box}
#cookieBanner .cookie-actions button{flex:1 1 135px;min-width:0;min-height:44px;height:auto;box-sizing:border-box;padding:9px 10px!important;font:normal 24px/1.1 'VT323',monospace!important;letter-spacing:.025em!important;color:#f1f6e8!important;background:#173c40!important;border:2px solid #668d80!important;border-radius:3px!important;box-shadow:inset 0 0 0 2px #254f4f,3px 4px #10282d!important;text-shadow:none!important;white-space:normal;text-align:center;opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#cookieBanner .cookie-actions button:hover{background:#245052!important;filter:none;transform:none}
#cookieBanner .cookie-actions button:focus-visible{outline:2px solid #e3e7d4;outline-offset:2px}

/* Readable six-word dive milestones. */
#statsDialog.stats-panel .stats-grid span,#statsDialog.stats-panel .achievement-row b{font:18px/1.15 VT323,monospace!important;}
#statsDialog.stats-panel .achievement-row small{font:16px/1.15 VT323,monospace!important;}
#statsDialog.stats-panel .achievement-row.locked{opacity:.78!important;}
#statsDialog.stats-panel .achievement-gallery{gap:9px!important;}
@media(max-width:600px){#statsDialog.stats-panel{width:min(290px,83vw)!important;}}

/* Surface travel controls the anchor only; keep the same idle motion at the handoff. */
.game:not(.phrase-mode).pb-surfacing .player-track .player {
  top:var(--rise-top,46%)!important; left:var(--rise-x,50%)!important;
  animation:pb76-float 6.8s ease-in-out infinite!important;
  animation-delay:0s!important; transition:none!important;
}
.pb-playable-prawn{background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important}.pb-playable-prawn img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;animation:pbPrawnSwim 1.4s ease-in-out infinite;transform-origin:60% 50%}@keyframes pbPrawnSwim{0%,100%{transform:rotate(-5deg) scaleX(.96)}50%{transform:rotate(5deg) scaleX(1.04)}}.pb-rank-wake i.pb-ember-spark{background:#ff7043;box-shadow:none!important}.pb-rank-wake i.pb-ember-spark:nth-child(2n){background:#ffbd72}.pb-rank-wake i.pb-ember-spark:nth-child(3n){background:#d73c2f}@media(prefers-reduced-motion:reduce){.pb-playable-prawn img{animation:none}}

/* Prawn: JS owns local body motion; the normal game anchor owns depth. */
#game:not(.phrase-mode) #player.pb-prawn-player {
 animation:none!important;translate:none!important;rotate:none!important;scale:1!important;
 transform:translate3d(-50%,-50%,0)!important;
}
#game:not(.phrase-mode) #player.pb-prawn-player #playerSprite.pb-playable-prawn {
 width:43px!important;height:34px!important;flex:none!important;animation:none!important;
 transform:translate3d(var(--prawn-x,0px),var(--prawn-y,0px),0) rotate(var(--prawn-angle,0deg))!important;
 translate:none!important;rotate:none!important;scale:1!important;
 filter:none!important;transform-origin:center!important;transition:none!important;will-change:transform;
}
#game:not(.phrase-mode) #player.pb-prawn-player #playerSprite img {
 display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;
 animation:none!important;transform:none!important;transition:none!important;
}
.pb-ember-layer {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:6;image-rendering:auto;}
.pb-ember-layer[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.pb-ember-layer{display:none!important}}
