/* VOICE   playful arcade shelf, bright and tidy: the same toy world as the games
   IDEA    a toy shop wall: every game is a boxed toy on a sky-blue shelf, the critters keep the shop
   PICTURE real game boards in toy-box cards; the featured board large in the first screen
   COLOUR  sky ground, white cards with a blue toy edge, coral for actions, marigold daily band, turquoise and violet accents
   TYPE    Baloo 2 for names and titles, Nunito for text
   LAYOUT  header; title across the top; featured game picture left, details right; phones stack title, picture, buttons */
:root{color-scheme:light dark;--bg:light-dark(#8fd3ff,#0f1d2e);--ink:light-dark(#13233a,#eaf4ff);--card:light-dark(#ffffff,#172a3f);--edge:light-dark(#5fb6e8,#08121d);--muted:light-dark(#2f4a68,#a9c1d9);--soft:light-dark(#e2f1fb,#21394f);--gold-bg:light-dark(#ffc94d,#3a2f12);--coral:#ff6b5b;--coral-d:#c94a3d}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
html{scroll-padding-top:16px}
body{margin:0;background:var(--bg);color:var(--ink);font:600 17px/1.55 Nunito,system-ui,sans-serif;overflow-x:clip}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{margin:0;font-family:"Baloo 2",system-ui,sans-serif;font-weight:800;letter-spacing:-.02em;line-height:1.05;text-wrap:balance}
h1{font-size:clamp(34px,5vw,52px)}
h2{font-size:clamp(28px,3.6vw,38px)}
h3{font-size:22px}
p{margin:0}
[hidden]{display:none!important}
.wrap{max-width:1180px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.band{padding-block:clamp(28px,4vw,56px)}
.muted{color:var(--muted)}
.small{font-size:14px}
.card{background:var(--card);border-radius:22px;box-shadow:0 5px 0 var(--edge)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 22px;border:0;border-radius:14px;background:var(--card);color:var(--ink);font:800 17px/1 Nunito,system-ui,sans-serif;text-decoration:none;white-space:nowrap;box-shadow:0 4px 0 var(--edge);cursor:pointer}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--edge)}
.btn.go{background:var(--coral);color:#fff;box-shadow:0 4px 0 var(--coral-d)}
.btn:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.actions{display:flex;flex-wrap:wrap;gap:12px}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{padding:3px 10px;border-radius:999px;background:var(--soft);font-size:13px;font-weight:800}
.tag.live{background:var(--coral);color:#fff}
.tag.soon{background:color-mix(in srgb,#ffb627 35%,var(--card))}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* header and footer */
.top{display:flex;align-items:center;gap:16px;padding-block:14px}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;font:800 26px/1 "Baloo 2",system-ui,sans-serif;letter-spacing:-.02em;white-space:nowrap}
.brand svg{width:40px;height:40px;flex:none}
.top nav{margin-left:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px}
.top nav a{padding:10px 12px;border-radius:12px;text-decoration:none;font-weight:800;white-space:nowrap}
.top nav a:hover,.top nav a[aria-current=page]{background:color-mix(in srgb,var(--card) 65%,transparent)}
@media(max-width:560px){.top{gap:8px}.brand{font-size:22px}.brand svg{width:32px;height:32px}.top nav a{padding:8px 7px;font-size:15px}}
.foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;padding-block:28px 44px;font-size:15px}
.foot .brand{font-size:22px}
.foot .brand svg{width:30px;height:30px}
.foot nav{display:flex;flex-wrap:wrap;gap:6px 18px}
.foot a{text-decoration:none}
.foot a:hover{text-decoration:underline}
.foot .copy{margin-left:auto}
@media(max-width:700px){.foot .copy{margin-left:0;width:100%}}

/* game cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:22px;margin-top:22px}
.game{display:flex;flex-direction:column;overflow:hidden;text-decoration:none}
.game .art{aspect-ratio:4/3;overflow:hidden;background:var(--soft)}
.game .art img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
a.game:hover .art img{transform:scale(1.04)}
.game .info{display:grid;gap:6px;padding:14px 16px 18px}
.game .info p{font-size:15px}

/* game frame on game and daily pages */
.playbox{overflow:hidden;border-radius:22px;background:var(--bg);box-shadow:0 5px 0 var(--edge),0 0 0 3px color-mix(in srgb,var(--card) 60%,transparent)}
.frame{display:block;width:100%;height:min(80svh,780px);min-height:520px;border:0}
@media(max-width:600px){.frame{height:calc(100svh - 150px)}}

/* text pages */
.prose{max-width:720px}
.prose h1{margin-bottom:12px}
.prose h2{margin:30px 0 8px;font-size:26px}
.prose p,.prose li{margin:0 0 12px}
.prose ul,.prose ol{margin:0 0 12px;padding-left:22px}
.prose .card{padding:22px}
.blank{padding:0 6px;border-radius:6px;background:color-mix(in srgb,#ffb627 40%,transparent);white-space:nowrap}
.steps{display:grid;gap:12px;margin:14px 0 0;padding:0;list-style:none;counter-reset:s}
.steps li{position:relative;padding-left:46px;counter-increment:s}
.steps li::before{content:counter(s);position:absolute;left:0;top:-2px;width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:var(--coral);color:#fff;font:800 18px/1 "Baloo 2",system-ui,sans-serif}
details{border-radius:16px;background:var(--card);box-shadow:0 4px 0 var(--edge);padding:14px 18px;margin-bottom:12px}
summary{cursor:pointer;font-weight:800}
details p{margin-top:8px}
