/* Games keeps the approved illustrated ocean; controls remain native and readable. */
html:root body #gamesHero,html:root body #glassGameMenuIntro,html:root body #glassFlashcardIntro{display:none!important}
html:root body #gameSelector,html:root body #gameEngine{width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box;padding:clamp(10px,1.4vw,24px)!important}
html:root body #gameSelector .uw-menu{max-width:none!important;width:100%!important;padding:0!important;box-sizing:border-box;border:0!important;border-radius:20px!important;overflow:hidden;background:#037eb5!important}
html:root body #gameSelector .art-menu{display:grid!important;grid-template-columns:1fr 1fr;gap:12px;padding:14px clamp(10px,2vw,30px) 28px!important;box-sizing:border-box;width:100%;background:#037eb5 url('/assets/games-responsive-20261027/ocean.webp') center/cover!important;border:0!important;max-width:none!important}
html:root body #gameSelector .art-menu-image{display:none!important}
html:root body #gameSelector .art-menu-glow-field{display:none!important}
html:root body #gameSelector .art-menu .art-menu-sprite{display:block;width:100%;height:auto;pointer-events:none;filter:none!important}
html:root body #gameSelector .art-menu .art-menu-responsive-logo{grid-column:1/-1;grid-row:1;width:min(58%,740px);aspect-ratio:605/155;justify-self:center;margin:0;object-fit:contain}
html:root body #gameSelector .art-menu .art-menu-top{position:relative!important;inset:auto!important;grid-row:2;width:clamp(135px,22vw,230px)!important;height:auto!important;min-height:48px!important;justify-self:start;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html:root body #gameSelector .art-menu .art-menu-top:nth-of-type(2){justify-self:end}
html:root body #gameSelector .art-menu .art-menu-top-art{height:auto;aspect-ratio:235/95}
html:root body #gameSelector .art-menu-games{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 14px;grid-column:1/-1;align-items:end;min-width:0}
html:root body #gameSelector .art-menu .art-menu-game,html:root body #gameSelector .art-menu .art-menu-big{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:48px!important;padding:0!important;aspect-ratio:auto!important;border:0!important;border-radius:12px!important;background:none!important;box-shadow:none!important;overflow:visible}
html:root body #gameSelector .art-menu .art-menu-big{grid-column:1/-1;margin-top:20px!important;overflow:hidden!important}
html:root body #gameSelector .art-menu .big-lure-menu-caption{position:absolute;inset:auto 3% 8%;padding:7px 10px;border-radius:12px;border:2px solid #ffc965;background:linear-gradient(#137db0,#034a84);font:700 clamp(14px,2.4vw,30px)/1.3 'IBM Plex Sans',sans-serif;color:#fff;box-shadow:0 3px #994415;text-align:center}
html:root body #gameSelector .art-menu-extras{display:none!important}
html:root body #gameSelector .art-menu .art-menu-link:focus-visible{outline:4px solid #fff79b!important;outline-offset:2px;box-shadow:none!important}
html:root body #gameEngine #gameContent{width:100%;max-width:none!important;min-width:0;box-sizing:border-box}
html:root body #gameEngine #gameContent .ugc-layout{grid-template-columns:minmax(180px,25%) minmax(0,1fr)}
html:root body #gameEngine #gameContent :is(.ugc-stage,.ugc-game){min-width:0;max-width:none!important;box-sizing:border-box}
html:root body #gameEngine #gameContent :is(#fibHintText){display:inline-block;color:#fff4b1!important;background:#123a63!important;border:1px solid #8fdcea;border-radius:9px;padding:8px 12px;min-height:1.5em;font-weight:600}
html:root body #gameEngine #gameContent #fibHintText:empty{display:none}
html:root body #gameEngine #gameContent #fibVoice{min-height:44px;padding:9px 14px;line-height:1.3;white-space:normal;background:linear-gradient(#22698e,#164664)!important;color:#fff!important;border:1px solid #9ce9f6!important}
html:root body #gameEngine #gameContent #mdOpts button.md-answer-correct{background:linear-gradient(145deg,#267b5a,#145234)!important;color:#fff!important;border:2px solid #85edaa!important;opacity:1!important;box-shadow:inset 0 2px #b8ffd360,0 3px #0d3021!important;text-shadow:none!important}
html:root body #gameEngine #gameContent #mdOpts button.md-answer-wrong{background:linear-gradient(145deg,#b13a57,#741f38)!important;color:#fff!important;border:2px solid #ffa4af!important;opacity:1!important;box-shadow:inset 0 2px #ffd4dd70,0 3px #4c1625!important;text-shadow:none!important}
html:root body #gameEngine #gameContent #mdOpts button{min-height:48px;line-height:1.5;white-space:normal}
html:root.acemblex-light body #gameEngine #gameContent #fibHintText{color:#163954!important;background:#e4f7ff!important;border-color:#23819b}
html:root body #gameEngine #gameContent :has(>#fibInput){flex-wrap:wrap}
html:root body #gameEngine #gameContent #fibInput{min-width:120px;width:100%;box-sizing:border-box}
/* The Big Lure is a flashcard-only ocean destination. */
body.big-lure-page,html.big-lure-dive body{margin:0;background:linear-gradient(#04346655,#032440dd),url('/assets/games-responsive-20261027/ocean.webp') center/cover fixed!important;color:#efffff!important;font-family:'IBM Plex Sans',system-ui,sans-serif}
.big-lure-shell{width:min(1100px,100%);box-sizing:border-box;margin:auto;padding:24px clamp(16px,4vw,50px) 50px;text-align:center}
.big-lure-shell nav{text-align:left}.big-lure-shell a{color:#e7ffff}.lure-heading-art{display:block;width:min(600px,95%);margin:0 auto 24px}.big-lure-shell h1{font:400 clamp(42px,7vw,74px)/1.15 Belleza,serif;margin:8px 0 12px}.lure-eyebrow{color:#a2f9eb;letter-spacing:.12em;font-size:13px}.big-lure-shell header>p:last-child{font-size:20px;line-height:1.6}.big-lure-shell section{padding:26px clamp(14px,3vw,38px);border:1px solid #97f3ef;border-radius:28px;background:linear-gradient(135deg,#0c5879dd,#082c62dd);box-shadow:inset 0 2px #b8ffff80,0 12px 28px #00172c66}.big-lure-shell h2{font-weight:500;font-size:24px}.lure-companions{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.lure-companions button{padding:14px;border:2px solid #72c9dd;border-radius:22px;background:linear-gradient(#0d6786,#073d68);color:white;font:500 18px/1.4 inherit;cursor:pointer}.lure-companions button[aria-pressed=true]{border-color:#fff19b;background:linear-gradient(#4a518a,#164969);box-shadow:inset 0 0 0 2px #fff19b}.lure-companions svg{width:100%;max-width:140px;display:block;margin:auto auto 12px}.lure-companions span{display:block}.lure-start{display:inline-flex;margin:14px 0;padding:16px 28px;border:2px solid #a7ffe5;border-radius:17px;background:linear-gradient(#197e79,#12555d);color:white!important;font-size:20px;text-decoration:none;box-shadow:inset 0 2px #ffffff60,0 4px #042b42}.lure-footnote{font-size:16px;line-height:1.6}.big-lure-shell :focus-visible{outline:4px solid #fff5ac;outline-offset:4px}.lure-dive-guide{display:flex;align-items:center;justify-content:center;gap:22px;padding:12px;margin:0 auto 22px;max-width:850px;color:#fff}.lure-dive-guide svg{width:100px;flex-shrink:0}.lure-dive-guide h1{font:400 clamp(26px,4vw,42px)/1.2 Belleza,serif;margin:5px 0 10px}.lure-dive-guide a{color:#c4fff5}.lure-dive-guide p{margin:0;color:#e7f6ff}
@media(min-width:1600px){html:root body #gameSelector .art-menu-games{gap:24px}}
@media(max-width:900px){html:root body #gameSelector .art-menu-games{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}html:root body #gameSelector .art-menu .art-menu-responsive-logo{width:min(90%,620px)}html:root body #gameEngine #gameContent .ugc-layout{grid-template-columns:minmax(0,1fr)}html:root body #gameEngine #gameContent .ugc-character{display:none}}
@media(max-width:520px){html:root body #gameSelector .art-menu-games{grid-template-columns:minmax(0,1fr)}html:root body #gameSelector .art-menu .big-lure-menu-caption{font-size:13px;bottom:4%;padding:4px}.lure-companions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.big-lure-shell{padding:16px 12px 32px}.lure-dive-guide svg{width:72px}}
.reef-display-label{display:block;margin:22px auto 8px;max-width:560px;text-align:left;color:#fff;font:600 18px/1.4 'IBM Plex Sans',sans-serif}.reef-display-label small{display:block;font-size:14px;font-weight:400;margin-top:5px;color:#e3f4ff}#reefDisplayName{display:block;box-sizing:border-box;width:min(560px,100%);margin:auto;min-height:48px;padding:12px 16px;border:2px solid #86ddeb;border-radius:12px;background:#062f52;color:#fff;font:400 18px/1.4 'IBM Plex Sans',sans-serif}#reefDisplayName:focus-visible{outline:3px solid #fff5a5;outline-offset:3px}.reef-page #reefChampions .reef-exact-details{background:linear-gradient(#064f79,#07345a);color:#fff}.reef-page #reefChampions #reefStatus{padding:12px;line-height:1.5;color:#fff!important;background:#063354;border:1px solid #9aeaf6;border-radius:12px}.reef-page #reefChampions .reef-exact-control[disabled]{cursor:wait}.reef-page #reefChampions .reef-row .reef-name{font-size:clamp(14px,3.4cqw,32px)!important}.reef-page #reefChampions .reef-style-preview .reef-name{overflow-wrap:anywhere;white-space:normal}
html:root body #gameEngine #gameContent[data-reef-game="fill-blank"] #fibQuestion,html:root body #gameEngine #gameContent[data-reef-game="fill-blank"] .ugc-stage>.text-center>p{color:#183c59!important;text-shadow:none!important;font-weight:500}
html:root body #gameEngine #gameContent[data-reef-game="fill-blank"] #fibQuestion span{color:#4d3280!important;text-shadow:none!important}
html:root:root body.big-lure-page,html:root:root.big-lure-dive body{background:linear-gradient(#04346655,#032440dd),url('/assets/games-responsive-20261027/ocean.webp') center/cover fixed!important;color:#efffff!important}
html:root:root body.big-lure-page .big-lure-shell>header,html:root:root.big-lure-dive body .lure-dive-guide{display:block!important}
html:root:root.big-lure-dive body .lure-dive-guide{display:flex!important}
html:root:root body.big-lure-page .big-lure-shell :is(h1,h2,p,a,span){color:inherit}
html:root:root body.big-lure-page #lureStart{color:#fff!important}
.reef-save-details{display:block;min-height:48px;margin:16px auto;padding:12px 25px;border:2px solid #baf9d7;border-radius:14px;background:linear-gradient(#178079,#0d5364);color:#fff;font:600 18px/1.4 'IBM Plex Sans',sans-serif;cursor:pointer;box-shadow:inset 0 2px #dcfff466,0 4px #07334b}.reef-save-details:disabled{opacity:.7;cursor:wait}
html:root:root.big-lure-dive body .reef-host-art{display:grid;place-items:center;background:none!important}html:root:root.big-lure-dive body .reef-host-art svg{width:min(240px,100%);height:auto;border-radius:50%;overflow:hidden}html:root:root.big-lure-dive body .lure-dive-guide a{color:#bcfff2!important}
html:root:root body #gameSelector .art-menu-games{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:22px 14px!important}
html:root:root body #gameSelector .art-menu .art-menu-game>.uw-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;min-height:0!important}
@media(max-width:900px){html:root:root body #gameSelector .art-menu-games{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){html:root:root body #gameSelector .art-menu-games{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}}
/* Ocean game controls use explicit contrast in either dashboard theme. */
html:root:root body #gameEngine #gameContent#gameContent#gameContent[data-reef-game="flashcards"] .card-face{background:linear-gradient(145deg,#173e65,#282552)!important;color:#fff!important}
html:root:root body #gameEngine #gameContent#gameContent#gameContent[data-reef-game="flashcards"] .card-back{background:linear-gradient(145deg,#573773,#2f2453)!important}
html:root:root body #gameEngine #gameContent#gameContent#gameContent[data-reef-game="flashcards"] .card-face :is(p,span){color:#f5fbff!important;text-shadow:none!important}
html:root:root body #gameEngine #gameContent#gameContent#gameContent[data-reef-game="flashcards"] .ugc-stage button{color:#fff!important;text-shadow:none!important;border-color:#85dbea!important}
html:root:root body #gameEngine #gameContent#gameContent#gameContent[data-reef-game="flashcards"] .ugc-stage button[aria-pressed="false"]{color:#183c59!important;background:#edfbff!important}

/* Illustrated title and Splash Edition copy are baked into the original-style signs. */
html:root:root body #gameSelector .art-menu .art-menu-responsive-logo{width:min(80%,900px)!important;aspect-ratio:3/1!important;height:auto!important;object-fit:contain!important;display:block!important}
html:root:root body #gameSelector .art-menu .art-menu-big img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:3/1!important;object-fit:contain!important}
html:root:root body #gameSelector .art-menu .art-menu-big>.uw-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
@media(max-width:600px){html:root:root body #gameSelector .art-menu .art-menu-responsive-logo{width:100%!important}}

/* Keep the footer on the same ocean canvas; reuse carved wooden signs for controls. */
html:root:root body #gameSelector .art-menu .art-menu-wood-controls{grid-column:1/-1;max-width:none!important;width:100%!important;box-sizing:border-box;margin:0!important;padding:0 0 12px!important;background:none!important;border:0!important;box-shadow:none!important}
html:root:root body #gameSelector .art-menu-wood-controls nav{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap}
html:root:root body #gameSelector .art-menu-wood-controls :is(a,.uw-settings>summary){display:flex!important;justify-content:center;align-items:center;width:260px!important;min-height:86px!important;max-width:100%!important;box-sizing:border-box;padding:15px 26px!important;border:0!important;border-radius:22px!important;background:transparent url('/assets/games-ocean-20261103/wooden-control.webp') center/100% 100% no-repeat!important;box-shadow:none!important;color:#fff9e9!important;text-shadow:0 2px 1px #542100,1px 0 #542100,-1px 0 #542100,0 -1px #542100!important;font:700 22px/1.25 'IBM Plex Sans',sans-serif!important;letter-spacing:.015em!important;text-decoration:none!important;cursor:pointer;filter:drop-shadow(0 5px 5px #002f5966);transition:transform .16s ease,filter .16s ease}
html:root:root body #gameSelector .art-menu-wood-controls :is(a,.uw-settings>summary):hover{filter:drop-shadow(0 7px 5px #002f5988) brightness(1.08);transform:translateY(-2px)}
html:root:root body #gameSelector .art-menu-wood-controls :is(a,.uw-settings>summary):active{transform:translateY(1px)}
html:root:root body #gameSelector .art-menu-wood-controls :is(a,.uw-settings>summary):focus-visible{outline:3px solid #fff2a7!important;outline-offset:4px!important}
html:root:root body #gameSelector .art-menu-wood-controls .uw-settings{margin:14px 0 0!important}
html:root:root body #gameSelector .art-menu-wood-controls .uw-settings>summary{margin:auto!important;list-style:none!important}
html:root:root body #gameSelector .art-menu-wood-controls .uw-settings>summary::-webkit-details-marker{display:none}
html:root:root body #gameSelector .art-menu-wood-controls .uw-settings>summary::after{content:'▾';margin-left:12px;font-size:17px}
html:root:root body #gameSelector .art-menu-wood-controls .uw-settings[open]>summary::after{content:'▴'}
html:root:root body #gameSelector .art-menu-wood-controls .computer-panel{background:linear-gradient(145deg,#0b4260ed,#072747ed)!important;border:1px solid #b9edf6!important;border-radius:18px!important;color:#f6fbff!important;padding:20px!important;margin:18px auto 0!important;max-width:850px}
html:root:root body #gameSelector .art-menu-wood-controls .computer-panel :is(h2,p,label,strong){color:#f6fbff!important;text-shadow:none!important}
@media(max-width:600px){html:root:root body #gameSelector .art-menu-wood-controls nav{gap:8px}html:root:root body #gameSelector .art-menu-wood-controls :is(a,.uw-settings>summary){width:min(270px,100%)!important;min-height:86px!important;font-size:21px!important}}
@media(prefers-reduced-motion:reduce){html:root:root body #gameSelector .art-menu-wood-controls :is(a,.uw-settings>summary){transition:none!important}}

/* One wooden navigation row immediately below the illustrated title. */
html:root:root body #gameSelector .art-menu .art-menu-top-controls{display:flex!important;grid-row:2;grid-column:1/-1;align-items:flex-start;gap:12px;width:100%!important;max-width:none!important;overflow-x:auto;padding:6px 4px 12px!important;scrollbar-width:thin;scrollbar-color:#eebc69 #075c89;box-sizing:border-box}
html:root:root body #gameSelector .art-menu .art-menu-top-controls>a,html:root:root body #gameSelector .art-menu .art-menu-top-controls>.uw-settings{flex:1 0 150px!important;min-width:150px!important;width:auto!important;max-width:none!important;margin:0!important;box-sizing:border-box}
html:root:root body #gameSelector .art-menu .art-menu-top-controls>a,html:root:root body #gameSelector .art-menu .art-menu-top-controls .uw-settings>summary{width:100%!important;min-height:68px!important;padding:14px 12px!important;font-size:clamp(14px,1.65vw,21px)!important;white-space:nowrap!important}
html:root:root body #gameSelector .art-menu .art-menu-top-controls .uw-settings>summary::after{margin-left:5px}
html:root:root body #gameSelector .art-menu-settings-panel{grid-column:1/-1;min-width:0}
html:root:root body #gameSelector .art-menu-settings-panel[hidden]{display:none!important}
html:root:root body #gameSelector .art-menu-settings-panel .computer-panel{background:linear-gradient(145deg,#0b4260ed,#072747ed)!important;border:1px solid #b9edf6!important;border-radius:18px!important;color:#f6fbff!important;padding:20px!important;margin:0!important;max-width:none!important}
html:root:root body #gameSelector .art-menu-settings-panel .computer-panel :is(h2,p,label,strong){color:#f6fbff!important;text-shadow:none!important}
@media(max-width:600px){html:root:root body #gameSelector .art-menu .art-menu-top-controls{gap:8px}html:root:root body #gameSelector .art-menu .art-menu-top-controls>a,html:root:root body #gameSelector .art-menu .art-menu-top-controls .uw-settings>summary{font-size:16px!important;min-height:58px!important}}

/* Shared dimensions for every ocean game tile and the four wooden menu tabs. */
html:root:root body #gameSelector .art-menu{--ocean-tab-width:calc((100% - 36px) / 4);--ocean-tab-height:clamp(128px,13vw,190px)}
html:root:root body #gameSelector .art-menu .art-menu-top-controls{padding:6px 0 12px!important;gap:12px!important}
html:root:root body #gameSelector .art-menu .art-menu-top-controls>a,
html:root:root body #gameSelector .art-menu .art-menu-top-controls>.uw-settings{flex:0 0 var(--ocean-tab-width)!important;min-width:0!important}
html:root:root body #gameSelector .art-menu .art-menu-top-controls>a,
html:root:root body #gameSelector .art-menu .art-menu-top-controls .uw-settings>summary,
html:root:root body #gameSelector .art-menu .art-menu-game,
html:root:root body #gameSelector .art-menu .art-menu-big{height:var(--ocean-tab-height)!important;min-height:var(--ocean-tab-height)!important;box-sizing:border-box!important}
html:root:root body #gameSelector .art-menu .art-menu-games{gap:18px 12px!important;align-items:center!important}
html:root:root body #gameSelector .art-menu .art-menu-game{display:grid!important;place-items:center!important}
html:root:root body #gameSelector .art-menu .art-menu-game .art-menu-tile-art{width:100%!important;height:100%!important;overflow:hidden!important}
html:root:root body #gameSelector .art-menu .art-menu-big{width:var(--ocean-tab-width)!important;justify-self:center!important;margin:0!important}
html:root:root body #gameSelector .art-menu .art-menu-big img{width:100%!important;height:100%!important;object-fit:contain!important;aspect-ratio:auto!important}
@media(max-width:900px){html:root:root body #gameSelector .art-menu{--ocean-tab-width:calc((100% - 12px) / 2);--ocean-tab-height:clamp(120px,20vw,180px)}}
@media(max-width:520px){html:root:root body #gameSelector .art-menu{--ocean-tab-width:100%;--ocean-tab-height:clamp(130px,46vw,190px)}}
