/* Le Chonk — design system.
 * Dark, glassy, orange-first. One display face (Archivo, expanded) for headlines and
 * one text face (Inter) for everything else. Colors are tokens; nothing is hard-coded
 * outside :root except the few one-off gradients. */

:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-2: #0d0c0b;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --surface-hi: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.13);
  --border-warm: rgba(255, 122, 0, 0.42);
  --orange: #ff7a00;
  --orange-hi: #ff9b35;
  --orange-lo: #e86a00;
  --orange-ink: #140a00;
  --pink: #ff2e9e;
  --lime: #4ade80;
  --cream: #fff9f0;
  --text: #fff9f0;
  --muted: rgba(255, 249, 240, 0.7);
  --faint: rgba(255, 249, 240, 0.52);
  --danger: #ff6b6b;

  --font-display: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: 16px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-lift: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-glow: 0 12px 34px rgba(255, 122, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  /* Le Chonk is a dark site. Keep it dark even when the OS asks for light. */
  :root:not([data-theme="light"]) { color-scheme: dark; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
  font-feature-settings: "cv11", "ss01";
}

/* ambient glow, fixed behind everything (chonk.me-style corner light) */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 90vh;
  background:
    radial-gradient(60% 55% at 12% 8%, rgba(255, 122, 0, 0.22), transparent 70%),
    radial-gradient(45% 45% at 92% 30%, rgba(74, 222, 128, 0.12), transparent 70%),
    radial-gradient(40% 40% at 50% 100%, rgba(255, 46, 158, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

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

a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; font-stretch: 112%; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.45);
  border-radius: 10px;
}

::selection { background: var(--orange); color: var(--orange-ink); }

/* ---------- utilities ---------- */
.container {
  width: min(var(--container), 100% - calc(var(--gutter) * 2));
  margin-inline: auto;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cream); color: #111; padding: 10px 16px; border-radius: 999px; font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tabular { font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grow { flex: 1 1 auto; }

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* reveal: hidden only when JS runs (html.js-ready is added by common.js) */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(5, 5, 6, 0.86); }
.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 40px; height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--border-warm), 0 8px 22px rgba(255, 122, 0, 0.3);
  object-fit: cover;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-word b { color: var(--orange-hi); font-weight: 900; }

.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { color: var(--cream); background: var(--surface-2); }
.site-nav a[aria-current="page"] {
  color: var(--orange-hi);
  background: rgba(255, 122, 0, 0.16);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.price-pill-label { color: var(--faint); font-weight: 600; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: live-pulse 2.2s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  flex: none;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), background 0.2s;
  content: "";
}
.menu-bars { top: 50%; margin-top: -1px; }
.menu-bars::before { top: -6px; left: 0; margin: 0; }
.menu-bars::after { top: 6px; left: 0; margin: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: var(--surface);
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary,
.btn-buy {
  border-color: transparent;
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  color: var(--orange-ink);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover,
.btn-buy:hover { background: linear-gradient(180deg, #ffb163, var(--orange-hi)); box-shadow: 0 16px 40px rgba(255, 122, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-buy { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.copy-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn.is-done { background: rgba(74, 222, 128, 0.2); border-color: rgba(74, 222, 128, 0.5); }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(32px, 6vw, 80px) clamp(40px, 6vw, 72px);
}
.hero h1 {
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 0.9;
  font-stretch: 125%;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange-hi);
}
.hero-lede {
  margin-top: 22px;
  max-width: 34ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}
.hero-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--faint);
}
.hero-cta { margin-top: 28px; }
.hero-note {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--faint);
  max-width: 52ch;
}

/* mode card — the signature: pick a mode, the chonk changes, the meter moves */
.mode-card {
  padding: 14px;
  border-radius: var(--radius-xl);
  position: relative;
}
.mode-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 10px;
  scrollbar-width: none;
}
.mode-chips::-webkit-scrollbar { display: none; }
.mode-chip {
  flex: none;
  scroll-snap-align: start;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.mode-chip:hover { color: var(--cream); background: var(--surface); }
.mode-chip[aria-selected="true"] {
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  color: var(--orange-ink);
  box-shadow: var(--shadow-glow);
}
.mode-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: #0b0a09;
  border: 1px solid var(--border);
}
.mode-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s var(--ease), transform 0.9s var(--ease);
}
.mode-stage img.is-active { opacity: 1; transform: scale(1); }
.mode-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.01em;
}
.mode-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: end;
  padding: 16px 6px 6px;
}
.mode-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.02em;
}
.mode-desc { color: var(--muted); font-size: 15px; grid-column: 1 / -1; min-height: 2.6em; }
.meter-stack { min-width: 150px; }
.meter-title { font-size: 12px; color: var(--faint); font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.meter-track {
  margin-top: 6px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  border: 1px solid var(--border);
}
.meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--orange-hi), var(--orange));
  transition: width 0.9s var(--ease);
}
.mode-hint { display: none; font-size: 12.5px; color: var(--faint); padding: 4px 6px 0; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.stat-label { font-size: 13px; color: var(--faint); font-weight: 600; }
.stat-value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 100%;
  font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-value.is-up { color: var(--lime); }
.stat-value.is-down { color: var(--danger); }

/* ---------- sections ---------- */
.section {
  padding-block: clamp(56px, 8vw, 104px);
  position: relative;
}
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
  max-width: 760px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-hi);
  font-size: 14px;
  font-weight: 700;
}
.section-kicker::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  box-shadow: 0 0 14px rgba(255, 122, 0, 0.5);
}
.section-head h2 { font-size: clamp(34px, 4.8vw, 58px); }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 60ch; }

/* steps — a real sequence, so numbered */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.step {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
  align-content: start;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  color: var(--orange-ink);
}
.step h3 { font-size: 22px; }
.step p { color: var(--muted); font-size: 15px; }

/* ordered lists used as steps: keep the numbers in the badges, not in the markup */
ol.steps,
ol.buy-grid { list-style: none; padding: 0; margin: 0; }

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.teaser {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0a09;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.teaser:hover { transform: translateY(-3px); border-color: var(--border-warm); }
.teaser img { width: 100%; height: auto; }
.gallery-more { margin-top: 22px; }
.more-link { margin-top: 20px; }
.token-card dd.ca-box {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0;
}
.note { font-size: 13px; color: var(--faint); }
.more-link a { text-decoration: none; }
.holder-info { margin-top: 18px; max-width: 760px; }
.hub-games { margin-top: 8px; }
.mini-board { margin: 6px 0 4px; }
.mini-board li { font-size: 13px; padding: 6px 10px; }
.snack-loop { padding-top: 56px; }
.cannon-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cannon-controls .field { gap: 8px; }
.cannon-controls .field-label { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; }
.cannon-controls [data-hud="angle"] { color: var(--cream); font-variant-numeric: tabular-nums; }
.cannon-controls input[type="range"] { min-height: 32px; }
@media (max-width: 640px) {
  .cannon-controls { grid-template-columns: 1fr; }
  .cannon-controls .btn { width: 100%; }
}

/* ---------- reels (video) ---------- */
.reel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}
.reel {
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0a09;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.reel video {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
}
.reel-cap {
  position: relative;
  padding: 12px 14px;
  background: #0b0a09;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.reel-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(5, 5, 6, 0.7);
  color: var(--cream);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.reel-btn[aria-pressed="true"] { border-color: var(--border-warm); color: var(--orange-hi); }

/* ---------- games ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.game-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--border-warm); }
.game-card-art {
  aspect-ratio: 1 / 1;
  background: #0b0a09;
  position: relative;
  overflow: hidden;
}
.game-card-art img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}
.game-card:hover .game-card-art img { transform: scale(1.05); }
.game-card-body { padding: 18px 20px 20px; display: grid; gap: 10px; }
.game-card-body h3 { font-size: 24px; }
.game-card-body p { color: var(--muted); font-size: 15px; }
.best-line { font-size: 13px; color: var(--faint); font-weight: 600; }
.best-line b { color: var(--cream); font-variant-numeric: tabular-nums; }
.game-card .btn { margin-top: 4px; justify-self: start; }
.tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.72);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.filter-btn[aria-pressed="true"] {
  color: var(--orange-ink);
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  border-color: transparent;
}
.masonry {
  columns: 3 260px;
  column-gap: 14px;
}
.tile {
  break-inside: avoid;
  margin: 0 0 14px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0a09;
}
.tile button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: none;
  cursor: zoom-in;
  display: block;
}
.tile img,
.tile video {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.tile:hover img { transform: scale(1.02); }
.tile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
.tile-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tile .tile-dl {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.tile .tile-dl:hover { border-color: var(--border-warm); color: var(--orange-hi); }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(6px); }
.lightbox-inner {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 16px;
  gap: 12px;
}
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; }
.lightbox-stage img,
.lightbox-stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}
.lightbox-title { font-weight: 700; }
.lightbox-nav { display: flex; justify-content: center; gap: 10px; }

/* ---------- lore ---------- */
.lore {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.lore h2 { font-size: clamp(38px, 5.4vw, 66px); }
.lore p { color: var(--muted); margin-top: 16px; font-size: 17px; max-width: 52ch; }
.lore-facts { display: grid; gap: 12px; margin-top: 26px; }
.lore-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.lore-fact b { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 20px; color: var(--orange-hi); min-width: 3.6ch; }
.lore-fact span { color: var(--muted); font-size: 15px; }
.lore-art { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lift); }
.lore-art img { width: 100%; height: auto; }
.banner-band {
  margin-top: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}
.banner-band img { width: 100%; height: auto; }

/* ---------- chart ---------- */
.chart-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0a09;
  height: clamp(420px, 56vw, 560px);
}
.chart-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.chart-fallback { padding: 24px; color: var(--muted); }

/* ---------- tokenomics ---------- */
.token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.token-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
  align-content: start;
}
.token-card dt { font-size: 13px; color: var(--faint); font-weight: 600; }
.token-card dd { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.token-card small { color: var(--faint); font-size: 12.5px; }
.token-card.wide { grid-column: span 2; }
.ca-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.ca-box code {
  font-size: 13px;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  word-break: break-all;
  flex: 1 1 260px;
}
.footnote { margin-top: 14px; font-size: 13px; color: var(--faint); max-width: 90ch; }

/* ---------- how to buy ---------- */
.buy-steps { counter-reset: none; }
.buy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.buy-card { padding: 24px; display: grid; gap: 12px; align-content: start; }
.buy-card h3 { font-size: 22px; }
.buy-card p { color: var(--muted); font-size: 15px; }
.net-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 4px;
}
.net-table th,
.net-table td {
  text-align: left;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.net-table th { color: var(--faint); font-weight: 600; width: 36%; }
.net-table td { word-break: break-word; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 10px; max-width: 880px; }
.faq-item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--orange-hi);
  transition: transform 0.25s var(--ease);
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; display: grid; gap: 10px; }
.faq-item .faq-a p + p { margin-top: 0; }
.faq-item a { color: var(--orange-hi); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 36px;
  background: linear-gradient(180deg, transparent, rgba(255, 122, 0, 0.05));
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
}
.footer-about p { color: var(--muted); margin-top: 14px; max-width: 46ch; font-size: 15px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-nav h2 { font-size: 13px; color: var(--faint); font-family: var(--font); font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.footer-nav a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; font-size: 15px; }
.footer-nav a:hover { color: var(--cream); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.socials a:hover { border-color: var(--border-warm); color: var(--orange-hi); }
.disclaimer { margin-top: 32px; font-size: 13px; color: var(--faint); max-width: 110ch; }
.legal { margin-top: 18px; font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.legal a { color: var(--muted); }
.contract { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.contract code { color: var(--muted); }

/* ---------- toast + fx ---------- */
.toast-zone {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  z-index: 200;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(20, 18, 16, 0.95);
  border: 1px solid var(--border-warm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  font-size: 14.5px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  text-align: center;
}
.toast.is-in { opacity: 1; transform: none; }
.toast-ok { border-color: rgba(74, 222, 128, 0.55); }
.toast-warn { border-color: rgba(255, 107, 107, 0.6); }

.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.fx-piece {
  position: absolute;
  font-size: 22px;
  animation: fx-pop 0.85s var(--ease) forwards;
  transform: translate(-50%, -50%);
}
@keyframes fx-pop {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); opacity: 0; }
}

/* ---------- My Chonk ---------- */
.pet-dock {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
}
.pet-fab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: rgba(20, 16, 12, 0.92);
  color: var(--cream);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 122, 0, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 0.2s var(--ease);
}
.pet-fab:hover { transform: translateY(-2px); }
.pet-fab img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #1b130b;
  box-shadow: 0 0 0 2px var(--orange);
}
.pet-panel {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: 86px;
  width: min(340px, calc(100vw - 32px));
  z-index: 95;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(14, 12, 10, 0.97);
  border: 1px solid var(--border-warm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 12px;
}
.pet-head { display: flex; justify-content: space-between; align-items: center; }
.pet-head h2 { font-size: 24px; }
.pet-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 210px;
  border-radius: 20px;
  background: radial-gradient(60% 60% at 50% 60%, rgba(255, 122, 0, 0.28), rgba(0, 0, 0, 0) 70%), #0c0a08;
  border: 1px solid var(--border);
  overflow: hidden;
}
#pet-img {
  width: 200px; height: 200px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s var(--ease);
}
#pet-img.is-chomp { animation: chomp 0.5s var(--ease); }
@keyframes chomp {
  0%, 100% { filter: none; }
  40% { filter: brightness(1.25) saturate(1.2); }
}
.pet-bubble {
  position: absolute;
  top: 12px; left: 12px;
  padding: 7px 11px;
  border-radius: 14px;
  background: var(--cream);
  color: #1a120a;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s var(--ease);
  max-width: 80%;
}
.pet-bubble.is-in { opacity: 1; transform: none; }
.pet-level { font-weight: 800; font-size: 15px; }
.meter { display: grid; gap: 6px; }
.meter-label { font-size: 12px; color: var(--faint); font-weight: 700; }
.meter-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  border: 1px solid var(--border);
}
.meter-bar i {
  display: block;
  height: 100%;
  width: 60%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-hi));
  transition: width 0.6s var(--ease);
}
.pet-note { color: var(--muted); font-size: 14px; }
.pet-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.fine { font-size: 12px; color: var(--faint); }

/* ---------- game pages ---------- */
.page-hero {
  padding-block: clamp(28px, 5vw, 56px) 18px;
}
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); font-stretch: 125%; letter-spacing: -0.03em; }
.page-hero p { margin-top: 12px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; }
.back-link { display: inline-flex; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.back-link:hover { color: var(--cream); }

.game-shell { display: grid; gap: 12px; }
.game-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hud-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--faint);
  font-weight: 700;
  white-space: nowrap;
}
.hud-chip b {
  color: var(--cream);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 900;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.hud-spacer { flex: 1 1 auto; }
.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0a09;
  box-shadow: var(--shadow-lift);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.game-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  background: rgba(5, 5, 6, 0.6);
  backdrop-filter: blur(4px);
  text-align: center;
  overflow-y: auto;
}
.overlay-card {
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-xl);
  background: rgba(14, 12, 10, 0.92);
  border: 1px solid var(--border-warm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.overlay-card h2 { font-size: clamp(30px, 4.6vw, 44px); font-stretch: 125%; }
.overlay-card p { color: var(--muted); font-size: 15px; }
.overlay-card .btn-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.field { display: grid; gap: 6px; width: 100%; text-align: left; }
.field label, .field .field-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--orange-hi); outline-offset: 1px; }
.hint-line { font-size: 13px; color: var(--faint); }
.score-line { font-size: 15px; color: var(--cream); font-weight: 700; }
.rank-line { font-size: 14px; color: var(--lime); font-weight: 700; min-height: 1.4em; }

.game-info {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
  margin-top: 20px;
}
.info-card { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; align-content: start; }
.info-card h2 { font-size: 22px; }
.info-card p, .info-card li { color: var(--muted); font-size: 15px; }
.info-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.kbd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.85em;
  font-weight: 700;
  color: var(--cream);
}
.board { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.board li {
  display: grid;
  grid-template-columns: 2.2ch 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 14px;
}
.board .pos { color: var(--faint); font-weight: 800; font-variant-numeric: tabular-nums; }
.board .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .who small { color: var(--faint); margin-left: 6px; }
.board .pts { font-weight: 800; font-variant-numeric: tabular-nums; }
.board li.is-me { outline: 1px solid var(--border-warm); }
.board li.board-empty {
  display: block;
  background: none;
  padding: 10px 4px;
  color: var(--faint);
  font-size: 14px;
}

/* ---------- meme kit ---------- */
.kit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: start;
}
.kit-preview {
  padding: 14px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
}
.kit-canvas-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #0b0a09;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  min-height: 240px;
}
.kit-canvas-wrap canvas { width: 100%; height: auto; max-height: 74vh; display: block; object-fit: contain; }
.kit-controls { padding: 18px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 14px; }
.kit-controls h2 { font-size: 22px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.template-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.template-btn {
  appearance: none;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0a09;
  cursor: pointer;
  aspect-ratio: 1;
  position: relative;
}
.template-btn img { width: 100%; height: 100%; object-fit: contain; background: #0b0a09; }
.template-btn[aria-pressed="true"] { border-color: var(--orange-hi); box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.3); }
.swatch {
  appearance: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 2px solid var(--border);
  cursor: pointer;
}
.swatch[aria-pressed="true"] { border-color: var(--cream); box-shadow: 0 0 0 2px var(--orange); }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--orange); }
.toggle-row { display: flex; gap: 8px; flex-wrap: wrap; }
.seg {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.seg[aria-pressed="true"] { background: rgba(255, 122, 0, 0.18); color: var(--orange-hi); border-color: var(--border-warm); }

/* ---------- holders ---------- */
.holder-card { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-xl); display: grid; gap: 16px; max-width: 760px; }
.holder-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.result-box {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
  min-height: 96px;
}
.result-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.tier {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
}
.tier b { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 18px; }
.tier small { color: var(--faint); font-size: 12.5px; }
.tier.is-current { border-color: var(--border-warm); background: rgba(255, 122, 0, 0.1); }

/* ---------- leaderboards page ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.board-card { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-xl); display: grid; gap: 14px; max-width: 820px; }
.board-card .board li { grid-template-columns: 3ch 1fr auto; padding: 12px 14px; font-size: 15px; }
.board-card .board .pos { font-size: 16px; }
.board-card .board .pts { font-size: 17px; }
.board-card h2 { font-size: 26px; }
.note { font-size: 13px; color: var(--faint); }

/* ---------- prose pages ---------- */
.prose { max-width: 720px; padding-block: clamp(28px, 5vw, 56px) 40px; }
.prose h1 { font-size: clamp(38px, 5vw, 60px); font-stretch: 125%; }
.prose h2 { font-size: 26px; line-height: 1.2; margin-top: 38px; margin-bottom: 14px; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
.prose a { color: var(--orange-hi); }
.prose .updated { color: var(--faint); font-size: 14px; margin-top: 10px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.notfound h1 { font-size: clamp(56px, 12vw, 140px); font-stretch: 125%; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav a { padding: 8px 9px; font-size: 13.5px; }
  .price-pill-label { display: none; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .token-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-card.wide { grid-column: span 2; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    margin: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(12, 11, 10, 0.97);
    border: 1px solid var(--border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 14px 16px; font-size: 16px; border-radius: 14px; }
  .btn-buy { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero > * { min-width: 0; }
  .steps { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr 1fr; }
  .games .game-card:last-child { grid-column: span 2; }
  .lore { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .game-info { grid-template-columns: 1fr; }
  .kit-grid { grid-template-columns: 1fr; }
  .buy-grid { grid-template-columns: 1fr; }
  body.menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 40;
  }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .header-row { gap: 10px; }
  .brand-word { font-size: 17px; }
  .price-pill { padding: 7px 10px; font-size: 12.5px; }
  .hero h1 { font-size: clamp(44px, 14vw, 66px); }
  .mode-hint { display: block; }
  .mode-meta { grid-template-columns: 1fr; }
  .meter-stack { min-width: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:last-child { grid-column: span 2; }
  .games { grid-template-columns: 1fr; }
  .games .game-card:last-child { grid-column: auto; }
  .reel-track { grid-auto-columns: 74vw; }
  .token-grid { grid-template-columns: 1fr; }
  .token-card.wide { grid-column: auto; }
  .template-row { grid-template-columns: repeat(4, 1fr); }
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holder-form { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2 150px; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .overlay-card { padding: 16px; gap: 10px; }
  .overlay-card h2 { font-size: 28px; }
  .overlay-card p { font-size: 14px; }
  .overlay-card .hint-line { display: none; }
  .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pet-fab span { display: none; }
  .pet-fab { padding: 6px; }
  .pet-panel { bottom: 80px; }
  .game-hud .hud-chip { font-size: 12px; padding: 6px 10px; }
  .game-hud .hud-chip b { font-size: 14px; }
  .section-kicker { font-size: 13px; }
  .prose { padding-inline: 0; }
  .lore-art { border-radius: 22px; }
}

@media (max-width: 380px) {
  .price-pill { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- fit pass: kicker label above game card titles (kept off the artwork) ---------- */
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange-hi);
}
.card-kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.7);
}
.game-card-body { padding-top: 20px; }
/* headings must wrap inside narrow phones instead of pushing the page wider */
h1, h2, h3 { overflow-wrap: break-word; }
.page-hero h1 { font-size: clamp(34px, 9.5vw, 76px); }
@media (max-width: 380px) {
  .section-head h2 { font-size: 32px; }
  .prose h1 { font-size: 36px; }
}

/* ---------- feed the chonk (home hero) ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.16), rgba(255, 46, 158, 0.08), rgba(74, 222, 128, 0.1));
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 28px;
  padding: 10px 0;
  animation: ticker 38s linear infinite;
  width: max-content;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.ticker-track span { position: relative; padding-right: 28px; }
.ticker-track span::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--orange);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero { align-items: start; }
.feed-stage {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-xl);
  display: grid;
  gap: 16px;
  position: relative;
}
.feed-top { text-align: center; display: grid; gap: 4px; }
.feed-label { font-size: 13px; font-weight: 700; color: var(--faint); }
.feed-params {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(20px, 5.6vw, 40px);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  overflow-wrap: anywhere;
}
.feed-sub { font-size: 14px; color: var(--muted); }
.feed-sub b { color: var(--orange-hi); font-variant-numeric: tabular-nums; }

.feed-plate {
  position: relative;
  width: min(100%, 360px);
  margin: 4px auto 0;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(255, 122, 0, 0.32), rgba(255, 122, 0, 0) 70%),
    #0c0a08;
  border: 1px solid var(--border);
}
.feed-cat {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: scale(var(--s, 1));
  transform-origin: 50% 90%;
  transition: transform 0.6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.feed-cat img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  animation: breathe 4.2s ease-in-out infinite;
  transform-origin: 50% 90%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-warm);
}
.feed-cat:active img { transform: scale(0.97); }
#feed-img.is-fed { animation: fed 0.5s var(--ease); }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012, 1.02); }
}
@keyframes fed {
  0% { transform: scale(1); filter: none; }
  30% { transform: scale(1.035, 0.965); filter: brightness(1.15) saturate(1.1); }
  60% { transform: scale(0.99, 1.01); }
  100% { transform: scale(1); filter: none; }
}
.feed-float-zone { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 28px; }
.feed-float {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 22px;
  color: var(--lime);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  animation: float-up 0.9s var(--ease) forwards;
}
@keyframes float-up {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-70px); opacity: 0; }
}
.feed-btn { width: 100%; }
.feed-tier { display: grid; gap: 8px; }
.feed-tier-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.feed-tier-row b { color: var(--cream); }

.mode-stage { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .feed-cat img, #feed-img.is-fed { animation: none; }
}
@media (max-width: 960px) {
  .hero { align-items: stretch; }
  .feed-stage { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* My Chonk is icon-only everywhere so it covers as little of the page as possible */
.pet-fab { padding: 4px; border-radius: 50%; }
.pet-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pet-fab img { width: 52px; height: 52px; }
@media (max-width: 640px) {
  .pet-fab { padding: 3px; }
  .pet-fab img { width: 46px; height: 46px; }
}

/* the play area needs room for the start card on phones; the frame letterboxes the game */
/* the floating companion never sits on top of a game */
body:has(#game-frame) .pet-dock,
body:has(#game-frame) .pet-panel { display: none !important; }
/* gallery captions: on phones the title wraps in full and Download sits underneath */
@media (max-width: 640px) {
  .tile-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  .tile-bar span { white-space: normal; overflow: visible; text-overflow: clip; }
  .tile .tile-dl { text-align: center; }
}

/* Narrow screens (phones and tablets, and small laptops): the game picture is 16:9 and fills the
   width with no dark bars, and the start, pause and game-over cards sit under it instead of on top
   of it, so nothing covers the game and nothing is cut off. */
@media (max-width: 1099px) {
  .game-frame { aspect-ratio: auto; height: auto; min-height: 0; overflow: visible; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .game-frame canvas { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 22px; background: #0b0a09; box-shadow: var(--shadow-lift); }
  .game-overlay { position: static; inset: auto; display: grid; justify-items: center; background: none; backdrop-filter: none; padding: 16px 0 0; overflow: visible; }
  .game-overlay .overlay-card { width: 100%; max-width: 520px; }
}

/* the Studio and the forms need every pixel: My Chonk steps aside there */
body:has(#studio-canvas) .pet-dock,
body:has(#studio-canvas) .pet-panel,
body:has(#holder-form) .pet-dock,
body:has(#holder-form) .pet-panel { display: none !important; }
