/* Island worlds: textured scenery, clear reading, motion with a purpose. */
:root{--island-ink:#102e3c;--island-deep:#092c3d;--island-tide:#078c97;--island-sun:#ffca67}
.scene-harbour{background-image:url('/assets/game-worlds/harbour.jpg')}.scene-reef{background-image:url('/assets/game-worlds/reef.jpg')}.scene-market{background-image:url('/assets/game-worlds/market.jpg')}
.scene-art{position:relative;background-size:cover;background-position:center 45%;height:330px!important;overflow:hidden}.scene-sheen{position:absolute;inset:0;background:linear-gradient(180deg,#031f3200 40%,#031f32bb)}.scene-location{position:absolute;bottom:20px;left:22px;right:15px;color:#fff;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.island-destinations{gap:0;border-radius:24px;overflow:hidden;box-shadow:0 18px 45px #183e5220;border:1px solid #ffffff70;background:#092e3e}
.island-destinations .game-card{position:relative;display:block;border:0;border-radius:0;background:#092e3e;box-shadow:none;min-height:570px;overflow:hidden}
.island-destinations .game-card+.game-card{border-left:1px solid #ffffff25}.island-destinations .game-art{position:absolute;inset:0;height:100%!important;transition:transform .7s ease,filter .7s ease;filter:saturate(.9)}
.island-destinations .scene-sheen{background:linear-gradient(180deg,#082b3920 10%,#082b3930 30%,#082b39e6 62%,#082b39 100%)}.island-destinations .scene-location{display:none}
.island-destinations .game-card-body{position:absolute;bottom:0;left:0;right:0;padding:30px 25px;color:#fff;gap:0}.island-destinations .mini-label{color:#ffd38c;font-size:11px;letter-spacing:.14em}.island-destinations .game-card h2{color:#fff;font-size:34px;letter-spacing:-.04em;margin:15px 0}.island-destinations .game-card p{color:#e0eef0;font-size:15px;line-height:1.65;min-height:100px;margin:0}.island-destinations .game-card .button{margin-top:22px;border:1px solid #ffffff50;background:#ffffffed;color:#123e4b;border-radius:9px;font-weight:700;min-height:49px;box-shadow:0 4px 14px #0002}.destination-pin{font-size:12px;color:#c9ecf0;margin-bottom:16px}.island-destinations .game-card:hover .game-art,.island-destinations .game-card:focus-within .game-art{transform:scale(1.045);filter:saturate(1.12)}.island-destinations .game-card .button:hover{background:#ffcf7d;color:#153a45}
.arcade-toolbar{padding:18px 22px;border:1px solid #c9e1e7;border-radius:15px;background:#ffffffc9}.arcade-lead{color:#426474;font-size:18px;max-width:760px}.game-lobby .scene-art{height:420px!important;border-radius:20px;max-height:none}.game-lobby-grid{align-items:center;gap:35px}.game-lobby h2{font-size:24px;color:#17717c}.game-lobby p{line-height:1.65}
body.playing-island{background:#092c3d}.playing-island>.masthead,.playing-island>.site-footer,.playing-island .preview-banner{display:none!important}.playing-island #content{margin:0;max-width:none}.playing-island .workspace{max-width:none;min-height:100dvh;display:block;background:#092c3d}.playing-island .workspace-main{padding:0!important;max-width:none!important}.playing-island .workspace-main>.workspace-heading,.playing-island .workspace-main>.workspace-footer{display:none}.arcade-stage{max-width:1400px;margin:auto;padding:20px 32px 24px;color:#e9f4f5;min-height:100dvh;background:radial-gradient(ellipse at 50% 0,#1c5264,#092c3d 70%)}.arcade-stage:fullscreen{max-width:none;overflow:auto}.game-topbar{margin:0 0 15px;align-items:center;color:#d3e8eb;font-size:14px}.game-topbar .text-link{color:#d8ecee;border-color:#568190}.game-controls{display:flex;gap:10px;align-items:center;margin-left:auto}.game-controls strong{background:#163f4e!important;border:1px solid #568090;color:#fff;min-width:65px;padding:9px 12px;border-radius:9px;font-size:22px;font-variant-numeric:tabular-nums}.game-sound{border:1px solid #527481;border-radius:7px;background:#153d4d;color:#fff;padding:10px 12px;min-height:40px;font-size:13px}.game-sound:hover{background:#265c6b}.game-sound:focus-visible{outline:3px solid #ffcb68;outline-offset:3px}
.game-story{display:flex;align-items:baseline;gap:18px;margin:12px 0 17px}.game-story span{font-size:12px;text-transform:uppercase;letter-spacing:.13em;color:#b0d8dc}.game-story strong{font-size:20px;font-weight:550;color:#fff1d0}.game-hud{margin:0;position:absolute;z-index:2;right:55px;top:153px;gap:9px;pointer-events:none}.game-hud>div{display:grid;gap:5px;background:#062a3be8;backdrop-filter:blur(8px);border:1px solid #ffffff38;padding:12px 18px;border-radius:12px;color:#fff;min-width:100px}.game-hud span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#b9dbdf}.game-hud strong{font-size:25px;font-variant-numeric:tabular-nums;color:#fff}.arcade-stage{position:relative}.game-progress{height:4px;background:#ffffff20;border-radius:5px;overflow:hidden;margin-bottom:0}.game-progress>div{height:100%;background:#7ce4df;transform-origin:left;transition:transform .15s linear}.final-stretch .game-progress>div{background:#ffca67}
.game-playfield{height:clamp(260px,36dvh,440px);position:relative;overflow:hidden;border:1px solid #ffffff25;border-radius:0 0 18px 18px;background:#0d6476;margin:0;isolation:isolate}.scene-backdrop{position:absolute;inset:-2%;background-position:center 54%;background-size:cover;z-index:-3;animation:world-breathe 20s ease-in-out infinite alternate}.scene-vignette{position:absolute;inset:0;background:linear-gradient(180deg,#082d3c20,#082d3c00 30%,#082d3c80);z-index:-1}.scene-atmosphere{position:absolute;inset:0;background:linear-gradient(120deg,#ffe8aa18,#69ddd500);z-index:-1}.scene-caption{position:absolute;bottom:16px;left:20px;right:20px;color:#f4fcfc;font-size:14px;text-shadow:0 1px 5px #03212c;background:#082b3c9c;padding:7px 12px;border-radius:5px;width:fit-content;max-width:85%;min-height:0}.scene-caption:empty{display:none}.scene-reward{position:absolute;left:50%;top:26%;transform:translate(-50%,0);font-size:24px;font-weight:700;color:#fff2ba;text-shadow:0 3px 12px #022630;opacity:0;pointer-events:none;white-space:nowrap}.word-cleared .scene-reward,.word-missed .scene-reward{animation:reward-rise 1.3s ease-out}.word-missed .scene-reward{color:#e4f6fb}
.player-boat{position:absolute;left:5%;bottom:15%;top:auto!important;width:150px;z-index:1;transition:left .7s cubic-bezier(.2,.8,.3,1);filter:drop-shadow(0 12px 12px #03243188)}.boat-body{animation:boat-rock 3.8s ease-in-out infinite}.boat-body svg{width:150px;height:130px;display:block}.boat-wake{position:absolute;bottom:4px;left:-65px;width:130px;height:10px;border-top:2px solid #ffffff8a;border-bottom:1px solid #ffffff65;border-radius:50%;transform:skewX(-20deg);animation:wake-drift 1.7s linear infinite}.word-cleared .boat-body{animation:sail-surge .6s ease-out,boat-rock 3.8s ease-in-out .6s infinite}.storm-front{position:absolute;inset:-15% 0;left:-25%;width:calc(5% + var(--round-progress,0)*70%);background:linear-gradient(90deg,#0c2637a8,#183c554d,transparent);transition:width .5s linear;pointer-events:none}.storm-front:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(115deg,transparent 0 23px,#d0edf21c 24px 25px,transparent 26px 47px);animation:rain-drift .7s linear infinite;opacity:calc(var(--round-progress,0)*.8)}.harbour-dock{position:absolute;right:4%;top:46%;height:40%;width:35px;border-left:5px solid #ad8661;background:repeating-linear-gradient(0deg,#5c4636 0 7px,#8f7355 8px 9px);box-shadow:0 8px 16px #092d3966}.harbour-dock>span:last-child{position:absolute;right:-5px;top:-20px;font-size:10px;letter-spacing:.1em;color:#ffdf98}.harbour-lantern{display:block;width:9px;height:18px;background:#ffe8a3;position:absolute;top:-7px;left:0;box-shadow:0 0 14px 4px #ffbc4977;border:1px solid #8d6c43}.sea-sparkles{position:absolute;inset:55% 0 0;background:repeating-linear-gradient(174deg,transparent 0 24px,#fff2a017 25px 26px,transparent 27px 41px);animation:sea-drift 8s ease-in-out infinite}
.ocean-rays{position:absolute;inset:-40%;background:conic-gradient(from 155deg at 60% 0,transparent,#e6ffff18 9deg,transparent 17deg,#caffff18 23deg,transparent 32deg);animation:ray-sway 12s ease-in-out infinite alternate}.reef-turtle{position:absolute;left:12%;bottom:10%;width:150px;opacity:.95;animation:turtle-swim 9s ease-in-out infinite alternate}.reef-turtle svg{width:100%}.reef-bubbles{background:none}.reef-bubbles i{position:absolute;width:8px;height:8px;border:1px solid #d0f7ff80;border-radius:50%;left:25%;bottom:-20px;animation:bubble-rise 8s linear infinite}.reef-bubbles i:nth-child(2){left:71%;animation-delay:-2s;width:12px;height:12px}.reef-bubbles i:nth-child(3){left:43%;animation-delay:-5s}.reef-bubbles i:nth-child(4){left:82%;animation-delay:-4s;width:5px;height:5px}.reef-bubbles i:nth-child(5){left:17%;animation-delay:-7s}.falling-word{position:absolute;left:53%;transform:translateX(-50%);background:#e9fbffed;border:1px solid #d3f3ffcc;box-shadow:0 3px 22px #9defff30,inset 0 1px 1px #fff;border-radius:26px;color:#10415a;font-size:23px;letter-spacing:.03em;padding:12px 27px;top:12%;z-index:2;transition:top .1s linear;white-space:nowrap}.falling-word.near-reef{border-color:#ffd49b;background:#fff1d8}.air-reserves{position:absolute;left:20px;top:20px;display:flex;gap:8px}.air-reserves i{display:block;width:16px;height:26px;border-radius:8px;background:linear-gradient(90deg,#4aaab9,#e3fbfa,#50b6c5);border:1px solid #bde9ee;box-shadow:0 1px 8px #85ecf544}.air-reserves i.used{opacity:.22;background:#163d50}.reef .scene-backdrop{background-position:center 60%}
.market .scene-backdrop{background-position:center 58%;filter:brightness(.75)}.market-tickets{position:absolute;inset:65px 5% 35px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center;gap:20px;padding:0}.market-ticket{position:relative;min-height:125px;border:1px solid #e8d7ab;border-radius:3px;background:repeating-linear-gradient(0deg,#fff8e9 0 23px,#e7d7bd 24px,#fff8e9 25px 47px);color:#43392e;box-shadow:0 10px 20px #1e16084d;gap:12px;transform:rotate(-2deg);transition:transform .2s ease,box-shadow .2s ease}.market-ticket:nth-child(2){transform:rotate(1deg)}.market-ticket:nth-child(3){transform:rotate(-1deg)}.market-ticket:before{content:'';position:absolute;top:-9px;left:43%;height:15px;width:25px;background:#d5b88099;transform:rotate(4deg)}.market-ticket.selected{background:#fffcf0;border:2px solid #ffcf75;transform:translateY(-8px) rotate(0);box-shadow:0 13px 20px #0d2c3c66,0 0 0 3px #ffcb6740}.market-ticket strong{font-family:Georgia,serif;font-size:24px;line-height:1.3}.market-ticket small{color:#866844;text-transform:uppercase;font-size:11px;letter-spacing:.1em}.market-ticket span{font-size:12px;color:#765b3e}.market-label{position:absolute;top:24px;left:50%;transform:translateX(-50%);color:#fff3d1;text-shadow:0 2px 5px #221b0f;letter-spacing:.1em;text-transform:uppercase;font-size:12px}.market-streak{position:absolute;right:20px;bottom:15px;background:#352f24e0;color:#ffda93;border:1px solid #e7c78b66;padding:7px 12px;border-radius:5px;font-size:13px}.market-bunting{position:absolute;top:0;left:5%;right:5%;display:flex;justify-content:space-between;border-top:1px solid #efdbb7c2;transform:rotate(-2deg)}.market-bunting i{width:16px;height:24px;background:#ecac5d;clip-path:polygon(0 0,100% 0,50% 100%);transform-origin:top;animation:bunting-sway 5s ease-in-out infinite alternate}.market-bunting i:nth-child(3n){background:#e27b65;animation-delay:-2s}.market-bunting i:nth-child(3n+1){background:#74bdaf;animation-delay:-1s}
.typing-dock{position:relative;background:#f4fafb;color:#143b49;border:1px solid #bed8df;border-radius:16px;padding:17px 25px 13px;max-width:960px;margin:18px auto 0;box-shadow:0 10px 30px #021c2b20}.dock-heading{display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.14em;color:#49707d;font-weight:700}.dock-heading>span:last-child{font-size:12px;letter-spacing:0;color:#69848e;font-weight:450}.game-target{margin:10px 0 13px;min-height:48px;font-family:'DM Sans',sans-serif;font-size:36px;letter-spacing:.06em;line-height:1.65;font-weight:550;color:#133e4c}.game-target .typed{color:#097c79}.game-target .current{background:#ffdf8c;border-radius:3px;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}.space-slot{display:inline-flex;min-width:62px;padding:3px 8px;align-items:center;justify-content:center;border:1px dashed #9dbcc7;border-radius:5px;font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:.07em;vertical-align:middle;line-height:24px;color:#537783;margin:0 5px}.current .space-slot{color:#573713;background:#ffd47c;border:2px solid #cb8c23;box-shadow:0 0 0 3px #ffda8538}.typed .space-slot{font-size:0;min-width:16px;padding:0;border:none;margin:0 3px}.game-keyboard{display:flex;align-items:center;justify-content:center;gap:25px;padding:0;border:0;background:none;min-height:58px;font-size:14px}.game-keyboard:focus{outline:none}.game-keyboard:focus-visible{outline:2px solid #188795;outline-offset:5px}.game-keyboard.key-miss{background:none;border:none}.game-keyboard.key-miss #game-next-key{color:#875714}.spacebar-key{position:relative;width:320px;max-width:65%;height:47px;background:linear-gradient(#e8f0f3,#d0e0e7);border:1px solid #9bb7c2;border-bottom:4px solid #91aebb;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:14px;color:#4b6a78;box-shadow:0 2px 3px #153c4b10;transition:background .18s,border-color .18s}.spacebar-key>span:first-child{font-size:12px;letter-spacing:.16em;font-weight:750}.spacebar-symbol{font-size:27px;line-height:1}.spacebar-key small{font-size:11px;letter-spacing:0}.spacebar-key.is-next{background:linear-gradient(#ffe9a7,#ffce70);border-color:#c48b29;color:#56390f;box-shadow:0 0 0 3px #ffd37b40;animation:space-breathe 1.7s ease-in-out infinite}.game-feedback{min-height:24px;margin:9px 0 0;text-align:center;font-size:14px;color:#875714;line-height:1.5}.game-instruction{text-align:center;margin:5px 0 0;font-size:12px;line-height:1.5;color:#637e89}.game-countdown{background:#062d3bd9;backdrop-filter:blur(3px);font-size:72px;letter-spacing:-.05em}.game-results{animation:arrival .5s ease-out}.game-lobby{animation:arrival .45s ease-out}
.button{transition:background .18s ease,box-shadow .18s ease,transform .18s ease}.button:hover{box-shadow:0 5px 14px #12536b18;transform:translateY(-1px)}.button:active{transform:translateY(1px)}.workspace-main{animation:arrival .35s ease-out}.profile-hero{border-color:#bddbdf;box-shadow:0 8px 25px #1d626a08}.side-nav a{transition:background .2s ease,color .2s ease}.side-nav a:hover{background:#d8edf3}.arcade-leaderboard{padding:24px 0}
@keyframes world-breathe{to{transform:scale(1.025) translateY(-.5%)}}@keyframes boat-rock{0%,100%{transform:rotate(-2deg) translateY(0)}50%{transform:rotate(2deg) translateY(4px)}}@keyframes sail-surge{50%{transform:rotate(-5deg) translateY(-6px)}}@keyframes wake-drift{to{transform:translateX(-20px) skewX(-20deg);opacity:.1}}@keyframes reward-rise{0%{opacity:0;transform:translate(-50%,10px)}15%,60%{opacity:1}100%{opacity:0;transform:translate(-50%,-28px)}}@keyframes rain-drift{to{transform:translate(-12px,24px)}}@keyframes sea-drift{50%{transform:translateX(15px);opacity:.5}}@keyframes ray-sway{to{transform:rotate(5deg);opacity:.6}}@keyframes turtle-swim{to{transform:translate(35px,-10px) rotate(4deg)}}@keyframes bubble-rise{to{transform:translate(15px,-400px);opacity:0}}@keyframes bunting-sway{to{transform:rotate(8deg)}}@keyframes space-breathe{50%{box-shadow:0 0 0 5px #ffd37b25}}@keyframes arrival{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.game-hud{right:65px}.game-playfield{height:40dvh}}
@media(max-width:1000px){.game-hud{top:149px;right:45px}.game-hud>div{min-width:80px;padding:9px 12px}.game-hud strong{font-size:22px}.island-destinations .game-card-body{padding:24px 18px}.island-destinations .game-card h2{font-size:29px}.island-destinations .game-card p{min-height:125px}.arcade-stage{padding:18px 22px}.market-tickets{gap:13px}.market-ticket strong{font-size:20px}}
@media(max-width:760px){.island-destinations{grid-template-columns:1fr}.island-destinations .game-card{min-height:360px}.island-destinations .game-card+.game-card{border-left:0;border-top:1px solid #ffffff30}.island-destinations .game-card-body{padding:25px;left:27%;background:linear-gradient(90deg,#082b3900,#082b39bb 30%)}.island-destinations .game-card p{min-height:0;max-width:420px}.island-destinations .game-card h2{font-size:31px}.island-destinations .game-card .button{max-width:290px}.island-destinations .scene-sheen{background:linear-gradient(90deg,#082b3900,#082b3930 25%,#082b39b8 58%,#082b39ed)}.island-destinations .game-art{background-position:center 48%}.destination-pin{font-size:11px;margin-bottom:9px}.game-lobby .scene-art{height:270px!important}.arcade-stage{padding:12px 13px;min-height:100dvh}.game-topbar{gap:9px;margin-bottom:9px;flex-wrap:wrap}.game-topbar>span{font-size:12px;max-width:none}.game-controls{gap:6px}.game-sound{font-size:11px;padding:7px;min-height:35px}.game-controls strong{font-size:18px;min-width:52px;padding:6px}.game-story{margin:10px 0;display:grid;gap:5px}.game-story strong{font-size:17px}.game-story span{font-size:10px}.game-hud{position:static;display:grid;grid-template-columns:repeat(3,1fr);margin:10px 0;gap:6px}.game-hud>div{display:flex;align-items:center;justify-content:space-between;min-width:0;padding:8px}.game-hud span{font-size:9px;letter-spacing:0;max-width:60px}.game-hud strong{font-size:20px}.game-playfield{height:260px}.player-boat{width:110px;bottom:15%}.boat-body svg{width:110px;height:100px}.boat-wake{width:90px;left:-45px}.typing-dock{padding:14px 12px 10px;margin-top:13px}.dock-heading{font-size:9px}.dock-heading>span:last-child{font-size:10px}.game-target{font-size:28px;line-height:1.65;min-height:46px}.space-slot{min-width:49px;font-size:9px;padding:2px 6px;line-height:22px}.game-keyboard{gap:10px;justify-content:space-between;font-size:12px}.spacebar-key{max-width:64%;height:46px;gap:8px}.spacebar-key>span:first-child{font-size:11px}.spacebar-key small{font-size:9px}.spacebar-symbol{font-size:23px}.game-feedback{font-size:12px}.game-instruction{font-size:11px}.scene-caption{font-size:12px;bottom:10px;left:10px}.market-tickets{inset:58px 3% 40px;gap:9px}.market-ticket{min-height:115px;gap:10px;padding:12px 6px}.market-ticket strong{font-size:17px}.market-ticket small,.market-ticket span{font-size:10px}.market-label{font-size:10px;width:100%;text-align:center}.market-streak{font-size:11px;bottom:10px}.reef-turtle{width:110px;left:5%}.falling-word{font-size:19px;padding:10px 17px;max-width:90%;white-space:normal}.scene-reward{font-size:20px}.game-lobby-grid{gap:18px}.game-lobby h2{font-size:22px}}
@media(max-width:420px){.game-controls{margin-left:0}.island-destinations .game-card-body{left:12%;padding:22px}.game-playfield{height:230px}.game-target{font-size:26px}.game-keyboard{flex-direction:column;gap:9px}.spacebar-key{max-width:100%;width:100%}.typing-dock{padding:12px}.dock-heading>span:last-child{max-width:140px;text-align:right}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}.scene-backdrop,.boat-body,.boat-wake,.storm-front:after,.sea-sparkles,.ocean-rays,.reef-turtle,.reef-bubbles i,.market-bunting i,.spacebar-key.is-next,.word-cleared .boat-body,.word-cleared .scene-reward,.word-missed .scene-reward,.workspace-main,.game-results,.game-lobby{animation:none!important}.word-cleared .scene-reward,.word-missed .scene-reward{opacity:1}.player-boat,.island-destinations .game-art,.market-ticket,.button,.game-progress>div{transition:none!important}.island-destinations .game-card:hover .game-art{transform:none}.button:hover{transform:none}}
.result-scene{height:220px;border-radius:20px;background-size:cover;background-position:center 40%;position:relative;display:flex;flex-direction:column;justify-content:end;padding:25px;margin-bottom:25px;isolation:isolate;overflow:hidden}.result-scene:before{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#082c3ed9);z-index:-1}.result-scene>span{font-size:12px;color:#d1e8e9;text-transform:uppercase;letter-spacing:.1em}.result-scene>strong{font-size:30px;color:#fff;margin-top:9px}.game-results .mini-label{color:#497483}
@media(min-width:761px){.market .market-tickets{top:112px;bottom:32px}.market .market-label{left:25%;top:30px}.market .market-ticket{min-height:105px}.market .market-ticket small{font-size:10px}.market .market-ticket strong{font-size:20px}.market .market-ticket span{font-size:11px}}
.harbour .scene-backdrop{background-position:center 45%}.market .scene-backdrop{background-position:center 55%;filter:brightness(.86)}.reef .scene-backdrop{background-position:center 60%}
@media(max-width:760px){.market .market-label{display:none}}
@media(min-width:761px){.reef .falling-word{left:35%}.reef .scene-reward{left:35%;top:72%}.market .scene-reward{left:25%;top:22%;font-size:20px}}
.dashboard-games{background:linear-gradient(90deg,#eefbfc 0%,#eefbfcee 52%,#eefbfc22 100%),url('/assets/game-worlds/harbour.jpg') center 45%/cover;border:1px solid #b4dce2;box-shadow:0 9px 25px #1b60740a}.dashboard-games p{max-width:620px}.dashboard-games h2{color:#174b5d}
@media(prefers-reduced-motion:reduce){.scene-reward{display:none!important}}
/* Moving surface, separate from the fixed shoreline and typing dock. */
.water-filter-defs{position:absolute;pointer-events:none}.water-surface{position:absolute;inset:-2%;z-index:-2;background:url('/assets/game-worlds/harbour.jpg') center 45%/cover;clip-path:polygon(0 23%,100% 23%,100% 100%,0 100%);filter:url('#harbour-water-flow');animation:water-swell 7s ease-in-out infinite;transform-origin:50% 100%;pointer-events:none}.water-reflections{position:absolute;inset:24% -4% -4%;pointer-events:none;background:repeating-radial-gradient(ellipse at 12% 0%,transparent 0 17px,#fff0b228 18px 19px,transparent 20px 44px);background-size:170% 85px;mix-blend-mode:screen;opacity:.35;animation:reflections-drift 10s linear infinite}.harbour .scene-backdrop{animation:none}.harbour .sea-sparkles{opacity:.5;animation:sea-drift 6s ease-in-out infinite}.reef .scene-atmosphere{background:repeating-radial-gradient(ellipse at 50% -20%,#a7ffff12 0 12px,transparent 14px 35px);background-size:150% 180%;mix-blend-mode:screen;opacity:.5;animation:underwater-caustics 18s ease-in-out infinite alternate}.boat-wake{height:16px;width:150px;left:-85px;border-top:2px solid #e5fbffbb;border-bottom:2px solid #e5fbff77;box-shadow:0 4px 0 -2px #fff5;animation:wake-drift 2.2s linear infinite}
@keyframes water-swell{0%,100%{transform:translateY(0) scaleX(1)}50%{transform:translateY(2px) scaleX(1.012)}}@keyframes reflections-drift{from{background-position:0 0;transform:translateX(0)}to{background-position:130px 85px;transform:translateX(15px)}}@keyframes underwater-caustics{to{background-position:40px 60px;transform:scale(1.04);opacity:.28}}
@media(prefers-reduced-motion:reduce){.water-surface{animation:none;filter:none}.water-reflections,.reef .scene-atmosphere{animation:none}.water-filter-defs{display:none}}
.distinct-hud{display:flex;gap:12px;margin:0 0 16px;flex-wrap:wrap}.distinct-hud>span{display:flex;align-items:center;gap:18px;background:#123e50;border:1px solid #426675;border-radius:9px;padding:10px 17px;font-size:13px;color:#bddce3}.distinct-hud strong{font-size:23px;color:white;min-width:20px}.distinct-mode .game-playfield{height:clamp(300px,42dvh,480px)}.distinct-mode .falling-word,.distinct-mode .market-tickets,.distinct-mode .market-streak,.distinct-mode .market-label{display:none}.reef-field{position:absolute;inset:0;z-index:3}.rescue-bubble{position:absolute;left:var(--bubble-x);top:var(--bubble-y);transform:translate(-50%,-50%);border:2px solid #b8f6ffb0;background:radial-gradient(ellipse at 25% 18%,#e5ffffc9,#6cc8dd6b 55%,#17839c99);border-radius:50%;box-shadow:inset -6px -8px 18px #0d547f44,inset 3px 4px 11px #fff9,0 6px 24px #062f4c33;min-width:125px;min-height:100px;padding:19px 22px 14px;color:#073a52;text-align:center;transition:top .12s linear;cursor:pointer}.rescue-bubble strong{display:block;font-size:23px;text-shadow:0 1px 1px #efffff;max-width:240px;line-height:1.25}.rescue-bubble small{display:block;font-size:12px;color:#164b5c;margin-top:5px}.rescue-bubble.selected{border-color:#fff2af;box-shadow:0 0 0 4px #ffe99d75,inset 2px 3px 15px #fff7}.rescue-bubble.urgent{border-color:#ffdb8f;background:radial-gradient(ellipse at 25% 18%,#fff5d6,#ffcc776b 55%,#b3794099)}.bubble-air{display:block;height:4px;margin-top:10px;border-radius:4px;background:#14536655;overflow:hidden}.bubble-air i{display:block;background:#e5ffff;height:100%;transform-origin:left;transform:scaleX(var(--bubble-air))}.rescue-dock #rescue-keyboard{display:flex;align-items:center;gap:20px;justify-content:center;font-size:14px;color:#466b78;outline-offset:5px}.rescue-dock #rescue-keyboard:focus-visible{outline:2px solid #138a93}.rescue-dock .game-target{font-size:32px}.rescue-dock #distinct-feedback{min-height:22px;margin:14px 0 4px;color:#84601d;text-align:center;font-size:14px}.distinct-mode .game-instruction{font-size:13px}.distinct-mode .typing-dock{margin-top:16px}.memory-order{position:absolute;inset:16% 18% 14%;background:#fff8e8;border:1px solid #ebd0a0;box-shadow:0 14px 30px #162c3f55;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;gap:20px;transform:rotate(-1deg);z-index:3}.memory-order:before{content:'';position:absolute;top:-10px;left:45%;width:55px;height:22px;background:#e5cfaacc;transform:rotate(6deg)}.memory-order>span{font-size:12px;color:#806443;font-weight:700;letter-spacing:.17em}.memory-order>strong{font:600 34px/1.35 Georgia,serif;text-align:center;color:#493b28}.memory-order>small{font-size:14px;color:#8c775c}.memory-order.covered{background:repeating-linear-gradient(45deg,#175569,#175569 8px,#1c6074 8px,#1c6074 16px);border-color:#5398a7;transform:rotate(1deg)}.memory-order.covered>span{color:#b1dce3}.memory-order.covered>strong{color:#f4e9c9;font:550 27px/1.4 'DM Sans',sans-serif;max-width:350px}.memory-order.covered>small{color:#b1dce3}.memory-dock label{display:block;font-size:14px;color:#406776;margin:12px 0 9px}.memory-dock input{width:100%;font-size:24px;padding:13px 15px;border-radius:9px;border:2px solid #77b6be;box-shadow:0 2px 5px #21445508;background:white;color:#123d50}.memory-dock input:focus{outline:3px solid #ffd78b;outline-offset:2px}.memory-dock input:disabled{background:#e5edf0;color:#859ca6;border-color:#ccdde3}.memory-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}.memory-actions .button{font-size:14px;padding:11px 18px}.memory-dock #distinct-feedback{font-size:14px;color:#4f7280;min-height:22px;margin-top:12px}.distinct-mode #distinct-save{padding:15px;text-align:center;color:#e3f5f6}.distinct-mode .game-progress>div{height:100%;transform-origin:left;background:#7bd8d4}.game-card .mini-label{line-height:1.65}
@media(max-width:760px){.distinct-mode .game-playfield{height:300px}.distinct-hud{gap:7px;margin-bottom:12px}.distinct-hud>span{padding:8px 10px;gap:10px;font-size:11px}.distinct-hud strong{font-size:20px}.rescue-bubble{min-width:90px;min-height:85px;padding:15px 12px}.rescue-bubble strong{font-size:17px;max-width:110px}.rescue-bubble small{font-size:11px}.rescue-dock #rescue-keyboard{font-size:12px;gap:10px}.rescue-dock .game-target{font-size:26px}.memory-order{inset:15% 8% 14%;padding:20px;gap:17px}.memory-order>strong{font-size:26px}.memory-order>small{font-size:12px;text-align:center}.memory-order.covered>strong{font-size:23px}.memory-dock input{font-size:20px}.memory-dock input::placeholder{font-size:15px}.memory-actions .button{font-size:13px;flex:1;padding:11px}.distinct-mode .game-instruction{font-size:12px}.rescue-dock #distinct-feedback{font-size:12px}}
@media(max-width:420px){.rescue-dock #rescue-keyboard{flex-direction:column}.rescue-dock .spacebar-key{width:100%;max-width:100%}.rescue-bubble{min-width:80px;padding:13px 9px}.rescue-bubble strong{font-size:16px;max-width:88px}}
@media(prefers-reduced-motion:reduce){.rescue-bubble{transition:none;top:50%}.memory-order,.memory-order.covered{transform:none}}
