@font-face {
  font-family: "Press Start 2P";
  src: url("PressStart2P.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #00010f;
  --bg-2: #0b0730;
  --panel: rgba(20, 16, 64, 0.72);
  --panel-edge: rgba(255, 255, 255, 0.08);
  --text: #ecebf5;
  --muted: #a3a5c2;
  --yellow: #ffd741;
  --cyan: #5be0ff;
  --red: #ff5555;
  --purple: #b36bff;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' shape-rendering='crispEdges'%3E%3Cg fill='%23ffffff'%3E%3Crect x='12' y='30' width='3' height='3' opacity='.5'/%3E%3Crect x='170' y='12' width='3' height='3' opacity='.35'/%3E%3Crect x='96' y='120' width='3' height='3' opacity='.45'/%3E%3Crect x='210' y='160' width='3' height='3' opacity='.3'/%3E%3Crect x='40' y='200' width='3' height='3' opacity='.4'/%3E%3C/g%3E%3Cg fill='%23ffd741'%3E%3Crect x='140' y='80' width='4' height='4' opacity='.55'/%3E%3Crect x='60' y='90' width='3' height='3' opacity='.35'/%3E%3C/g%3E%3Crect x='190' y='220' width='4' height='4' fill='%235be0ff' opacity='.45'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%);
  background-attachment: fixed;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  overflow-x: clip;
}

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Top bar --------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  image-rendering: pixelated;
}

.topbar nav { display: flex; gap: 20px; font-size: 15px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }

/* --- Hero ------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-block: 40px 72px;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--pixel);
  font-weight: normal;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.25;
  color: var(--yellow);
  text-shadow: 5px 5px 0 #000, 0 0 40px rgba(255, 215, 65, 0.25);
}

.hero h1 span { display: block; color: #fff; }

.hero p.lead {
  margin: 0 0 30px;
  max-width: 34ch;
  font-size: 20px;
  color: var(--muted);
}

.hero p.lead strong { color: var(--text); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
}

.pill.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 0 #9d2424;
}

.pill.primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #9d2424; }

.pill.ghost {
  color: var(--text);
  border: 2px solid var(--panel-edge);
  background: rgba(255, 255, 255, 0.03);
}

.hero-art {
  position: relative;
  overflow: clip;
  overflow-clip-margin: 40px;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.rays {
  position: absolute;
  inset: -10% -30%;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(255, 215, 65, 0.14) 0deg 8deg, transparent 8deg 20deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
  mask: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
  animation: spin 60s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Phone frame ----------------------------------------------------- */

.phone {
  position: relative;
  width: 270px;
  aspect-ratio: 1320 / 2868;
  border-radius: 44px;
  padding: 10px;
  background: #0c0c12;
  box-shadow: 0 0 0 2px #3c3e50, 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(91, 224, 255, 0.12);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

.phone::after {  /* Dynamic Island */
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 29%;
  height: 3.2%;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
}

.hero .phone { width: min(300px, 74vw); transform: rotate(-3deg); }

/* --- Planks divider -------------------------------------------------- */

.planks {
  height: 14px;
  margin: 0 auto;
  max-width: 1080px;
  background:
    linear-gradient(90deg, transparent 0 4%, #e9e9f0 4% 30%, transparent 30% 34%,
      #e9e9f0 34% 62%, transparent 62% 66%, #e9e9f0 66% 96%, transparent 96%);
  opacity: 0.12;
}

/* --- Sections -------------------------------------------------------- */

section.block { padding: 72px 0; }

h2 {
  margin: 0 0 12px;
  font-family: var(--pixel);
  font-weight: normal;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.5;
  color: var(--yellow);
  text-shadow: 3px 3px 0 #000;
}

.kicker { margin: 0 0 36px; color: var(--muted); max-width: 60ch; }

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

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  backdrop-filter: blur(6px);
}

.card h3 {
  margin: 16px 0 8px;
  font-family: var(--pixel);
  font-weight: normal;
  font-size: 13px;
  line-height: 1.6;
}

.card p { margin: 0; color: var(--muted); }

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

.tap-icon {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  grid-template-rows: repeat(3, 16px);
  gap: 2px;
  width: 52px;
  height: 52px;
}

.tap-icon i { background: rgba(255, 255, 255, 0.08); }
.tap-icon i.on { background: var(--cyan); }

/* --- Gallery --------------------------------------------------------- */

.gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 26px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: #3c3e50 transparent;
}

.gallery figure {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}

.gallery .phone { width: 230px; }

.gallery figcaption {
  margin-top: 18px;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Fighters -------------------------------------------------------- */

.roster {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.fighter {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 8px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
}

.fighter img {
  height: 88px;
  width: auto;
  image-rendering: pixelated;
  transition: transform 0.15s steps(2);
}

.fighter:hover img { transform: translateY(-6px); }

.fighter span { font-family: var(--pixel); font-size: 9px; color: var(--muted); }

/* --- Support and about ---------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

details {
  border-top: 1px solid var(--panel-edge);
  padding: 14px 0;
}

details:first-of-type { border-top: 0; }

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::before { content: "▸ "; color: var(--yellow); }
details[open] summary::before { content: "▾ "; }
details p { margin: 8px 0 0; color: var(--muted); }

.about {
  display: flex;
  gap: 22px;
  align-items: center;
}

.about img { width: 72px; height: 72px; border-radius: 16px; flex: none; }

.credit {
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.8;
  color: var(--yellow);
}

/* --- Footer ---------------------------------------------------------- */

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--panel-edge);
  color: var(--muted);
  font-size: 14px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer .credit { font-size: 9px; }

/* --- Document pages (privacy) --------------------------------------- */

.doc { max-width: 760px; padding-block: 40px 72px; }
.doc h1 {
  margin: 0 0 8px;
  font-family: var(--pixel);
  font-weight: normal;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.4;
  color: var(--yellow);
  text-shadow: 4px 4px 0 #000;
}
.doc .updated { margin: 0 0 30px; color: var(--muted); }
.doc .card { margin-bottom: 16px; }
.doc .card h2 { font-size: 13px; margin-bottom: 6px; }
.doc .card p { color: var(--text); opacity: 0.88; }
.tldr { border-color: rgba(255, 215, 65, 0.35); background: rgba(255, 215, 65, 0.07); }

/* --- Responsive ------------------------------------------------------ */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-block-start: 16px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { min-height: 0; padding: 20px 0; }
  .steps, .split { grid-template-columns: 1fr; }
  .roster { grid-template-columns: repeat(3, 1fr); }
  .topbar nav { gap: 14px; font-size: 14px; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  .about { flex-direction: column; align-items: flex-start; }
}

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