:root {
  --brand: #5b4bff;
  --brand-2: #ff5fa2;
  --bg: #f6f6fb;
  --panel: #ffffff;
  --text: #1b1b29;
  --muted: #62647a;
  --line: #e4e4ef;
  --chip: #ecebff;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 6px 18px rgba(20, 20, 40, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1018; --panel: #181a26; --text: #eef0ff; --muted: #a2a6c2; --line: #2a2d40; --chip: #26244a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1018; --panel: #181a26; --text: #eef0ff; --muted: #a2a6c2; --line: #2a2d40; --chip: #26244a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; margin: .6em 0 .3em; }
h2 { font-size: 1.2rem; margin: 0; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--panel); padding: 8px; z-index: 10; }

.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.search { flex: 1; min-width: 0; }
.search input { width: 100%; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.search.big input { padding: 14px 18px; font-size: 1.05rem; }
.top-link { white-space: nowrap; color: var(--text); font-weight: 600; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--text); font-size: .9rem; }
.cats a:hover { text-decoration: none; filter: brightness(.96); }
@media (max-width: 560px) { .top-link span { display: none; } .brand span { display: none; } }

.hero { margin: 20px 0 8px; padding: 22px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.hero h1 { margin-top: 0; }
.hero p { margin: 0 0 12px; opacity: .95; }
.ages-q { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .22); color: inherit; font-weight: 700; }
.chip.on, .chip[aria-pressed="true"] { background: #fff; color: var(--brand); }
.chips.links { margin: 12px 0 18px; }
.chips.links .chip { background: var(--chip); color: var(--text); }
.chips.links .chip.on { background: var(--brand); color: #fff; }

.sec { margin: 26px 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.note { color: var(--muted); font-size: .88rem; margin: -4px 0 10px; }
.lead { color: var(--muted); max-width: 70ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card { display: block; background: var(--panel); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); color: var(--text); }
.card:hover { text-decoration: none; transform: translateY(-2px); }
.card img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; background: var(--line); }
.card-t { display: block; padding: 8px 10px; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile { display: block; padding: 16px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); color: var(--text); }
.tile b { display: block; margin-bottom: 4px; }
.tile span { color: var(--muted); font-size: .9rem; }

.crumbs { margin: 14px 0 8px; font-size: .9rem; color: var(--muted); }
.game { background: var(--panel); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.stage { position: relative; background: #000; display: grid; place-items: center; aspect-ratio: var(--ar); max-height: 78vh; width: 100%; margin: 0 auto; }
.stage.portrait { max-width: min(100%, calc(78vh * var(--ar))); }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.55); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.play { position: relative; border: 0; padding: 16px 30px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 1.15rem; font-weight: 800; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.rotate { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #fff; font-size: .85rem; margin: 0; }
@media (min-width: 900px) { .rotate { display: none; } }
.stage:fullscreen { max-width: none; max-height: none; aspect-ratio: auto; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bar h1 { margin: 0; font-size: 1.3rem; }
.acts { display: flex; gap: 8px; }
.btn { border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.btn[aria-pressed="true"] { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.small { padding: 4px 10px; font-size: .85rem; }
.info { padding: 6px 16px 16px; }
.info h2 { margin: 14px 0 4px; font-size: 1.05rem; }
.info p { margin: 0 0 8px; }
.meta { color: var(--muted); font-size: .88rem; }

.prose { max-width: 72ch; background: var(--panel); padding: 8px 22px 18px; border-radius: 16px; margin: 20px 0; box-shadow: var(--shadow); }
.prose h2 { margin: 18px 0 6px; }
.foot { margin-top: 40px; padding: 20px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
