/* Santa Run site. Layout: a night-sky band holds the playable game and ends in a chimney skyline;
   light content sections follow. System fonts only: no third-party requests. */
:root{
  --night:#0b1330; --night-2:#18307a; --paper:#f4f8ff; --card:#ffffff;
  --text:#13203f; --muted:#4f5f80; --line:rgba(19,32,63,.14); --link:#0a5bc4;
  --brick:#b4322a; --fir:#0f6b4f; --lantern:#ffc15a; --lantern-ink:#2a1700;
  --font:ui-rounded,"SF Pro Rounded","Nunito","Avenir Next Rounded","Trebuchet MS",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
@media (prefers-color-scheme:dark){
  :root{--paper:#0e1736;--card:#16224a;--text:#e9effd;--muted:#a6b3d3;--line:rgba(255,255,255,.14);--link:#8ab8ff;--brick:#ff7d70;--fir:#4ad3a0}
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--paper);color:var(--text);font:17px/1.6 var(--font);-webkit-font-smoothing:antialiased}
img,svg{max-width:100%}
a{color:var(--link);text-underline-offset:3px}
a:hover{color:var(--brick)}
:focus-visible{outline:3px solid var(--lantern);outline-offset:3px;border-radius:6px}
h1,h2,h3{font-weight:800;letter-spacing:-.02em;line-height:1.1;margin:0;text-wrap:balance}
p{margin:0}
.wrap{width:100%;max-width:1060px;margin-inline:auto;padding-inline:max(18px,env(safe-area-inset-left,0px))}

/* header */
.site-head{background:var(--night);color:#fff}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:14px}
.brand{white-space:nowrap;display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;font-size:20px;letter-spacing:-.01em}
.brand:hover{color:#fff}
.brand svg{width:30px;height:30px}
.nav{display:flex;gap:6px;align-items:center}
.nav a{white-space:nowrap;color:#cfd9f5;text-decoration:none;font-weight:700;font-size:15px;padding:8px 12px;border-radius:10px}
.nav a:hover{color:#fff;background:rgba(255,255,255,.1)}
@media (max-width:640px){.nav a:not(.keep){display:none}}

/* stage: the game */
.stage{position:relative;color:#fff;padding-bottom:84px;
  background:
    radial-gradient(1.5px 1.5px at 8% 22%,#fff,transparent),radial-gradient(1.5px 1.5px at 21% 64%,#cfe0ff,transparent),
    radial-gradient(2px 2px at 35% 12%,#fff,transparent),radial-gradient(1.5px 1.5px at 52% 48%,#fff,transparent),
    radial-gradient(1.5px 1.5px at 66% 18%,#cfe0ff,transparent),radial-gradient(2px 2px at 79% 58%,#fff,transparent),
    radial-gradient(1.5px 1.5px at 92% 30%,#fff,transparent),radial-gradient(1.5px 1.5px at 14% 86%,#fff,transparent),
    linear-gradient(180deg,var(--night) 0%,var(--night-2) 100%)}
.stage-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 24px;padding-block:6px 20px}
.stage h1{font-size:clamp(40px,7vw,68px)}
.stage-head p{color:#cfd9f5;font-size:17px;max-width:34ch}
.frame{position:relative;margin-inline:auto;width:min(100%,calc((100svh - 210px) * 16 / 9));min-width:min(100%,520px);aspect-ratio:16/9;background:#0b1330;
  border-radius:20px;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.14),0 30px 70px rgba(0,0,0,.5)}
.frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.frame:fullscreen{width:100%;height:100%;aspect-ratio:auto;border-radius:0;min-width:0}
@media (max-width:720px){.frame{width:100%;aspect-ratio:3/4;max-height:80svh;border-radius:16px}}
.frame-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:14px auto 0;width:min(100%,calc((100svh - 210px) * 16 / 9));min-width:min(100%,520px);color:#cfd9f5;font-size:15px}
@media (max-width:720px){.frame-bar{width:100%}}
.btn{font:inherit;font-weight:800;cursor:pointer;border:0;border-radius:14px;padding:11px 18px;background:var(--lantern);color:var(--lantern-ink);
  box-shadow:0 4px 0 rgba(0,0,0,.3);transition:transform .08s,box-shadow .08s}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(0,0,0,.3)}
.btn:hover{filter:brightness(1.06)}
@media (pointer:coarse){.pc-only{display:none!important}}
@media (pointer:fine){.touch-only{display:none!important}}

/* chimney skyline: the game's own obstacle marks the move from night to day */
.skyline{position:absolute;left:0;right:0;bottom:-1px;height:56px;background:var(--paper);
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='56' viewBox='0 0 300 56'><path d='M0 56V40h30V28h-4v-5h14v5h-4v12h26V30h40V20h-4v-5h16v5h-4v10h32V36h28V46h30V26h-4v-5h18v5h-4v14h24V34h66v22z'/></svg>") repeat-x bottom left/300px 56px;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='56' viewBox='0 0 300 56'><path d='M0 56V40h30V28h-4v-5h14v5h-4v12h26V30h40V20h-4v-5h16v5h-4v10h32V36h28V46h30V26h-4v-5h18v5h-4v14h24V34h66v22z'/></svg>") repeat-x bottom left/300px 56px}

/* sections */
section.block{padding-block:clamp(48px,8vw,88px)}
section.block + section.block{border-top:1px solid var(--line)}
.block h2{font-size:clamp(30px,4.6vw,44px);margin-bottom:14px}
.lede{font-size:19px;color:var(--muted);max-width:58ch;margin-bottom:32px}
.key{display:inline-block;min-width:34px;padding:3px 11px;margin:0 2px;border-radius:9px;background:var(--card);color:var(--text);font-weight:800;font-size:.9em;text-align:center;
  border:1px solid var(--line);box-shadow:0 3px 0 var(--line)}
.how{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.how > div{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:26px}
.how h3{font-size:22px;margin-bottom:12px}
.how p + p{margin-top:10px;color:var(--muted)}
.rules{margin:28px 0 0;padding:0;list-style:none;display:grid;gap:10px;max-width:62ch}
.rules li{padding-left:28px;position:relative}
.rules li::before{content:"";position:absolute;left:4px;top:.55em;width:10px;height:6px;border-left:3px solid var(--fir);border-bottom:3px solid var(--fir);transform:rotate(-45deg)}

.pickups{display:grid;gap:0;max-width:760px;margin:0;padding:0;list-style:none}
.pickups li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;align-items:center;padding-block:18px;border-top:1px solid var(--line)}
.pickups li:first-child{border-top:0;padding-top:0}
.pickups .ico{width:64px;height:64px;border-radius:16px;background:linear-gradient(160deg,var(--night),var(--night-2));display:grid;place-items:center}
.pickups .ico svg{width:38px;height:38px}
.pickups h3{font-size:20px;margin-bottom:2px}
.pickups p{color:var(--muted)}

.sleighs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
@media (max-width:900px){.sleighs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.sleighs{grid-template-columns:1fr}}
.sleighs li{display:flex;flex-direction:column;gap:12px}
.sleighs .art{aspect-ratio:3/2;border-radius:18px;background:linear-gradient(170deg,#1c3a8c,var(--night));display:grid;place-items:center;overflow:hidden}
.sleigh{width:72%;height:auto;aspect-ratio:96/64}
.sleighs h3{font-size:18px}
.sleighs p{color:var(--muted);font-size:15px;line-height:1.45}
.sleighs .cost{font-weight:800;color:var(--text)}

.tips{margin:0;padding:0;list-style:none;display:grid;gap:14px;max-width:66ch}
.tips li{padding-left:28px;position:relative}
.tips li::before{content:"";position:absolute;left:4px;top:.55em;width:10px;height:6px;border-left:3px solid var(--fir);border-bottom:3px solid var(--fir);transform:rotate(-45deg)}
.tips b{font-weight:800}

.faq{max-width:760px}
.faq details{border-top:1px solid var(--line);padding-block:4px}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;font-weight:800;font-size:19px;padding-block:14px;list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:700;color:var(--muted);flex:none}
.faq details[open] summary::after{content:"\2212"}
.faq details p{color:var(--muted);padding-bottom:18px;max-width:62ch}

.about{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:32px}
@media (max-width:760px){.about{grid-template-columns:1fr}}
.about p + p{margin-top:12px}
.contact-box{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:24px;align-self:start}
.contact-box h3{font-size:20px;margin-bottom:8px}
.contact-box .mail{font-weight:800;font-size:18px;word-break:break-all}

footer.site-foot{background:var(--night);color:#cfd9f5;padding-block:32px calc(32px + env(safe-area-inset-bottom,0px));font-size:15px}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 28px}
footer a{color:#fff}
footer nav{display:flex;gap:20px;flex-wrap:wrap}

/* simple text pages (privacy, 404) */
.doc{padding-block:48px 72px;max-width:760px}
.doc h1{font-size:clamp(34px,5vw,48px);margin-bottom:8px}
.doc .meta{color:var(--muted);margin-bottom:32px}
.doc h2{font-size:24px;margin:36px 0 10px}
.doc p,.doc li{max-width:64ch}
.doc p + p{margin-top:12px}
.doc ul{padding-left:22px;display:grid;gap:8px;margin:10px 0}
.lost{min-height:60svh;display:grid;place-content:center;text-align:center;gap:18px;padding:48px 18px}
.lost h1{font-size:clamp(40px,8vw,72px)}
.lost p{color:var(--muted);font-size:19px}
.lost .btn{display:inline-block;text-decoration:none;justify-self:center}

/* studio home */
.hub-hero{padding-block:44px 72px}
.hub-hero h1{font-size:clamp(46px,9vw,88px);margin-bottom:14px}
.hub-hero p{color:#cfd9f5;font-size:clamp(18px,2.4vw,22px);max-width:34ch}
.featured{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:32px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:18px}
.featured img{display:block;width:100%;height:auto;border-radius:14px;background:var(--night)}
.featured h3{font-size:32px;margin-bottom:10px}
.featured p{color:var(--muted);margin-bottom:20px;max-width:40ch}
@media (max-width:760px){.featured{grid-template-columns:1fr;gap:20px}.featured > div{padding:0 6px 8px}}
.note{color:var(--muted);margin-top:18px}
a.btn{display:inline-block;text-decoration:none}
a.btn:hover{color:var(--lantern-ink)}
