:root{
  --bg:#f6f1e8;
  --bg2:#fffaf3;
  --panel:#ffffff;
  --ink:#1c1914;
  --muted:#6b6458;
  --accent:#c45c26;
  --accent2:#2f6f62;
  --line:rgba(28,25,20,.12);
  --shadow:0 18px 40px rgba(80,50,20,.08);
  --font:"Segoe UI",system-ui,sans-serif;
  --radius:18px;
}
html[data-theme="dark"]{
  --bg:#161410;
  --bg2:#1e1a16;
  --panel:#241f1a;
  --ink:#f4efe6;
  --muted:#b7aea0;
  --accent:#e08a4f;
  --accent2:#7dcdc0;
  --line:rgba(244,239,230,.12);
  --shadow:0 18px 40px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);min-height:100%;transition:background .2s ease,color .2s ease}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent2)}
.wrap{width:min(1120px,calc(100% - 2rem));margin-inline:auto}
.top{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1rem 0;border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:.7rem;color:var(--ink);font-weight:750;letter-spacing:.02em}
.brand img{width:44px;height:44px;border-radius:12px;object-fit:cover;box-shadow:var(--shadow)}
nav{display:flex;align-items:center;gap:.9rem;font-weight:650}
.theme-btn{
  border:1px solid var(--line);background:var(--panel);color:var(--ink);
  border-radius:999px;padding:.35rem .75rem;cursor:pointer;font-weight:650;
}
.hero{display:grid;gap:1.6rem;padding:2.2rem 0 1.4rem}
@media(min-width:860px){
  .hero{grid-template-columns:1.05fr .95fr;align-items:center}
}
.kicker{color:var(--accent);font-weight:750;letter-spacing:.12em;text-transform:uppercase;font-size:.72rem;margin:0 0 .45rem}
h1{font-size:clamp(2rem,5.4vw,3.25rem);line-height:1.05;margin:.1rem 0 .7rem;letter-spacing:-.035em;font-weight:750}
.lede{color:var(--muted);max-width:38rem;line-height:1.55}
.hero-art{width:100%;border-radius:var(--radius);max-height:380px;object-fit:cover;box-shadow:var(--shadow)}
.stage{padding:0 0 3.5rem}
.games-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.9rem;
}
@media(min-width:900px){
  .games-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
}
.game-row{
  display:flex;flex-direction:column;
  background:var(--panel);border:1px solid var(--line);border-radius:14px;
  overflow:hidden;box-shadow:var(--shadow);color:inherit;min-width:0;
}
.game-row img{width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--bg2);display:block}
.game-copy{padding:.7rem .8rem .85rem}
.game-copy h2{margin:.1rem 0 .3rem;font-size:1.05rem;color:var(--ink)}
.game-copy .desc{
  margin:0;color:var(--muted);line-height:1.4;font-size:.86rem;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.tag{display:inline-block;font-size:.62rem;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:var(--accent);padding:.14rem .4rem;border-radius:999px;margin-bottom:.28rem}
.play{display:inline-block;margin-top:.5rem;padding:.32rem .7rem;border-radius:999px;background:var(--ink);color:var(--bg);font-weight:700;font-size:.82rem}
.play:hover{background:var(--accent);color:#fff}
.empty{border:1px dashed var(--line);border-radius:var(--radius);padding:2rem 1.2rem;color:var(--muted);background:var(--panel)}
.prose{max-width:42rem;padding:2rem 0 3.5rem;line-height:1.6;color:var(--muted)}
.prose h1,.prose h2{color:var(--ink)}
.grid{display:flex;flex-direction:column;gap:1.25rem;padding:1.2rem 0 3rem}
.foot{border-top:1px solid var(--line);padding:1.3rem 0 2rem;color:var(--muted);display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.crumbs{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--muted)}
.play-shell{
  position:relative;
  width:100%;
  height:min(78dvh,820px);
  min-height:420px;
  overflow:hidden;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  background:var(--panel);
}
.play-frame{
  position:absolute;inset:0;width:100%;height:100%;border:0;
  max-width:100%;
}
@media(max-width:720px){
  .top{flex-wrap:wrap}
  body.play-page .crumbs,
  body.play-page .lede,
  body.play-page .kicker{display:none}
  body.play-page h1{font-size:1.15rem;margin:.15rem 0 .55rem}
  .play-shell{
    height:calc(100dvh - 5.75rem);
    height:calc(100svh - 5.75rem);
    min-height:320px;
    border-radius:12px;
  }
}
.play-note{margin:.8rem 0 2rem;color:var(--muted)}
