:root {
  color-scheme: dark;
  --bg: #0b0f1a;
  --surface: #151b2b;
  --text: #e8ecf5;
  --muted: #9aa4b8;
  --primary: #7c5cff;
  --accent: #22d3ee;
  --line: #323b52;
  --radius: 12px;
  --heading: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); }
h1, h2, h3, .stage-title, .brand { font-family: var(--heading); line-height: 1.2; }
h1 { font-size: 48px; margin: 0 0 16px; letter-spacing: -.035em; }
h2 { font-size: 28px; margin: 48px 0 16px; }
h3 { font-size: 22px; margin: 24px 0 12px; }
p { max-width: 70ch; margin: 0 0 16px; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; }
button { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; padding: 8px 16px; font-weight: 600; }
button:hover { background: #252e45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.primary { color: white; background: #6546db; border-color: var(--primary); }
.primary:hover { background: #5436c5; }
.shell { width: 100%; max-width: 1120px; padding-inline: 24px; margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 8px 12px; background: var(--surface); z-index: 2; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.header, .footer { border-block-end: 1px solid var(--line); }
.header-row, .footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; }
.header nav, .footer nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.header nav a, .footer nav a { font-size: 14px; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 18px; font-weight: 700; }
.mark { width: 24px; display: grid; gap: 2px; justify-items: center; }
.mark i, .loading-stack i { display: block; width: 12px; height: 4px; background: var(--accent); }
.mark i:nth-child(2) { width: 18px; }
.mark i:nth-child(3) { width: 24px; }
.hero-title { margin-top: 24px; }
.stage { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2/1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.stage:fullscreen { border: 0; border-radius: 0; }
.cover, .stage-inset { position: absolute; inset: 0; }
.cover { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; padding: 24px 64px; gap: 48px; background: var(--surface); }
.cover[hidden], .loader[hidden], .stage[data-gf-state] .cover { display: none; }
.start-panel { max-width: 450px; }
.stage-title { font-size: 48px; margin-bottom: 16px; letter-spacing: -.04em; font-weight: 700; }
.stage-summary { font-size: 18px; color: var(--muted); margin-bottom: 24px; }
.cover-visual { display: flex; align-items: stretch; justify-content: center; gap: 16px; align-self: stretch; min-height: 0; }
.cover-shot { display: block; height: 100%; width: auto; max-width: calc(100% - 40px); object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); }
.height-scale { width: 24px; flex: 0 0 24px; border-inline-start: 1px solid var(--line); background: repeating-linear-gradient(to bottom, var(--accent) 0 1px, transparent 1px 24px) left top / 12px 100% no-repeat; opacity: .65; }
.loader { display: none; justify-items: center; align-content: center; gap: 16px; font-weight: 600; background: var(--surface); }
.stage[data-gf-state="loading"] .loader:not([hidden]) { display: grid; z-index: 1; }
.loading-stack { display: grid; justify-items: center; gap: 4px; }
.loading-stack i { height: 8px; width: 24px; animation: stack-pulse 1.2s infinite alternate; }
.loading-stack i:nth-child(2) { width: 36px; animation-delay: .15s; }
.loading-stack i:nth-child(3) { width: 48px; animation-delay: .3s; }
@keyframes stack-pulse { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .loading-stack i { animation: none; } }
.player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; }
.player-actions button[data-gf-liked], .player-actions button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
[data-gf-share-msg], [data-gf-comment-msg] { color: var(--muted); font-size: 14px; }
.reading { max-width: 70ch; margin: 48px auto; }
.reading > :first-child { margin-top: 0; }
.reading ol, .reading ul { padding-inline-start: 24px; }
.reading li + li { margin-top: 8px; }
.game-guide { margin-top: 48px; }
.guide-intro { max-width: 70ch; margin-block: 0 48px; }
.guide-intro h2, .guide-section h2 { margin-top: 0; }
.guide-section { margin-block: 48px; }
.guide-steps { max-width: 70ch; }
.guide-steps ol { padding-inline-start: 24px; }
.guide-steps li + li { margin-top: 8px; }
.shot-pair, .timing-lead, .questions-grid, .discussion-layout { display: grid; gap: 24px; }
.shot-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; align-items: start; }
.guide-shot { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px; }
.guide-shot img { display: block; width: min(100%, 240px); height: auto; margin-inline: auto; border-radius: var(--radius); }
.guide-shot figcaption { margin: 12px auto 0; max-width: 44ch; color: var(--muted); font-size: 14px; }
.timing-lead { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.timing-lead h3 { margin-top: 0; }
.timing-notes { max-width: 70ch; }
.questions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.discussion-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.questions details { border-block-start: 1px solid var(--line); padding: 12px 0; }
.questions details:last-child { border-block-end: 1px solid var(--line); }
.questions summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.questions details p { margin: 8px 0; color: var(--muted); }
.discussion { padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.discussion form { display: grid; gap: 12px; }
.discussion label { font-weight: 600; }
.discussion label span, .comment-meta { color: var(--muted); }
.discussion input, .discussion textarea { width: 100%; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.discussion textarea { resize: vertical; }
[data-gf-comment-msg]:empty { display: none; }
.empty-comments { display: none; margin: 16px 0 0; color: var(--muted); }
[data-gf-empty] .empty-comments { display: block; }
.comment { border-block-start: 1px solid var(--line); padding-block: 12px; }
.comment-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.comment[data-gf-owner] > .comment-meta strong { color: var(--accent); }
[data-gf-c-replies] { margin: 12px 0 0 16px; }
.inner-page { margin-block: 48px 64px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.footer { border-block-start: 1px solid var(--line); border-block-end: 0; margin-top: 64px; }
.footer-row { padding-block: 16px; }
@media (max-width: 820px) {
  .cover { padding: 24px 32px; gap: 16px; }
  .stage-title { font-size: 36px; }
  .cover-visual { gap: 12px; }
}
@media (max-width: 640px) {
  .shell { padding-inline: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .header nav, .footer nav { gap: 12px; }
  .header nav a, .footer nav a { font-size: 12px; }
  .brand { gap: 8px; font-size: 16px; }
  .stage { aspect-ratio: 4/5; }
  .cover { display: flex; flex-direction: column-reverse; justify-content: center; padding: 16px; gap: 12px; }
  .cover-visual { align-self: center; height: 54%; max-height: 240px; }
  .cover-shot { max-width: 100%; }
  .height-scale { width: 12px; flex-basis: 12px; background-size: 8px 100%; }
  .start-panel { width: 100%; text-align: center; }
  .stage-title { font-size: 24px; margin-bottom: 8px; }
  .stage-title br { display: none; }
  .stage-summary { font-size: 14px; margin: 0 auto 12px; }
  .start-panel .primary, .discussion .primary { width: 100%; }
  .player-actions button { flex: 1; padding-inline: 8px; font-size: 14px; }
  .shot-pair, .timing-lead, .questions-grid, .discussion-layout { grid-template-columns: minmax(0, 1fr); }
  .discussion { padding: 16px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}
