@font-face {
  font-family: "Arena Text";
  src: url("/fonts/sf-pro-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arena Display";
  src: url("/fonts/sf-pro-compressed-bold.woff2") format("woff2");
  font-weight: 760;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #070626;
  --outline: #11193d;
  --yellow: #ffff00;
  --pink: #d23daf;
  font-family: "Arena Text", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
  background: var(--navy);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, input { border-radius: 0; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
h1, h2, p { margin: 0; }
.display { font-family: "Arena Display", Impact, sans-serif; font-weight: 760; text-transform: uppercase; }

/* The Figma artboard is 402 × 874, with 105px / 72px browser chrome.
   The page itself is 402 × 697. Container units keep its art composition
   proportional while the signup and footer remain in normal document flow. */
.landing {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  min-height: 100svh;
  margin-inline: auto;
  overflow: clip;
  background: var(--navy);
}

.artwork { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.artwork > img { position: absolute; max-width: none; object-fit: cover; }
.arena { width: 210.448cqw; height: 131.592cqw; left: -55.224cqw; top: -3.234cqw; }
.top-fade { position: absolute; top: -26.119cqw; left: 0; width: 100%; height: 36.318cqw; background: linear-gradient(to bottom, var(--navy) 62.329%, transparent); }
.kara { top: -2.488cqw; left: -17.662cqw; width: 103.938cqw; height: 137.7cqw; transform: scaleX(-1); }
.amazon { top: 1.990cqw; left: 39.055cqw; width: 90.005cqw; height: 151.244cqw; transform: scaleX(-1); }
.fighter-glow { position: absolute; top: 11.617cqw; left: 5.398cqw; width: 89.453cqw; }
.fighter-glow img { display: block; transform: scale(var(--art-scale, 1)); transform-origin: top left; }
.bottom-fade { position: absolute; top: 78.358cqw; left: 0; width: 100%; height: 95.025cqw; background: linear-gradient(to top, var(--navy) 63.78%, transparent); }

.hero { position: relative; flex: 0 0 auto; height: 87.065cqw; }
.brand { position: absolute; top: 35.965cqw; left: calc(50% - 13.060cqw); width: 26.119cqw; height: 30.348cqw; }
.brand img { display: block; transform: scale(var(--art-scale, 1)); transform-origin: top left; }
.coming-soon { position: absolute; top: 68.657cqw; left: 0; width: 100%; text-align: center; font-size: 3.980cqw; line-height: 1.1875; -webkit-text-stroke: 1.990cqw var(--outline); paint-order: stroke fill; }

.game-intro { position: relative; text-align: center; flex: 0 0 auto; }
.game-title { font-size: 8.906cqw; line-height: 1.2; -webkit-text-stroke: 2.579cqw var(--outline); paint-order: stroke fill; white-space: nowrap; }
.game-title span { display: block; }
.game-title span + span { margin-top: -1.827cqw; }
.free-to-play { color: var(--yellow); }
.tagline { margin-top: 1.081cqw; font-size: 3.825cqw; line-height: 1.2; }

.signup { flex: 0 0 auto; margin: 6.915cqw 4.229cqw 0 4.478cqw; padding: 2.985cqw 5.224cqw 4.975cqw; border: 1px solid #3a375c; text-align: center; }
.signup h2 { font: inherit; font-size: 3.825cqw; line-height: 1.2; white-space: nowrap; }
#signup-form { display: grid; gap: 3.831cqw; margin-top: 2.736cqw; }
#email { width: 100%; min-width: 0; height: 12.84cqw; padding: 0 12px; border: 1px solid var(--pink); color: #fff; background: #11102c; font-size: max(16px, 4.040cqw); text-align: center; appearance: none; }
#email::placeholder { color: #da98cb; opacity: 1; }
#email[aria-invalid="true"] { border-color: #ff9393; }
.signup-button, .dialog-done { color: #08062a; background: linear-gradient(#ffdc2c, #e79e00); border: 2px solid #000526; }
.signup-button { width: 100%; min-height: 13.66cqw; padding: 0 8px; font-size: 7.358cqw; line-height: 1.2; }
.signup-button:hover, .dialog-done:hover { filter: brightness(1.08); }
.signup-button:active, .dialog-done:active { filter: brightness(.95); }
.signup-button:disabled { cursor: wait; opacity: .7; }
.signup-status { color: #e4cbe6; font-size: 14px; line-height: 1.45; }
.signup-status[data-state="error"] { color: #ffaaaa; }
.signup-status[hidden] { display: none; }

.footer { display: flex; justify-content: center; align-items: flex-start; flex: 1 0 auto; padding: 0 0 max(0px, env(safe-area-inset-bottom)); }
.privacy-button { min-width: 64px; min-height: 32px; padding: 6px 12px 8px; border: 0; background: none; color: #fff; font-size: 11px; text-decoration: underline; text-underline-offset: 1px; }

.privacy-dialog { width: min(367px, calc(100% - 36px)); max-height: calc(100dvh - 48px); margin: auto; padding: 24px; border: 1px solid #99458c; background: #11102c; color: #fff; box-shadow: 0 12px 80px #0009; overflow-y: auto; }
.privacy-dialog::backdrop { background: #030213cf; backdrop-filter: blur(6px); }
body:has(.privacy-dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dialog-header h2 { color: var(--yellow); font-size: 36px; }
.close-button { display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -10px -10px 0; border: none; background: none; color: #fff; font: 32px/1 sans-serif; }
.privacy-copy { margin: 22px 0 28px; color: #e4ddea; font-size: 16px; line-height: 1.6; }
.privacy-copy p + p { margin-top: 1em; }
.dialog-done { width: 100%; min-height: 48px; font-size: 26px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 600px) {
  body { background: #040319; }
  .landing { box-shadow: 0 0 80px #0005; }
}
