/* ============================================================================
   LLAMA RUMBLE — STANDALONE LANDING SITE (AZTEC PIXEL-SPLAT SYSTEM)
   Palette SSOT: design/map-v2/map_v2.json (32 Colors)
   ============================================================================ */

:root {
  --c-ink: #191a26;
  --c-slate: #23333d;
  --c-teal-deep: #264a47;
  --c-teal-moss: #2e6352;
  --c-moss-mid: #3d7d57;
  --c-leaf: #579c59;
  --c-leaf-bright: #7ec263;
  --c-lime: #a8dc73;

  --c-espresso: #3b261d;
  --c-bark: #5e3c28;
  --c-stone: #855534;
  --c-stone-warm: #ad7642;
  --c-sand: #cf9b57;
  --c-sand-light: #e6be73;
  --c-cream: #f5dca0;
  --c-ivory: #fff4cc;

  --c-jade-deep: #12536e;
  --c-jade-mid: #157a94;
  --c-jade: #1eb0bf;
  --c-jade-bright: #4de0dc;
  --c-jade-glow: #a3faf0;

  --c-crimson-deep: #7d1d29;
  --c-crimson: #bd2b36;
  --c-crimson-bright: #e84d43;
  --c-terracotta: #f28538;
  --c-gold: #ffbf3b;
  --c-gold-bright: #ffe875;

  --c-jungle-dark: #1b4f34;
  --c-jungle: #2c7540;
  --c-jungle-bright: #4da649;
  --c-white: #ffffff;

  --font-pixel: "Pixelify Sans", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: "Chakra Petch", system-ui, -apple-system, sans-serif;

  --px-fret-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='8' viewBox='0 0 32 8' shape-rendering='crispEdges'%3E%3Crect width='32' height='8' fill='%233b261d'/%3E%3Crect y='0' width='32' height='1' fill='%23191a26'/%3E%3Crect y='7' width='32' height='1' fill='%23191a26'/%3E%3Crect x='2' y='2' width='8' height='1' fill='%23ffbf3b'/%3E%3Crect x='2' y='2' width='1' height='4' fill='%23ffbf3b'/%3E%3Crect x='9' y='2' width='1' height='3' fill='%23ffbf3b'/%3E%3Crect x='5' y='4' width='5' height='1' fill='%23ffbf3b'/%3E%3Crect x='5' y='4' width='1' height='2' fill='%23ffbf3b'/%3E%3Crect x='13' y='3' width='2' height='2' fill='%234de0dc'/%3E%3Crect x='18' y='2' width='8' height='1' fill='%23ffbf3b'/%3E%3Crect x='18' y='2' width='1' height='4' fill='%23ffbf3b'/%3E%3Crect x='25' y='2' width='1' height='3' fill='%23ffbf3b'/%3E%3Crect x='21' y='4' width='5' height='1' fill='%23ffbf3b'/%3E%3Crect x='21' y='4' width='1' height='2' fill='%23ffbf3b'/%3E%3Crect x='29' y='3' width='2' height='2' fill='%23e84d43'/%3E%3C/svg%3E");
  --px-fret-jade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='8' viewBox='0 0 32 8' shape-rendering='crispEdges'%3E%3Crect width='32' height='8' fill='%2312536e'/%3E%3Crect y='0' width='32' height='1' fill='%23191a26'/%3E%3Crect y='7' width='32' height='1' fill='%23191a26'/%3E%3Crect x='2' y='2' width='8' height='1' fill='%234de0dc'/%3E%3Crect x='2' y='2' width='1' height='4' fill='%234de0dc'/%3E%3Crect x='9' y='2' width='1' height='3' fill='%234de0dc'/%3E%3Crect x='5' y='4' width='5' height='1' fill='%234de0dc'/%3E%3Crect x='13' y='3' width='2' height='2' fill='%23ffe875'/%3E%3Crect x='18' y='2' width='8' height='1' fill='%234de0dc'/%3E%3Crect x='18' y='2' width='1' height='4' fill='%234de0dc'/%3E%3Crect x='25' y='2' width='1' height='3' fill='%234de0dc'/%3E%3Crect x='21' y='4' width='5' height='1' fill='%234de0dc'/%3E%3Crect x='29' y='3' width='2' height='2' fill='%23ffe875'/%3E%3C/svg%3E");
  --px-dither-stone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23191a26' fill-opacity='0.14'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23fff4cc' fill-opacity='0.06'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--c-ink);
  color: var(--c-ivory);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  background-color: var(--c-ink);
  color: var(--c-ivory);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

.pixel-art {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-pixel);
  font-weight: 700;
  border: 2px solid var(--c-ink);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================================
   PIXEL TEMPLE PRIMITIVES (PANELS, FRIEZES, BUTTONS, KEYS)
   ============================================================================ */

.px-panel {
  background-color: var(--c-bark);
  background-image: var(--px-dither-stone);
  border: 3px solid var(--c-ink);
  box-shadow:
    inset 0 2px 0 var(--c-stone-warm),
    inset 0 -3px 0 var(--c-espresso),
    0 6px 0 var(--c-ink);
  position: relative;
}

.px-well {
  background-color: var(--c-espresso);
  border: 2px solid var(--c-ink);
  box-shadow:
    inset 0 2px 0 rgba(25, 26, 38, 0.7),
    0 2px 0 rgba(255, 244, 204, 0.08);
}

.px-frieze {
  height: 10px;
  width: 100%;
  background-image: var(--px-fret-gold);
  background-repeat: repeat-x;
  background-size: 40px 10px;
  image-rendering: pixelated;
}

.px-frieze-jade {
  background-image: var(--px-fret-jade);
}

.px-kicker {
  display: inline-block;
  padding: 5px 11px;
  background: var(--c-espresso);
  border: 2px solid var(--c-ink);
  color: var(--c-gold-bright);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 var(--c-ink);
}

.kicker-jade {
  background: var(--c-jade-deep);
  color: var(--c-jade-glow);
}

.kicker-stone {
  background: var(--c-slate);
  color: var(--c-cream);
}

.px-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  background: var(--c-ivory);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  box-shadow: 0 2px 0 var(--c-stone);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.key-jade {
  background: var(--c-jade-glow);
}

.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 3px solid var(--c-ink);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 90ms steps(2), filter 90ms ease;
  box-shadow: 0 4px 0 var(--c-ink);
  text-align: center;
}

.px-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.px-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--c-ink);
}

.px-btn:focus-visible,
.lang-btn:focus-visible,
.arena-tab:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--c-jade-bright);
  outline-offset: 2px;
}

.px-btn-gold {
  background: var(--c-gold);
  color: var(--c-ink);
  box-shadow:
    inset 0 3px 0 var(--c-gold-bright),
    inset 0 -3px 0 var(--c-terracotta),
    0 5px 0 var(--c-ink);
}

.px-btn-jade {
  background: var(--c-jade);
  color: var(--c-ink);
  box-shadow:
    inset 0 3px 0 var(--c-jade-glow),
    inset 0 -3px 0 var(--c-jade-deep),
    0 5px 0 var(--c-ink);
}

.px-btn-stone {
  background: var(--c-sand);
  color: var(--c-ink);
  box-shadow:
    inset 0 3px 0 var(--c-cream),
    inset 0 -3px 0 var(--c-stone),
    0 4px 0 var(--c-ink);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.aztec-svg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-lg {
  width: 28px;
  height: 28px;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--c-espresso);
  border-bottom: 3px solid var(--c-ink);
  box-shadow: 0 4px 0 rgba(25, 26, 38, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border: 2px solid var(--c-ink);
  background: var(--c-jungle-dark);
  box-shadow: 0 3px 0 var(--c-ink);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-gold-bright);
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 var(--c-ink);
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-cream);
  letter-spacing: 0.08em;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--c-ivory);
  letter-spacing: 0.04em;
  padding: 4px 6px;
}

.nav-link:hover {
  color: var(--c-gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  border: 2px solid var(--c-ink);
  background: var(--c-ink);
  box-shadow: 0 3px 0 var(--c-ink);
}

.lang-btn {
  border: none;
  background: var(--c-slate);
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--c-gold);
  color: var(--c-ink);
}

.header-play-btn {
  display: none;
  padding: 8px 14px;
  font-size: 0.88rem;
}

.play-triangle {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero-section {
  position: relative;
  padding: 40px 0 54px;
  background-color: var(--c-ink);
  border-bottom: 4px solid var(--c-ink);
  overflow: hidden;
}

.hero-key-art {
  position: absolute;
  inset: 0;
  background-image: url("/assets/ui/key-art-mobile.jpg");
  background-size: cover;
  background-position: center 22%;
  opacity: 0.42;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-key-art {
    background-image: url("/assets/ui/key-art-desktop.jpg");
    background-position: center center;
    opacity: 0.46;
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(25, 26, 38, 0.92) 0%, rgba(25, 26, 38, 0.78) 48%, rgba(18, 83, 110, 0.46) 100%),
    linear-gradient(180deg, rgba(25, 26, 38, 0.45) 0%, rgba(25, 26, 38, 0.15) 45%, rgba(25, 26, 38, 0.92) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(2.1rem, 5vw, 3.55rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--c-gold-bright);
  text-shadow:
    0 4px 0 var(--c-espresso),
    3px 5px 0 var(--c-ink);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--c-ivory);
  max-width: 56ch;
  margin-bottom: 22px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}

.btn-hero-play {
  padding: 12px 22px;
  min-width: 220px;
  justify-content: flex-start;
}

.play-logo {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-play-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn-play-labels small {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.btn-play-labels strong {
  font-size: 1.1rem;
}

.btn-qr-trigger {
  padding: 12px 18px;
  font-size: 0.95rem;
}

/* QR Handoff Drawer */
.qr-handoff-panel {
  margin-bottom: 18px;
  max-width: 520px;
}

.qr-panel-body {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.qr-box {
  background: var(--c-white);
  padding: 8px;
  border: 3px solid var(--c-ink);
  box-shadow: 0 3px 0 var(--c-ink);
  flex-shrink: 0;
}

.qr-copy {
  flex: 1 1 220px;
}

.qr-title {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--c-gold-bright);
  margin-bottom: 4px;
}

.qr-desc {
  font-size: 0.88rem;
  color: var(--c-cream);
  margin-bottom: 10px;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.copy-feedback {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--c-jade-glow);
}

/* Specs Strip */
.hero-specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 540px;
}

.hero-specs li {
  background: rgba(25, 26, 38, 0.72);
  border: 2px solid var(--c-ink);
  box-shadow: 0 3px 0 var(--c-ink);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spec-val {
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--c-jade-bright);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.spec-lbl {
  font-size: 0.78rem;
  color: var(--c-ivory);
  font-weight: 600;
  margin-top: 2px;
}

/* ============================================================================
   INTERACTIVE DIORAMA STAGE
   ============================================================================ */

.diorama-panel {
  overflow: hidden;
}

.diorama-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
}

.diorama-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.px-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  width: fit-content;
  background: var(--c-ink);
  border: 2px solid var(--c-jade-mid);
  color: var(--c-jade-glow);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--c-jade-bright);
  display: inline-block;
  animation: pulseDot 1.2s steps(2) infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.diorama-arena-name {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--c-ivory);
}

.diorama-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.diorama-hits-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--c-espresso);
  border: 2px solid var(--c-ink);
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 0 var(--c-ink);
}

.diorama-hits-chip strong {
  color: var(--c-jade-bright);
  font-size: 0.96rem;
}

.btn-sfx {
  padding: 5px 9px;
  font-size: 0.74rem;
  gap: 6px;
}

.btn-sfx .aztec-svg-icon {
  width: 15px;
  height: 15px;
}

.btn-sfx[aria-pressed="true"] {
  background: var(--c-jade);
  color: var(--c-ink);
  box-shadow:
    inset 0 2px 0 var(--c-jade-glow),
    inset 0 -2px 0 var(--c-jade-deep),
    0 3px 0 var(--c-ink);
}

.btn-sfx[aria-pressed="false"] .sfx-wave {
  opacity: 0.25;
}

.diorama-canvas-frame {
  position: relative;
  margin: 0 12px;
  border: 3px solid var(--c-ink);
  background: var(--c-ink);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#arena-diorama {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.diorama-hud-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 10px;
  background: rgba(25, 26, 38, 0.9);
  border: 2px solid var(--c-gold);
  color: var(--c-gold-bright);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.diorama-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

.demo-ctrl-btn {
  flex: 1 1 0;
  padding: 10px 10px;
  font-size: 0.82rem;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.demo-ammo-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--c-espresso);
  border: 2px solid var(--c-ink);
}

.ammo-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--c-ink);
  background: var(--c-slate);
}

.ammo-dot.is-ready {
  background: var(--c-jade-bright);
  box-shadow: inset 0 2px 0 var(--c-jade-glow);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

.section-block {
  padding: 56px 0;
  border-bottom: 4px solid var(--c-ink);
}

.section-stone {
  background-color: var(--c-espresso);
  background-image: var(--px-dither-stone);
}

.section-jungle {
  background-color: var(--c-teal-deep);
  background-image: var(--px-dither-stone);
}

.section-obsidian {
  background-color: var(--c-slate);
  background-image: var(--px-dither-stone);
}

.section-cta {
  background-color: var(--c-jungle-dark);
  background-image: var(--px-dither-stone);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  color: var(--c-gold-bright);
  text-shadow: 0 3px 0 var(--c-ink);
  margin: 10px 0 10px;
  line-height: 1.12;
}

.section-title-sm {
  font-family: var(--font-pixel);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--c-gold-bright);
  text-shadow: 0 3px 0 var(--c-ink);
  margin: 10px 0 16px;
  line-height: 1.15;
}

.section-sub {
  color: var(--c-cream);
  font-size: 1rem;
}

/* ============================================================================
   MECHANICS GRID
   ============================================================================ */

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

.mech-card {
  display: flex;
  flex-direction: column;
}

.mech-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mech-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-espresso);
  border: 2px solid var(--c-ink);
  box-shadow: inset 0 2px 0 rgba(25, 26, 38, 0.7);
}

.mech-keys-visual {
  width: auto;
  min-width: 112px;
  padding: 0 10px;
  gap: 8px;
}

.mech-body h3 {
  font-family: var(--font-pixel);
  font-size: 1.18rem;
  color: var(--c-ivory);
}

.mech-body p {
  font-size: 0.94rem;
  color: var(--c-cream);
}

/* Sprite Sheet CSS Animations */
.sprite-preview {
  display: inline-block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.sprite-llama-p0 {
  width: 40px;
  height: 40px;
  background-image: url("/assets/sprites/llama_p0_sheet.png");
  background-size: 160px 40px;
  animation: llamaWalk 0.55s steps(4) infinite;
}

.sprite-llama-p1 {
  width: 40px;
  height: 40px;
  background-image: url("/assets/sprites/llama_p1_sheet.png");
  background-size: 160px 40px;
  animation: llamaWalk 0.55s steps(4) infinite;
}

.sprite-llama-p2 {
  width: 40px;
  height: 40px;
  background-image: url("/assets/sprites/llama_p2_sheet.png");
  background-size: 160px 40px;
  animation: llamaWalk 0.55s steps(4) infinite;
}

.sprite-llama-p3 {
  width: 40px;
  height: 40px;
  background-image: url("/assets/sprites/llama_p3_sheet.png");
  background-size: 160px 40px;
  animation: llamaWalk 0.55s steps(4) infinite;
}

.warrior-roster {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.roster-sprites {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roster-caption {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-gold-bright);
  letter-spacing: 0.06em;
}

.sprite-spit {
  width: 32px;
  height: 32px;
  background-image: url("/assets/sprites/spit_sheet.png");
  background-size: 64px 32px;
  animation: spitPulse 0.36s steps(2) infinite;
}

@keyframes llamaWalk {
  from { background-position: 0 0; }
  to { background-position: -160px 0; }
}

@keyframes spitPulse {
  from { background-position: 0 0; }
  to { background-position: -64px 0; }
}

/* ============================================================================
   5 ARENAS SHOWCASE
   ============================================================================ */

.arena-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
}

.arena-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
}

.arena-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: var(--c-espresso);
  color: var(--c-cream);
  border: 2px solid var(--c-ink);
  box-shadow: 0 3px 0 var(--c-ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.arena-tab:hover {
  background: var(--c-stone);
  color: var(--c-ivory);
}

.arena-tab.is-active {
  background: var(--c-gold);
  color: var(--c-ink);
  box-shadow:
    inset 0 2px 0 var(--c-gold-bright),
    0 3px 0 var(--c-ink);
}

.arena-num {
  padding: 2px 6px;
  background: var(--c-ink);
  color: var(--c-jade-bright);
  font-size: 0.78rem;
}

.arena-image-wrap {
  border: 3px solid var(--c-ink);
  background: var(--c-ink);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.arena-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arena-caption-bar {
  margin-top: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.arena-caption-bar h3 {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  color: var(--c-gold-bright);
  margin-bottom: 2px;
}

.arena-caption-bar p {
  font-size: 0.9rem;
  color: var(--c-cream);
}

.arena-idol {
  flex-shrink: 0;
}

/* ============================================================================
   MODES & LEAGUES
   ============================================================================ */

.modes-league-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.panel-pad {
  padding: 20px;
}

.mode-card {
  padding: 14px;
  margin-bottom: 12px;
}

.mode-card:last-child {
  margin-bottom: 0;
}

.mode-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mode-head h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--c-ivory);
}

.mode-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-jade-bright);
  letter-spacing: 0.05em;
}

.mode-card p {
  font-size: 0.92rem;
  color: var(--c-cream);
}

.league-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.league-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.league-master {
  border-color: var(--c-gold);
}

.league-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.league-info strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ivory);
}

.league-info span {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-gold-bright);
}

/* ============================================================================
   FINAL CTA BANNER
   ============================================================================ */

.cta-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 24px 20px;
}

.cta-helmet {
  width: 104px;
  height: auto;
  filter: drop-shadow(0 6px 0 var(--c-ink));
  animation: helmetFloat 3.2s ease-in-out infinite;
}

@keyframes helmetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.cta-copy h2 {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--c-gold-bright);
  text-shadow: 0 3px 0 var(--c-ink);
  margin-bottom: 6px;
}

.cta-copy p {
  color: var(--c-cream);
  max-width: 48ch;
}

/* ============================================================================
   FOOTER & MOBILE STICKY BAR
   ============================================================================ */

.site-footer {
  background-color: var(--c-ink);
  padding: 28px 0 92px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--c-gold-bright);
}

.footer-brand span,
.footer-mail {
  font-size: 0.86rem;
  color: var(--c-cream);
}

.footer-mail:hover {
  color: var(--c-jade-bright);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-jade-glow);
}

.footer-links a:hover {
  color: var(--c-gold-bright);
  text-decoration: underline;
}

.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(25, 26, 38, 0.94);
  border-top: 3px solid var(--c-ink);
  transform: translateY(110%);
  transition: transform 180ms ease;
}

.mobile-sticky-cta.is-visible {
  transform: translateY(0);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

@media (min-width: 640px) {
  .header-play-btn {
    display: inline-flex;
  }

  .mechanics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .header-nav {
    display: flex;
  }

  .hero-section {
    padding: 52px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }

  .mechanics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .arena-showcase-grid {
    grid-template-columns: 270px 1fr;
    align-items: start;
  }

  .arena-tabs {
    grid-template-columns: 1fr;
  }

  .modes-league-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding: 26px 28px;
  }

  .site-footer {
    padding-bottom: 32px;
  }

  .mobile-sticky-cta {
    display: none;
  }
}

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

  .sprite-llama-p0,
  .sprite-llama-p1,
  .sprite-llama-p2,
  .sprite-llama-p3,
  .sprite-spit,
  .live-dot,
  .cta-helmet {
    animation: none;
  }
}
