/* Zupkit games theme: home, /play/, about, privacy and 404. Self-hosted, no external fonts. */
:root{
 color-scheme:light dark;
 --bg:#fbf8f3;--bg-soft:#f3eee6;--surface:#ffffff;--ink:#1c1930;--muted:#565170;--line:#e4ddd1;
 --accent:#5534c7;--accent-soft:#ece7ff;--pink:#d43a74;
 --play:#ffd23f;--play-ink:#1c1930;--play-hover:#ffc300;
 --stage:#120f22;--stage-ink:#f6f3ff;--stage-muted:#c9c2e6;--stage-line:#ffffff22;
 --focus:#d43a74;--shadow:0 1px 2px #1c19300f,0 8px 24px #1c19300f;--shadow-lift:0 2px 4px #1c193014,0 16px 36px #1c19301f;
 --radius:18px;--radius-sm:12px;
 --font:ui-rounded,"SF Pro Rounded","Segoe UI Variable Display","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
}
@media (prefers-color-scheme:dark){:root{
 --bg:#0e0c18;--bg-soft:#15122a;--surface:#1a1730;--ink:#f3f0ff;--muted:#b6b0cf;--line:#2d2948;
 --accent:#b8a6ff;--accent-soft:#2a2350;--pink:#ff7aa8;
 --play:#ffd23f;--play-ink:#17142a;--play-hover:#ffdf6e;
 --stage:#1b1734;--stage-line:#ffffff1f;
 --focus:#ffd23f;--shadow:0 1px 2px #0006,0 8px 24px #0005;--shadow-lift:0 2px 6px #0008,0 18px 40px #0007;
}}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.games-theme{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:1.0625rem;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
.games-theme img{max-width:100%;height:auto;display:block}
.games-theme a{color:var(--accent)}
.games-theme h1,.games-theme h2,.games-theme h3{line-height:1.15;letter-spacing:-.01em;margin:0}
.games-theme p{margin:0}
.games-theme :focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}

/* Skip link */
.skip{position:absolute;left:16px;top:-120px;z-index:20;background:var(--play);color:var(--play-ink);font-weight:700;padding:12px 16px;border-radius:10px;text-decoration:none}
.skip:focus{top:12px}

/* Header */
.games-theme .zup-header{max-width:1200px;margin:0 auto;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.games-theme .zup-brand{display:inline-flex;align-items:center;gap:10px;font-size:1.4rem;font-weight:800;letter-spacing:-.02em;color:var(--ink);text-decoration:none;border-radius:10px}
.games-theme .zup-mark{width:30px;height:30px;border-radius:9px}
.games-theme .zup-header nav{display:flex;gap:4px}
.games-theme .zup-header nav a{color:var(--ink);text-decoration:none;font-weight:650;padding:10px 14px;border-radius:999px;min-height:44px;display:inline-flex;align-items:center}
.games-theme .zup-header nav a:hover{background:var(--bg-soft)}
.games-theme .zup-header nav a[aria-current="page"]{background:var(--accent-soft);color:var(--accent)}
@media (max-width:420px){.games-theme .zup-brand{font-size:1.2rem;gap:8px}.games-theme .zup-header nav{gap:0}.games-theme .zup-header nav a{padding:10px 9px}}

main#main{max-width:1200px;margin:0 auto;padding:0 16px}

/* Intro */
.eyebrow{font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--pink)}
.intro{padding:12px 0 16px}
.intro h1{font-size:clamp(1.9rem,7.4vw,3.9rem);font-weight:850;margin:4px 0 8px;max-width:16ch}
.intro .lead{font-size:clamp(1.02rem,2.6vw,1.3rem);color:var(--muted);max-width:40ch}
.intro-compact h1{font-size:clamp(2rem,6vw,3.2rem)}
/* Promises and facts are plain text with check marks, not chips, so they never look tappable. */
.promises,.facts{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:2px 16px;font-size:.88rem;font-weight:600;color:var(--muted)}
.promises li,.facts li{position:relative;padding-left:17px}
.promises li::before,.facts li::before{content:"";position:absolute;left:1px;top:.48em;width:9px;height:5px;border-left:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(-45deg)}
/* Phones: keep the intro to a headline, one line of copy and one line of promises so the featured Play button is on the first screen. */
@media (max-width:599px){.intro>.eyebrow,.promises li:nth-child(4){display:none}}

/* Featured game */
.spotlight{display:grid;grid-template-columns:1fr;background:var(--stage);color:var(--stage-ink);border-radius:24px;overflow:hidden;box-shadow:var(--shadow-lift);margin:0 0 8px}
.spotlight-art{display:block;aspect-ratio:16/9;background:#0b0918;overflow:hidden}
.spotlight-art img{width:100%;height:100%;object-fit:cover;object-position:18% 50%;transition:transform .35s ease,filter .2s ease}
.spotlight-art:hover img{transform:scale(1.02);filter:brightness(1.06)}
.spotlight-body{padding:14px 18px 22px;display:flex;flex-direction:column;gap:6px}
.spotlight .eyebrow{color:#ffd23f}
.spotlight h2{font-size:clamp(1.7rem,6vw,2.8rem);font-weight:850}
.spotlight-tagline{font-size:1.1rem;font-weight:700;color:#ffb38a}
.spotlight-text{color:var(--stage-muted);margin-top:6px}
.spotlight .facts{margin-top:2px;color:var(--stage-muted)}
.spotlight .facts li::before{border-color:#ffd23f}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.spotlight .actions{margin-top:6px}
.play-icon{width:1em;height:1em;flex:none}
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:14px 24px;border-radius:999px;font-weight:800;font-size:1.05rem;text-decoration:none;transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease}
.games-theme .button-play{background:var(--play);color:var(--play-ink);box-shadow:0 6px 0 #c99a00}
.games-theme .button-play:hover{background:var(--play-hover)}
.games-theme .button-play:active{transform:translateY(3px);box-shadow:0 3px 0 #c99a00}
.games-theme .button-quiet{background:transparent;color:inherit;border:2px solid currentColor;opacity:.92}
.games-theme .button-quiet:hover{opacity:1}
.spotlight .button-play{flex:1 1 220px}
.spotlight .button-quiet{color:var(--stage-ink)}
.spotlight :focus-visible{outline-color:#ffd23f}
.arrow{font-size:.85em}

/* Catalogue */
.catalogue{padding:36px 0 8px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;margin-bottom:16px}
.section-head h2{font-size:clamp(1.6rem,4.5vw,2.2rem);font-weight:850}
.section-head p{color:var(--muted);font-size:.95rem}
.games{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:12px}
.game{position:relative;display:grid;grid-template-columns:42% 1fr;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px;box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.game-thumb{position:relative;aspect-ratio:16/9;border-radius:var(--radius-sm);overflow:hidden;background:var(--bg-soft)}
/* Phone: round Play button on the thumbnail (44px tap area) that starts the game directly. */
.game-play{position:absolute;right:0;bottom:0;z-index:2;width:46px;height:46px;display:grid;place-items:center;border-radius:50%}
.game-play-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--play);color:var(--play-ink);box-shadow:0 2px 0 #c99a00,0 3px 10px #0006}
.game-play-dot .play-icon{width:17px;height:17px;margin-left:2px}
.games-theme .game-play:focus-visible{outline-offset:-3px;border-radius:50%}
.game-thumb img{width:100%;height:100%;object-fit:cover}
.game-info{display:flex;flex-direction:column;gap:4px;min-width:0;padding:2px 4px 2px 0}
.game-meta{display:flex;flex-wrap:wrap;gap:6px}
.genre,.badge{font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:3px 8px;border-radius:999px}
.genre{background:var(--accent-soft);color:var(--accent)}
.badge{background:var(--bg-soft);color:var(--muted);border:1px solid var(--line)}
.game h3{font-size:1.08rem;font-weight:800}
.games-theme .game-link{color:var(--ink);text-decoration:none}
.game-link::after{content:"";position:absolute;inset:0;border-radius:var(--radius)}
.games-theme .game-link:focus-visible{outline:none}
.game:focus-within{outline:3px solid var(--focus);outline-offset:3px}
.game-hook{font-size:.9rem;color:var(--muted);line-height:1.4}
.hook-long{display:none}
.game-cta{display:none}
.game:hover{border-color:var(--accent);box-shadow:var(--shadow-lift)}

@media (min-width:600px){
 .games{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .game{grid-template-columns:1fr;grid-template-rows:auto 1fr;align-items:stretch;padding:0;overflow:hidden;gap:0}
 .game-thumb{aspect-ratio:16/9;border-radius:0}
 .game-info{padding:14px 16px 16px;gap:6px;flex:1}
 .game h3+.game-hook{margin-bottom:8px}
 .game h3{font-size:1.2rem}
 .game-hook{font-size:.95rem}
 .hook-short{display:none}
 .hook-long{display:inline}
 .game-play{display:none}
 .games-theme .game-cta{position:relative;z-index:2;display:inline-flex;align-self:flex-start;align-items:center;gap:8px;margin-top:auto;min-height:40px;padding:8px 18px;border-radius:999px;background:var(--play);color:var(--play-ink);font-weight:800;font-size:.95rem;text-decoration:none;box-shadow:0 3px 0 #c99a00}
 .games-theme .game-cta:hover{background:var(--play-hover)}
 .game-cta .play-icon{width:.9em;height:.9em}
 .game:hover{transform:translateY(-3px)}
 .game-thumb img{transition:transform .35s ease}
 .game:hover .game-thumb img{transform:scale(1.04)}
 .intro{padding:32px 0 26px}
 .promises{margin-top:16px;font-size:.92rem}
}
@media (min-width:960px){
 .games-theme .zup-header{padding:18px 24px}
 main#main{padding:0 24px}
 .games{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
 .spotlight{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:stretch}
 .spotlight-art{aspect-ratio:auto;min-height:100%}
 .spotlight-body{padding:36px 36px 36px 32px;justify-content:center;gap:8px}
 .spotlight-text{margin-top:10px}
 .intro{padding:44px 0 30px}
}
@media (min-width:1280px){.games{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Prose pages: about, privacy, 404 */
.prose{max-width:720px;padding:28px 0 16px}
.prose h1{font-size:clamp(2rem,6vw,3rem);font-weight:850;margin:8px 0 14px}
.prose h2{font-size:1.3rem;font-weight:800;margin:30px 0 8px}
.prose p{margin:0 0 12px;color:var(--ink)}
.prose .lead{font-size:1.2rem;color:var(--muted)}
.prose .actions{margin-top:24px}
.prose-center{text-align:center;margin:0 auto;padding:56px 0 24px}
.prose-center .actions{justify-content:center}

/* Footer */
.games-theme .zup-footer{max-width:1200px;margin:48px auto 0;padding:28px 16px 40px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:12px;color:var(--muted);font-size:.95rem}
.games-theme .zup-footer p:first-child{color:var(--ink);font-weight:700}
.games-theme .zup-footer nav{display:flex;flex-wrap:wrap;gap:4px 18px}
.games-theme .zup-footer nav a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px;padding:8px 0;min-height:44px;display:inline-flex;align-items:center}
.games-theme .zup-footer nav a:hover{text-decoration-color:currentColor}
@media (min-width:960px){.games-theme .zup-footer{padding:32px 24px 48px}}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}.game:hover,.game:hover .game-thumb img,.spotlight-art:hover img{transform:none}}
