:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: #f5f6fb;
  background: #0e1425;
  --paper: #f5f6fb;
  --dim: #b1bdd2;
  --line: #303c55;
  --yellow: #ffc900;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:is(a, button, summary, video):focus-visible { outline: 3px solid #ffda48; outline-offset: 4px; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 3; padding: 12px; background: #141d34; }
.skip:not(:focus) { transform: translateY(-150%); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(16px, 5vw, 76px);
  min-height: 62px;
  background: #101a32;
  border-bottom: 1px solid #344469;
}
.site-header a { text-decoration: none; }
.site-header a:hover { color: #ffe179; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: .94rem; font-weight: 800; min-height: 44px; }
.wordmark img { flex: none; }
.site-header nav { display: flex; gap: clamp(10px, 3vw, 32px); color: var(--dim); font-size: .85rem; }
.site-header nav a { display: flex; align-items: center; min-height: 44px; }

.stage { background: #0e1425; scroll-margin-top: 0; }
.launch {
  min-height: clamp(520px, 75svh, 700px);
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vw, 86px) clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 75% 0%, #1d3464, #132345 46%, #10182b 83%);
}
.launch-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  width: min(100%, 1250px);
  gap: clamp(26px, 5vw, 80px);
}
.launch-kicker { margin: 0 0 14px; color: #ffda48; font: 800 .75rem/1.25 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-family: system-ui, sans-serif; font-size: clamp(2.45rem, 5.4vw, 5.5rem); font-weight: 900; line-height: 1; letter-spacing: -.065em; }
h1 span { display: block; color: var(--yellow); }
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 59px;
  max-width: 100%;
  padding: 10px 25px;
  margin: 22px 0 0;
  border-radius: 8px;
  color: #18180f;
  background: var(--yellow);
  box-shadow: 0 5px 0 #ae8506;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.play-button:hover { background: #ffda38; }
.play-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #ae8506; }
.play-button svg { flex: none; }
.launch-copy { max-width: 34ch; margin: 18px 0 0; color: #d2dcf0; font-size: clamp(.95rem, 1.6vw, 1.14rem); line-height: 1.55; }
.launch-hint { margin: 14px 0 0; color: #d2dcf0; font-size: .82rem; line-height: 1.5; }
.launch-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; }
.launch-guide { display: inline-flex; align-items: center; min-height: 44px; color: #d2dcf0; font-size: .88rem; text-underline-offset: 4px; }
.launch-guide:hover { color: #ffda48; }
.launch-preview { margin: 0; border: 1px solid #526383; border-radius: 10px; overflow: hidden; background: #0f182c; }
.launch-preview img, .run-figure img { display: block; width: 100%; height: auto; background: #1a2640; }
.launch-preview figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; padding: 10px 13px; color: #d2dcf0; font: 650 .73rem/1.35 system-ui, sans-serif; }
.launch-preview figcaption span:first-child { color: #ffda48; }

.player {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  position: relative;
  height: max(350px, calc(100svh - 112px));
  background: #0d1222;
}
.player:fullscreen { width: 100%; height: 100%; }
.player-bar { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); background: #141d33; }
.player-title { font-size: .9rem; font-weight: 800; padding-left: 10px; }
.player-actions { display: flex; flex-wrap: wrap; gap: 3px; }
.player-actions a, .player-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  font-size: .8rem;
  text-decoration: none;
}
.player-actions :is(a, button):hover { background: #253457; }
.player-help { grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #141d33; }
.player-help p { margin: 0 0 4px; color: var(--dim); font: 500 .8rem/1.5 system-ui, sans-serif; }
.player-help strong { color: var(--paper); margin-right: 5px; }
.player-help kbd { margin-inline: 1px; }
.recovery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; }
.recovery-actions :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; color: #ffe179; background: transparent; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.frame-slot { grid-row: 5; position: relative; isolation: isolate; min-height: 0; }
.frame-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.loading-message { position: absolute; z-index: 1; top: 50%; left: 0; right: 0; margin: 0; text-align: center; color: var(--dim); pointer-events: none; }
.player-note { grid-column: 1; margin: 0; padding: 7px 12px; color: var(--dim); background: #141d33; border-top: 1px solid var(--line); font-size: .78rem; text-align: center; }
#player-note { grid-row: 3; }
#fullscreen-note { grid-row: 4; }

.quick-controls { background: #111b31; border-bottom: 1px solid var(--line); }
.quick-controls-inner { max-width: 1250px; margin: auto; padding: 13px clamp(18px, 5vw, 56px); display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; }
.quick-controls h2 { margin: 0; color: #ffda48; font: 800 .78rem/1.5 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.quick-controls p { margin: 0; color: #cbd5e7; font: 500 .8rem/1.7 system-ui, sans-serif; }
.quick-controls strong { color: var(--paper); margin-right: 5px; }
.quick-controls kbd { margin-inline: 1px; }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.control-grid section { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #111b31; }
.control-grid h3 { margin: 0 0 10px; font-size: 1rem; }
.control-grid dl { margin: 0; }
.control-grid dl div { display: grid; grid-template-columns: minmax(6ch, 1fr) minmax(0, 1.8fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.control-grid dd { margin: 0; }
@media (max-width: 600px) { .control-grid { grid-template-columns: 1fr; } }
.guide { max-width: 1240px; margin-inline: auto; padding: clamp(52px, 7vw, 92px) clamp(18px, 5vw, 56px); }
.guide h2 { margin: 0 0 13px; font: 850 clamp(1.6rem, 4vw, 2.35rem)/1.12 system-ui, sans-serif; letter-spacing: -.035em; }
.guide p, .guide dd, .trip-steps li { color: var(--dim); line-height: 1.65; }
.guide p { margin: 0; }
.guide .eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: #ffda48; font: 800 .74rem/1.2 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.section-intro { max-width: 64ch; }
.phrase-guide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 36px; margin-top: 30px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 10px; background: #111b31; scroll-margin-top: 20px; }
.phrase-guide h3 { margin: 0 0 10px; font-size: 1.14rem; }
.phrase-guide dl { margin: 0; }
.phrase-guide dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.phrase-guide dl div:last-child { border-bottom: 0; }
.phrase-guide dt { font-weight: 700; color: var(--paper); }
.phrase-guide dd { margin: 0; }
@media (max-width: 700px) { .phrase-guide { grid-template-columns: minmax(0, 1fr); } }
.route-strip { display: grid; grid-template-columns: 1fr 1.45fr 1fr; margin: 28px 0; padding: 0; list-style: none; border-block: 1px solid var(--line); background: #111b31; }
.route-strip li { display: grid; align-content: start; gap: 4px; padding: 12px clamp(10px, 2vw, 22px); }
.route-strip li + li { border-inline-start: 1px solid var(--line); }
.route-strip span { color: #ffda48; font: 750 .69rem/1.25 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.route-strip strong { font: 750 clamp(.8rem, 2vw, 1.05rem)/1.3 system-ui, sans-serif; }
.first-run { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 48px); }
.run-figure { margin: 0; }
.run-figure img { border: 1px solid var(--line); border-radius: 8px; }
.run-figure video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 8px; background: #101a32; }
.run-figure figcaption { padding-top: 9px; color: var(--dim); font-size: .82rem; line-height: 1.5; }
.trip-steps { margin: 0; padding: 0 0 0 26px; }
.trip-steps li { padding: 10px 0 10px 7px; border-bottom: 1px solid var(--line); }
.trip-steps li:first-child { padding-top: 0; }
.trip-steps li::marker { color: #ffda48; font-weight: 900; }
.trip-steps strong, dt { color: var(--paper); }
.mode-guide, .watch, .questions { margin-top: clamp(38px, 6vw, 74px); padding-top: clamp(28px, 4vw, 46px); border-top: 1px solid var(--line); }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.mode-card { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #111b31; }
.mode-card img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.mode-card > div { padding: 18px; }
.mode-card h3 { margin: 0 0 8px; font: 760 1.05rem/1.3 system-ui, sans-serif; }
.mode-card p:not(.eyebrow) { font-size: .88rem; }
.menu-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.menu-guide article { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #111b31; }
.menu-guide h3 { margin: 0 0 8px; font: 760 1.05rem/1.3 system-ui, sans-serif; }
.menu-guide p:not(.eyebrow) { font-size: .88rem; }
.guide .mode-note { margin-top: 14px; font-size: .8rem; }
kbd { display: inline-block; padding: 0 5px; border: 1px solid #586682; border-radius: 3px; color: var(--paper); font: 700 .83em/1.6 system-ui, sans-serif; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: #ffda48; text-underline-offset: 4px; }
.watch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.watch-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #111b31; }
.watch-media { border-radius: 7px 7px 0 0; background: #080c16; }
.watch-media video { display: block; width: 100%; height: auto; aspect-ratio: 900 / 506; border-radius: inherit; object-fit: cover; }
.watch-copy { padding: 14px; }
.checkpoint-list { display: grid; gap: clamp(28px, 5vw, 52px); }
.checkpoint-list h3 { margin: 0 0 10px; font: 800 1.24rem/1.3 system-ui, sans-serif; }
.checkpoint-list .checkpoint-kicker { margin: 0 0 6px; }
.checkpoint-list p { max-width: 58ch; }
.guide-links { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; margin: 12px 0 0; }
.guide-links a { display: inline-flex; align-items: center; min-height: 44px; }
.watch-copy .eyebrow { margin-bottom: 8px; }
.watch-copy h3 { margin: 0 0 7px; font: 760 1rem/1.3 system-ui, sans-serif; }
.watch-copy > p:not(.eyebrow) { font-size: .85rem; }
.watch .watch-credit { margin-top: 14px; font-size: .8rem; }
details { border-bottom: 1px solid var(--line); }
summary { padding: 14px 0; min-height: 46px; font-weight: 750; cursor: pointer; }
details p { padding: 0 0 16px 17px; }
.questions .faq-intro { margin: 8px 0 22px; color: var(--dim); }
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.faq-group { min-width: 0; padding: 14px 18px 4px; border: 1px solid var(--line); border-radius: 10px; background: #111b31; }
.faq-group h3 { margin: 0 0 6px; color: var(--yellow); font: 750 .85rem/1.4 system-ui, sans-serif; letter-spacing: .04em; }
.faq-group details:last-child { border-bottom: 0; }
.faq-group summary { padding: 13px 0; font-size: .94rem; line-height: 1.4; }
.faq-group p { padding: 0 0 16px 17px; color: var(--dim); font-size: .9rem; line-height: 1.6; }
.faq-group p a { display: inline-flex; align-items: center; min-height: 44px; color: #ffda48; text-underline-offset: 3px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 22px; padding: 12px clamp(16px, 5vw, 76px); border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .faq-grid { grid-template-columns: 1fr; gap: 10px; }
  .launch { min-height: 0; padding-block: 28px; }
  .launch-layout, .first-run { grid-template-columns: 1fr; }
  .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-grid, .menu-guide { grid-template-columns: 1fr; }
  .launch-preview { max-width: 550px; }
}
@media (max-width: 600px) {
  .mode-card { grid-template-columns: 1fr; }
  .mode-card img { height: auto; min-height: 0; aspect-ratio: 16 / 9; object-fit: cover; }
  .player-bar { justify-content: center; padding-inline: 4px; }
  .player-title { display: none; }
  .player-help { grid-template-columns: minmax(0, 1fr); max-height: 42svh; overflow: auto; }
  .site-header { gap: 8px; }
  .site-header nav { gap: 10px; font-size: .78rem; }
  .wordmark { gap: 6px; font-size: .82rem; }
  .wordmark img { width: 25px; height: 25px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .launch { min-height: calc(100svh - 62px); padding-block: 24px; }
  .player { height: 100svh; }
  .player-help { max-height: 42svh; overflow: auto; }
}
.more-games {
  margin-top: clamp(38px, 6vw, 74px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.more-games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}
.more-games-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111b31;
  color: var(--paper);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}
.more-games-grid a:hover {
  border-color: var(--yellow);
  color: #ffe179;
}
.more-games-grid img {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  background: #1b2945;
}
@media (max-width: 980px) {
  .more-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .more-games-grid { gap: 8px; }
  .more-games-grid a { gap: 7px; padding-inline: 7px; font-size: .82rem; }
  .more-games-grid img { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
