:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --blue: #0071e3;
  --blue-dark: #005bbf;
  --green: #30d158;
  --pink: #ff375f;
  --yellow: #ffcc00;
  --purple: #bf5af2;
  --ink: #0b1020;
  --shadow: 0 28px 70px rgba(29, 29, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 245, 247, 0) 420px),
    var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.28);
  outline-offset: 3px;
}

.site-header,
.hero,
.signal-strip,
.games,
.arcade,
.notes,
.updates,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-actions,
.hero-actions,
.site-footer,
.card-foot,
.game-tabs,
.panel-actions {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue);
  box-shadow: 0 10px 30px rgba(29, 29, 31, 0.08);
}

.nav-actions {
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-actions a:not(.button),
.site-footer a,
.form-note a {
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.nav-actions a:not(.button):hover,
.site-footer a:hover,
.form-note a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 760;
  line-height: 1;
  padding: 0 20px;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.24);
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 0.92rem;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.button-secondary:hover {
  border-color: #b8b8c0;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(29, 29, 31, 0.08);
}

.hero {
  display: grid;
  min-height: calc(100vh - 80px);
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  align-items: center;
  gap: 54px;
  padding: 42px 0 76px;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 5.8rem;
  letter-spacing: 0;
  line-height: 0.94;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.45rem;
  font-weight: 520;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.hero-device {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(210, 210, 215, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.device-topbar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 16px;
}

.device-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c7c7cc;
}

.device-topbar span:nth-child(2) {
  background: var(--yellow);
}

.device-topbar span:nth-child(3) {
  background: var(--green);
}

.device-screen {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(29, 29, 31, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 29, 31, 0.045) 1px, transparent 1px),
    #fbfbfd;
  background-size: 24px 24px;
}

.pixel-sky span,
.pixel-runner {
  position: absolute;
  display: block;
}

.pixel-sky span {
  height: 12px;
  border-radius: 2px;
}

.pixel-sky span:nth-child(1) {
  top: 76px;
  left: 60px;
  width: 80px;
  background: rgba(0, 113, 227, 0.16);
}

.pixel-sky span:nth-child(2) {
  top: 126px;
  right: 70px;
  width: 112px;
  background: rgba(48, 209, 88, 0.18);
}

.pixel-sky span:nth-child(3) {
  bottom: 96px;
  left: 96px;
  width: 146px;
  background: rgba(255, 55, 95, 0.18);
}

.pixel-sky span:nth-child(4) {
  bottom: 158px;
  right: 118px;
  width: 54px;
  background: rgba(255, 204, 0, 0.28);
}

.screen-copy {
  position: relative;
  z-index: 1;
  max-width: 320px;
  padding: 58px 34px;
}

.screen-copy p,
.screen-copy span {
  color: var(--muted);
  font-weight: 700;
}

.screen-copy p {
  margin-bottom: 12px;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.screen-copy h2 {
  margin-bottom: 10px;
  font-size: 3.25rem;
  line-height: 0.98;
}

.pixel-runner {
  right: 72px;
  bottom: 76px;
  width: 92px;
  height: 92px;
  background:
    linear-gradient(var(--blue), var(--blue)) 18px 0 / 56px 56px,
    linear-gradient(var(--text), var(--text)) 30px 18px / 10px 10px,
    linear-gradient(var(--text), var(--text)) 54px 18px / 10px 10px,
    linear-gradient(var(--green), var(--green)) 0 58px / 34px 16px,
    linear-gradient(var(--pink), var(--pink)) 58px 58px / 34px 16px,
    linear-gradient(var(--text), var(--text)) 16px 78px / 24px 12px,
    linear-gradient(var(--text), var(--text)) 52px 78px / 24px 12px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  animation: bob 1800ms ease-in-out infinite;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 0 78px;
}

.signal-strip article,
.game-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.signal-strip article {
  min-height: 128px;
  padding: 24px;
}

.signal-strip span {
  display: block;
  margin-bottom: 8px;
  font-size: 2.2rem;
  font-weight: 820;
  line-height: 1;
}

.signal-strip p,
.game-card p,
.notes li,
.updates-copy p:not(.eyebrow),
.form-note {
  color: var(--muted);
}

.signal-strip p,
.game-card p,
.site-footer p,
.form-note {
  margin-bottom: 0;
}

.games,
.arcade,
.notes,
.updates {
  border-top: 1px solid var(--line-soft);
  padding: 78px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2,
.arcade-heading h2,
.notes h2,
.updates h2 {
  margin-bottom: 0;
  font-size: 3.25rem;
  line-height: 1;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  display: grid;
  min-height: 430px;
  align-content: space-between;
  gap: 22px;
  padding: 18px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.game-card:hover,
.game-card.is-selected {
  border-color: rgba(0, 113, 227, 0.42);
  box-shadow: 0 18px 42px rgba(29, 29, 31, 0.08);
  transform: translateY(-2px);
}

.game-thumb {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(29, 29, 31, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 29, 31, 0.05) 1px, transparent 1px),
    #fbfbfd;
  background-size: 18px 18px;
}

.game-thumb span {
  position: absolute;
  display: block;
  border-radius: 2px;
}

.snake-thumb span:nth-child(1) {
  top: 58px;
  left: 42px;
  width: 104px;
  height: 20px;
  background: var(--green);
}

.snake-thumb span:nth-child(2) {
  top: 78px;
  left: 126px;
  width: 20px;
  height: 58px;
  background: var(--green);
}

.snake-thumb span:nth-child(3) {
  right: 52px;
  bottom: 42px;
  width: 20px;
  height: 20px;
  background: var(--pink);
}

.brick-thumb span {
  width: 78px;
  height: 20px;
}

.brick-thumb span:nth-child(1) {
  top: 44px;
  left: 34px;
  background: var(--blue);
}

.brick-thumb span:nth-child(2) {
  top: 74px;
  left: 124px;
  background: var(--yellow);
}

.brick-thumb span:nth-child(3) {
  top: 104px;
  left: 72px;
  background: var(--pink);
}

.brick-thumb span:nth-child(4) {
  right: 40px;
  bottom: 36px;
  width: 110px;
  height: 12px;
  background: var(--text);
}

.dash-thumb span:nth-child(1) {
  left: 40px;
  bottom: 42px;
  width: 34px;
  height: 46px;
  background: var(--blue);
}

.dash-thumb span:nth-child(2) {
  right: 90px;
  bottom: 42px;
  width: 28px;
  height: 50px;
  background: var(--pink);
}

.dash-thumb span:nth-child(3) {
  left: 0;
  right: 0;
  bottom: 28px;
  height: 8px;
  background: var(--text);
}

.tag {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.game-card h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
  line-height: 1.08;
}

.card-foot {
  justify-content: space-between;
  gap: 12px;
}

.card-foot span {
  color: var(--muted);
  font-weight: 700;
}

.card-foot strong {
  color: var(--text);
}

.arcade-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.game-tabs {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tab-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 760;
  padding: 0 14px;
}

.tab-button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.arcade-console {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
  gap: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  padding: 18px;
}

.game-stage {
  min-width: 0;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.game-hud div {
  min-height: 64px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.game-hud span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

.game-hud strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
  line-height: 1;
}

#game-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 12 / 7;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
  image-rendering: pixelated;
  touch-action: none;
}

.game-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  border-left: 1px solid var(--line-soft);
  padding-left: 18px;
}

.game-panel h3 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1;
}

.game-panel p:not(.tag) {
  margin-bottom: 0;
  color: var(--muted);
}

.panel-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.touch-pad {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  grid-template-rows: repeat(3, 48px);
  gap: 8px;
  width: max-content;
}

.touch-pad button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 820;
}

.touch-pad button:active {
  border-color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
}

.touch-pad button[data-control="up"] {
  grid-column: 2;
}

.touch-pad button[data-control="left"] {
  grid-column: 1;
  grid-row: 2;
}

.touch-pad button[data-control="action"] {
  grid-column: 2;
  grid-row: 2;
  background: var(--ink);
  color: #ffffff;
}

.touch-pad button[data-control="right"] {
  grid-column: 3;
  grid-row: 2;
}

.touch-pad button[data-control="down"] {
  grid-column: 2;
  grid-row: 3;
}

.notes {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 38px;
  align-items: start;
}

.notes ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes li {
  position: relative;
  padding-left: 28px;
}

.notes li::before {
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--green);
  content: "";
}

.updates {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1.18fr);
  gap: 30px;
  align-items: start;
}

.updates h2 {
  margin-bottom: 14px;
  font-size: 4rem;
  line-height: 0.98;
}

.updates-copy p:not(.eyebrow) {
  max-width: 470px;
  font-size: 1.06rem;
}

.updates-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(29, 29, 31, 0.08);
  padding: 26px;
}

.updates-form label {
  display: grid;
  gap: 8px;
  color: #343437;
  font-size: 0.94rem;
  font-weight: 740;
}

.updates-form input,
.updates-form select,
.updates-form textarea {
  width: 100%;
  border: 1px solid #b9b9c1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 500;
}

.updates-form input,
.updates-form select {
  min-height: 46px;
  padding: 0 12px;
}

.updates-form textarea {
  min-height: 116px;
  resize: vertical;
  padding: 12px;
}

.updates-form input::placeholder,
.updates-form textarea::placeholder {
  color: #8a8a91;
}

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-note {
  font-size: 0.94rem;
}

.form-note a {
  color: var(--blue);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line-soft);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
}

.thank-you {
  min-height: calc(100vh - 178px);
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  text-align: center;
}

.thank-you .hero-actions {
  justify-content: center;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .signal-strip,
  .games,
  .arcade,
  .notes,
  .updates,
  .site-footer {
    width: min(100% - 32px, 760px);
  }

  .site-header {
    align-items: flex-start;
  }

  .nav-actions {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
  }

  h1 {
    font-size: 4.35rem;
  }

  .hero-lede {
    font-size: 1.24rem;
  }

  .section-heading h2,
  .arcade-heading h2,
  .notes h2 {
    font-size: 2.6rem;
  }

  .updates h2 {
    font-size: 3rem;
  }

  .signal-strip,
  .game-grid,
  .arcade-console,
  .notes,
  .updates {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 0;
  }

  .arcade-heading {
    align-items: start;
    flex-direction: column;
  }

  .game-tabs {
    justify-content: flex-start;
  }

  .game-panel {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 18px;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .signal-strip,
  .games,
  .arcade,
  .notes,
  .updates,
  .site-footer {
    width: min(100% - 28px, 560px);
  }

  .site-header {
    gap: 14px;
    padding-top: 16px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .nav-actions a:not(.button) {
    display: none;
  }

  .button {
    width: 100%;
  }

  .button-small {
    width: auto;
  }

  .hero-actions,
  .panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-device {
    margin-inline: -2px;
  }

  .device-screen {
    min-height: 340px;
  }

  .screen-copy {
    padding: 42px 22px;
  }

  .screen-copy h2 {
    font-size: 2.5rem;
  }

  .pixel-runner {
    right: 38px;
    bottom: 54px;
  }

  .section-heading h2,
  .arcade-heading h2,
  .notes h2 {
    font-size: 2.1rem;
  }

  .updates h2 {
    font-size: 2.25rem;
  }

  .games,
  .arcade,
  .notes,
  .updates {
    padding: 56px 0;
  }

  .signal-strip {
    padding-bottom: 56px;
  }

  .signal-strip article,
  .game-card,
  .arcade-console,
  .updates-form {
    padding: 16px;
  }

  .game-thumb {
    min-height: 150px;
  }

  .game-hud {
    grid-template-columns: 1fr;
  }

  .game-hud div {
    min-height: 56px;
  }

  #game-canvas {
    aspect-ratio: 10 / 8;
  }

  .touch-pad {
    grid-template-columns: repeat(3, minmax(48px, 1fr));
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
