:root {
  --ink: #121521;
  --panel: #fff9e9;
  --paper: #f5efe0;
  --cyan: #00d8ff;
  --coral: #ff5068;
  --lime: #b8ff62;
  --yellow: #ffd84d;
  --blue: #4656ff;
  --line: rgba(18, 21, 33, 0.16);
  --glass: rgba(255, 249, 233, 0.72);
  --shadow: 0 28px 80px rgba(18, 21, 33, 0.2);
  --font-display: "Arial Black", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 216, 255, 0.23), transparent 23rem),
    radial-gradient(circle at 88% 16%, rgba(255, 80, 104, 0.2), transparent 25rem),
    radial-gradient(circle at 55% 70%, rgba(184, 255, 98, 0.2), transparent 28rem),
    linear-gradient(135deg, #f7f0dd 0%, #e8f6ef 52%, #f8ece6 100%);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(18, 21, 33, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 33, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 84%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#depth-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--panel);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 4px 4px 0 var(--coral), -4px -4px 0 var(--cyan);
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  background: rgba(255, 249, 233, 0.72);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  min-height: 100vh;
  padding: 116px clamp(20px, 5vw, 72px) 52px;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: #267a66;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.9;
  letter-spacing: 0;
}

.title-stack {
  position: relative;
  display: inline-block;
  color: var(--ink);
  text-shadow: 7px 6px 0 rgba(0, 216, 255, 0.52), -6px -5px 0 rgba(255, 80, 104, 0.46);
}

.title-stack::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(18, 21, 33, 0.28);
  transform: translate3d(15px, 15px, -40px);
  content: attr(data-text);
}

.hero-text {
  max-width: 620px;
  color: rgba(18, 21, 33, 0.75);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions,
.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.game-card a,
.game-card button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(18, 21, 33, 0.16);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.game-card a:hover,
.game-card a:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(18, 21, 33, 0.2);
  outline: none;
}

.button.primary,
.game-card a {
  color: var(--panel);
  background: var(--ink);
}

.button.ghost {
  background: rgba(255, 249, 233, 0.62);
}

.game-card button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.stage-wrap {
  min-height: 620px;
  perspective: 1200px;
  perspective-origin: 50% 42%;
}

.stage {
  position: sticky;
  top: 96px;
  display: grid;
  min-height: 590px;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.orbit {
  position: absolute;
  width: min(74vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(18, 21, 33, 0.2);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit-a {
  transform: rotateX(72deg) rotateZ(-18deg) translateZ(-80px);
  box-shadow: inset 0 0 36px rgba(0, 216, 255, 0.24);
  animation: orbit 16s linear infinite;
}

.orbit-b {
  width: min(68vw, 430px);
  border-color: rgba(255, 80, 104, 0.28);
  transform: rotateX(63deg) rotateY(18deg) translateZ(20px);
  animation: orbit 22s linear reverse infinite;
}

.arcade-cabinet {
  position: relative;
  width: min(82vw, 430px);
  min-height: 550px;
  transform-style: preserve-3d;
}

.cabinet-layer {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(18, 21, 33, 0.3);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.cabinet-layer.back {
  background: rgba(0, 216, 255, 0.22);
  transform: translate3d(34px, 28px, -110px) rotateZ(5deg);
}

.cabinet-layer.middle {
  background: rgba(255, 80, 104, 0.2);
  transform: translate3d(-26px, 22px, -56px) rotateZ(-4deg);
}

.cabinet-layer.front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  overflow: hidden;
  background: rgba(255, 249, 233, 0.86);
  transform: translateZ(72px);
}

.cabinet-layer.front::after {
  position: absolute;
  right: -42px;
  bottom: -62px;
  width: 180px;
  height: 180px;
  background: repeating-linear-gradient(45deg, var(--yellow) 0 12px, var(--ink) 12px 24px);
  content: "";
  opacity: 0.14;
  transform: rotate(12deg);
}

.screen-bezel {
  padding: 18px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.06);
}

.screen {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  overflow: hidden;
  color: var(--lime);
  background:
    radial-gradient(circle at 50% 40%, rgba(184, 255, 98, 0.25), transparent 12rem),
    linear-gradient(145deg, #10131f, #1b2132);
  border: 1px solid rgba(184, 255, 98, 0.38);
}

.screen::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 7px;
  content: "";
  opacity: 0.45;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 18px;
  background: rgba(184, 255, 98, 0.18);
  filter: blur(4px);
  animation: scan 3.2s linear infinite;
}

.screen p,
.screen strong {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
}

.screen p {
  align-self: end;
  color: rgba(255, 249, 233, 0.72);
  font-size: 12px;
}

.screen strong {
  align-self: start;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.95;
  text-align: center;
  text-shadow: 4px 0 0 rgba(0, 216, 255, 0.5), -4px 0 0 rgba(255, 80, 104, 0.5);
}

.pixel-row {
  position: absolute;
  top: 34px;
  left: 32px;
  display: grid;
  grid-template-columns: repeat(4, 18px);
  gap: 8px;
}

.pixel-row span {
  aspect-ratio: 1;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(184, 255, 98, 0.45);
}

.pixel-row span:nth-child(2) {
  background: var(--cyan);
}

.pixel-row span:nth-child(3) {
  background: var(--coral);
}

.pixel-row span:nth-child(4) {
  background: var(--yellow);
}

.controls {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 8px 12px;
}

.joystick {
  position: relative;
  width: 58px;
  height: 58px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.12), 0 14px 0 rgba(18, 21, 33, 0.12);
}

.joystick::before {
  position: absolute;
  left: 22px;
  bottom: 42px;
  width: 14px;
  height: 64px;
  background: var(--ink);
  content: "";
}

.control-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 21, 33, 0.24);
  border-radius: 50%;
  box-shadow: inset 0 -7px 0 rgba(18, 21, 33, 0.18), 0 10px 0 rgba(18, 21, 33, 0.12);
}

.control-button.cyan {
  background: var(--cyan);
}

.control-button.coral {
  background: var(--coral);
}

.control-button.yellow {
  background: var(--yellow);
}

.cabinet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
}

.cabinet-stats span {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: rgba(18, 21, 33, 0.62);
}

.cabinet-stats strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 249, 233, 0.52);
}

.marquee div {
  display: flex;
  width: max-content;
  animation: slide 28s linear infinite;
}

.marquee span {
  padding: 22px 34px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 62px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(18, 21, 33, 0.52);
}

.section {
  padding: 106px clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 38px;
}

.section h2,
.contact h2 {
  max-width: 860px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.98;
}

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

.game-card {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 249, 233, 0.82), rgba(255, 249, 233, 0.5)),
    conic-gradient(from 220deg at 80% 20%, rgba(0, 216, 255, 0.42), transparent, rgba(255, 80, 104, 0.32), transparent);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(18, 21, 33, 0.08);
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.game-card::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(18, 21, 33, 0.12);
  content: "";
  pointer-events: none;
}

.game-card::after {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 74px;
  height: 74px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 17px);
  content: "";
  opacity: 0.08;
}

.game-card:hover {
  box-shadow: 14px 18px 0 rgba(18, 21, 33, 0.15);
  transform: translateY(-6px) rotateX(4deg);
}

.game-card.featured {
  grid-column: span 2;
  color: var(--panel);
  background:
    linear-gradient(135deg, rgba(18, 21, 33, 0.76), rgba(18, 21, 33, 0.55)),
    conic-gradient(from 140deg at 62% 35%, var(--cyan), var(--blue), var(--coral), var(--yellow), var(--cyan));
}

.game-card.hot {
  background:
    linear-gradient(135deg, rgba(255, 249, 233, 0.74), rgba(255, 249, 233, 0.18)),
    conic-gradient(from 80deg at 68% 40%, var(--coral), var(--yellow), var(--cyan), var(--coral));
}

.game-card.cool {
  background:
    linear-gradient(135deg, rgba(255, 249, 233, 0.76), rgba(255, 249, 233, 0.2)),
    conic-gradient(from 160deg at 70% 30%, var(--lime), var(--cyan), #ffffff, var(--lime));
}

.game-type {
  width: max-content;
  padding: 8px 10px;
  background: rgba(18, 21, 33, 0.08);
  border: 1px solid rgba(18, 21, 33, 0.14);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
}

.featured .game-type {
  background: rgba(255, 249, 233, 0.13);
  border-color: rgba(255, 249, 233, 0.24);
}

.game-card h3 {
  max-width: 520px;
  margin: auto 0 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
}

.game-card p {
  max-width: 530px;
  color: rgba(18, 21, 33, 0.68);
  line-height: 1.72;
}

.featured p {
  color: rgba(255, 249, 233, 0.78);
}

.game-card a,
.game-card button {
  width: max-content;
  margin-top: 18px;
}

.challenge {
  padding-top: 72px;
}

.mini-game {
  padding-top: 72px;
}

.mini-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 249, 233, 0.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mini-status {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 900;
}

.mini-status span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  background: var(--panel);
}

.mini-status strong {
  font-size: 24px;
}

.maze-board,
.memory-board {
  display: grid;
  width: min(100%, 520px);
  margin-inline: auto;
  gap: 10px;
  padding: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    #121521;
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px solid rgba(18, 21, 33, 0.28);
}

.maze-board {
  grid-template-columns: repeat(3, 1fr);
  aspect-ratio: 1;
}

.maze-tile,
.memory-card {
  display: grid;
  place-items: center;
  min-width: 0;
  color: var(--ink);
  border: 1px solid rgba(255, 249, 233, 0.18);
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
}

.maze-tile {
  background: var(--panel);
  box-shadow: inset 0 -10px 0 rgba(18, 21, 33, 0.12);
  font-size: clamp(32px, 8vw, 72px);
  transition: transform 140ms ease, background 140ms ease;
}

.maze-tile:hover,
.maze-tile:focus-visible,
.memory-card:hover,
.memory-card:focus-visible {
  outline: 3px solid rgba(0, 216, 255, 0.45);
  outline-offset: 2px;
  transform: translateY(-2px);
}

.maze-tile.empty {
  background: rgba(255, 249, 233, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 249, 233, 0.12);
  cursor: default;
}

.memory-board {
  grid-template-columns: repeat(4, 1fr);
}

.memory-card {
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(255, 249, 233, 0.16), rgba(0, 216, 255, 0.1)),
    var(--ink);
  color: var(--panel);
  font-size: clamp(24px, 6vw, 52px);
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.memory-card.is-open,
.memory-card.is-matched {
  color: var(--ink);
  background: var(--panel);
}

.memory-card.is-matched {
  background: var(--lime);
}

.runner-track {
  position: relative;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  min-height: clamp(260px, 36vw, 420px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #121521;
  background-size: 34px 34px, 34px 34px, auto;
  border: 1px solid rgba(18, 21, 33, 0.28);
}

.runner-track::before {
  position: absolute;
  inset: 33.333% 0 auto;
  height: 1px;
  background: rgba(255, 249, 233, 0.18);
  box-shadow: 0 calc(clamp(260px, 36vw, 420px) / 3) 0 rgba(255, 249, 233, 0.18);
  content: "";
}

.runner-player,
.runner-obstacle {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 249, 233, 0.26);
}

.runner-player {
  left: 8%;
  top: calc(50% - 23px);
  z-index: 2;
  background: var(--cyan);
  box-shadow: 0 0 30px rgba(0, 216, 255, 0.68), inset 0 -8px 0 rgba(18, 21, 33, 0.18);
}

.runner-obstacle {
  right: -60px;
  background: var(--coral);
  box-shadow: 0 0 28px rgba(255, 80, 104, 0.62), inset 0 -8px 0 rgba(18, 21, 33, 0.18);
}

.defense-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    #121521;
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid rgba(18, 21, 33, 0.28);
}

.defense-cell {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: var(--panel);
  background: rgba(255, 249, 233, 0.08);
  border: 1px solid rgba(255, 249, 233, 0.14);
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
}

.defense-cell.has-tower {
  color: var(--ink);
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 216, 255, 0.46);
}

.defense-cell.has-enemy {
  color: var(--panel);
  background: var(--coral);
  box-shadow: 0 0 24px rgba(255, 80, 104, 0.5);
}

.defense-cell.is-core {
  color: var(--ink);
  background: var(--lime);
  cursor: default;
}

.pinball-canvas {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin-inline: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    #121521;
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid rgba(18, 21, 33, 0.28);
}

.zombie-arena {
  position: relative;
  min-height: clamp(300px, 42vw, 470px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 18% 50%, rgba(184, 255, 98, 0.16), transparent 13rem),
    #121521;
  background-size: 28px 28px, 28px 28px, auto, auto;
  border: 1px solid rgba(18, 21, 33, 0.28);
}

.zombie-arena::before {
  position: absolute;
  left: 16%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(184, 255, 98, 0.36);
  box-shadow: 0 0 28px rgba(184, 255, 98, 0.35);
  content: "";
}

.zombie-turret,
.zombie-enemy,
.zombie-bullet {
  position: absolute;
  border: 1px solid rgba(255, 249, 233, 0.24);
}

.zombie-turret {
  left: 8%;
  top: calc(50% - 28px);
  width: 56px;
  height: 56px;
  background: var(--cyan);
  box-shadow: 0 0 32px rgba(0, 216, 255, 0.58), inset 0 -9px 0 rgba(18, 21, 33, 0.18);
}

.zombie-enemy {
  width: 42px;
  height: 42px;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(184, 255, 98, 0.42), inset 0 -8px 0 rgba(18, 21, 33, 0.18);
}

.zombie-enemy.is-strong {
  background: var(--coral);
  box-shadow: 0 0 26px rgba(255, 80, 104, 0.55), inset 0 -8px 0 rgba(18, 21, 33, 0.18);
}

.zombie-bullet {
  width: 18px;
  height: 8px;
  background: var(--yellow);
  box-shadow: 0 0 22px rgba(255, 216, 77, 0.72);
}

.upgrade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  background: rgba(18, 21, 33, 0.08);
  border: 1px solid var(--line);
}

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

.coming-card {
  min-height: 240px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 249, 233, 0.74), rgba(255, 249, 233, 0.42)),
    repeating-linear-gradient(135deg, rgba(18, 21, 33, 0.08) 0 12px, transparent 12px 24px);
  border: 1px dashed rgba(18, 21, 33, 0.28);
}

.coming-card span {
  display: inline-flex;
  margin-bottom: 54px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(184, 255, 98, 0.28);
  border: 1px solid rgba(18, 21, 33, 0.14);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
}

.coming-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.coming-card p {
  margin-bottom: 0;
  color: rgba(18, 21, 33, 0.68);
  line-height: 1.7;
}

.play-panel {
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 249, 233, 0.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player-profile {
  display: grid;
  grid-template-columns: auto minmax(160px, 260px) 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
}

.player-profile label {
  color: rgba(18, 21, 33, 0.72);
}

.player-profile input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(18, 21, 33, 0.12);
  font: inherit;
}

.player-profile input:focus {
  outline: 3px solid rgba(0, 216, 255, 0.36);
  outline-offset: 2px;
}

.player-profile span {
  color: #267a66;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 18px;
  background: var(--line);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 900;
}

.scoreboard span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  background: var(--panel);
}

.scoreboard strong {
  font-size: 28px;
}

.arena {
  position: relative;
  min-height: clamp(330px, 48vw, 520px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(0, 216, 255, 0.22), transparent 18rem),
    #121521;
  background-size: 28px 28px, 28px 28px, auto, auto;
  border: 1px solid rgba(18, 21, 33, 0.26);
  cursor: crosshair;
}

.arena::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 249, 233, 0.14);
  content: "";
  pointer-events: none;
}

.arena-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  color: var(--panel);
  text-align: center;
  pointer-events: none;
}

.arena-message strong {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1;
  text-shadow: 5px 0 0 rgba(0, 216, 255, 0.45), -5px 0 0 rgba(255, 80, 104, 0.45);
}

.arena-message span {
  color: rgba(255, 249, 233, 0.72);
}

.target {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: none;
  width: 62px;
  height: 62px;
  padding: 0;
  background:
    radial-gradient(circle, var(--panel) 0 18%, var(--yellow) 19% 38%, var(--coral) 39% 54%, transparent 55%),
    conic-gradient(from 45deg, transparent 0 12.5%, var(--cyan) 12.5% 25%, transparent 25% 37.5%, var(--lime) 37.5% 50%, transparent 50% 62.5%, var(--coral) 62.5% 75%, transparent 75% 87.5%, var(--yellow) 87.5% 100%);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 216, 77, 0.16), 0 0 46px rgba(255, 216, 77, 0.75);
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: pulse 760ms ease-in-out infinite alternate;
}

.target.is-visible {
  display: block;
}

.play-actions {
  margin-top: 18px;
}

.leaderboard {
  padding-top: 58px;
}

.leaderboard .section-heading {
  grid-template-columns: 0.46fr 1.54fr;
}

.leaderboard h2 {
  max-width: none;
  font-size: clamp(34px, 5.3vw, 68px);
  white-space: nowrap;
}

.leaderboard-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 21, 33, 0.86), rgba(18, 21, 33, 0.72)),
    conic-gradient(from 120deg at 76% 18%, var(--cyan), var(--blue), var(--coral), var(--yellow), var(--cyan));
  border: 1px solid rgba(255, 249, 233, 0.18);
  box-shadow: var(--shadow);
}

.embedded-leaderboard {
  overflow: hidden;
  margin-top: 4px;
  background:
    linear-gradient(135deg, rgba(18, 21, 33, 0.86), rgba(18, 21, 33, 0.72)),
    conic-gradient(from 120deg at 76% 18%, var(--cyan), var(--blue), var(--coral), var(--yellow), var(--cyan));
  border: 1px solid rgba(255, 249, 233, 0.18);
}

.leaderboard-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 3vw, 28px);
  color: var(--panel);
  border-bottom: 1px solid rgba(255, 249, 233, 0.16);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
}

.leaderboard-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: rgba(255, 249, 233, 0.14);
  counter-reset: rank;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(16px, 3vw, 26px);
  color: var(--panel);
  background: rgba(18, 21, 33, 0.78);
  counter-increment: rank;
}

.leaderboard-list li::before {
  content: counter(rank, decimal-leading-zero);
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 900;
}

.leaderboard-list li.is-player {
  background: rgba(255, 216, 77, 0.16);
  box-shadow: inset 5px 0 0 var(--yellow);
}

.rank-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
}

.rank-time {
  color: rgba(255, 249, 233, 0.58);
  font-size: 13px;
}

.leaderboard-note {
  margin: 0;
  padding: 18px clamp(18px, 3vw, 28px);
  color: rgba(255, 249, 233, 0.68);
  line-height: 1.7;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 92px clamp(20px, 5vw, 72px);
  color: var(--panel);
  background: var(--ink);
}

.contact .eyebrow {
  color: var(--cyan);
}

.contact-link {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--panel);
  font-family: var(--font-display);
  font-weight: 900;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: var(--panel);
  color: var(--ink);
  outline: none;
}

@keyframes orbit {
  to {
    rotate: 360deg;
  }
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

@keyframes scan {
  to {
    top: 108%;
  }
}

@keyframes pulse {
  to {
    scale: 1.12;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
  }

  .hero,
  .section-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .leaderboard h2 {
    white-space: normal;
  }

  .stage-wrap {
    min-height: 540px;
  }

  .stage {
    min-height: 510px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 96px;
  }

  h1 {
    font-size: clamp(48px, 17vw, 78px);
  }

  .stage-wrap {
    min-height: 470px;
  }

  .stage {
    min-height: 440px;
  }

  .arcade-cabinet {
    width: min(88vw, 360px);
    min-height: 470px;
  }

  .cabinet-layer.front {
    padding: 20px;
  }

  .screen {
    min-height: 200px;
  }

  .controls {
    gap: 12px;
  }

  .joystick {
    width: 48px;
    height: 48px;
  }

  .joystick::before {
    left: 18px;
    bottom: 36px;
    width: 12px;
    height: 52px;
  }

  .control-button {
    width: 36px;
    height: 36px;
  }

  .cabinet-stats,
  .mini-status,
  .player-profile,
  .scoreboard,
  .game-grid,
  .game-card.featured {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .section {
    padding-block: 76px;
  }

  .scoreboard span {
    min-height: 50px;
  }

  .maze-board,
  .memory-board {
    gap: 8px;
    padding: 10px;
  }

  .memory-board {
    grid-template-columns: repeat(3, 1fr);
  }

  .defense-board {
    grid-template-columns: repeat(3, 1fr);
  }

  .coming-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-topline,
  .leaderboard-list li {
    grid-template-columns: 42px 1fr auto;
  }

  .leaderboard-topline {
    display: grid;
  }

  .rank-time {
    display: none;
  }
}
