/* ==========================================================================
   Tap Havoc — shared stylesheet
   Plain CSS, no build step. Game pages add .theme-crush / .theme-flip on <body>.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #0a0a0d;
  --bg-2: #0f0f14;
  --surface: #14141a;
  --surface-2: #1b1b23;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: #a9a9b4;
  --dim: #8b8b97;

  /* Brand accent (overridden by game themes) */
  --accent: #ff3b5c;
  --accent-2: #ff8a3d;
  --accent-ink: #120508;
  --glow: rgba(255, 59, 92, 0.35);

  /* Game accents, taken from each game's own art */
  --crush: #ff9e1f;
  --crush-2: #ff5a1f;
  --flip: #3de8ff;
  --flip-2: #ff3d8b;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --radius: 20px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-crush {
  --accent: var(--crush);
  --accent-2: var(--crush-2);
  --accent-ink: #1a0d00;
  --glow: rgba(255, 150, 30, 0.32);
}

.theme-flip {
  --accent: var(--flip);
  --accent-2: var(--flip-2);
  --accent-ink: #001519;
  --glow: rgba(61, 232, 255, 0.28);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.mono {
  font-family: var(--mono);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 13, 0.78);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-text span {
  color: #ff3b5c; /* brand colour stays fixed across game themes */
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.5vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(8px, 1.6vw, 14px);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 16px;
  height: 3px;
  margin-left: -8px;
  border-radius: 3px;
  background: var(--accent);
}

@media (max-width: 380px) {
  .brand-text {
    font-size: 0.92rem;
  }
  .nav a {
    font-size: 0.88rem;
    padding: 0 7px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font: inherit;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px var(--glow);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px var(--glow);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--accent);
  filter: none;
}

/* ---------- Pills / badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--live {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}

.badge--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .badge--live::before {
    animation: blink 1.6s steps(2, jump-none) infinite;
  }
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(88svh, 900px);
  padding-block: clamp(64px, 12vh, 140px);
  overflow: hidden;
}

.hero::before {
  /* Soft colour wash */
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 140%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(255, 59, 92, 0.22), transparent 70%),
    radial-gradient(35% 45% at 12% 80%, rgba(61, 232, 255, 0.12), transparent 70%),
    radial-gradient(30% 40% at 60% 90%, rgba(255, 176, 32, 0.1), transparent 70%);
}

.hero::after {
  /* Arcade grid, faded at the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.hero-inner {
  position: relative;
}

.hero-title {
  margin: 8px 0 28px;
  font-size: clamp(4rem, 17vw, 12.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
}

.hero-title .havoc {
  display: inline-block;
  padding-right: 0.06em;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: skewX(-7deg);
  transform-origin: left bottom;
  filter: drop-shadow(0 0 40px var(--glow));
}

.hero-lead {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 36px;
}

.hero-note {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-tap {
  /* Decorative tap ripple */
  position: absolute;
  right: clamp(-120px, 4vw, 60px);
  top: 50%;
  width: clamp(220px, 34vw, 460px);
  aspect-ratio: 1;
  translate: 0 -50%;
  z-index: -1;
  pointer-events: none;
}

.hero-tap span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.18;
}

.hero-tap span:nth-child(2) {
  inset: 18%;
  opacity: 0.28;
}

.hero-tap span:nth-child(3) {
  inset: 40%;
  border: 0;
  background: radial-gradient(circle, var(--accent) 0 30%, transparent 72%);
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-tap span:nth-child(1),
  .hero-tap span:nth-child(2) {
    animation: ripple 3.2s var(--ease) infinite;
  }
  .hero-tap span:nth-child(2) {
    animation-delay: 1.6s;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.55);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

@media (max-width: 700px) {
  .hero-tap {
    right: -90px;
    top: 30%;
    opacity: 0.7;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 10vw, 120px);
}

.section--tight {
  padding-block: clamp(48px, 7vw, 80px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-note {
  color: var(--muted);
  max-width: 36ch;
}

/* ---------- Game cards ---------- */

.game-grid {
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
}

@media (min-width: 820px) {
  .game-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 30px 70px -30px var(--glow);
}

.game-card:active {
  transform: translateY(-1px) scale(0.995);
}

.game-card__visual {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.game-card__visual .ill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.game-card__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transition: transform 0.6s var(--ease);
}

.game-card:hover .game-card__shot {
  transform: scale(1.04);
}

.game-card__visual .badge {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  background: rgba(10, 10, 13, 0.7);
}

.game-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
}

.game-card__title {
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.game-card__hook {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.game-card__hook span {
  display: block;
  color: var(--muted);
}

.game-card__meta {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-card__cta {
  margin-top: auto;
  padding-top: 8px;
}

/* Make the whole card tappable via the Learn More link */
.game-card__cta a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* ---------- CRUSH illustration (inline SVG, drawn from the game's own art) ---------- */

.ill .fruit,
.ill .juice {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .ill .jaw-l {
    animation: jaw-l 2.6s cubic-bezier(0.7, 0, 0.3, 1) infinite;
  }
  .ill .jaw-r {
    animation: jaw-r 2.6s cubic-bezier(0.7, 0, 0.3, 1) infinite;
  }
  .ill .fruit {
    animation: squash 2.6s cubic-bezier(0.7, 0, 0.3, 1) infinite;
  }
  .ill .juice {
    opacity: 0;
    animation: juice 2.6s ease-out infinite;
  }
  .ill .spark {
    animation: flicker 0.5s steps(2, jump-none) infinite;
  }
}

@keyframes jaw-l {
  0%, 30% { transform: translateX(0); }
  40%, 52% { transform: translateX(26px); }
  72%, 100% { transform: translateX(0); }
}

@keyframes jaw-r {
  0%, 30% { transform: translateX(0); }
  40%, 52% { transform: translateX(-26px); }
  72%, 100% { transform: translateX(0); }
}

@keyframes squash {
  0%, 37% { transform: scale(1, 1); opacity: 1; }
  40%, 52% { transform: scale(0.38, 1.12); opacity: 1; }
  58% { transform: scale(0.38, 1.12); opacity: 0; }
  70% { transform: scale(1, 1); opacity: 0; }
  88%, 100% { transform: scale(1, 1); opacity: 1; }
}

@keyframes juice {
  0%, 39% { transform: scale(0.4); opacity: 0; }
  45% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

@keyframes flicker {
  50% { opacity: 0.35; }
}

/* ---------- Phone-framed screenshots (FLIP) ---------- */

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(160deg, #2a2a34, #121218);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px -30px var(--glow);
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 23px;
  object-fit: cover;
  background: var(--bg-2);
}

.game-visual.game-visual--phone {
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px) 0;
  border: 0;
  background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%);
  box-shadow: none;
  overflow: visible;
}

.game-visual.game-visual--phone .phone {
  width: min(300px, 72vw);
}

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 240px);
  gap: 16px;
  margin: 0;
  padding: 4px 0 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.shots li {
  scroll-snap-align: start;
}

.shots figure {
  margin: 0;
}

.shots figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 1000px) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
  }
}

.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.game-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ---------- Pillars (home) ---------- */

.pillars {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
}

.pillar .num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pillar h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.pillar p {
  color: var(--muted);
}

/* ---------- Contact strip ---------- */

.strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    var(--surface);
  overflow: hidden;
}

.strip h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.strip p {
  margin-top: 6px;
  color: var(--muted);
}

.email-link {
  font-weight: 800;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}

.email-link:hover {
  color: var(--accent);
}

/* ---------- Game pages ---------- */

.game-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(40px, 8vw, 110px) clamp(48px, 8vw, 100px);
  overflow: hidden;
}

.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 80% 40%, var(--glow), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%);
  opacity: 0.8;
}

.theme-crush .game-hero::after {
  /* Hazard stripe edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, #111 14px 28px);
  opacity: 0.85;
}

.theme-flip .game-hero::after {
  /* Starfield */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 32% 68%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 58% 14%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 72% 82%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 30%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 46% 44%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 6% 86%, rgba(255, 255, 255, 0.5), transparent);
}

.game-hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

@media (min-width: 920px) {
  .game-hero__grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.game-title {
  margin-top: 26px;
  font-size: clamp(5rem, 22vw, 11rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.theme-crush .game-title {
  background: linear-gradient(180deg, #fff 30%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.theme-flip .game-title {
  color: var(--text);
  text-shadow: 0 0 28px rgba(61, 232, 255, 0.45);
}

.game-hook {
  margin-top: 26px;
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.game-hook span {
  display: block;
  color: var(--accent);
}

.game-intro {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
}

.game-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  min-height: 56px;
  padding: 8px 22px 8px 10px;
  border-radius: 16px;
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: default;
  user-select: none;
}

.soon-pill__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

.soon-pill__icon svg {
  width: 20px;
  height: 20px;
}

.soon-pill small {
  display: block;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

.soon-pill strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.game-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg-2);
  overflow: hidden;
  box-shadow: 0 40px 100px -40px var(--glow);
}

.game-visual .ill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feature-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.feature:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-2px);
}

.feature .num {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.feature h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature p {
  color: var(--muted);
}

.page-links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .page-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 16px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-links a:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.page-links svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}

/* ---------- Simple pages (support / privacy) ---------- */

.page-head {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 9vw, 110px) clamp(28px, 4vw, 48px);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 80% at 85% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}

.page-title {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.page-lead {
  max-width: 50ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.page-body {
  padding-bottom: clamp(64px, 10vw, 120px);
}

.panel {
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.panel + .panel,
.panel + .card-grid,
.card-grid + .panel {
  margin-top: 16px;
}

.panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 900;
  text-transform: uppercase;
}

.panel p + p,
.panel p + ul,
.panel ul + p {
  margin-top: 12px;
}

.panel p,
.panel li {
  color: var(--muted);
}

.panel--accent {
  background:
    radial-gradient(70% 140% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--surface);
}

.big-email {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(1.35rem, 4.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .check-list {
    grid-template-columns: 1fr 1fr;
  }
}

.check-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
}

.card-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%),
    var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.mini-card:hover,
.mini-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.mini-card h2,
.mini-card h3 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.mini-card p {
  color: var(--muted);
}

.mini-card > .badge,
.mini-card > a {
  align-self: flex-start;
}

.mini-card .arrow-link {
  margin-top: auto;
  padding-top: 6px;
}

.panel p + .check-list,
.panel .check-list + p {
  margin-top: 14px;
}

.mini-card--link:hover {
  transform: translateY(-3px);
}

.mini-card--link .arrow-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.arrow-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.arrow-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- Legal / prose ---------- */

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.prose h2 .n {
  margin-right: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85em;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.prose p,
.prose li {
  color: #c4c4cd;
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 12px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--accent);
}

.prose a:not(.email-link) {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.prose a:not(.email-link):hover {
  color: var(--accent);
}

.prose strong {
  color: var(--text);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.toc {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.toc h2 {
  margin: 0 0 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 4px 24px;
  margin: 0;
  padding-left: 1.4em;
}

@media (min-width: 640px) {
  .toc ol {
    grid-template-columns: 1fr 1fr;
  }
}

.toc li::marker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85em;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}

.prose h2[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ---------- 404 ---------- */

.notfound {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h) - 160px);
  padding-block: 80px;
  text-align: center;
}

.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 50% at 50% 45%, var(--glow), transparent 70%);
}

.notfound-code {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--accent);
}

.notfound-title {
  margin: 14px 0 18px;
  font-size: clamp(3.6rem, 15vw, 9rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.notfound-title span {
  display: block;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound p {
  color: var(--muted);
  font-size: 1.15rem;
}

.notfound .btn {
  margin-top: 30px;
}

@media (prefers-reduced-motion: no-preference) {
  .notfound-title span {
    animation: blink 1.2s steps(2, jump-none) 3;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 40px 32px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.2fr auto auto;
    align-items: start;
    gap: 48px;
  }
}

.footer-brand p {
  margin-top: 8px;
  color: var(--dim);
}

.footer-label {
  display: block;
  margin-bottom: 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-contact a {
  display: inline-block;
  padding-block: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.85rem;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .game-card:hover,
  .game-card:focus-within,
  .btn:hover,
  .feature:hover,
  .mini-card--link:hover {
    transform: none;
  }
}
