/* site.css — the public website pages (landing, how to play, privacy, terms).
   NOT loaded by host.html, join.html or any game: those keep theme.css only. Tokens here match the
   landing page look: dark ink, orange display headings in Bagel Fat One, Manrope body, big readable text. */
:root { --ink:#120c08; --ink2:#1f1510; --panel:rgba(255,255,255,.06); --cream:#fff6e6; --muted:#cbb89a; --orange:#ffb347; --red:#e0442b; --cyan:#19c8e8; }
* { box-sizing:border-box; }
html { font-size:18px; }
@media (min-width:1100px) { html { font-size:20px; } }
body { margin:0; background:var(--ink); color:var(--cream); font-family:'Manrope',system-ui,sans-serif; line-height:1.55; }
.site-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 1rem; max-width:48rem; margin:0 auto; }
.site-head img { width:7.5rem; display:block; filter:drop-shadow(0 .2rem 0 rgba(0,0,0,.5)); }
.site-head a.back { color:var(--orange); font-weight:800; text-decoration:none; }
.site-head a.back:hover { text-decoration:underline; }
.doc { max-width:42rem; margin:0 auto; padding:0 1rem 2.5rem; }
.doc h1, .doc h2 { font-family:'Bagel Fat One','Baloo 2',cursive; font-weight:400; color:var(--orange); text-shadow:var(--text-outline-md); margin:0; }
.doc h1 { font-size:clamp(2rem,6vw,2.8rem); line-height:1.1; margin:.6rem 0 .3rem; }
.doc h2 { font-size:clamp(1.4rem,4vw,1.8rem); margin:1.8rem 0 .5rem; }
.doc p, .doc li { max-width:62ch; }
.doc .updated { color:var(--muted); font-size:.9rem; margin:0 0 1rem; }
.doc ol, .doc ul { padding-left:1.3rem; }
.doc li { margin:.35rem 0; }
.doc a { color:var(--cyan); }
.doc .box { background:var(--panel); border-left:.45rem solid var(--orange); padding:.8rem 1rem; border-radius:.6rem; margin:1rem 0; }
.doc .box strong { display:block; margin-bottom:.2rem; }
.doc code { background:rgba(255,255,255,.1); padding:.1em .35em; border-radius:.3em; font-size:.95em; }
.site-foot { text-align:center; padding:1rem 1rem 1.6rem; color:#8f7b64; font-size:.8rem; border-top:1px solid rgba(255,255,255,.08); }
.site-foot ul { list-style:none; margin:.3rem 0 0; padding:0; display:flex; flex-wrap:wrap; gap:.3rem 1rem; justify-content:center; }
.site-foot a { color:#b9a48a; text-decoration:none; }
.site-foot a:hover { color:var(--orange); text-decoration:underline; }

/* ── Shared pieces: game cards, stickers, the two big buttons, the one-game page ── */
.game { display:block; background:#1f1510; border-radius:.9rem; overflow:hidden; border:3px solid #000; box-shadow:0 .35rem 0 #000; color:var(--cream); text-decoration:none; }
.art { position:relative; }
.art img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.sticker { position:absolute; left:.7rem; top:.7rem; font:800 1rem/1 'Manrope',sans-serif; padding:.4rem .8rem; border-radius:.45rem; border:3px solid #000; box-shadow:.2rem .2rem 0 #000; transform:rotate(-3deg); }
.game h3 { font-family:'Bagel Fat One','Baloo 2',cursive; font-weight:400; font-size:1.5rem; color:#fff; margin:0; }
.game p { margin:.2rem 0; }
.game small { color:var(--orange); font-size:.9rem; }
.game-text { padding:.6rem .9rem .9rem; }
.empty { color:var(--muted); }

.go { display:flex; flex-direction:column; gap:1.1rem; max-width:26rem; margin:1.4rem auto 0; width:100%; }
.go a { position:relative; display:grid; grid-template-columns:3.4rem 1fr; align-items:center; gap:.8rem; text-align:left; min-height:6rem; padding:.8rem 1.2rem;
        border:4px solid #000; border-radius:1.3rem; text-decoration:none; color:#fff; overflow:hidden;
        box-shadow:0 .55rem 0 #000, 0 1rem 1.6rem rgba(0,0,0,.5); transition:transform .1s, box-shadow .1s; }
.go a::before { content:''; position:absolute; left:.5rem; right:.5rem; top:.35rem; height:38%; border-radius:1rem 1rem .4rem .4rem; background:rgba(255,255,255,.28); pointer-events:none; }
.go a svg { width:3.4rem; height:3.4rem; filter:drop-shadow(0 2px 0 #000); }
.go a b { display:block; font:400 1.7rem/1 'Bagel Fat One','Baloo 2',cursive; text-shadow:var(--text-outline-md); white-space:nowrap; }
.go a span { display:block; font:800 .95rem/1.2 'Manrope',sans-serif; margin-top:.3rem; color:#000; }
.go a.host { background:linear-gradient(180deg,#ffd93b 0%,#ff8d1f 50%,#ef3b22 100%); transform:rotate(-1.5deg); }
.go a.join { background:linear-gradient(180deg,#a8f6ff 0%,#19c8e8 50%,#0a86ad 100%); transform:rotate(1.5deg); }
.go a:active { transform:translateY(.35rem); box-shadow:0 .15rem 0 #000, 0 .4rem .8rem rgba(0,0,0,.5); }
.go a:focus-visible { outline:4px solid #fff; outline-offset:3px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .go a.host:hover { transform:rotate(-1.5deg) translateY(-.2rem) scale(1.02); }
  .go a.join:hover { transform:rotate(1.5deg) translateY(-.2rem) scale(1.02); }
}
/* a small secondary button (e.g. "All games") */
.btn-small { display:inline-block; font:800 .9rem/1 'Manrope',sans-serif; color:#000; background:var(--orange); border:3px solid #000; border-radius:.6rem; padding:.5rem .8rem; text-decoration:none; box-shadow:.2rem .2rem 0 #000; white-space:nowrap; }
.btn-small:hover { background:#ffc46b; }
.btn-small:active { transform:translate(.15rem,.15rem); box-shadow:.05rem .05rem 0 #000; }

/* all-games grid */
.all-games { display:grid; gap:1rem; grid-template-columns:1fr; margin-top:1rem; }
@media (min-width:640px) { .all-games { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1100px) { .all-games { grid-template-columns:repeat(3,1fr); } }
.all-games .game:hover { border-color:var(--orange); }
.doc a.game { color:var(--cream); }
.doc.wide { max-width:64rem; }

/* one-game page */
.gp-hero { position:relative; border-radius:1rem; overflow:hidden; border:3px solid #000; box-shadow:0 .4rem 0 #000; margin-top:.8rem; }
.gp-hero img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.gp-hero .sticker { font-size:1.1rem; left:1rem; top:1rem; }
.gp-title { position:absolute; left:0; right:0; bottom:0; padding:2rem .9rem .8rem; background:linear-gradient(180deg, rgba(18,12,8,0), rgba(18,12,8,.9)); }
.gp-title h1 { margin:0; font-size:clamp(1.6rem,6vw,3.4rem); line-height:1.05; color:#fff; text-shadow:var(--text-outline-lg); }
.gp-title p { margin:.3rem 0 0; font-weight:800; color:#fff; text-shadow:0 1px 3px #000; max-width:40ch; font-size:.95rem; }
.gp-meta { color:var(--orange); font-weight:800; margin:.8rem 0 0; }
.gp-go { max-width:30rem; margin:1.2rem 0 0; }
.gp-go a { grid-template-columns:1fr; }
.gp-controls { display:grid; grid-template-columns:max-content 1fr; gap:.4rem 1rem; margin:0; }
.gp-controls dt { font-weight:800; color:#fff; }
.gp-controls dd { margin:0; }
.gp-shots { display:grid; gap:.8rem; grid-template-columns:1fr 1fr; }
.gp-shots img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:.6rem; border:3px solid #000; }
.gp-back { margin-top:2rem; }
