:root {
  color-scheme: dark;
  --background: #11100f;
  --cream: #fff5dc;
  --muted: #b7aea1;
  --yellow: #ffd629;
  --orange: #ff8a12;
  --red: #ff263e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  background-image:
    radial-gradient(ellipse at 88% 42%, #ed66130d, transparent 47%),
    radial-gradient(ellipse at 15% 60%, #e23b1409, transparent 45%);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange) 55%, var(--yellow));
}

a { color: inherit; }

a:focus-visible, iframe:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 6px;
}

::selection { background: var(--orange); color: var(--background); }

.page {
  width: min(100% - 96px, 1320px);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.masthead {
  min-height: 87px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #fff5dc14;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.motto, .release-note { display: inline-flex; align-items: center; gap: 13px; }
.release-note { color: var(--muted); font-size: 10px; letter-spacing: 1.6px; }

.speed-mark {
  width: 28px;
  height: 18px;
  transform: skewX(-22deg);
  background: linear-gradient(to bottom,
    var(--yellow) 0 4px, transparent 4px 7px,
    var(--orange) 7px 11px, transparent 11px 14px,
    var(--red) 14px 18px);
}

.status-light {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px #ff8a1270;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
  padding: 44px 0 36px;
}

.announcement { padding-bottom: 18px; min-width: 0; }

.logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 30px;
  filter: drop-shadow(0 12px 22px #0006);
}

.announcement-copy { padding-left: 9px; }

.eyebrow {
  margin: 0 0 19px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 26px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-style: italic;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.045em;
}

h1 span {
  color: var(--orange);
  background: linear-gradient(180deg, var(--yellow) 8%, var(--orange) 53%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .12em;
}

.tagline { margin: 0 0 13px; font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.description { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 440px; }

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 37px;
  margin-top: 29px;
  padding: 13px 18px;
  border: 1px solid #ffb42c66;
  border-radius: 3px;
  background: #ffb42c08;
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, border-color .2s;
}

.play-link span { color: var(--yellow); font-size: 21px; line-height: 1; }
.play-link:hover { border-color: var(--yellow); background: #ffb42c16; }

.play-area { width: 100%; max-width: 480px; justify-self: end; scroll-margin-top: 20px; }

.game-panel {
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid #fff5dc26;
  border-top-color: #ffb42c8c;
  border-radius: 12px;
  background: linear-gradient(145deg, #27221b, #171615 55%);
  box-shadow: 0 22px 70px #0005, 0 0 60px #ff8a1205;
}

.game-header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-header h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.version { color: #b9a58b; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }

.game-window {
  position: relative;
  width: 100%;
  aspect-ratio: 446 / 646;
  overflow: hidden;
  border-radius: 3px;
  background: #191926;
  container-type: inline-size;
}

/* Scale the entire iframe viewport, preserving the game's pointer coordinates. */
iframe {
  display: block;
  width: 446px;
  height: 646px;
  border: 0;
  transform-origin: top left;
  transform: scale(tan(atan2(100cqw, 446px)));
}

.game-footer { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.game-footer p { margin: 0; color: #c1b6a5; font-size: 11px; line-height: 1.5; }
.mini-ball { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #fff, #e9daba); flex-shrink: 0; }

.standalone-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 11px;
  text-decoration-color: #b7aea14d;
  text-underline-offset: 4px;
}

.standalone-link:hover { color: var(--cream); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  border-top: 1px solid #fff5dc14;
  color: #9a9185;
  font-size: 10px;
  letter-spacing: .5px;
}

.footer-signoff { font-size: 10px; font-style: italic; letter-spacing: 1.1px; text-transform: uppercase; }

@media (max-width: 1120px) {
  .page { width: calc(100% - 64px); }
  .hero { grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; }
  .logo { margin-bottom: 25px; }
  .tagline { font-size: 19px; }
  .desktop-break { display: none; }
}

@media (min-width: 861px) and (max-height: 1050px) {
  .masthead { min-height: 64px; }
  .hero {
    grid-template-columns: minmax(0, 1fr) min(480px, calc((100svh - 294px) * .6904 + 34px));
    padding: 20px 0;
  }
  .announcement { padding-bottom: 0; }
  .logo { width: min(100%, 540px); margin: -20px 0 -4px; }
  .eyebrow { margin-bottom: 15px; }
  h1 { margin-bottom: 20px; }
  .play-link { margin-top: 20px; }
  .site-footer { min-height: 50px; }
}

@media (max-width: 860px) {
  .page { width: min(100% - 48px, 640px); }
  .masthead { min-height: 72px; }
  .release-note { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 45px 0 38px; }
  .announcement { padding-bottom: 0; }
  .logo { width: min(100%, 530px); margin: 0 auto 24px; }
  .announcement-copy { padding-left: 0; text-align: center; }
  h1 { font-size: clamp(30px, 5vw, 40px); }
  .tagline { font-size: 21px; }
  .description { max-width: 400px; margin: 0 auto; }
  .play-link { margin-top: 24px; }
  .play-area { justify-self: center; }
}

@media (max-width: 480px) {
  .page { width: calc(100% - 36px); }
  .masthead { min-height: 65px; font-size: 9px; letter-spacing: 1.7px; }
  .hero { gap: 35px; padding-top: 34px; }
  .logo { margin-bottom: 25px; }
  .eyebrow { font-size: 9px; letter-spacing: 2.3px; margin-bottom: 17px; }
  h1 { font-size: clamp(24px, 7vw, 32px); margin-bottom: 22px; }
  .tagline { font-size: 19px; }
  .description { font-size: 13px; line-height: 1.8; max-width: 310px; }
  .game-panel { padding: 0 10px; border-radius: 9px; }
  .game-header { min-height: 51px; }
  .game-header h2 { font-size: 10px; letter-spacing: 1.2px; }
  .version { font-size: 8px; letter-spacing: 1px; }
  .game-footer { min-height: 46px; gap: 7px; }
  .game-footer p { font-size: 9px; }
  .site-footer { min-height: 72px; font-size: 9px; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 20px 0; text-align: center; }
  .footer-signoff { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play-link { transition: none; }
}
