/* V0.736 Search Atelier — game-first only; no shared/game engine edits. */
.vs-page{--v-ink:#102b34;--v-teal:#087d72;--v-mint:#a7f2ce;--v-gold:#f3d88c;--v-paper:#fffdfa;--v-faint:#e9f5f0;--v-line:#c9ddd5;max-width:1240px;padding:10px 20px 90px;}
body:has(.vs-page){background:radial-gradient(circle at 14% 0%,#dff5e6 0,transparent 40%),linear-gradient(145deg,#f3f6f1,#e7f0ef 80%);}
body:has(.vs-page) .preview-note{padding:4px 12px;font-size:10px;opacity:.66;}
body:has(.vs-page) .topbar{background:#102c36;border-bottom:1px solid #2b5d60;color:#f4fbf6;}
body:has(.vs-page) .topbar .nav{min-height:48px;}
body:has(.vs-page) .topbar a{color:#f4fbf6;}
.vs-hero{margin:0 0 8px!important;padding:4px 1px 3px!important;}
.vs-hero h1{font-size:clamp(27px,3.4vw,43px)!important;line-height:1.04!important;letter-spacing:-1.5px!important;margin:4px 0 4px!important;color:#102e37!important;}
.vs-hero h1 em{color:#087c70;font-style:normal;}
.vs-hero p{max-width:890px;font-size:12px!important;line-height:1.35;margin:0!important;color:#526a67;}
.vs-hero .eyebrow{font-size:10px!important;color:#0c806a;font-weight:900;letter-spacing:.12em;}
.vs-game-panel{padding:12px!important;background:#fffdfa!important;border:1px solid var(--v-line)!important;border-radius:19px!important;box-shadow:0 12px 38px #10383414!important;}
.vs-topline{margin-bottom:7px;}
.vs-tabs a{border-radius:10px!important;border-color:#cbded5!important;padding:7px 13px!important;font-size:12px;font-weight:850;color:#183d42!important;background:#f0f7f3!important;}
.vs-tabs a.active{background:#123843!important;color:white!important;border-color:#123843!important;}
.vs-mini-record{font-size:11px!important;color:#5c716e!important;}
.vs-mini-record strong{color:#164b48!important;}
.v736-settings,.v736-help{border:1px solid #d1e3d9;border-radius:11px;background:#f1f8f3;margin:6px 0 8px;}
.v736-settings>summary,.v736-help>summary{cursor:pointer;list-style:none;padding:9px 11px;font-size:12px;font-weight:850;color:#1d4c4b;display:flex;align-items:center;justify-content:space-between;gap:8px;}
.v736-settings>summary:after,.v736-help>summary:after{content:'⌄';color:#137b69;font-size:15px;}
.v736-settings[open]>summary:after,.v736-help[open]>summary:after{content:'⌃';}
.v736-settings>summary::-webkit-details-marker,.v736-help>summary::-webkit-details-marker{display:none;}
.v736-settings .vs-setup{display:flex!important;flex-wrap:wrap;align-items:start;gap:12px;margin:0 8px 8px!important;padding:10px!important;background:white;border-color:#d9e8e1;border-radius:9px;}
.v736-settings .vs-setup>div{min-width:0;flex:1 1 180px;}
.vs-levels a,.vs-session button,.vs-stimulus button{padding:7px 9px!important;font-size:11px!important;}
.v736-settings .vs-utility{margin-left:0;}
.vs-status{background:#e7f4ec!important;color:#1d5245!important;padding:8px 11px!important;min-height:0!important;font-size:12px;line-height:1.3;border-radius:9px!important;}
.vs-roundbar{background:#e3ece6!important;margin:7px 0!important;}
.vs-roundbar-fill{background:linear-gradient(90deg,#079681,#9ed785)!important;}
.vs-live-hud{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;margin:6px 0!important;}
.vs-live-hud span{background:#f2f7f2!important;border-color:#e0eae1!important;border-radius:10px!important;padding:5px 8px!important;}
.vs-live-hud small{font-size:10px!important;color:#536d68!important;font-weight:750;letter-spacing:.035em;}
.vs-live-hud strong{color:#123c40!important;font-size:16px!important;}
.vs-stage{display:block!important;}
.vs-board{min-height:0!important;width:100%;border:1px solid #213b4d!important;background:linear-gradient(150deg,#19394a,#102634 70%)!important;border-radius:17px!important;padding:10px 12px 9px!important;gap:7px!important;box-shadow:0 8px 28px #172c3a22!important;}
.vs-start-row{margin:0!important;display:flex!important;justify-content:space-between!important;align-items:center;gap:10px!important;}
.vs-start-row .vs-start{min-width:0!important;min-height:39px!important;padding:8px 25px!important;border-radius:10px!important;background:#c2f391!important;color:#1b3e37!important;border:0!important;font-weight:900!important;box-shadow:inset 0 -2px #6da778;}
.vs-start-row p{font-size:11px!important;max-width:270px;line-height:1.3;color:#c6dbd4!important;}
.vs-board-top{gap:10px!important;padding:0 4px;}
.vs-target-row{color:#d1e7df!important;font-size:11px!important;gap:11px;}
.vs-target{background:#e3f5e7!important;border:2px solid #8dd3ae!important;color:#173c45;border-radius:12px!important;width:47px!important;height:47px!important;font-size:28px!important;box-shadow:0 0 0 5px #8dd3ae18;}
.vs-icon-btn{background:#234957!important;border-color:#537982!important;color:#f2fffa!important;font-size:11px!important;padding:7px 9px!important;}
.v736-tasknote{margin:0;text-align:center;color:#c2dbd3;font-size:11px;font-weight:650;}
.vs-grid{width:min(100%,380px)!important;max-height:400px;gap:5px!important;margin:0 auto!important;}
.vs-cell{border:1px solid #6a898f!important;background:#274451!important;border-radius:10px!important;min-width:0;touch-action:manipulation;box-shadow:inset 0 1px #ffffff0e;}
.vs-cell:hover:not(:disabled){border-color:#bcecc5!important;background:#305963!important;transform:translateY(-1px);}
.vs-cell:focus-visible,.vs-icon-btn:focus-visible,.vs-start:focus-visible,.v736-settings summary:focus-visible,.v736-help summary:focus-visible{outline:3px solid #f9d37c!important;outline-offset:3px!important;}
.vs-cell:disabled{opacity:.76;}
.vs-cell span{filter:drop-shadow(0 1px 1px #0006);font-size:clamp(20px,2.5vw,29px)!important;}
.vs-cell[data-color=blue] span{color:#8ccaff!important;}.vs-cell[data-color=orange] span{color:#ffd178!important;}.vs-cell[data-color=green] span{color:#9eeea3!important;}.vs-cell[data-color=purple] span{color:#d3b5ff!important;}
.vs-answers{width:min(100%,380px)!important;margin:0 auto!important;}
.vs-answers button{background:#f4d99a!important;color:#233c41!important;border:0!important;border-radius:10px!important;min-height:38px!important;font-weight:900!important;}
.vs-answers button:disabled{opacity:.55!important;}
.vs-board-foot{color:#b2ccc3!important;font-size:10px!important;margin-top:0!important;}
.v736-help{margin-top:9px;}
.v736-help .vs-side{padding:0 8px 8px;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));}
.v736-help .vs-card{background:#fff!important;border-color:#d6e6db!important;}
.vs-results-panel{margin-top:10px!important;}
body.vs-focus .vs-game-panel{background:#102c39!important;max-height:100dvh;overflow:auto;}
body.vs-focus .vs-stage{display:block!important;}
body.vs-focus .vs-board{min-height:0!important;width:min(840px,100%)!important;margin:auto;}
body.vs-focus .vs-grid{width:min(100%,380px)!important;max-height:400px;}
body.vs-focus .v736-settings,body.vs-focus .v736-help{display:none!important;}
body.vs-focus .vs-status,body.vs-focus .vs-live-hud span{color:#173c3a!important;}
@media (max-width:820px){.vs-page{padding:6px 10px 70px!important;}.vs-hero{padding:2px 0!important;}.vs-hero h1{font-size:31px!important;}.vs-hero p{font-size:11px!important;}.vs-game-panel{padding:8px!important;}.vs-live-hud{gap:3px!important;}.vs-live-hud span{padding:5px 3px!important;text-align:center;}.vs-live-hud strong{font-size:13px!important;}.vs-live-hud small{font-size:8px!important;}.vs-grid{width:min(100%,305px)!important;max-height:310px;}.vs-board{padding:9px!important;}.v736-help .vs-side{grid-template-columns:1fr;}}
@media (max-width:560px){.vs-hero p{max-width:100%;}.vs-board{gap:5px!important;}.vs-start-row .vs-start{width:100%;padding:7px!important;}.vs-start-row p{display:none;}.vs-live-hud span{padding:4px 1px!important;}.vs-live-hud small{font-size:8px!important;}.vs-live-hud strong{font-size:12px!important;}.vs-board-top{padding:0;}.vs-grid{width:min(100%,260px)!important;max-height:260px;gap:4px!important;}.vs-cell{border-radius:7px!important;}.vs-cell span{font-size:clamp(17px,5vw,23px)!important;}.v736-tasknote{font-size:10px;}.vs-target{width:40px!important;height:40px!important;}.vs-answers button{min-height:37px!important;}.vs-mini-record{font-size:10px!important;}.v736-settings>summary{font-size:11px;}}
@media (max-width:350px){.vs-hero h1{font-size:26px!important;}.vs-hero p{display:none;}.vs-live-hud strong{font-size:11px!important;}.vs-grid{width:min(100%,237px)!important;max-height:237px;}.vs-board-top{flex-wrap:wrap;}.vs-board-actions button{padding:5px 6px!important;}.vs-game-panel{padding:6px!important;}}
@media (prefers-reduced-motion:reduce){.vs-cell{transition:none!important;}}
/* Fold-proof measured overrides. Move fixed mobile navigation below the activity, never across cells. */
body:has(.vs-page) .mobile-dock{position:static!important;inset:auto!important;transform:none!important;box-shadow:none!important;margin:16px auto 0;max-width:600px;}
body:has(.vs-page) .preview-note{display:none!important;}
.vs-page .vs-hero{min-height:0!important;}
.vs-hero .eyebrow{display:inline-block;}
@media (min-width:821px){
 .vs-hero h1{font-size:31px!important}.vs-hero p{font-size:11px!important}.vs-hero{margin-bottom:3px!important;}
 .vs-game-panel{padding:9px!important}.vs-topline{margin-bottom:3px!important}.v736-settings{margin:3px 0 4px!important}.v736-settings>summary{padding:6px 10px!important}
 .vs-status{padding:5px 9px!important}.vs-live-hud{margin:4px 0!important;}.vs-live-hud span{padding:3px 5px!important}
 .vs-board{gap:4px!important;padding:8px!important}.vs-grid{width:min(100%,300px)!important;max-height:300px;}.vs-target{width:40px!important;height:40px!important}
 .vs-start-row .vs-start{min-height:35px!important}.vs-answers button{min-height:36px!important}.v736-tasknote{font-size:10px}
}
@media (max-width:820px){
 .vs-hero h1{margin:1px 0 2px!important}.vs-hero{margin-bottom:3px!important;}
 .vs-game-panel{padding:7px!important}.vs-topline{margin-bottom:3px!important}
 .v736-settings{margin:3px 0 4px!important}.v736-settings>summary{padding:6px 9px!important}
 .vs-status{min-height:0!important;padding:5px 9px!important;font-size:11px;line-height:1.2;}
 .vs-roundbar{margin:4px 0!important}.vs-live-hud{margin:3px 0!important;gap:2px!important}.vs-live-hud span{padding:3px 1px!important}.vs-live-hud small{font-size:7px!important}.vs-live-hud strong{font-size:11px!important}
 .vs-board{gap:4px!important;padding:7px!important}.vs-start-row .vs-start{min-height:34px!important;padding:6px 12px!important}
 .vs-board-top{gap:4px}.vs-target{width:36px!important;height:36px!important;font-size:23px!important}.v736-tasknote{display:none!important}
 .vs-grid{width:min(100%,260px)!important;max-height:260px;gap:3px!important}
 .vs-answers button{min-height:35px!important}.vs-board-foot{display:none!important}
}
@media (max-width:350px){.vs-grid{width:min(100%,230px)!important;max-height:230px;}.vs-hero h1{font-size:27px!important}.vs-hero .eyebrow{font-size:8px!important}.vs-start-row .vs-start{min-height:33px!important}.vs-hero{margin:0 0 2px!important;}.vs-target-row{font-size:10px!important}.vs-icon-btn{font-size:9px!important}}
@media (min-width:821px) and (max-height:790px){.vs-grid{width:min(100%,278px)!important;max-height:278px!important}.vs-hero{margin-bottom:1px!important}.vs-board{padding:7px!important}.vs-board-top .vs-target{height:37px!important;width:37px!important}.vs-live-hud{margin:3px 0!important}}
/* Preserve readable contrast on inherited light navigation pills. */
body:has(.vs-page) .topbar .navlinks .desktop-primary:not(.active){color:#13353e!important;}
body:has(.vs-page) .topbar .navlinks .desktop-primary.active{color:#fff!important;}
body:has(.vs-page) .topbar .site-more summary{color:#183b40!important;}
