/*
Theme Name: HitStop
Theme URI: https://hitstop.example/
Author: HitStop Games
Author URI: https://hitstop.example/
Description: Marketing theme for HitStop — a pixel-arcade timing game. Neon purple aesthetic with a playable in-hero demo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hitstop
Tags: one-column, custom-menu, custom-logo, full-width-template, theme-options, sticky-post
*/

:root {
  --bg-purple-top: #2a1454;
  --bg-purple-mid: #1d0e3d;
  --bg-purple-bottom: #0e0625;

  --neon-cyan: #4ed8ff;
  --neon-yellow: #ffd83a;
  --neon-red: #ff3b5c;
  --neon-green: #2ed573;
  --neon-magenta: #ff5fa2;

  --ink: #0b0716;
  --ink-2: #14102a;
  --ink-3: #1c1736;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f3ff;
  --text-dim: #b3acd1;
  --text-faint: #7d779a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }
img { max-width: 100%; display: block; }

a { color: inherit; }

.pixel { font-family: 'Press Start 2P', monospace; letter-spacing: 0.02em; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #3a1a6e 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-purple-top) 0%, var(--bg-purple-mid) 55%, var(--bg-purple-bottom) 100%);
  overflow: hidden;
  isolation: isolate;
}

.starfield { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.6;
}
.star.cyan { background: #6fe2ff; box-shadow: 0 0 6px #6fe2ff; }
.star.magenta { background: #ff7fc1; box-shadow: 0 0 6px #ff7fc1; }
.star.twinkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.95; }
}

/* Top nav */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6cf09a, #16a34a 70%, #064d24 100%);
  border: 3px solid #c8c8d2;
  box-shadow: 0 4px 14px rgba(46, 213, 115, 0.45), inset 0 -4px 6px rgba(0,0,0,0.3);
  position: relative;
}
.nav-logo::after {
  content: "";
  position: absolute;
  top: 4px; left: 8px;
  width: 8px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  filter: blur(1px);
}
.nav-brand-name {
  font-family: 'Press Start 2P', monospace;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(255,255,255,0.25);
}

/* Alternating HIT / STOP arcade-dome logo (port of HitStopLogo.tsx) */
.hitstop-logo {
  position: relative;
  display: inline-block;
  width: 101px;
  height: 101px;
  flex-shrink: 0;
}
.hitstop-logo-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.hitstop-logo.show-stop .hitstop-logo-face--stop { opacity: 1; }
.hitstop-logo.show-hit  .hitstop-logo-face--hit  { opacity: 1; }
.hitstop-logo .hitstop-dome {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hitstop-logo-label {
  position: relative;
  z-index: 1;
  font-family: 'Press Start 2P', monospace;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}

.hitstop-logo--sm { width: 52px; height: 52px; }
.hitstop-logo--sm .hitstop-logo-label { font-size: 8px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 36px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-link, .nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.18s;
}
.nav-link:hover, .nav-links a:hover { color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }
.nav-cta {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--neon-yellow) !important;
  border: 2px solid var(--neon-yellow);
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 12px rgba(255, 216, 58, 0.08);
  transition: box-shadow 0.18s, transform 0.18s;
}
.nav-cta:hover {
  box-shadow: 0 0 18px rgba(255, 216, 58, 0.45), inset 0 0 12px rgba(255, 216, 58, 0.15);
  transform: translateY(-1px);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 11;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only menu items (Contact + Legal dropdown) live inside the regular
   primary menu list but are hidden on desktop. */
.nav-link-mobile { display: none; }

@media (max-width: 820px) {
  .nav { padding: 16px 20px; flex-wrap: wrap; }
  .hitstop-logo { width: 88px; height: 88px; }
  .hitstop-logo .hitstop-logo-label { font-size: 13px; }
  .nav-toggle { display: flex; }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    background: rgba(20, 16, 42, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    margin-top: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links .nav-link {
    display: block;
    padding: 12px 14px;
    font-size: 12px;
    border-radius: 8px;
  }
  .nav-links .nav-link:hover { background: rgba(255,255,255,0.04); }
  .nav-links .nav-cta {
    display: block;
    text-align: center;
    margin-top: 8px;
  }
  /* Push the GET IT CTA to the bottom of the mobile menu so it sits below
     the regular links and the mobile-only Contact + Legal items. */
  .nav-cta-item { order: 99; }

  /* Mobile-only items inside the same .nav-links panel. */
  .nav-link-mobile { display: block; }
  .nav-legal-group { width: 100%; }
  .nav-legal-group > summary {
    list-style: none;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    padding: 12px 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.18s, background 0.18s;
  }
  .nav-legal-group > summary::-webkit-details-marker { display: none; }
  .nav-legal-group > summary::after {
    content: "+";
    font-family: 'Press Start 2P', monospace;
    color: var(--neon-cyan);
    font-size: 14px;
  }
  .nav-legal-group[open] > summary::after { content: "−"; }
  .nav-legal-group > summary:hover { color: var(--neon-cyan); background: rgba(255,255,255,0.04); }
  .nav-legal-list { list-style: none; padding: 4px 0 4px 14px; margin: 0; display: flex; flex-direction: column; gap: 2px; }
  .nav-legal-list a {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.06em;
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    transition: color 0.18s, background 0.18s;
  }
  .nav-legal-list a:hover { color: var(--neon-cyan); background: rgba(255,255,255,0.04); }

  /* Slim down the phone on mobile — full-width 420px is too dominant */
  .phone { max-width: 320px; padding: 12px; border-radius: 34px; }
  .phone::before { width: 86px; height: 20px; top: 22px; }
  .phone-screen { padding: 44px 14px 18px; min-height: auto; border-radius: 24px; }
  .arcade-btn { width: 160px; height: 160px; margin: 18px auto; }
  .arcade-btn-label { font-size: 22px; }
  .timer-frame { width: 240px; height: 76px; margin-top: 4px; }
  .timer-display { font-size: 42px; }
  .coin-counter { top: 8px; right: 14px; font-size: 11px; padding: 6px 9px; }
  .target { padding: 9px 10px; font-size: 11px; }
  .target-delta { font-size: 10px; }
  .scanlines { border-radius: 24px; }
}

/* Hero layout */
.hero-grid {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 24px 24px 60px; }
}

.hero-copy h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.1;
  margin: 8px 0 24px;
  color: #fff;
  text-shadow: 0 0 24px rgba(78, 216, 255, 0.35), 0 0 2px rgba(255,255,255,0.6);
  word-spacing: -0.25em;
}
.hero-copy h1 .accent-y { color: var(--neon-yellow); text-shadow: 0 0 18px rgba(255, 216, 58, 0.5); }
.hero-copy h1 .accent-c { color: var(--neon-cyan); text-shadow: 0 0 18px rgba(78, 216, 255, 0.5); }
.hero-copy h1 .accent-r { color: var(--neon-red); text-shadow: 0 0 18px rgba(255, 59, 92, 0.5); }

.hero-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 0.18em;
  text-shadow: 0 0 10px rgba(78, 216, 255, 0.5);
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: #fff;
  transition: border-color 0.18s, transform 0.18s;
}
.store-btn:hover { border-color: var(--neon-cyan); transform: translateY(-2px); }
.store-btn .store-sub { font-size: 10px; letter-spacing: 0.08em; opacity: 0.7; text-transform: uppercase; }
.store-btn .store-name { font-size: 17px; font-weight: 600; line-height: 1.1; margin-top: 2px; }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn--soon { position: relative; padding-right: 28px; }
.store-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--neon-yellow);
  padding: 4px 6px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 216, 58, 0.45);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  color: var(--neon-yellow);
  text-shadow: 0 0 12px rgba(255,216,58,0.4);
}
.hero-stat-lbl {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* Game phone */
.phone {
  width: 420px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 44px;
  background: linear-gradient(180deg, #1c0d3d 0%, #0e0625 100%);
  padding: 18px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(78, 216, 255, 0.15),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  border-radius: 30px;
  background:
    radial-gradient(ellipse 90% 50% at 50% 100%, #4f1d8e 0%, transparent 60%),
    linear-gradient(180deg, #2a1454 0%, #1a0a3d 100%);
  padding: 60px 24px 28px;
  min-height: 720px;
  position: relative;
  overflow: hidden;
}
.phone-screen .starfield-mini { position: absolute; inset: 0; pointer-events: none; }

.coin-counter {
  position: absolute;
  top: 10px; right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--neon-yellow);
  border: 2px solid var(--neon-yellow);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.25);
  z-index: 2;
}
.coin {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe580, #d4a017 80%);
  box-shadow: 0 0 8px rgba(255, 216, 58, 0.5);
}

.arcade-btn {
  width: 220px;
  height: 220px;
  margin: 24px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #d8d8e0 0%, #888894 65%, #4a4a55 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 12px 30px rgba(0,0,0,0.5),
    inset 0 -8px 12px rgba(0,0,0,0.4),
    inset 0 6px 8px rgba(255,255,255,0.18);
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s;
  border: none;
}
.arcade-btn:active { transform: scale(0.97); }
.arcade-btn-inner {
  width: 78%;
  height: 78%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s, box-shadow 0.15s;
}
.arcade-btn-inner.green {
  background: radial-gradient(circle at 35% 30%, #6cf09a 0%, #2ed573 55%, #0f7a3d 100%);
  box-shadow:
    inset 0 -10px 14px rgba(0,0,0,0.35),
    inset 0 8px 10px rgba(255,255,255,0.25),
    0 0 30px rgba(46, 213, 115, 0.4);
}
.arcade-btn-inner.red {
  background: radial-gradient(circle at 35% 30%, #ff7a93 0%, #ff3b5c 55%, #8a142a 100%);
  box-shadow:
    inset 0 -10px 14px rgba(0,0,0,0.35),
    inset 0 8px 10px rgba(255,255,255,0.25),
    0 0 30px rgba(255, 59, 92, 0.45);
}
.arcade-btn-inner::before {
  content: "";
  position: absolute;
  top: 14%; left: 28%;
  width: 26%; height: 18%;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  filter: blur(4px);
}
.arcade-btn-label {
  font-family: 'Press Start 2P', monospace;
  color: #fff;
  font-size: 29px;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
}

.timer-frame {
  position: relative;
  width: 320px;
  margin: 8px auto 0;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timer-corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--neon-red);
  border-style: solid;
}
.timer-corner.tl { top: 0; left: 0; border-width: 3px 0 0 3px; }
.timer-corner.tr { top: 0; right: 0; border-width: 3px 3px 0 0; }
.timer-corner.bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.timer-corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; }
.timer-display {
  font-family: 'Press Start 2P', monospace;
  font-size: 56px;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(255,255,255,0.45), 0 0 28px rgba(78, 216, 255, 0.35);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.timer-display .dim { position: absolute; left: 0; opacity: 0.18; }
.timer-display .live { position: relative; }

.targets { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.target {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #fff;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid rgba(255,255,255,0.12);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.target.pending { color: var(--text-dim); background: rgba(255,255,255,0.04); }
.target.active {
  border-color: var(--neon-yellow);
  background: rgba(255, 216, 58, 0.18);
  color: var(--neon-yellow);
  box-shadow: 0 0 18px rgba(255, 216, 58, 0.25);
}
.target.hit,
.target.tier-green  { background: rgba(46, 213, 115, 0.78);  border-color: rgba(46, 213, 115, 1);  color: #fff; }
.target.tier-yellow { background: rgba(255, 216, 58, 0.78);  border-color: rgba(255, 216, 58, 1);  color: #1a1230; }
.target.tier-orange { background: rgba(255, 149, 0, 0.82);   border-color: rgba(255, 149, 0, 1);   color: #fff; }
.target.miss,
.target.tier-red    { background: rgba(255, 59, 92, 0.78);   border-color: rgba(255, 59, 92, 1);   color: #fff; }
.target-time { letter-spacing: 0.03em; }
.target-actual { text-align: center; opacity: 0.95; }
.target-delta { text-align: right; font-size: 12px; }

.score-banner {
  margin-top: 18px;
  border-radius: 14px;
  border: 2px solid var(--neon-cyan);
  background: rgba(78, 216, 255, 0.08);
  padding: 16px;
  text-align: center;
}
.score-banner-lbl { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--neon-cyan); letter-spacing: 0.14em; }
.score-banner-num { font-family: 'Press Start 2P', monospace; font-size: 32px; color: var(--neon-yellow); margin: 8px 0 4px; text-shadow: 0 0 14px rgba(255, 216, 58, 0.5); }
.score-banner-sub { font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--text-dim); letter-spacing: 0.12em; }
.score-banner-btn {
  margin-top: 12px;
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #fff;
  background: var(--neon-red);
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  cursor: pointer;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 0 #8a142a, 0 8px 18px rgba(255,59,92,0.4);
  transition: transform 0.08s, box-shadow 0.08s;
}
.score-banner-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #8a142a, 0 4px 10px rgba(255,59,92,0.4); }

.paywall-banner { border-color: var(--neon-yellow); background: rgba(255, 216, 58, 0.10); }
.paywall-banner .score-banner-lbl { color: var(--neon-yellow); }
.arcade-btn[disabled], .arcade-btn[disabled]:active { cursor: not-allowed; opacity: 0.55; transform: none; }

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
  opacity: 0.55;
  border-radius: 30px;
  z-index: 4;
}

/* Sections */
section.block { position: relative; padding: 120px 40px; max-width: 1280px; margin: 0 auto; }
section.block.dark { background: var(--ink); }
section.block.darker { background: var(--ink-2); }

.block-eyebrow { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--neon-cyan); letter-spacing: 0.18em; margin-bottom: 14px; }
.block-title { font-family: 'Press Start 2P', monospace; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin: 0 0 16px; color: #fff; }
.block-sub { font-size: 18px; color: var(--text-dim); max-width: 640px; line-height: 1.5; margin: 0; }
.block-head { margin-bottom: 64px; max-width: 720px; }
.block-head.center { margin: 0 auto 64px; text-align: center; }
.block-head.center .block-sub { margin: 0 auto; }

.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .howto-grid { grid-template-columns: 1fr; } }

.howto-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 32px; position: relative; overflow: hidden; }
.howto-num { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--neon-yellow); letter-spacing: 0.18em; margin-bottom: 22px; }
.howto-illustration {
  height: 140px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(78,216,255,0.08), transparent 70%),
    var(--ink-3);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 12px;
}
.howto-illustration .target { font-size: 10px; padding: 8px 12px; width: 100%; max-width: 220px; }
.howto-illustration .target .target-delta { font-size: 9px; }
.howto-illustration.column { flex-direction: column; gap: 8px; }
.howto-start-pill {
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6cf09a, #2ed573 60%, #0f7a3d);
  border: 3px solid #c8c8d2;
  box-shadow: 0 0 30px rgba(46,213,115,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Press Start 2P', monospace; font-size: 11px;
}
.howto-score-num { font-family: 'Press Start 2P', monospace; font-size: 36px; color: var(--neon-yellow); text-shadow: 0 0 14px rgba(255,216,58,0.5); }
.howto-title { font-family: 'Press Start 2P', monospace; font-size: 16px; margin: 0 0 12px; color: #fff; }
.howto-text { color: var(--text-dim); font-size: 15px; line-height: 1.55; margin: 0; }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .features-grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature.tall { grid-row: span 2; }
.feature-tag { display: inline-flex; align-items: center; gap: 8px; font-family: 'Press Start 2P', monospace; font-size: 9px; letter-spacing: 0.16em; color: var(--neon-cyan); }
.feature-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.feature h3 { font-family: 'Press Start 2P', monospace; font-size: 20px; line-height: 1.3; margin: 0; color: #fff; }
.feature p { color: var(--text-dim); font-size: 15px; line-height: 1.55; margin: 0; }

.feature-blind .feature-tag { color: var(--neon-magenta); }
.feature-blind .feature-tag .dot { background: var(--neon-magenta); box-shadow: 0 0 8px var(--neon-magenta); }
.feature-leader .feature-tag { color: var(--neon-yellow); }
.feature-leader .feature-tag .dot { background: var(--neon-yellow); box-shadow: 0 0 8px var(--neon-yellow); }
.feature-mp .feature-tag { color: var(--neon-green); }
.feature-mp .feature-tag .dot { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
.feature-mp-home .feature-tag { color: var(--neon-cyan); }
.feature-mp-home .feature-tag .dot { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }

/* Mini "live tournaments" card mirroring the in-app tournament list. */
.tour-card {
  margin-top: auto;
  padding: 18px 20px;
  border: 1.5px solid var(--neon-cyan);
  border-radius: 14px;
  background: rgba(78, 216, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Press Start 2P', monospace;
}
.tour-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tour-name { font-size: 14px; color: #fff; letter-spacing: 0.04em; }
.tour-pill {
  font-size: 9px;
  color: var(--neon-cyan);
  letter-spacing: 0.14em;
  border: 1.5px solid var(--neon-cyan);
  border-radius: 6px;
  padding: 4px 8px;
}
.tour-countdown { font-size: 11px; color: var(--neon-cyan); letter-spacing: 0.08em; }
.tour-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tour-stats > div { display: flex; flex-direction: column; gap: 6px; }
.tour-lbl { font-size: 8px; color: var(--text-faint); letter-spacing: 0.14em; }
.tour-val { font-size: 11px; color: #fff; letter-spacing: 0.04em; }

/* Mini "party mode" lobby preview mirroring the in-app setup screen. */
.party-card {
  margin-top: auto;
  padding: 18px 20px;
  border: 1.5px solid var(--neon-cyan);
  border-radius: 14px;
  background: rgba(78, 216, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.party-roster { display: flex; flex-direction: column; gap: 8px; }
.party-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Press Start 2P', monospace;
}
.party-num {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--neon-cyan);
  border: 1.5px solid rgba(78, 216, 255, 0.4);
  border-radius: 6px;
}
.party-name {
  flex: 1;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--neon-cyan);
  border-radius: 8px;
  padding: 8px 12px;
}
.party-name--placeholder {
  color: var(--neon-cyan);
  border-style: dashed;
  text-align: center;
}
.party-chances { display: flex; flex-direction: column; gap: 8px; }
.party-chances-lbl { font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--neon-magenta); letter-spacing: 0.16em; }
.party-chances-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.party-chance {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}
.party-chance.is-active {
  color: var(--neon-yellow);
  border-color: var(--neon-yellow);
  box-shadow: 0 0 12px rgba(255, 216, 58, 0.25);
}

.mini-leaderboard { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.mini-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 216, 58, 0.4);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  background: rgba(255,255,255,0.02);
}
.mini-row .rank { color: var(--neon-yellow); border: 1.5px solid var(--neon-yellow); border-radius: 6px; padding: 4px 6px; font-size: 9px; text-align: center; }
.mini-row .name { color: var(--text); letter-spacing: 0.06em; }
.mini-row .score { color: var(--neon-yellow); font-variant-numeric: tabular-nums; }
.mini-row.you { border-color: var(--neon-cyan); background: rgba(78,216,255,0.05); }
.mini-row.you .rank { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.mini-row.you .name { color: var(--neon-cyan); }
.mini-row.you .score { color: var(--neon-cyan); }

.blind-clock { background: rgba(0,0,0,0.4); border: 1.5px solid var(--neon-magenta); border-radius: 12px; padding: 24px; margin-top: auto; text-align: center; position: relative; overflow: hidden; }
.blind-clock-time { font-family: 'Press Start 2P', monospace; font-size: 36px; color: #fff; letter-spacing: 0.04em; }
.blind-clock-lbl { font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--neon-magenta); letter-spacing: 0.16em; margin-top: 8px; }

.mp-illustration { margin-top: auto; display: flex; gap: 8px; }
.mp-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; position: relative; overflow: hidden; }
.mp-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  border-radius: 4px;
  transform-origin: left;
  animation: mpFill 2.5s ease-in-out infinite alternate;
}
.mp-bar:nth-child(2)::before { animation-delay: 0.3s; }
.mp-bar:nth-child(3)::before { animation-delay: 0.6s; }
.mp-bar:nth-child(4)::before { animation-delay: 0.9s; }
@keyframes mpFill {
  0% { transform: scaleX(0.2); }
  100% { transform: scaleX(0.95); }
}

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.t-quote { font-size: 17px; line-height: 1.5; color: var(--text); margin: 0 0 24px; }
.t-author { display: flex; flex-direction: column; gap: 8px; }
.t-name { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #fff; letter-spacing: 0.08em; }
.t-stars { color: var(--neon-yellow); font-size: 14px; letter-spacing: 0.05em; }

.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.18s; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.04em;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-icon { font-family: 'Press Start 2P', monospace; color: var(--neon-cyan); font-size: 18px; transition: transform 0.18s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 26px 24px; color: var(--text-dim); font-size: 15px; line-height: 1.6; }

.download {
  position: relative;
  padding: 100px 40px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(78, 216, 255, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-purple-mid) 0%, var(--bg-purple-bottom) 100%);
  text-align: center;
  overflow: hidden;
}
.download .starfield { z-index: 0; }
.download-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.download h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(28px, 4.5vw, 50px);
  line-height: 1.15;
  margin: 0 0 20px;
  color: #fff;
  text-shadow: 0 0 22px rgba(78,216,255,0.35);
}
.download h2 .y { color: var(--neon-yellow); text-shadow: 0 0 18px rgba(255,216,58,0.5); }
.download p { color: var(--text-dim); font-size: 18px; line-height: 1.5; margin: 0 0 36px; }
.download .hero-ctas { justify-content: center; }

.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-name { font-family: 'Press Start 2P', monospace; color: #fff; font-size: 14px; }
.footer-mini-logo { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7a93, #ff3b5c 70%); border: 2px solid #c8c8d2; }
.footer-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--text-faint); text-decoration: none; font-size: 13px; transition: color 0.18s; }
.footer-links a:hover { color: var(--neon-cyan); }
.footer-copy {
  color: var(--text-faint);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  flex-basis: 100%;
  text-align: center;
  margin-top: 8px;
}

.ticker { position: relative; z-index: 5; max-width: 1280px; margin: 0 auto; padding: 0 40px; margin-top: 24px; }
.ticker-inner { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; display: flex; align-items: center; background: rgba(0,0,0,0.25); }
.ticker-label { flex-shrink: 0; background: var(--neon-red); color: #fff; font-family: 'Press Start 2P', monospace; font-size: 10px; padding: 12px 16px; letter-spacing: 0.12em; }
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-content {
  display: inline-flex;
  gap: 40px;
  padding: 12px 20px;
  white-space: nowrap;
  animation: tickerScroll var(--ticker-speed, 40s) linear infinite;
}
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em; }
.ticker-item .flag { font-size: 14px; }
.ticker-item .ti-score { color: var(--neon-yellow); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Blog / single fallbacks */
.content-area { max-width: 820px; margin: 0 auto; padding: 80px 24px; }
.content-area h1, .content-area h2, .content-area h3 { font-family: 'Press Start 2P', monospace; color: #fff; line-height: 1.3; }
.content-area p, .content-area li { color: var(--text-dim); line-height: 1.6; font-size: 16px; }
.content-area a { color: var(--neon-cyan); }
.post-meta { color: var(--text-faint); font-size: 13px; font-family: 'JetBrains Mono', monospace; margin-bottom: 24px; }
.posts-list article { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.posts-list article:last-child { border-bottom: none; }
.read-more { display: inline-block; margin-top: 12px; font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--neon-yellow); text-decoration: none; letter-spacing: 0.06em; }
.read-more:hover { text-shadow: 0 0 8px rgba(255,216,58,0.5); }

/* --- Legal / Policy template ---
 * Top: dark starfield hero with the page title.
 * Body: warm off-white reading section with brand-tinted links.
 */
.legal-hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #3a1a6e 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-purple-top) 0%, var(--bg-purple-mid) 55%, var(--bg-purple-bottom) 100%);
  padding: 0 24px 90px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.legal-hero .legal-hero-inner { padding-top: 40px; }
.legal-hero .starfield { z-index: 0; }
.legal-hero-inner {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
}
.legal-hero h1 {
  font-family: 'Press Start 2P', monospace;
  color: #fff;
  font-size: clamp(22px, 3.6vw, 40px);
  line-height: 1.25;
  margin: 0 0 18px;
  text-shadow: 0 0 22px rgba(78, 216, 255, 0.35), 0 0 2px rgba(255,255,255,0.6);
  word-spacing: -0.18em;
}
.legal-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.legal-page {
  background: #f6f3ec;
  color: #1a1230;
  padding: 80px 24px 120px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content > *:first-child { margin-top: 0; }
.legal-content h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 17px;
  color: #0b0716;
  line-height: 1.4;
  margin: 48px 0 16px;
  letter-spacing: 0.02em;
}
.legal-content h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: #1a1230;
  line-height: 1.4;
  margin: 32px 0 12px;
  letter-spacing: 0.02em;
}
.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: #1a1230;
}
.legal-content ul,
.legal-content ol { padding-left: 22px; margin: 0 0 18px; }
.legal-content li { font-size: 16px; line-height: 1.7; color: #1a1230; margin-bottom: 6px; }
.legal-content strong { color: #0b0716; font-weight: 600; }
.legal-content blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid #5b2bbf;
  background: rgba(91, 43, 191, 0.06);
  color: #2a1f4d;
}
.legal-content hr { border: none; border-top: 1px solid rgba(11, 7, 22, 0.12); margin: 40px 0; }
.legal-content code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(11, 7, 22, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  color: #2a1f4d;
}
.legal-content a {
  color: #5b2bbf;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(91, 43, 191, 0.35);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.legal-content a:hover,
.legal-content a:focus-visible {
  color: #ff3b5c;
  border-bottom-color: #ff3b5c;
}
.legal-content a:visited { color: #4a1d9e; }

/* Contact template */
.contact-card {
  margin-top: 56px;
  padding: 36px;
  background: #ffffff;
  border: 1px solid rgba(11, 7, 22, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(11, 7, 22, 0.06);
}
.contact-card h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: #0b0716;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #2a1f4d; }
.contact-form label span {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #5b2bbf;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid rgba(11, 7, 22, 0.12);
  border-radius: 10px;
  background: #fafaf6;
  color: #1a1230;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #5b2bbf;
  box-shadow: 0 0 0 3px rgba(91, 43, 191, 0.18);
}
.contact-submit {
  align-self: flex-start;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #fff;
  background: #5b2bbf;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 4px 0 #2e0f7a, 0 8px 18px rgba(91, 43, 191, 0.35);
  transition: transform 0.08s, box-shadow 0.08s;
}
.contact-submit:hover { background: #4a1d9e; }
.contact-submit:active { transform: translateY(2px); box-shadow: 0 2px 0 #2e0f7a, 0 4px 10px rgba(91, 43, 191, 0.35); }
.contact-or {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(11, 7, 22, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-or-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #5b2bbf;
  text-transform: uppercase;
}
.contact-or-link {
  font-size: 17px;
  font-weight: 600;
  color: #2a1f4d;
  letter-spacing: 0.01em;
  border-bottom: 1.5px solid rgba(91, 43, 191, 0.35);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.18s, border-color 0.18s;
}
.contact-or-link:hover { color: #ff3b5c; border-bottom-color: #ff3b5c; }
.contact-error {
  background: rgba(255, 59, 92, 0.10);
  color: #8a142a;
  border: 1px solid rgba(255, 59, 92, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.contact-success h2 { color: var(--neon-green); color: #0a6b2c; }
.contact-success p { color: #1a1230; }
