:root {
  color-scheme: dark;
  --bg: #071b22;
  --panel: #102a33;
  --line: #24434c;
  --text: #eefafa;
  --muted: #a5bdc1;
  --mint: #64ebc8;
  --ink: #062a25;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse 760px 590px at 50% 120px, #103e47 0, var(--bg) 73%);
}
a { color: var(--mint); text-underline-offset: .25em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.shell { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 5; transform: translateY(-200%); padding: .7rem; background: var(--panel); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #071b22ed; }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-row { min-height: 67px; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.024em; white-space: nowrap; }
.brand img { flex: none; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
nav a, .footer-row a { text-decoration: none; color: var(--muted); font-size: .91rem; font-weight: 600; }
nav a:hover, .footer-row a:hover { color: var(--mint); }
.nav-play {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  padding: .63rem .97rem;
  border: 1px solid #437b76;
  border-radius: 8px;
  color: var(--mint);
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}
.nav-play:hover { background: #17453f; }
.nav-play span, .play-button span { font-size: .8em; }
.intro { padding: clamp(30px, 4.6vw, 59px) 0 clamp(24px, 3.2vw, 37px); text-align: center; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.6rem, 6.7vw, 5rem); line-height: 1.06; letter-spacing: -.072em; }
h1 em { font-style: normal; color: var(--mint); }
.intro p { max-width: 660px; margin: 1.1rem auto 0; color: var(--muted); font-size: clamp(.99rem, 2vw, 1.12rem); line-height: 1.55; }
.arcade { overflow: hidden; border: 1px solid #39616b; border-radius: 18px; background: #06151b; box-shadow: 0 22px 55px #020c1194; }
.stage { position: relative; aspect-ratio: 16 / 8.4; background: #041419; }
.arcade:fullscreen, .arcade.expanded {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
}
.arcade.expanded { position: fixed; inset: 0; z-index: 10; height: 100dvh; }
.player-expanded { overflow: hidden; }
.arcade:fullscreen .stage, .arcade.expanded .stage { flex: 1; aspect-ratio: auto; min-height: 0; }
.stage iframe, .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover { width: 100%; height: 100%; display: block; object-fit: cover; }
.poster::after { position: absolute; content: ""; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, #04161d0d 6%, #051c2328 70%), linear-gradient(0deg, #03151b2c, #061c2733); }
.launch { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 12px; }
.launch > span { padding: .36rem .75rem; border-radius: 30px; background: #07232aee; color: var(--text); font-size: .83rem; font-weight: 650; }
.play-button {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .92rem 1.65rem;
  border: 2px solid #b7fae8;
  border-radius: 12px;
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 4px 0 #248e75, 0 8px 32px #002c37ab;
  font-weight: 850;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
}
.play-button:hover { background: #98f5de; }
.play-button:active { transform: translateY(2px); }
.play-button:focus-visible { outline-color: white; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem 1rem; min-height: 56px; background: #0d252e; }
.credit, .player-tools, .player-note { display: flex; align-items: center; gap: .57rem; }
.credit { color: var(--muted); font-size: .83rem; }
.credit strong { color: var(--text); font-weight: 650; }
.player-tools button { display: flex; align-items: center; gap: .38rem; border: 1px solid var(--line); border-radius: 7px; padding: .43rem .6rem; background: #142f39; color: var(--text); font-size: .81rem; }
.player-tools button:hover:not(:disabled) { border-color: var(--mint); }
.player-tools button:disabled { opacity: .66; cursor: default; }
.player-note { justify-content: space-between; padding: .65rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; line-height: 1.5; min-height: 3.9rem; }
.player-note a { white-space: nowrap; }
.no-script { position: absolute; z-index: 1; bottom: 1rem; left: 1rem; right: 1rem; padding: .85rem; border-radius: 8px; background: var(--bg); }
.guide { margin: clamp(42px, 7vw, 83px) 0 32px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.046em; }
h3 { font-size: 1.13rem; letter-spacing: -.025em; }
.section-lead { margin-top: .55rem; color: var(--muted); line-height: 1.58; }
.guide-grid, .info-grid { display: grid; gap: 14px; }
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.guide-grid article, .quick-steps li, .panel { padding: clamp(16px, 2.9vw, 27px); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.quick-steps { list-style-position: inside; padding: 0; margin-bottom: 0; }
.quick-steps li::marker { color: var(--mint); font-weight: 700; }
.quick-steps h3 { display: inline; }
.guide-grid p, .panel p { margin-top: .58rem; color: var(--muted); line-height: 1.62; font-size: .95rem; }
.guide-updated { margin-top: .55rem; color: var(--muted); font-size: .87rem; }
.gameplay { margin: 18px 0 0; }
.gameplay img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; }
.gameplay figcaption { margin-top: .55rem; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.ending { margin-bottom: 24px; }
.ending p { max-width: 78ch; }
.info-grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
.related-games { margin-bottom: 55px; }
.related-games .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel h2 { margin-bottom: .65rem; font-size: clamp(1.44rem, 2.6vw, 1.85rem); }
.controls-list { margin: 1rem 0; }
.controls-list > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; min-height: 34px; border-bottom: 1px solid var(--line); font-size: .87rem; }
.controls-list dd { margin: 0; color: var(--muted); }
kbd { padding: .1rem .32rem; border: 1px solid #47626b; border-radius: 4px; background: #203b45; font: 600 .75rem ui-monospace, monospace; }
.panel .mobile-tip { margin-top: 1rem; }
details { border-top: 1px solid var(--line); padding: .86rem 0; }
details:last-child { padding-bottom: .2rem; }
summary { cursor: pointer; font-weight: 700; }
summary::marker { color: var(--mint); }
.site-footer { padding: 1.7rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-row a.brand { color: var(--text); }
.footer-row p { font-size: .84rem; }
.text-page { max-width: 740px; padding-block: 58px; line-height: 1.65; }
.text-page h2, .text-page > a { margin-top: 1.5rem; }
.text-page p { color: var(--muted); margin: .7rem 0; }
.text-page > a { display: inline-block; }
.guide-page { padding-top: clamp(26px, 5vw, 52px); }
.guide-page h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
.guide-page .guide-lead { font-size: 1.13rem; margin-top: 1.2rem; }
.guide-page ol, .guide-page ul { padding-inline-start: 1.4rem; color: var(--muted); }
.guide-page li + li { margin-top: .55rem; }
.breadcrumbs { flex-wrap: wrap; gap: .25rem .7rem; margin-bottom: 1.25rem; font-size: .86rem; color: var(--muted); }
.breadcrumbs a { color: var(--mint); text-decoration: underline; }
.breadcrumbs a::after { content: " / "; margin-left: .35rem; }
nav a[aria-current="page"] { color: var(--mint); }
.upgrade-choices dt { font-weight: 750; margin-top: 1rem; }
.upgrade-choices dd { margin: .25rem 0 0; color: var(--muted); }
.guide-page .source-note { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.9rem; font-size: .9rem; }
.text-page > .guide-play { display: inline-flex; }
section[id], .guide-page h2[id] { scroll-margin-top: 18px; }
@media (max-width: 700px) {
  .shell { width: calc(100% - 30px); }
  .site-header nav { display: none; }
  .header-row { min-height: 60px; }
  .guide-grid, .info-grid, .related-games .guide-grid { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 16 / 11; }
  .player-bar { padding-inline: .65rem; }
  .player-note { align-items: flex-start; flex-wrap: wrap; padding-inline: .65rem; min-height: 5.75rem; }
  .footer-row { flex-wrap: wrap; gap: .75rem 1.25rem; }
  .footer-row p { flex-basis: 100%; order: 1; }
}
@media (max-width: 400px) {
  .brand { font-size: .94rem; gap: .4rem; }
  .nav-play { padding-inline: .62rem; }
  .player-bar { flex-wrap: wrap; }
  .player-tools button { padding-inline: .55rem; min-height: 40px; }
  .player-note { gap: .4rem; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
