:root {
  --bg: #07060c;
  --bg-2: #110e18;
  --ink: #f4efe4;
  --muted: #b8b0c4;
  --gold: #ffd23a;
  --orange: #ff7a18;
  --cyan: #4ec8ff;
  --red-shadow: #8c1e1e;
  --card: #16121f;
  --line: rgba(255, 255, 255, 0.12);
  --kinetic: #f6f3ee;
  --electric: #ffe34d;
  --tech: #4ec8ff;
  --bio: #5fd36a;
  --armored: #ff8a2a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 122, 24, 0.18), transparent 60%),
    radial-gradient(900px 420px at 0% 10%, rgba(78, 200, 255, 0.12), transparent 55%),
    var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(7, 6, 12, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gold);
}

.brand img {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
}

.brand-name {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 2px 0 var(--red-shadow), -2px 0 var(--red-shadow), 0 2px var(--red-shadow), 0 -2px var(--red-shadow);
}

.brand-name-short { display: none; }

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
  border-color: rgba(255, 210, 58, 0.4);
  background: rgba(255, 210, 58, 0.08);
}

.hero {
  padding: 56px 0 28px;
  text-align: center;
}

.hero-mascot {
  width: min(280px, 70vw);
  margin: 0 auto 18px;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}

.pixel-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(16px, 3vw, 28px);
  color: var(--gold);
  line-height: 1.5;
  text-shadow: 3px 0 var(--red-shadow), -3px 0 var(--red-shadow), 0 3px var(--red-shadow), 0 -3px var(--red-shadow), 3px 3px #000;
}

.lede {
  max-width: 42rem;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Orbitron, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  border: 2px solid transparent;
}

.btn-gold {
  color: #1a1204;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.section { padding: 36px 0 12px; }

.section h2 {
  font-family: Orbitron, sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.kicker {
  font-family: Orbitron, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(160deg, #1c1628, #0d0b12);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.game-card img {
  width: 100%;
  background: #000;
  border-radius: 14px;
}

.game-title-art {
  max-width: min(720px, 100%);
  margin: 0 auto 8px;
  background: #000;
  border-radius: 16px;
}

.muted { color: var(--muted); }

.garage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.car {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 12px 16px;
  text-align: center;
}

.car-art {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 255, 255, 0.08), transparent 70%);
}

.car-art img {
  width: 90%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
}

.car h3 {
  margin: 6px 0 4px;
  font-family: Orbitron, sans-serif;
  font-size: 14px;
}

.tag { font-size: 13px; color: var(--muted); min-height: 2.6em; }

.type {
  display: inline-block;
  font-family: Orbitron, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.type-kinetic { color: var(--kinetic); }
.type-electric { color: var(--electric); }
.type-tech { color: var(--tech); }
.type-bio { color: var(--bio); }
.type-armored { color: var(--armored); }
.type-soon { color: var(--muted); }

.car-soon {
  position: relative;
  overflow: hidden;
  border-style: dashed;
  opacity: 0.92;
}

.soon-art {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(36px, 8vw, 52px);
  color: var(--gold);
  text-shadow: 3px 3px #000;
}

.soon-banner {
  position: absolute;
  top: 22px;
  left: -36px;
  z-index: 1;
  width: 160px;
  padding: 6px 0;
  font-family: Orbitron, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #1a1204;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: rotate(-32deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mode {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 20px 20px 18px;
}

.mode h3 {
  font-family: Orbitron, sans-serif;
  margin: 0 0 8px;
  font-size: 18px;
}

.mode.quick { border-top: 3px solid var(--gold); }
.mode.team { border-top: 3px solid var(--cyan); }
.mode.tag { border-top: 3px solid #ffe27a; }
.mode.tower { border-top: 3px solid var(--orange); }

.how-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}

.panel ol, .panel ul { padding-left: 1.2rem; }
.panel li { margin: 0.45rem 0; }

.type-circle {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 12px auto 4px;
}

.type-circle svg {
  width: 100%;
  height: 100%;
}

.type-arrow-strong {
  fill: none;
  stroke: #ffe34d;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.type-arrow-weak {
  fill: none;
  stroke: #ff8a2a;
  stroke-width: 2;
  stroke-linecap: round;
}

.type-circle-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--card);
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateY(-118px) rotate(calc(var(--i) * -72deg));
}

.type-circle-key {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 4px 0 10px;
  font-family: Orbitron, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.type-key-strong { color: var(--electric); }
.type-key-weak { color: var(--armored); }

.shot {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.shot img { width: 100%; }

.support-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.email {
  font-family: Orbitron, sans-serif;
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--gold);
  word-break: break-word;
}

.legal {
  max-width: 40rem;
  margin: 0 auto 24px;
}

.legal h1 {
  font-family: Orbitron, sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  margin: 0 0 8px;
}

.legal h2 {
  font-family: Orbitron, sans-serif;
  font-size: 18px;
  margin: 28px 0 10px;
}

.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.4rem 0; }

.site-footer {
  margin-top: 48px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 800px) {
  .game-card,
  .modes,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 32px; }
}

/* iPhone portrait (~390px). Landscape is wider, so the full name comes back. */
@media (max-width: 640px) {
  .brand-name-full { display: none; }
  .brand-name-short { display: inline; }
  .brand img { width: 40px; height: 40px; }
  .nav { gap: 10px; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 8px 10px; font-size: 12px; }
}
