:root {
  color-scheme: dark;
  --bg: #090f1a;
  --panel-ink: #0c1825;
  --ink: #fcf8ed;
  --muted: #accdd1;
  --action: #ffc64a;
  --mint: #63f0c2;
  --accent: var(--mint);
  --line: #426274;
  --panel-steel: url("assets/panel-steel.webp");
  --panel-gold: url("assets/panel-gold.webp");
  --panel-mint: url("assets/panel-mint.webp");
  --nav-height: 68px;
  --viewport-height: 100vh;
  --gutter: 24px;
  --wrap: min(100% - 2rem, 75rem);
  --p-bg: var(--bg);
  --p-surface: #10262b;
  --p-inv-bg: #10262b;
  --p-accent: var(--mint);
  --p-ink: var(--ink);
  --p-inv-ink: var(--ink);
  --font-display: "Avenir Next Condensed", "Arial Narrow", "Liberation Sans Narrow", system-ui, sans-serif;
  --font-text: "Avenir Next", Avenir, system-ui, sans-serif;
}

@supports (height: 100svh) { :root { --viewport-height: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-height) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 var(--font-text); }
h1, h2, h3, p { margin: 0; }
h2 {
  font: 900 clamp(2.65rem, 5.2vw, 5.25rem)/.98 var(--font-display);
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 3px 0 var(--panel-ink), 0 5px 0 #1c3945;
}
h3 { font: 900 clamp(1.4rem, 2.4vw, 1.85rem)/1.14 var(--font-display); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
.wrap { width: var(--wrap); margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 10;
  transform: translateY(-150%);
  padding: .6rem 1rem;
  background: var(--bg);
}
.skip-link:focus { transform: none; }

.nav {
  position: sticky;
  z-index: 5;
  top: 0;
  background: linear-gradient(180deg, #192c38f9, #090f1af9 72%);
  border-bottom: 1px solid #426274;
  box-shadow: 0 1px #0b1c25, 0 5px 24px #0007;
}
.nav__bar, .footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.nav__bar { min-height: calc(var(--nav-height) - 1px); }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; }
.brand img { border-radius: 7px; }
.brand span { font: 800 1.15rem/1 var(--font-display); letter-spacing: .12em; }
.nav__links, .footer nav { display: flex; align-items: center; gap: .45rem; }
.nav__links a, .nav-publisher, .footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav__links a, .footer nav a { --edge-y: 14px; justify-content: center; padding-inline: .95rem; }
.nav-publisher:hover { color: var(--mint); }
.nav-publisher { font-size: .85rem; letter-spacing: .16em; font-weight: 800; }

.hero {
  min-height: calc(var(--viewport-height) - var(--nav-height));
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #0a1a20;
}
.hero__stage { position: absolute; inset: 0; z-index: -1; isolation: isolate; }
.hero__stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #08121bec 3%, #08121bd9 24%, #08121b3b 63%, #08121b24 90%),
              linear-gradient(0deg, #090f1a 0%, #090f1a22 48%, transparent 80%);
}
.hero__stage .vault {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 53%;
}
.hero__stage .orb {
  position: absolute;
  z-index: 2;
  right: clamp(4%, 12vw, 19%);
  top: 47%;
  translate: 0 -50%;
  width: min(30vw, 24rem);
  height: auto;
  filter: drop-shadow(0 26px 55px #091014cf) drop-shadow(0 0 55px #e65b2160);
  pointer-events: none;
}
.hero__layout {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding-block: clamp(2.5rem, 7vh, 5rem) 1.75rem;
}
.eyebrow {
  display: flex;
  gap: .65rem;
  align-items: center;
  color: var(--mint);
  font-size: .8rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.2rem; height: 2px; background: currentColor; }
.hero h1 { margin: .95rem 0 1.15rem; font-size: clamp(3.5rem, 7vw, 6.4rem); line-height: 1; }
.hero h1 img { width: min(100%, 62vw, 33rem); height: auto; }
.hero__lead { max-width: 27rem; color: #e5efef; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.55rem; }
/* Match the SpriteKit panel's nine slices, with fixed edges as the label grows. */
.arcade-panel {
  --panel: var(--panel-steel);
  --panel-fallback: #25394a;
  --edge-x: 19px;
  --edge-y: 16px;
  position: relative;
  isolation: isolate;
  color: var(--ink);
  font: 900 .98rem/1.16 var(--font-display);
  letter-spacing: .025em;
  text-transform: uppercase;
  text-align: center;
}
.arcade-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(var(--panel-fallback), var(--panel-fallback)) center /
    calc(100% - var(--edge-x) * 1.7) calc(100% - var(--edge-y) * 1.45) no-repeat;
  border: 1px solid transparent;
  border-image: var(--panel) 25% 18% fill / var(--edge-y) var(--edge-x) stretch;
  transition: filter 150ms ease-out;
}
.arcade-panel--gold {
  --panel: var(--panel-gold);
  --panel-fallback: var(--action);
  color: var(--panel-ink);
}
@media (hover: hover) {
  :is(a, button).arcade-panel:hover::before { filter: brightness(1.16); }
}
:is(a, button).arcade-panel:active::before { filter: brightness(.87); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: .75rem 1.32rem;
  border: 0;
  font-size: 1.06rem;
}

.hero__facts {
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.4rem, 1.4vw, 1rem);
  list-style: none;
}
.hero__facts li {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .7rem 1rem;
}
.hero__facts strong { color: var(--action); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: 0; }
.hero__facts span { color: var(--ink); font-size: .9rem; line-height: 1.2; }

.modes {
  background: radial-gradient(ellipse at 70% 42%, #172934 0%, var(--bg) 62%);
}
.modes__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: calc(var(--viewport-height) - var(--nav-height));
  align-items: center;
  gap: var(--gutter);
  padding-block: clamp(3.4rem, 9vw, 7.8rem);
}
.modes__copy { grid-column: span 5; }
.mode-visual { grid-column: 7 / -1; }
.modes h2 { margin-bottom: clamp(1.8rem, 5vw, 3.1rem); }
.m-tabs {
  display: flex;
  gap: .35rem;
  margin-bottom: 1.2rem;
}
.m-tabs button {
  flex: 1 1 auto;
  appearance: none;
  min-height: 48px;
  border: 0;
  padding: .4rem .65rem;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.m-tabs button[aria-selected="true"] {
  --panel: var(--panel-mint);
  --panel-fallback: var(--mint);
  color: var(--panel-ink);
}
.m-tabs .m-tab-ind { display: none; }
.mode-detail { min-height: 9.5rem; }
.mode-detail p, .platforms p { margin-top: .7rem; color: var(--muted); max-width: 30rem; }
.mode-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34rem;
  overflow: clip;
  padding: 1.8rem;
  background:
    radial-gradient(ellipse at 50% 72%, #11484bc7, #0c1a20f2 74%),
    url("assets/mine.webp") center 60% / cover;
}
.mode-visual img, .platforms__art img {
  width: auto;
  height: auto;
  max-height: 30rem;
  max-width: 100%;
  border: 2px solid #426274;
  border-radius: 7px;
  box-shadow: 0 0 0 3px #090f1a, 0 18px 38px #000b;
}
.mode-visual img:not([hidden]) ~ img:not([hidden]) { margin-top: 1rem; }

.scene-frame {
  position: relative;
  isolation: isolate;
  border-radius: 11px;
  box-shadow: 0 18px 36px #0006;
}
.scene-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  border-image: var(--panel-steel) 25% 18% / 17px 19px stretch;
}

.platforms {
  background: radial-gradient(ellipse at 74% 50%, #1d474a, #0b1b2a 63%, #090f1a);
  border-block: 1px solid #426274;
  overflow: clip;
}
.platforms__inner {
  min-height: calc(var(--viewport-height) - var(--nav-height) - 2px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--gutter);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.platforms__inner > :first-child { grid-column: span 6; }
.platforms__art {
  display: grid;
  grid-column: 7 / -1;
  justify-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: radial-gradient(ellipse at center, #244552ba, #0c1825ed);
}
.platforms__art img { max-height: min(59svh, 32rem); }
.footer { color: var(--muted); font-size: .92rem; }
.footer__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  min-height: 5rem;
}
.footer { background: linear-gradient(#142531, var(--bg)); }
.footer__inner > span { grid-column: span 5; }
.footer nav { grid-column: 7 / -1; justify-content: flex-end; }

@media (min-width: 70rem) { :root { --wrap: min(100% - 6rem, 75rem); } }
@media (max-width: 60rem) {
  .hero__stage .orb { right: 6%; width: 29vw; }
  .mode-visual { min-height: 30rem; padding: 1.1rem; }
  .mode-visual img { max-height: 27rem; }
}
@media (max-width: 44rem) {
  :root { --nav-height: 58px; }
  .nav__bar { gap: .6rem; }
  .nav__links { gap: .3rem; }
  .nav__links a { padding-inline: .75rem; font-size: .8rem; }
  .nav-publisher { letter-spacing: .07em; }
  .brand span { display: none; }
  .hero { min-height: max(43rem, calc(var(--viewport-height) - var(--nav-height))); }
  .hero__layout { align-items: start; padding-top: clamp(2.3rem, 5vh, 3rem); }
  .hero h1 { margin-block: .8rem 1rem; }
  .hero h1 img { width: min(92%, 23.75rem); }
  .hero__stage .vault { object-position: 58% 65%; }
  .hero__stage .orb { top: auto; bottom: 7rem; right: 6%; width: min(48vw, 13rem); translate: 0; }
  .hero__stage::after { background: linear-gradient(180deg, #08131ced 0%, #08131cc4 44%, #08131b39 72%, var(--bg)); }
  .hero__facts li { display: grid; align-content: center; padding: .55rem .44rem; gap: .18rem; }
  .hero__facts span { font-size: .77rem; }
  .btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .btn { min-height: 50px; padding-inline: .85rem; font-size: .88rem; }
  .modes__inner, .platforms__inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .modes__copy, .mode-visual, .platforms__inner > :first-child, .platforms__art { grid-column: 1 / -1; }
  .modes h2 br { display: none; }
  .mode-detail { min-height: 8.5rem; }
  .mode-visual { min-height: 25rem; }
  .mode-visual img { max-height: 22rem; }
  .platforms__art img { max-height: min(46svh, 24rem); }
  .footer__inner { display: flex; }
}
@media (max-width: 23rem) {
  .hero__lead { font-size: 1rem; }
  .hero__stage .orb { bottom: 6.5rem; width: 40%; }
  .m-tabs { gap: .22rem; }
  .m-tabs button { padding-inline: .45rem; font-size: .83rem; }
}
