/* PLAYSEED POP / V12. Native pixel volumes, clear typography and clean surfaces.
   Layouts and puzzle hit regions retain their proven immersive geometry. */
:root{
 --bg:#101a35;--panel:#1b2c50;--panel-2:#263c67;--line:#3e5481;
 --text:#f8fbff;--muted:#adbedb;--green:#28c7ee;--purple:#b292ff;
 --pixel-ink:#182449;--pixel-deep:#14203c;--pixel-panel:#1b2c50;
 --pixel-edge:#3e5481;--pixel-cream:#f8fbff;--pixel-leaf:#22c781;
 --pixel-gold:#ffcf3f;--button-art:none;--pop-primary:#3b65f5;
 --pop-primary-hover:#5279ff;--pop-danger:#ff596d;--pop-good:#22c781;
 --game-accent:#28c7ee;
}
html{background:var(--bg);scrollbar-color:#3e5481 #14203c}
body{background:#14203c;color:var(--text)}
body.playing::before{display:none!important}
body :is(button,a,input){transition:color .1s,background-color .1s,transform .1s}
body :is(button,a):focus-visible{outline:3px solid #ffb73f;outline-offset:3px}
body :is(input,select):focus-visible{outline:3px solid #ffb73f;outline-offset:2px}
body :is(button,.button,.small-button,.filter,.dialog-text-button){text-shadow:none!important;border-radius:9px!important}
html body button:not(.favorite-button):not(.sound-button):not(#pause-button):not(.dialog-close),
html body button,html body a.button,html body .small-button,html body .dialog-text-button,
html body #game-host button{background-image:none!important}
body :is(.ui-icon,.inline-icon,.brand-icon img,.progress-illustration img){image-rendering:pixelated;filter:none!important}
body :is(.ui-icon,.inline-icon){object-fit:contain}
body canvas.game-canvas{image-rendering:auto}
body :is(.brand-icon,.result-sprout,.progress-illustration){filter:none}
body :is(.brand,.eyebrow,.feature-tag,.card-new,.collection-count,.stage-label){font-family:var(--font)}
body :is(.lobby-art,.record-row img){image-rendering:pixelated}

/* Menus, controls, and panels use flat fill and hard edges. */
html body :is(.button,.game-button,.small-button,.filter,.game-help,.dialog-text-button,.top-nav button,.site-footer button){
 background-color:#22c781!important;color:#14203c!important;
 box-shadow:0 2px 0 #0e173180!important;
 border:1px solid #14203c!important;text-shadow:none!important;font-weight:750;
}
html body :is(.button.subtle,.small-button,.filter,.game-help,.dialog-text-button,.top-nav button,.site-footer button),
html body #game-host :is(.workshop-secondary,.adventure-secondary,.studio-secondary,.mind-secondary,.lab-secondary,.reason-button,.reason-secondary,.discovery-secondary,.discovery-card,.invention-button,.invention-secondary,.playground-secondary,.playground-inventory-item,.cabinet-button,.kinetic-secondary,.lantern-action,.lantern-number,.parlor-action,.parlor-pack-item,.tabletop-action,.tumble-button){
 background-color:#1b2c50!important;color:#fff5d2!important;
 box-shadow:0 2px 0 #0e173180!important;
 border:1px solid #14203c!important;text-shadow:none!important;
}
html body :is(.button.primary,.filter.active),
html body #game-host :is(.tabletop-primary,.discovery-thrust,.tumble-direction,.defense-build,.adventure-action,.golf-shoot,.orbit-stop){
 background-color:#22c781!important;color:#14203c!important;
 box-shadow:0 2px 0 #0e173180!important;
}
html body #game-host :is(.defense-start,.curling-broom){background-color:#ffb73f!important;color:#14203c!important;box-shadow:0 2px 0 #0e173180!important}
html body #game-host .world-action{background-color:#22c781!important;color:#14203c!important;box-shadow:0 2px 0 #0e173180!important}
html body #game-host .world-action.is-danger{background-color:#ff596d!important;color:#1b2c50!important}
html body #game-host .world-action.is-blue{background-color:#28c7ee!important;color:#1b2c50!important}
html body #game-host .world-action.is-held{background-color:#ffe477!important}
html body :is(.button,.game-button,.small-button,.filter,.game-help,.dialog-text-button):hover{filter:none;background-image:none!important;transform:translateY(-1px)}
html body :is(.button,.game-button,.small-button,.filter,.game-help,.dialog-text-button):active{filter:none;transform:translateY(1px);box-shadow:0 2px 0 #0e173180!important}
html body button:disabled{filter:none;opacity:.46;transform:none!important}
html body button.is-selected,html body button[aria-pressed=true]:not(.filter):not(.sound-button):not(.favorite-button){outline:2px solid #ffb73f;outline-offset:2px}
html body :is(.icon-button,.favorite-button,.round-play,.dialog-close){
 min-width:44px;min-height:44px;border:1px solid #14203c!important;border-radius:9px!important;
 background:#1b2c50!important;box-shadow:0 2px 0 #0e173180!important;filter:none!important;
}
html body :is(.icon-button,.favorite-button,.round-play,.dialog-close) .ui-icon{width:30px;height:30px;margin:auto}
html body :is(.favorite-button,.round-play,.dialog-close){display:grid;place-items:center}
html body .favorite-button[aria-pressed=true]{background:#263c67!important;box-shadow:0 2px 0 #0e173180!important}
html body .card-play-icon{width:28px;height:28px;background:none!important;box-shadow:none!important}
html body .card-play-icon .ui-icon{width:28px;height:28px}
html body .dialog-close{padding:5px!important}
html body input[type=range]{accent-color:#22c781;min-height:44px}
html body :is(input[type=text],input[type=number],input[type=search],select){border-radius:9px!important}

/* The collection shares the same world, with no photographic/glossy chrome. */
.site-header{border-bottom:2px solid #263c67}
.brand{letter-spacing:.3px;font-size:26px}.brand small{letter-spacing:1px}
.brand-icon{width:48px;height:48px}.brand-icon img{width:100%;height:100%}
.hero .eyebrow{color:#22c781}.hero-description{color:#ffe477}
.hero h1{letter-spacing:-1px}.hero-facts>div{border-color:#263c67}
.hero-orbit,.hero-plus,.hero-sticker{display:none}
.hero-visual{margin-inline:0}.feature-card,.feature-card:hover{transform:none}
.feature-card{border:2px solid #15996a;border-radius:9px!important;background:#1b2c50;box-shadow:0 20px 40px #070e2380!important}
.feature-art>img,.feature-card:hover .feature-art>img{transform:none;transition:none;image-rendering:pixelated}
.feature-art::after{display:none}
.feature-tag{background:#14203c;color:#fff5d2;border:2px solid #ffb73f;border-radius:12px;padding:5px 9px;backdrop-filter:none;font-size:12px;letter-spacing:1px}
.feature-label{color:#fff5d2;background:#14203ce8;text-shadow:none;left:16px;bottom:16px;padding:5px 9px;font-family:var(--font);font-size:clamp(20px,2.5vw,31px);letter-spacing:1px}
.feature-info{border-top:2px solid #15996a;padding:17px 20px}
.feature-info span{color:#8df0bf}.feature-info h2{font-size:20px}
.play-strip{background:#22c781;color:#14203c;border-top:3px solid #14203c;border-bottom:3px solid #14203c;font-family:var(--font);font-weight:750;letter-spacing:1px}
.play-strip div{transform:none}.collection-count{color:#22c781}
.search-field{background:#14203c;border:2px solid #3e5481;border-radius:12px;height:48px;box-shadow:0 2px 0 #0e173180!important}
.search-field input{color:#fff5d2}.search-field input::placeholder{color:#22c781}
.search-field .inline-icon{width:28px;height:28px}
.filter.favorite-filter{border-radius:12px}.filters{gap:8px}
.game-card{border:2px solid #263c67;border-radius:9px!important;background:#14203c;box-shadow:0 8px 20px #070e2340}
.game-card:hover{border-color:#22c781;box-shadow:0 8px 20px #070e2340;transform:translateY(-2px)}
.card-art{background:#14203c;border-bottom:2px solid #263c67}
.card-art img{image-rendering:pixelated;transition:none!important}
.card-art::after{display:none}
.art-wordmark{font:800 19px/1.25 var(--font);background:#14203ce8;color:#fff5d2;text-shadow:none;bottom:12px;left:12px;padding:4px 7px;max-width:calc(100% - 24px)}
.card-category{font-size:12px;border-radius:12px;background:#fff5d2;color:#14203c;padding:3px 7px;border:1px solid #14203c}
.card-new{border-radius:12px;background:#ffb73f;color:#1b2c50;padding:3px 7px;border:1px solid #14203c}
.card-body{padding:18px 20px}.card-body h3{color:#fff5d2}.card-body p{color:#22c781}
.card-bottom{border-top-color:#263c67}.card-status.played{color:#22c781}
.progress-section{background:#1b2c50;border:2px solid #3e5481;border-radius:12px;box-shadow:0 12px 28px #070e2355}
.progress-illustration img{object-fit:contain;width:80px;height:96px}
html body .progress-link{background:none!important;border:0!important;box-shadow:none!important;color:#fff5d2!important}
.progress-link .text-link{background:#22c781;background-image:none;color:#14203c;border:1px solid #14203c;border-radius:12px;box-shadow:0 2px 0 #0e173180!important}
.site-footer{border-top:2px solid #263c67}.play-header{border-bottom:2px solid #263c67}
.play-brand{color:#fff5d2}.back-home .inline-icon{width:28px;height:28px}
.lobby-art{border:2px solid #3e5481;border-radius:9px!important;box-shadow:0 12px 28px #070e2355;image-rendering:pixelated}
.lobby-controls{background:#14203c;border:2px solid #3e5481;border-radius:12px;color:#ffe477}
.lobby-copy>p{color:#22c781}
html body .stage-tile{background:#1b2c50!important;border:1px solid #14203c!important;border-radius:9px!important;box-shadow:0 2px 0 #0e173180!important}
.stage-tile strong{text-shadow:none;color:#fff5d2;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.stage-tile span{color:#ffb73f}
html body .stage-tile.cleared,html body .stage-tile.recommended{background:#22c781!important;box-shadow:0 2px 0 #0e173180!important}
.stage-tile.cleared strong,.stage-tile.recommended strong{color:#14203c}
.stage-tile.cleared span,.stage-tile.recommended span{color:#1b2c50}

/* Keep the proven immersive geometry; only flat materials change here. */
body.in-game,body.in-game #game-view{background:#14203c}
.arena-topbar{background:#14203c;border-bottom:2px solid #3e5481;box-shadow:none}
.arena-title h1{color:#fff5d2}.arena-title .stage-label{color:#22c781}
.arena-topbar .hud-item{border-left-color:#3e5481}
.arena-topbar .hud-item span{color:#22c781}.arena-topbar .hud-item strong{color:#fff5d2;font-variant-numeric:tabular-nums}
.arena-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
html body.in-game .arena-audio-button{width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;padding:5px!important}
html body.in-game .arena-audio-button .ui-icon{width:28px;height:28px}
html body.in-game .arena-menu-button{background:#1b2c50!important;color:#fff5d2!important;border:1px solid #14203c!important;border-radius:12px;box-shadow:0 2px 0 #0e173180!important}
.arena-menu-symbol::before,.arena-menu-symbol::after,.arena-menu-symbol i{border-radius:12px;height:2px}
#game-host .arena-dock{background:#14203c;border-top:2px solid #3e5481;box-shadow:none}
#game-host .arena-feedback{background:#14203c;color:#ffe477}
#game-host .arena-workspace{scrollbar-color:#15996a #14203c}
#game-host .arena-main-stage,#game-host .arena-main-stage>.game-canvas,
body #game-host .game-canvas{border-radius:9px!important;box-shadow:none!important}
body #game-host canvas.game-canvas{image-rendering:auto}
body #game-host :is(.studio-mini,.reason-mini,.mind-mini,.discovery-card-art,.discovery-bell-art,.parlor-item-art,.puzzle-token,.stack-token,.tabletop-card-art,.tabletop-food-art,.tabletop-station-art){filter:none}
body #game-host :is([class*="-panel"],[class*="-board"],[class*="-grid"],.tabletop-played-card,.tabletop-trump,.tabletop-prediction,.tabletop-trick-badge,.tabletop-station,.tabletop-schedule,.tabletop-track,.tabletop-task,.tabletop-station-meter,.tabletop-station-meter>span,.pair-back,.pair-face,.detective-house,.detective-caption,.cipher-swatch,.mind-word,.mind-target-details,.discovery-intent,.discovery-card-cost,.cabinet-clue,.cabinet-garage-exit,.cabinet-car-label,.cabinet-island-number,.cabinet-island-count,.cabinet-card-rank,.cabinet-card-state,.cabinet-waste,.parlor-bank,.parlor-limits,.parlor-pit,.parlor-store,.lantern-targets,.invention-life-section){border-radius:9px!important}
body #game-host :is(.puzzle-panel,.color-panel,.mind-panel,.reason-panel,.detective-panel,.circuit-panel,.circuit-table-panel,.invention-panel,.playground-panel,.tabletop-tricks-board,.tabletop-pipeline-board){background:#1b2c50;box-shadow:0 4px #14203c,inset 0 0 0 1px #3e5481!important}
body #game-host :is(.pipe-grid,.lights-grid,.slide-grid,.color-grid){background:#14203c;box-shadow:0 4px #14203c!important}
body #game-host :is(.pair-card,.pair-back){background:#263c67;box-shadow:0 2px 0 #0e173180!important}
body #game-host :is(.pair-card.is-open,.pair-face){background:#fff5d2;box-shadow:0 2px 0 #0e173180!important}
body #game-host .pair-card.is-matched{background:#22c781;box-shadow:0 2px 0 #0e173180!important}
body #game-host .lamp-cell.is-on{background:#df753425;box-shadow:none}
body #game-host :is(.tabletop-card,.tabletop-job,.discovery-card,.playground-inventory-item){background:#1b2c50;box-shadow:0 2px 0 #0e173180!important}
body #game-host .tabletop-card.is-legal{background:#263c67;border-color:#22c781;box-shadow:0 2px 0 #0e173180!important}
body #game-host .tabletop-opponent-card{background:#14203c;box-shadow:0 2px 0 #0e173180!important}
body #game-host .tabletop-job.is-selected{background:#263c67}
body #game-host .tabletop-station{background:#1b2c50;box-shadow:none}
body #game-host .tabletop-station.is-working{background:#263c67;box-shadow:0 2px 0 #0e173180!important}
body #game-host .tabletop-station.is-finished{background:#263c67}
body #game-host .tabletop-played-card.is-winner{background:#263c67;box-shadow:none}
body #game-host .tabletop-goal,body #game-host .tabletop-card-number{font-family:var(--font)}
body #game-host .tabletop-task.is-current{box-shadow:0 0 0 1px #fff5d2}
body #game-host .tabletop-now{box-shadow:none}
body #game-host .parlor-mancala{background:#df7534;box-shadow:0 6px #263c67}
body #game-host .parlor-mahjong{background:#1b2c50;box-shadow:0 4px #14203c}
body #game-host .parlor-mahjong-tile{background:#fff5d2;box-shadow:0 2px 0 #0e173180!important}
body #game-host .parlor-pack-item{background:#1b2c50;box-shadow:0 2px 0 #0e173180!important}
body #game-host .parlor-bank{background:#1b2c50;box-shadow:none}
body #game-host .parlor-bank.has-boat{background:#263c67;box-shadow:0 2px 0 #0e173180!important}
/* Important: do not add a surface to transparent board buttons or hit regions.
   Progress gradients in typing and the pipeline time grid remain meaningful. */
body #game-host :is(.cabinet-cell,.cabinet-car,.cabinet-island,.cabinet-playing-card,.mind-cell,.reason-cell,.lab-match-cell,.discovery-room-hit,.playground-mole-hit){background-color:transparent!important;box-shadow:none!important;border-color:transparent!important}
body #game-host .discovery-bell.is-playing{filter:none;outline:3px solid #ffb73f;outline-offset:2px;box-shadow:0 2px 0 #0e173180!important}
html body #game-host .discovery-bell{border-bottom:4px solid var(--bell-color)!important}
html body #game-host .reason-cell.is-hint{outline:3px solid #ffb73f!important;outline-offset:-3px}
html body #game-host .trail-node.is-available{outline:2px solid #22c781!important;outline-offset:-3px;text-decoration:underline;text-underline-offset:4px}
html body #game-host .trail-node.is-hint{outline:3px solid #ffb73f!important;outline-offset:-3px}
body #game-host .is-hint{animation:none;outline-color:#ffb73f!important}
body #game-host .puzzle-won .puzzle-grid{filter:none}
/* Keep flight inputs together when the wide-screen dock uses flex groups. */
#game-host[data-game=lander] .arena-dock .discovery-flight-controls{display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));width:min(100%,680px);gap:6px!important}
#game-host[data-game=lander] .arena-dock .discovery-flight-start{grid-column:1/-1}
@media(min-width:700px){
 #game-host[data-game=lander] .arena-dock .discovery-flight-controls{grid-template-columns:repeat(4,minmax(44px,1fr))}
 #game-host[data-game=lander] .arena-dock .discovery-flight-start{grid-column:auto;justify-self:stretch;min-width:44px}
}

/* Dialogs and the separate sound settings view. */
html body :is(.play-dialog,.info-dialog){background:#14203c;border:2px solid #22c781;border-radius:12px;box-shadow:8px 8px 0 #14203c}
html body :is(.play-dialog,.info-dialog)::backdrop{background:#0e1731cc;backdrop-filter:none}
html body.in-game .play-dialog::backdrop{background:#0e1731cc;backdrop-filter:none}
.result-stars .earned{color:#ffb73f;text-shadow:none}
.result-score{background:#14203c;border:1px solid #3e5481;border-radius:12px}
.record-stat,.about-feature{background:#1b2c50;border:1px solid #3e5481;border-radius:12px}
.record-row{border-color:#263c67}.record-row img{border-radius:12px}
.arena-menu-game{color:#22c781}.arena-help-copy{color:#ffe477}
.retired-game-notice,.retired-game-art,.retired-history,.retired-record-card{border-radius:12px;box-shadow:none}
.audio-settings{display:grid;gap:14px;text-align:left;margin:14px 0;min-width:0}
.audio-setting-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 10px;min-width:0}
.audio-setting-row label,.audio-setting-row strong{font-size:15px;color:#fff5d2}
.audio-setting-row>span{grid-column:1;grid-row:1;font-size:15px;color:#fff5d2}
.audio-setting-row output{grid-column:2;grid-row:1;font:700 14px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;color:#22c781}
.audio-setting-row input[type=range]{grid-column:1/-1;grid-row:2;width:100%;margin:0;min-height:44px;accent-color:#22c781}
.audio-track-credit{font-size:13px;line-height:1.65;color:#22c781;overflow-wrap:anywhere;background:#14203c;padding:9px 11px;border:1px solid #3e5481}
.audio-track-credit a,.audio-settings a{color:#ffe477;text-decoration:underline;text-underline-offset:3px}
.audio-track-credit>span,.audio-track-credit>strong,.audio-track-credit>small{display:block}
.audio-track-credit>strong{color:#fff5d2;font-size:14px;margin:3px 0}
.audio-setting-note{font-size:13px;line-height:1.5;color:#22c781;margin:0}
.audio-status{font-size:14px;line-height:1.65;color:#ffe477;overflow-wrap:anywhere}
.audio-settings .button,.audio-settings button{min-height:44px}
.audio-settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.audio-settings-actions .button{width:100%;min-height:44px;padding:10px;font-size:14px;white-space:normal}
.lobby-audio-note{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:14px 0;color:#22c781;font-size:14px;line-height:1.65}
.lobby-audio-note button{min-height:44px;padding:9px 14px;font-size:14px}
@media(max-width:600px){
 .brand{font-size:23px}.brand-icon{width:42px;height:42px}
 .feature-label{font-size:22px;left:12px;bottom:12px}.feature-tag{top:13px;left:13px;font-size:11px}
 .feature-info{padding:14px 15px}.feature-info h2{font-size:18px}
 .art-wordmark{font-size:14px;left:8px;bottom:8px;max-width:calc(100% - 16px);padding:3px 4px}
 .card-category{font-size:10px;left:8px;top:8px}.card-new{top:36px;left:8px;font-size:10px}
 html body .favorite-button{width:44px;height:44px;right:5px;top:5px}
 .card-body{padding:13px 12px}.progress-illustration img{width:62px;height:80px}
 .audio-settings{gap:9px;margin:10px 0}.audio-track-credit{font-size:12px;padding:7px 9px}
 .arena-tools{gap:5px}.audio-settings-actions{gap:7px}.audio-settings-actions .button{font-size:13px;padding:9px 8px}
}
@media(prefers-reduced-motion:reduce){body :is(button,a,input){transition:none}.game-card:hover,.feature-card:hover{transform:none}}

/* V12 finish: shared chrome is quiet; saturated colors identify actions and state. */
html{background:#101a35;scrollbar-color:#5272aa #14203c}
body{background:#101a35;color:#f8fbff}
body :is(button,a,input){transition:background-color .15s,color .15s,transform .15s,box-shadow .15s}
body :is(button,.button,.small-button,.filter,.dialog-text-button){border-radius:9px!important}
body :is(button,a):focus-visible{outline:3px solid #ffcf3f;outline-offset:3px}
html body :is(.button,.game-button,.small-button,.filter,.game-help,.dialog-text-button,.top-nav button,.site-footer button){
 background-color:#3b65f5!important;color:#fff!important;border:1px solid #6687ff!important;
 box-shadow:0 2px 0 #172344!important;font-weight:750;
}
html body :is(.button.subtle,.small-button,.filter,.game-help,.dialog-text-button,.top-nav button,.site-footer button),
html body #game-host :is(.workshop-secondary,.adventure-secondary,.studio-secondary,.mind-secondary,.lab-secondary,.reason-button,.reason-secondary,.discovery-secondary,.discovery-card,.invention-button,.invention-secondary,.playground-secondary,.playground-inventory-item,.cabinet-button,.kinetic-secondary,.lantern-action,.lantern-number,.parlor-action,.parlor-pack-item,.tabletop-action,.tumble-button){
 background-color:#263c67!important;color:#f8fbff!important;border:1px solid #5272aa!important;
 box-shadow:0 2px 0 #101a35!important;
}
html body :is(.button.primary,.filter.active),
html body #game-host :is(.tabletop-primary,.discovery-thrust,.tumble-direction,.defense-build,.adventure-action,.golf-shoot,.orbit-stop,.world-action){
 background-color:#3b65f5!important;color:#fff!important;border-color:#6687ff!important;
 box-shadow:0 2px 0 #172344!important;
}
html body #game-host :is(.defense-start,.curling-broom){background-color:#ffcf3f!important;color:#182449!important;border-color:#ffe477!important;box-shadow:0 2px 0 #896620!important}
html body #game-host .world-action.is-danger{background-color:#ff596d!important;color:#182449!important;border-color:#ff9bad!important}
html body #game-host .world-action.is-blue{background-color:#28c7ee!important;color:#182449!important;border-color:#95eaff!important}
html body #game-host .world-action.is-held{background-color:#22c781!important;color:#182449!important;border-color:#8df0bf!important}
html body :is(.button.primary,.game-button,.filter.active):hover{background-color:#5279ff!important;color:#fff!important}
html body :is(.button.subtle,.small-button,.game-help,.dialog-text-button):hover{background-color:#344f81!important}
html body button:disabled{opacity:.52;filter:none;transform:none!important}
html body :is(.icon-button,.favorite-button,.round-play,.dialog-close){
 border:1px solid #5272aa!important;border-radius:10px!important;background:#1b2c50!important;
 box-shadow:none!important;backdrop-filter:none!important;min-width:44px;min-height:44px;
}
html body .round-play{background:#3b65f5!important;border-color:#6687ff!important}
html body .favorite-button[aria-pressed=true]{background:#682b54!important;border-color:#ff89ad!important;box-shadow:none!important}
html body button.is-selected,html body button[aria-pressed=true]:not(.filter):not(.sound-button):not(.favorite-button){outline-color:#ffcf3f}
html body input[type=range]{accent-color:#3b65f5}
html body :is(input[type=text],input[type=number],input[type=search],select){border-radius:8px!important}
.site-header,.play-header,.site-footer{border-color:#2a416f}
.hero .eyebrow{color:#28c7ee}.hero-description{color:#b9c9e6}.hero h1 span{color:#28c7ee}
.hero h1{letter-spacing:-1px}.hero-facts>div{border-color:#2a416f}.hero-facts strong{font-weight:750}
.hero-visual{margin-inline:0}.feature-card{background:#1b2c50;border:1px solid #41629b;border-radius:18px!important;box-shadow:0 16px 32px #050e2450!important}
.feature-art{background:#162b54}.feature-art>img,.feature-card:hover .feature-art>img{transform:none}
.feature-tag{background:#ffcf3f;color:#182449;border:0;border-radius:7px;font-size:12px;letter-spacing:.6px;padding:5px 9px}
.feature-label{background:#14203cf0;color:#fff;border-radius:8px;padding:7px 11px;font-family:var(--font);letter-spacing:0}
.feature-info{border-top:1px solid #41629b}.feature-info span{color:#adbedb}
.play-strip{background:#3b65f5;color:#fff;border:0;letter-spacing:1.5px}.play-strip div{font-family:var(--font)}
.collection-count{color:#adbedb}.search-field{background:#14203c;border:1px solid #5272aa;border-radius:10px;box-shadow:none;height:48px}
.search-field input{font-size:14px;color:#f8fbff}.search-field input::placeholder{color:#adbedb}
.filters{gap:8px}.filter{min-height:44px;font-size:14px}.filter.favorite-filter{border-radius:9px}
.game-card{background:#1b2c50;border:1px solid #304b7c;border-radius:15px!important;box-shadow:0 7px 16px #070e2333}
.game-card:hover{border-color:#7296ff;box-shadow:0 12px 25px #070e2366;transform:translateY(-3px)}
.card-art{background:#14203c;border-bottom:1px solid #304b7c}.card-art img{transform:none!important}
.art-wordmark{background:#14203cf0;color:#fff;border-radius:7px;letter-spacing:0;padding:6px 8px;font-family:var(--font)}
.card-category{background:#f8fbff;color:#182449;border:0;border-radius:5px;font-size:12px}
.card-new{background:#ffcf3f;color:#182449;border:0;border-radius:5px;font-size:12px}
.card-body h3{color:#f8fbff}.card-body h3 a:hover{color:#71e5ff}.card-body p{color:#b9c9e6;font-size:14px}
.card-bottom{border-color:#304b7c;color:#adbedb;font-size:12px}.card-status{color:#adbedb}.card-status.played{color:#64e9ab}
.progress-section{background:#1b2c50;border:1px solid #41629b;border-radius:16px;box-shadow:none}
.progress-section .eyebrow{color:#28c7ee}.progress-section p,.progress-link>span:first-child,.progress-link small{color:#b9c9e6}
.progress-link strong{color:#28c7ee}.progress-link .text-link{background:#3b65f5;color:#fff;border:1px solid #6687ff;border-radius:9px;box-shadow:none}
.footer-brand{color:#f8fbff}.site-footer,.footer-brand span{color:#adbedb}
.lobby-art{border:1px solid #41629b;border-radius:16px!important;box-shadow:0 12px 28px #070e2344}
.lobby-controls{background:#1b2c50;border:1px solid #41629b;border-radius:12px;color:#b9c9e6}
.lobby-copy>p{color:#b9c9e6}
html body .stage-tile{background:#263c67!important;color:#f8fbff!important;border:1px solid #5272aa!important;border-radius:10px!important;box-shadow:0 3px 0 #101a35!important}
html body .stage-tile.cleared{background:#147e61!important;border-color:#22c781!important}
html body .stage-tile.recommended{background:#3b65f5!important;border-color:#91aaff!important}
.stage-tile strong,.stage-tile.cleared strong,.stage-tile.recommended strong{color:#f8fbff;font-family:var(--font)}
.stage-tile span,.stage-tile.cleared span,.stage-tile.recommended span{color:#ffe477}
body.in-game,body.in-game #game-view{background:#14203c}
.arena-topbar{background:#14203c;border-top:3px solid var(--game-accent);border-bottom:1px solid #304b7c;box-shadow:none}
.arena-title h1{color:#f8fbff}.arena-title .stage-label{color:#b9c9e6;font-family:var(--font);letter-spacing:.5px}
.arena-topbar .hud-item{border-left-color:#304b7c}.arena-topbar .hud-item span{color:#adbedb}.arena-topbar .hud-item strong{color:#f8fbff}
html body.in-game .arena-menu-button{background:#263c67!important;color:#f8fbff!important;border:1px solid #5272aa!important;border-radius:9px!important;box-shadow:none!important}
#game-host .arena-dock{background:#14203c;border-top:1px solid #304b7c;box-shadow:none}
#game-host .arena-feedback{background:#101a35;color:#c7d6ef}
#game-host .arena-workspace{scrollbar-color:#5272aa #14203c}
#game-host .arena-main-stage,#game-host .arena-main-stage>.game-canvas,body #game-host .game-canvas{border-radius:10px!important;box-shadow:none!important}
body #game-host :is(.puzzle-panel,.color-panel,.mind-panel,.reason-panel,.detective-panel,.circuit-panel,.circuit-table-panel,.invention-panel,.playground-panel,.tabletop-tricks-board,.tabletop-pipeline-board){background:#1b2c50;box-shadow:none!important;border-color:#41629b}
body #game-host :is(.pipe-grid,.lights-grid,.slide-grid,.color-grid){background:#182f57;box-shadow:0 5px 18px #070e232e!important}
body #game-host :is(.pair-card,.pair-back){background:#3b65f5;border-radius:10px!important;box-shadow:0 3px 0 #203b85}
body #game-host :is(.pair-card.is-open,.pair-face){background:#f8fbff;box-shadow:0 3px 0 #94a9cf}
body #game-host .pair-card.is-matched{background:#8df0bf;box-shadow:0 3px 0 #15996a}
body #game-host .lamp-cell.is-on{background:#ffcf3f33;box-shadow:none}
body #game-host :is(.tabletop-card,.tabletop-job,.discovery-card,.playground-inventory-item){background:#263c67;border-color:#5272aa;box-shadow:0 2px 0 #101a35}
body #game-host .tabletop-card.is-legal{background:#194f55;border-color:#22c781;box-shadow:0 2px 0 #101a35}
body #game-host .tabletop-opponent-card{background:#263c67;box-shadow:0 2px 0 #101a35}
body #game-host .tabletop-job.is-selected{background:#315c91;border-color:#28c7ee}
body #game-host .tabletop-station{background:#20365e;border-color:#41629b;box-shadow:none}
body #game-host .tabletop-station.is-working{background:#34456e;box-shadow:inset 0 3px #ffcf3f}
body #game-host .tabletop-station.is-finished{background:#194f55;box-shadow:inset 0 3px #22c781}
body #game-host .tabletop-played-card.is-winner{background:#194f55;box-shadow:none}
body #game-host .tabletop-task.is-current{box-shadow:0 0 0 2px #ffcf3f}
body #game-host .parlor-mancala{background:#ffbd57;border:2px solid #d98932;box-shadow:0 5px 0 #765526}
body #game-host :is(.parlor-pit,.parlor-store){background:#704120;color:#fff5d2;border:2px solid #e9993f;box-shadow:inset 0 2px #522d20}
body #game-host .parlor-mahjong{background:#147e61;box-shadow:0 4px 0 #0f574a}
body #game-host .parlor-mahjong-tile{background:#f8fbff;border-radius:5px!important;box-shadow:0 3px 0 #8ba4ba}
body #game-host .parlor-pack-item{background:#263c67;box-shadow:0 2px 0 #101a35}
body #game-host .parlor-bank{background:#20365e;box-shadow:none}
body #game-host .parlor-bank.has-boat{background:#194f55;box-shadow:inset 0 0 0 2px #22c781}
/* Interactive canvas overlays must remain transparent and geometrically exact. */
body #game-host :is(.cabinet-cell,.cabinet-car,.cabinet-island,.cabinet-playing-card,.mind-cell,.reason-cell,.lab-match-cell,.discovery-room-hit,.playground-mole-hit){background-color:transparent!important;box-shadow:none!important;border-color:transparent!important;border-radius:0!important}
html body #game-host .reason-cell.is-hint{outline:3px solid #ffcf3f!important}
html body #game-host .trail-node.is-available{outline:2px solid #22c781!important}
html body #game-host .trail-node.is-hint{outline:3px solid #ffcf3f!important}
body #game-host .discovery-bell.is-playing{outline:3px solid #ffcf3f;box-shadow:inset 0 0 0 2px #f8fbff!important}
html body :is(.play-dialog,.info-dialog){background:#1b2c50;border:1px solid #5272aa;border-radius:16px;box-shadow:0 20px 60px #040a21a6}
html body :is(.play-dialog,.info-dialog)::backdrop,html body.in-game .play-dialog::backdrop{background:#070e23cc;backdrop-filter:none}
.result-score,.record-stat,.about-feature{background:#14203c;border:1px solid #41629b;border-radius:10px}
.result-stars .earned{color:#ffcf3f}.record-row{border-color:#304b7c}.record-row img{border-radius:8px}
.arena-menu-game,.arena-help-copy{color:#c7d6ef}
.audio-setting-row label,.audio-setting-row strong,.audio-setting-row>span{color:#f8fbff}
.audio-setting-row output{color:#71e5ff}.audio-setting-row input[type=range]{accent-color:#3b65f5}
.audio-track-credit{background:#14203c;border:1px solid #41629b;border-radius:9px;color:#adbedb}
.audio-track-credit>strong{color:#f8fbff}.audio-track-credit a,.audio-settings a{color:#71e5ff}
.audio-setting-note,.audio-status,.lobby-audio-note{color:#b9c9e6}
@media(max-width:600px){
 .card-body p{font-size:12px;line-height:1.65}.card-body h3{font-size:14px;white-space:normal}
 .card-bottom{font-size:11px}.card-status{font-size:10px}
 .card-category,.card-new{font-size:10px}.filter{font-size:12px;min-height:44px}
 .hero-description{font-size:15px}.search-field input{font-size:14px}
 .feature-card{border-radius:15px!important}.feature-label{font-size:20px}
}
/* Mancala wells retain their board-game shape rather than the control shape. */
html body #game-host .parlor-pit{background:#704120!important;color:#f8fbff!important;border:2px solid #d98932!important;border-radius:44%!important;box-shadow:inset 0 3px #522d20!important;text-shadow:none!important}
html body #game-host .parlor-pit:hover:not(:disabled){background:#8a542c!important;color:#f8fbff!important}
html body #game-host .parlor-store{background:#704120;color:#f8fbff;border-radius:16px!important}
