:root {
  color-scheme: dark;
  --bg: #101414;
  --panel: #161d1b;
  --text: #f4f1e7;
  --muted: #b2bdb6;
  --mint: #a7e4bd;
  --border: #34463e;
  font: 16px/1.55 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
a:focus-visible, iframe:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
.skip { position: fixed; z-index: 1; top: 10px; left: 10px; padding: .5rem 1rem; background: var(--panel); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header, .site-footer, main { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; }
.site-header { border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; gap: .7rem; align-items: center; font-size: 1.15rem; font-weight: 700; }
.brand strong, .mark, .parent span { color: var(--mint); }
.mark { width: 2rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; font-size: 1.45rem; }
.parent, .site-footer { color: var(--muted); font-size: .85rem; }
.parent:hover, .back:hover { color: var(--mint); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 6vw, 6rem); align-items: center; padding: clamp(3rem, 8vw, 7rem) 0; }
.eyebrow { font: 650 .75rem/1.45 ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.eyebrow span { display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem; background: var(--mint); border-radius: 50%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7.8vw, 7.4rem); line-height: .98; letter-spacing: -.075em; margin-bottom: 1.4rem; overflow-wrap: anywhere; }
h1 em { color: var(--mint); font-style: normal; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); letter-spacing: -.045em; margin-bottom: 0; }
h3 { font-size: 1.45rem; line-height: 1.2; margin-bottom: .5rem; overflow-wrap: anywhere; }
.lede, .empty > p:last-child, .game-card > p { color: var(--muted); max-width: 58ch; overflow-wrap: anywhere; }
.lede { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 1.5rem; }
.button { display: inline-flex; align-items: center; gap: .9rem; min-height: 2.75rem; padding: .55rem .95rem; border: 1px solid var(--mint); color: #111a14; background: var(--mint); font-weight: 700; border-radius: .35rem; }
.button:hover { background: #d0f5dc; }
.arcade-art { background: radial-gradient(ellipse at center, #243c31, #151d1a 73%); border: 1px solid var(--border); border-radius: .8rem; overflow: hidden; }
.arcade-art svg { width: 100%; display: block; }
.art-bar { padding: .75rem 1rem; display: flex; justify-content: space-between; color: var(--muted); font: .7rem ui-monospace, monospace; letter-spacing: .1em; background: #15201b; }
.grid-line { stroke: #516d5d; opacity: .45; }
.halo { stroke: #6fa884; stroke-dasharray: 2 6; }
.orb { fill: #263d32; stroke: #b9ffca; stroke-width: 2; }
.orb-detail, .star { stroke: #88c49b; stroke-width: 1.25; }
.library { margin-bottom: 3.5rem; scroll-margin-top: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.empty, .game-card { background: var(--panel); border: 1px solid var(--border); border-radius: .55rem; padding: clamp(1.15rem, 4vw, 2rem); }
.empty p:last-child { margin-bottom: 0; }
.game-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1rem; }
.game-card .button { margin-top: .5rem; max-width: 100%; overflow-wrap: anywhere; }
.play { padding: 2rem 0 3rem; }
.play h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.back { display: inline-block; color: var(--muted); margin-bottom: 2rem; }
.player { display: block; border: 1px solid var(--border); width: 100%; min-height: 300px; aspect-ratio: 16 / 9; border-radius: .6rem; background: #0c100e; }
.tip { margin-top: .6rem; color: var(--muted); font-size: .85rem; }
.site-footer { border-top: 1px solid var(--border); flex-wrap: wrap; }

@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; }
  .arcade-art { max-width: 420px; }
  .site-header, .site-footer, main { width: calc(100% - 2rem); }
  .parent { text-align: right; }
}
