/* ═════════════════════════════════════════════════════════════════════════════
   KINETIC LOGISTICS — Altexpress booth design system
   ═════════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Color tokens — LIGHT THEME ──────────────────────────────────────────
     Token names kept stable (--ink / --bone / etc) but VALUES are light:
     - --ink     = page background (cream/white)
     - --inkwell = card surface (slightly cooler cream)
     - --tideline= raised surface, hover
     - --bone    = primary TEXT color (deep teal-ink, used on light bg)
     - --steam   = muted text
     - --teal/--lagoon = brand teal accents (logo-aligned)
     - --voltage = primary CTA accent (Altexpress teal-green from brand)
     - --coral   = error/urgency
     - --hairline= 1px border on light surfaces
     ───────────────────────────────────────────────────────────────────── */
  --ink:           #F4F1EA;   /* warm cream background */
  --inkwell:       #FFFFFF;   /* card surface */
  --tideline:      #EDE8DD;   /* raised / hover */
  --teal:          #006D85;   /* brand primary teal */
  --lagoon:        #009BA8;   /* brand light teal accent */
  --voltage:       #2DB194;   /* Altexpress brand green-teal — used as CTA */
  --coral:         #E52320;   /* urgency / error */
  --bone:          #0E2A33;   /* text primary — deep teal-ink on light bg */
  --steam:         #5B7882;   /* muted text */
  --hairline:      #D9D2C2;   /* hairline borders on light */
  --error:         #E52320;
  --success:       #2DB194;

  /* Always-dark surface for the AWB label & celebration emphasis (legible on light bg) */
  --surface-dark:  #0E2A33;
  --on-dark:       #F7FBFA;

  --gradient-mesh:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(0,155,168,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(45,177,148,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,109,133,0.05) 0%, transparent 70%);

  /* ── Typography ───────────────────────────────────────────────────────── */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-ui:      'Inter Tight', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ── Radii / motion ───────────────────────────────────────────────────── */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-pill: 999px;
  --t-fast: 0.18s ease;
  --t-mid:  0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-slow: 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-ui);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Phone background atmosphere ──────────────────────────────────────────── */
.phone-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
.phone-mesh {
  position: absolute; inset: 0;
  background: var(--gradient-mesh), var(--ink);
  animation: mesh-drift 22s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2%, -1%, 0) scale(1.04); }
}

/* ── Screens ──────────────────────────────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.screen.active { display: flex; flex-direction: column; animation: screen-in 0.4s var(--t-mid); }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.phone-shell {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 22px 64px;
  display: flex; flex-direction: column;
  gap: 20px;
}

/* ── Boot screen ──────────────────────────────────────────────────────────── */
.boot-wrap {
  margin: auto;
  display: flex; flex-direction: column; gap: 18px; align-items: center;
}
.boot-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--hairline); border-top-color: var(--lagoon);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.boot-line {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steam);
}

/* ── Brand header ─────────────────────────────────────────────────────────── */
.phone-brand {
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.phone-brand-logo { height: 48px; width: auto; }
.phone-brand-tag { display: none; }

/* ── Welcome ──────────────────────────────────────────────────────────────── */
.welcome-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--voltage);
}
.welcome-dot {
  width: 8px; height: 8px; background: var(--voltage); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(45, 177, 148, 0.6);
  animation: pulse-dot 1.6s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(45, 177, 148, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(45, 177, 148, 0); }
}
.welcome-display {
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--bone);
}
.welcome-display em {
  font-style: italic;
  color: var(--voltage);
  font-weight: 500;
}
.welcome-sub {
  font-size: 17px;
  color: var(--steam);
  max-width: 480px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  border: 1px solid transparent;
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { padding: 18px 28px; font-size: 17px; }

.btn-primary {
  background: var(--voltage);
  color: #FFFFFF;
  font-weight: 700;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 0 var(--surface-dark), 0 14px 30px -10px rgba(45,177,148,0.5);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--lagoon);
  border-color: var(--lagoon);
}
.btn-secondary:hover { background: rgba(0,155,168,0.08); }

.btn-ghost {
  background: transparent;
  color: var(--steam);
  border-color: var(--hairline);
}
.btn-ghost:hover { color: var(--bone); border-color: var(--lagoon); }

/* Voucher prize note */
.voucher-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #FFF8E1;
  border: 1.5px solid #F5C451;
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 16px;
  text-align: center;
}
.voucher-note.hidden { display: none; }
.voucher-note-icon { font-size: 28px; }
.voucher-note strong { font-size: 15px; color: var(--bone); line-height: 1.4; }
.voucher-note-email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--voltage);
  word-break: break-all;
}
.voucher-note-sub { font-size: 12px; color: var(--steam); }

.btn-walking {
  background: var(--voltage);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.btn-walking::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: walking-sheen 2.4s ease-in-out infinite;
}
@keyframes walking-sheen { to { transform: translateX(100%); } }

.admin-link {
  position: fixed; bottom: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steam);
  opacity: 0.4;
  padding: 8px 12px;
}
.admin-link:hover { opacity: 1; color: var(--lagoon); }

/* ── Wizard ───────────────────────────────────────────────────────────────── */
.wizard-shell { gap: 16px; }
.wizard-progress {
  width: 100%; height: 3px;
  background: var(--hairline);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.wizard-progress-fill {
  display: block; height: 100%;
  background: var(--voltage);
  transition: width var(--t-slow);
}
.wizard-step-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lagoon);
}
.wizard-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--bone);
}
.wizard-sub {
  font-size: 15px;
  color: var(--steam);
}
.wizard-form {
  display: flex; flex-direction: column; gap: 18px;
  margin-top: 6px;
}
.wizard-actions {
  display: flex; gap: 10px;
  margin-top: 8px;
}
.wizard-actions .btn { flex: 1; }
.wizard-actions .btn-ghost { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }

.form-group {
  display: flex; flex-direction: column; gap: 6px;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steam);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  color: var(--bone);
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 10px 0;
  font-size: 17px;
  outline: none;
  transition: border-color var(--t-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--lagoon);
}
.form-group input::placeholder { color: var(--steam); opacity: 0.6; }
.form-hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--steam);
  opacity: 0.75;
  margin-top: 2px;
}
.form-optional {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--steam);
  opacity: 0.7;
  text-transform: none;
  margin-left: 4px;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.role-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font-body);
}
.role-chip:hover { border-color: var(--lagoon); }
.role-chip--active {
  background: rgba(45,177,148,0.12);
  border-color: var(--lagoon);
  color: var(--lagoon);
}
.role-emoji { font-size: 20px; line-height: 1; }
@media (max-width: 380px) {
  .role-grid { grid-template-columns: 1fr; }
}
.form-group select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--steam) 50%), linear-gradient(135deg, var(--steam) 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.form-group select option { background: var(--inkwell); color: var(--bone); }

.demo-fill-strip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 6px;
}
.demo-fill-strip span {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--steam);
}
.demo-fill-strip button {
  background: transparent;
  color: var(--lagoon);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: var(--t-fast);
}
.demo-fill-strip button:hover { border-color: var(--lagoon); color: var(--bone); }

/* ── Chips (interest selector) ───────────────────────────────────────────── */
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: var(--t-fast);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steam);
  user-select: none;
}
.chip input { display: none; }
.chip:has(input:checked) {
  background: var(--voltage);
  color: #FFFFFF;
  border-color: var(--voltage);
  font-weight: 700;
}
.chip:hover { color: var(--bone); border-color: var(--lagoon); }

.form-error {
  color: var(--coral);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-left: 2px solid var(--coral);
  background: rgba(255,90,71,0.08);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.form-error.hidden { display: none; }
.form-success {
  color: var(--lagoon);
  font-size: 13px;
  padding: 8px 12px;
  border-left: 2px solid var(--lagoon);
  background: rgba(0,155,168,0.08);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.form-success.hidden { display: none; }

/* ── Mission picker ──────────────────────────────────────────────────────── */
.picker-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral);
}
.picker-dot {
  width: 8px; height: 8px; background: var(--coral); border-radius: 50%;
  animation: pulse-dot 1.6s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(255,90,71,0.6);
}
.picker-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.picker-sub { color: var(--steam); font-size: 16px; }

.mission-tiles {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 8px;
}
.mission-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
  padding: 22px 22px;
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t-mid);
}
.mission-tile::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lagoon), transparent);
  opacity: 0;
  transition: var(--t-fast);
}
.mission-tile:hover {
  border-color: var(--lagoon);
  transform: translateY(-2px);
}
.mission-tile:hover::before { opacity: 1; }
.mission-tile-art {
  position: absolute; top: 16px; right: 16px;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.mt-wheel {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--teal), var(--lagoon), var(--voltage), var(--teal));
  position: relative;
}
.mt-wheel::after {
  content: ''; position: absolute; inset: 14px;
  background: var(--inkwell);
  border-radius: 50%;
}
.mission-tile:hover .mt-wheel { animation: mt-spin 1.6s linear infinite; }
@keyframes mt-spin { to { transform: rotate(360deg); } }

.mt-letter {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--voltage);
  font-style: italic;
}
.mission-tile:hover .mt-letter { animation: mt-letter-flip 1.5s linear infinite; }
@keyframes mt-letter-flip {
  0%   { content: 'A'; opacity: 1; }
  25%  { opacity: 0.2; }
  50%  { opacity: 1; }
  75%  { opacity: 0.2; }
  100% { opacity: 1; }
}

.mt-label {
  width: 38px; height: 28px;
  background: linear-gradient(135deg, var(--teal), var(--lagoon));
  border-radius: var(--r-sm);
  position: relative;
  overflow: hidden;
}
.mt-label::before {
  content: '';
  position: absolute; top: 4px; left: 4px; right: 4px;
  height: 2px;
  background: rgba(245,241,232,0.5);
}
.mt-label::after {
  content: '';
  position: absolute; top: 9px; left: 4px;
  width: 18px; height: 2px;
  background: rgba(245,241,232,0.4);
}
.mission-tile:hover .mt-label {
  background: linear-gradient(135deg, var(--teal) 0%, transparent 60%, var(--lagoon) 100%);
}

.mission-tile-name {
  font-family: var(--font-display);
  font-size: 26px; line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
  padding-right: 70px;
}
.mission-tile-desc {
  color: var(--steam);
  font-size: 14px;
  padding-right: 70px;
}
.mission-tile-go {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--voltage);
  margin-top: 4px;
}

/* ── Game shells ─────────────────────────────────────────────────────────── */
.game-shell { gap: 16px; }
.game-header {
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
}
.game-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.game-hint {
  color: var(--steam);
  font-size: 13px;
  text-align: center;
}

/* Wheel */
.wheel-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  padding: 14px 0;
}
.wheel-pointer {
  font-size: 28px;
  color: var(--voltage);
  margin-bottom: -14px;
  filter: drop-shadow(0 4px 6px rgba(45, 177, 148, 0.4));
}
#wheel-canvas {
  max-width: 100%;
  width: 360px;
  height: 360px;
}

/* Trivia */
.trivia-progress-bar {
  width: 100%; height: 3px;
  background: var(--hairline);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.trivia-progress-fill {
  height: 100%;
  background: var(--voltage);
  transition: width var(--t-slow);
}
.trivia-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--steam);
}
.trivia-card {
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.trivia-question {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.trivia-options {
  display: flex; flex-direction: column; gap: 10px;
}
.trivia-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  text-align: left;
  font-size: 15px;
  color: var(--bone);
  transition: var(--t-fast);
}
.trivia-option:hover:not(:disabled) {
  border-color: var(--lagoon);
  background: rgba(0,155,168,0.05);
}
.trivia-option .option-code {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lagoon);
}
.trivia-option.correct {
  border-color: var(--voltage);
  background: rgba(45, 177, 148, 0.08);
  color: var(--voltage);
}
.trivia-option.correct .option-code { color: var(--voltage); border-color: var(--voltage); }
.trivia-option.wrong {
  border-color: var(--coral);
  background: rgba(255,90,71,0.08);
  color: var(--coral);
}
.trivia-option.wrong .option-code { color: var(--coral); border-color: var(--coral); }
.trivia-explanation {
  font-size: 13px;
  color: var(--steam);
  border-left: 2px solid var(--lagoon);
  padding-left: 12px;
}
.trivia-explanation.hidden { display: none; }

/* Scratch */
.scratch-container {
  position: relative;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--inkwell);
  border: 1px solid var(--hairline);
}
#scratch-canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
  touch-action: none;
}
.scratch-prize-reveal {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--inkwell), var(--tideline));
}
.scratch-prize-reveal.hidden { display: none; }
.scratch-prize-reveal .big-emoji { font-size: 56px; }
.scratch-prize-reveal .prize-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--voltage);
}
.scratch-progress-wrap {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
}
.scratch-progress-bar {
  flex: 1; height: 3px;
  background: var(--hairline);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.scratch-progress-fill {
  height: 100%;
  background: var(--voltage);
  width: 0%;
  transition: width var(--t-fast);
}
#scratch-pct {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--steam);
}

/* ── Result screen ───────────────────────────────────────────────────────── */
#screen-result { background: var(--ink); position: relative; }
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 2;
}
.result-shell {
  position: relative; z-index: 3;
  gap: 16px;
}
.result-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--voltage);
}
.result-greet {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 5vw, 28px);
  color: var(--steam);
}
.result-prize-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 11vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--voltage);
  margin-bottom: 4px;
}

/* AWB Label — dark thermal-print surface, always legible regardless of theme */
.awb-label {
  background: #FFFFFF;
  color: var(--surface-dark);
  border-radius: var(--r-md);
  padding: 18px 18px;
  font-family: var(--font-mono);
  position: relative;
  box-shadow: 0 0 0 1px rgba(14,42,51,0.18), 0 18px 40px -22px rgba(14,42,51,0.4);
  overflow: hidden;
}
.awb-label::before,
.awb-label::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--surface-dark) 0 6px, transparent 6px 10px);
}
.awb-label::before { top: 0; }
.awb-label::after { bottom: 0; }
.awb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.awb-row--barcode { padding-bottom: 8px; border-bottom: 1px dashed rgba(14,42,51,0.3); margin-bottom: 6px; }
.awb-barcode {
  display: inline-block;
  width: 70px; height: 28px;
  background: repeating-linear-gradient(90deg, var(--surface-dark) 0 2px, transparent 2px 4px, var(--surface-dark) 4px 5px, transparent 5px 8px);
}
.awb-num {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.awb-key {
  display: inline-block;
  width: 50px;
  font-size: 10px;
  color: rgba(14,42,51,0.55);
}
.awb-val {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  flex: 1;
}
.awb-divider {
  height: 1px;
  background: rgba(14,42,51,0.25);
  border-top: 1px dashed rgba(14,42,51,0.35);
  margin: 8px 0;
  background-color: transparent;
}
.awb-contents-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(14,42,51,0.55);
  margin-bottom: 6px;
}
.awb-prize {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0;
}
.awb-prize--bonus {
  border-top: 1px dashed rgba(14,42,51,0.15);
  padding-top: 6px;
  margin-top: -4px;
}
.awb-prize-emoji { font-size: 32px; font-family: 'Apple Color Emoji', sans-serif; }
.awb-prize-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--surface-dark);
  line-height: 1.1;
}
.awb-row--stamp { justify-content: flex-end; padding-top: 8px; }
.awb-stamp {
  display: inline-block;
  border: 2px solid var(--coral);
  color: var(--coral);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  transform: rotate(-4deg);
}

/* Pitch */
.pitch-block {
  margin-top: 10px;
  padding: 18px 18px;
  background: var(--inkwell);
  border-left: 2px solid var(--voltage);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.pitch-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--steam);
}
.pitch-eyebrow em {
  font-style: normal;
  color: var(--voltage);
}
.pitch-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 14px;
}
.pitch-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--bone);
}
.pitch-list li::before {
  content: '▸';
  position: absolute; left: 0; top: 0;
  color: var(--voltage);
  font-weight: 700;
}

/* ── Queued ──────────────────────────────────────────────────────────────── */
.queued-shell { gap: 22px; align-items: stretch; }
.queued-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral);
}
.queued-dot {
  width: 8px; height: 8px; background: var(--coral); border-radius: 50%;
  animation: pulse-dot 1.6s ease-out infinite;
}
.queued-position {
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.queued-position span {
  color: var(--voltage);
  font-style: italic;
}
.queued-track {
  position: relative;
  width: 100%;
  height: 64px;
  margin: 6px 0;
}
.queued-rail {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--hairline) 0 8px, transparent 8px 14px);
}
.queued-parcel {
  position: absolute;
  top: 50%; left: 75%;
  transform: translate(-50%, -50%);
  width: 38px; height: 30px;
  background: linear-gradient(135deg, var(--teal), var(--lagoon));
  border-radius: var(--r-sm);
  box-shadow: 0 6px 18px -6px rgba(0,155,168,0.6);
  transition: left 1.2s var(--t-mid);
}
.queued-parcel::before {
  content: '';
  position: absolute; top: 4px; left: 4px; right: 4px;
  height: 2px;
  background: rgba(245,241,232,0.55);
}
.queued-flag {
  position: absolute;
  top: 50%; right: 0;
  transform: translate(50%, -50%);
  font-size: 24px;
}
.queued-hint {
  font-size: 18px;
  color: var(--bone);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}
.queued-fine {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steam);
}
.queued-ticker {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
}
.queued-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-slide 25s linear infinite;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--lagoon);
  margin: 0 14px;
}
.ticker-sep { color: var(--hairline); margin: 0 8px; }
@keyframes ticker-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Your-turn handoff ───────────────────────────────────────────────────── */
.turn-shell {
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 80vh;
  gap: 20px;
}
.turn-emoji {
  font-size: 64px;
  animation: turn-bob 1.4s ease-in-out infinite;
}
@keyframes turn-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.turn-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1;
  color: var(--voltage);
}
.turn-sub { color: var(--steam); }

/* ── Already played ──────────────────────────────────────────────────────── */
.already-emoji { font-size: 56px; text-align: center; }
.already-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.already-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tideline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--bone);
}
.already-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--voltage);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Net toast ───────────────────────────────────────────────────────────── */
.net-toast {
  position: fixed;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  color: var(--bone);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  z-index: 9999;
}
.net-toast.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   BOOTH SCREEN — Large-format display
   ═══════════════════════════════════════════════════════════════════════════ */

.booth-body {
  background: var(--ink);
  overflow: hidden;
}

.booth-bg {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  isolation: isolate; /* motifs can't escape this stacking context */
}
.booth-mesh {
  position: absolute; inset: 0;
  background: var(--gradient-mesh), var(--ink);
  animation: mesh-drift 22s ease-in-out infinite alternate;
}
.booth-parcels {
  position: absolute;
  inset: 0;
  z-index: 0;                /* always behind .booth-screen (z-index: 1) */
  pointer-events: none;
  overflow: hidden;
  /* Center safe zone: fade motifs out where headline + game stage live.
     Combined vertical band fade + a horizontal carve-out so motifs never
     drift behind the top-right QR badge (~28% of screen width on the right). */
  mask-image:
    linear-gradient(180deg,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 14%,
      rgba(0,0,0,0) 28%,
      rgba(0,0,0,0) 72%,
      rgba(0,0,0,1) 88%,
      rgba(0,0,0,1) 100%),
    radial-gradient(circle 220px at calc(100% - 130px) 100px,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 60%,
      rgba(0,0,0,1) 100%);
  -webkit-mask-image:
    linear-gradient(180deg,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 14%,
      rgba(0,0,0,0) 28%,
      rgba(0,0,0,0) 72%,
      rgba(0,0,0,1) 88%,
      rgba(0,0,0,1) 100%),
    radial-gradient(circle 220px at calc(100% - 130px) 100px,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 60%,
      rgba(0,0,0,1) 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

/* Booth-format logistics motifs — ambient, behind text */
.booth-motif {
  position: absolute;
  top: var(--y);
  left: -260px;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(14,42,51,0.08)) blur(0.4px);
  animation: booth-motif-drift var(--duration, 45s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.booth-motif svg { display: block; width: 100%; height: auto; }

.booth-motif--parcel-branded { width: 170px; opacity: 0.52; }
.booth-motif--parcel-plain   { width: 110px; opacity: 0.32; }
.booth-motif--awb-mini       { width: 160px; opacity: 0.48; }
.booth-motif--truck          { width: 200px; opacity: 0.55; }
.booth-motif--forklift       { width: 170px; opacity: 0.55; }

@keyframes booth-motif-drift {
  from { transform: translateX(0) translateY(0) scale(var(--scale, 1)) rotate(var(--rotate, 0deg)); }
  50%  { transform: translateX(50vw) translateY(-10px) scale(var(--scale, 1)) rotate(var(--rotate, 0deg)); }
  to   { transform: translateX(calc(100vw + 320px)) translateY(0) scale(var(--scale, 1)) rotate(var(--rotate, 0deg)); }
}

.booth-conveyor {
  position: absolute;
  left: 0; right: 0;
  top: var(--y);
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(0,155,168,0.18) 0 8px, transparent 8px 18px);
  pointer-events: none;
  opacity: 0.7;
}
.booth-conveyor::after {
  content: '';
  position: absolute;
  top: -4px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lagoon);
  box-shadow: 0 0 14px rgba(0,155,168,0.55);
  animation: booth-conveyor-dot 11s linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes booth-conveyor-dot {
  from { transform: translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateX(100vw); opacity: 0; }
}

.booth-screen {
  position: relative;
  z-index: 1;
  width: 100vw; min-height: 100vh;
  display: flex; flex-direction: column;
}
.booth-screen[hidden] { display: none; }
.spec-game[hidden],
.queue-pill[hidden],
.cel-walking[hidden] { display: none !important; }

.booth-brand-dock {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  pointer-events: none;
}
.booth-brand-dock::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 128px;
  height: 1px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(45, 181, 183, 0.55), transparent);
}
.booth-brand-logo {
  width: 118px;
  max-width: none;
  height: auto;
  display: block;
  opacity: 0.98;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.06));
}

/* ── Booth: Idle ─────────────────────────────────────────────────────────── */
.booth-idle-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 60px 80px 0;
}
.booth-idle-left { display: flex; flex-direction: column; gap: 28px; }
.booth-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lagoon);
}
.booth-eyebrow-dot {
  width: 10px; height: 10px;
  background: var(--voltage);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--voltage);
  animation: pulse-dot 1.6s ease-out infinite;
}
.booth-display {
  font-family: var(--font-display);
  font-size: clamp(80px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--bone);
}
.booth-display-line { display: block; }
.booth-rotator {
  display: inline-block;
  font-style: italic;
  color: var(--voltage);
  font-weight: 500;
  transition: var(--t-mid);
}
.booth-rotator--out {
  opacity: 0;
  transform: translateY(-30%);
}
.booth-rotator--in {
  animation: rotator-in 0.6s var(--t-mid);
}
@keyframes rotator-in {
  from { opacity: 0; transform: translateY(40%); }
  to   { opacity: 1; transform: translateY(0); }
}

.booth-services {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 14px;
}
.booth-services li {
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.booth-service-mark {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--lagoon);
  padding-top: 4px;
}
.booth-services strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 600;
  color: var(--bone);
  margin-bottom: 2px;
}
.booth-services em {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--steam);
}

/* QR block (booth-large) */
.booth-idle-right {
  display: flex; justify-content: center; align-items: center;
}
.booth-qr-block {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.booth-qr-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.22em;
  color: var(--voltage);
}
.booth-qr-frame {
  position: relative;
  background: #FFFFFF;
  padding: 18px;
  border-radius: var(--r-md);
  box-shadow: 0 0 40px -10px rgba(0,155,168,0.45);
}
.booth-qr-img-lg {
  width: 320px; height: 320px;
  display: block;
}
.booth-qr-pulse-ring {
  position: absolute; inset: -4px;
  border: 2px solid var(--voltage);
  border-radius: var(--r-md);
  opacity: 0;
  animation: qr-pulse 2.2s ease-out infinite;
}
.booth-qr-pulse-ring--delay { animation-delay: 1.1s; }
@keyframes qr-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0; }
}
.booth-qr-meta {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.booth-qr-url-lg {
  font-family: var(--font-mono);
  font-size: 16px; letter-spacing: 0.06em;
  color: var(--bone);
}
.booth-qr-sub-lg {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steam);
}

/* Ticker */
.booth-ticker {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  overflow: hidden;
  margin-top: 60px;
  width: 100%;
}
.booth-ticker--small { padding: 12px 0; margin-top: 0; }
.booth-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-slide 35s linear infinite;
}
.booth-ticker .ticker-item {
  font-family: var(--font-mono);
  font-size: 18px; letter-spacing: 0.06em;
  color: var(--lagoon);
  margin: 0 18px;
}
.booth-ticker--small .ticker-item { font-size: 14px; }
.booth-ticker .ticker-sep { color: var(--hairline); margin: 0 12px; font-size: 16px; }

/* ── Booth: Spectator ────────────────────────────────────────────────────── */
.booth-spectator {
  padding: 50px 80px 0;
  display: flex; flex-direction: column;
  gap: 32px;
  position: relative;
}

/* QR corner badge — fixed to top-right of spectator screen */
.spec-qr-corner {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
  background: #FFFFFF;
  border: 2px solid var(--lagoon);
  border-radius: 12px;
  padding: 10px 10px 8px;
  box-shadow: 0 0 0 1px var(--hairline), 0 8px 30px rgba(14,42,51,0.15);
}
.spec-qr-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--lagoon);
  text-align: center;
}
.spec-qr-img {
  width: 110px;
  height: 110px;
  display: block;
  border-radius: 6px;
  image-rendering: pixelated;
}
/* ── Center hero — big during registering/picking ─── */
.spec-center-hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 120px;
  pointer-events: none;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Waiting state (user hasn't registered yet) ── */
.spec-hero-waiting {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  max-width: 860px; width: 100%;
}
.spec-hero-typing {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 6px;
}
.spec-typing-dot {
  width: 14px; height: 14px;
  background: var(--lagoon);
  border-radius: 50%;
  animation: typing-bounce 1.1s ease-in-out infinite;
}
.spec-typing-dot:nth-child(2) { animation-delay: 0.2s; background: var(--teal); }
.spec-typing-dot:nth-child(3) { animation-delay: 0.4s; background: var(--voltage); }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%           { transform: translateY(-14px); opacity: 1; }
}
.spec-hero-waiting-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--steam);
  margin-bottom: 32px;
}

/* Promo rotator */
.spec-promo-rotator {
  position: relative;
  width: 100%;
  height: 160px;
  margin-bottom: 14px;
}
.spec-promo {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.spec-promo--active {
  opacity: 1;
  transform: translateY(0);
}
.spec-promo-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--steam);
}
.spec-promo strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--bone);
  font-style: italic;
}
.spec-promo span {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--steam);
  max-width: 620px;
  line-height: 1.4;
}
.spec-promo-dots {
  display: flex; gap: 6px; justify-content: center;
}
.spec-promo-dot {
  width: 20px; height: 3px;
  background: var(--hairline);
  border-radius: var(--r-pill);
  transition: background 0.3s;
}
.spec-promo-dot--active { background: var(--voltage); }

/* ── Named state (user registered, picking mission) ── */
.spec-hero-named {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.spec-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.spec-hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 10vw, 148px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--bone);
  text-wrap: balance;
  margin-bottom: 10px;
}
.spec-hero-company {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 26px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 20px;
}
.spec-hero-status {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 34px);
  color: var(--steam);
  animation: status-pulse 3s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* Collapsed state — hero fades + scales down, corner card takes over */
.spec-center-hero--collapsed {
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}

/* Corner header — fully hidden (not just transparent) until game starts,
   otherwise its eyebrow / underline / hype text leak through the center hero */
.booth-spectator-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  pointer-events: none;
  transition:
    opacity 0.55s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.55s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0.55s;
}
.booth-spectator-header.spec-header--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.55s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.55s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0s;
}
.booth-player-card {
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  box-shadow: 0 12px 40px -22px rgba(14,42,51,0.3);
}
.booth-player-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.18em;
  color: var(--coral);
}
.booth-player-name {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--bone);
}
.booth-player-meta {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.06em;
  color: var(--steam);
  text-transform: uppercase;
}
.booth-player-sep { color: var(--hairline); }
.booth-mission-badge {
  align-self: flex-start;
  margin-top: 10px;
  padding: 6px 14px;
  background: var(--voltage);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em;
  border-radius: var(--r-pill);
  font-weight: 700;
}
.booth-hype {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--lagoon);
  text-align: right;
  max-width: 360px;
  line-height: 1.2;
  position: relative;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: 0 12px 40px -22px rgba(14,42,51,0.3);
}
.booth-spectator-stage {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.spec-game { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Spectator wheel */
.spec-wheel { position: relative; }
.spec-wheel-pointer {
  font-size: 42px;
  color: var(--voltage);
  filter: drop-shadow(0 4px 8px rgba(45, 177, 148, 0.5));
  margin-bottom: -12px;
}
#spec-wheel-canvas { width: 540px; height: 540px; max-width: 90vmin; max-height: 90vmin; }
.spec-wheel-status {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lagoon);
  margin-top: 14px;
}

/* Spectator trivia */
.spec-trivia { gap: 22px; }
.spec-trivia-meta {
  display: flex; justify-content: space-between; width: 100%;
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lagoon);
}
.spec-trivia-score { color: var(--voltage); }
.spec-trivia-question {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-align: center;
}
.spec-trivia-options {
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.spec-trivia-option {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font-size: 18px;
  color: var(--bone);
}
.spec-option-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--lagoon);
}
.spec-trivia-option.spec-correct {
  border-color: var(--voltage);
  background: rgba(45, 177, 148, 0.1);
  color: var(--voltage);
}
.spec-trivia-option.spec-correct .spec-option-letter { color: var(--voltage); border-color: var(--voltage); }
.spec-trivia-option.spec-wrong {
  border-color: var(--coral);
  background: rgba(255,90,71,0.1);
  color: var(--coral);
}
.spec-trivia-option.spec-wrong .spec-option-letter { color: var(--coral); border-color: var(--coral); }

/* Spectator scratch */
.spec-scratch { width: 100%; }
.spec-label {
  position: relative;
  width: 100%;
  background: #FFFFFF;
  color: var(--surface-dark);
  border-radius: var(--r-lg);
  padding: 32px 40px;
  font-family: var(--font-mono);
  overflow: hidden;
}
.spec-label-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 22px;
  border-bottom: 1px dashed rgba(6,20,26,0.3);
  padding-bottom: 14px;
}
.spec-label-tag {
  background: var(--surface-dark);
  color: var(--voltage);
  padding: 4px 12px;
  border-radius: var(--r-sm);
  font-weight: 700;
}
.spec-label-body {
  display: flex; align-items: center; gap: 24px;
  padding: 28px 0;
  position: relative;
  z-index: 1;
}
.spec-label-prize-emoji { font-size: 64px; }
.spec-label-prize-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--surface-dark);
  line-height: 1;
}
.spec-label-mask {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--teal), var(--lagoon));
  z-index: 2;
  transition: opacity var(--t-fast);
}
.spec-label-mask::before {
  content: 'AWB · 2026 · BOOTH · FAST';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,241,232,0.5);
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: 0.18em;
}
.spec-label-meter {
  position: relative;
  margin-top: 22px;
  height: 6px;
  background: rgba(6,20,26,0.1);
  border-radius: var(--r-pill);
  overflow: hidden;
  z-index: 3;
}
.spec-label-fill {
  height: 100%;
  background: var(--surface-dark);
  transition: width var(--t-fast);
}
.spec-label-pct {
  position: absolute;
  top: -28px; right: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--surface-dark);
  z-index: 4;
}

/* Spectator footer */
.booth-spectator-footer {
  display: flex; flex-direction: column; gap: 16px;
  padding-bottom: 0;
}
.booth-queue-pill {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: var(--inkwell);
  border: 1px solid var(--coral);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral);
}
.booth-queue-dot {
  width: 8px; height: 8px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse-dot 1.6s ease-out infinite;
}

/* ── Booth: Scorecard overlay ────────────────────────────────────────────── */
.booth-scorecard {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 20, 26, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scorecard-in 0.35s cubic-bezier(.22,.68,0,1.3);
}
.booth-scorecard[hidden] { display: none; }
@keyframes scorecard-in {
  from { opacity: 0; transform: scale(0.93) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.booth-scorecard-inner {
  width: min(680px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #0f2d39 0%, #071520 100%);
  border: 1.5px solid rgba(45, 190, 209, 0.35);
  border-radius: 20px;
  padding: 32px 36px 36px;
  box-shadow: 0 8px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(232,255,89,0.08);
}
.booth-scorecard-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.booth-scorecard-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--aqua, #2DBED1);
  text-transform: uppercase;
  flex-basis: 100%;
}
.booth-scorecard-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--voltage, #E8FF59);
  margin: 0;
  flex: 1;
  text-shadow: 0 0 24px rgba(232,255,89,0.4);
}
.booth-scorecard-close {
  margin-left: auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.booth-scorecard-close:hover { background: rgba(255,255,255,0.18); }
/* Per-game best row */
.booth-scorecard-bests {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.booth-scorecard-best-chip {
  background: rgba(45,190,209,0.12);
  border: 1px solid rgba(45,190,209,0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.booth-scorecard-best-chip strong {
  color: #E8FF59;
  font-weight: 800;
}
/* Top-10 list */
.booth-scorecard-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.booth-scorecard-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 14px;
  transition: background 0.2s;
}
.booth-scorecard-row:nth-child(1) { background: rgba(232,255,89,0.09); border-color: rgba(232,255,89,0.35); }
.booth-scorecard-row:nth-child(2) { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
.booth-scorecard-row:nth-child(3) { background: rgba(205,127,50,0.09); border-color: rgba(205,127,50,0.3); }
.booth-scorecard-rank {
  font-size: 15px;
  font-weight: 900;
  color: rgba(255,255,255,0.45);
  text-align: center;
}
.booth-scorecard-row:nth-child(1) .booth-scorecard-rank { color: #E8FF59; }
.booth-scorecard-row:nth-child(2) .booth-scorecard-rank { color: #C0C8D0; }
.booth-scorecard-row:nth-child(3) .booth-scorecard-rank { color: #CD7F32; }
.booth-scorecard-player { font-size: 14px; font-weight: 700; color: #fff; }
.booth-scorecard-company { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 400; }
.booth-scorecard-game {
  font-size: 11px;
  color: rgba(45,190,209,0.9);
  white-space: nowrap;
  text-align: right;
}
.booth-scorecard-score {
  font-size: 18px;
  font-weight: 900;
  color: #E8FF59;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(232,255,89,0.5);
}
.booth-scorecard-empty {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  padding: 24px 0;
}
/* FAB trigger button */
.booth-scorecard-fab {
  position: fixed;
  bottom: 72px;
  right: 20px;
  z-index: 90;
  background: linear-gradient(135deg, #E8FF59, #b8cc00);
  color: #071520;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5), 0 0 0 2px rgba(232,255,89,0.3);
  letter-spacing: 0.04em;
  user-select: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.booth-scorecard-fab:hover { transform: scale(1.06); box-shadow: 0 6px 24px rgba(0,0,0,0.6); }

/* ── Booth: Celebration ──────────────────────────────────────────────────── */
.booth-celebration {
  background:
    radial-gradient(circle at 50% 30%, rgba(45,177,148,0.22) 0%, transparent 60%),
    var(--ink);
  position: relative;
  animation: celebration-flash 0.4s ease-out;
}
@keyframes celebration-flash {
  0%   { background-color: var(--voltage); }
  100% { background-color: var(--ink); }
}
#booth-confetti {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.booth-celebration-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 100px;
  align-items: center;
}
.booth-celebration-left { display: flex; flex-direction: column; gap: 20px; }
.booth-celebration-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.22em;
  color: var(--voltage);
}
.booth-celebration-name {
  font-family: var(--font-display);
  font-size: clamp(60px, 7.5vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 800;
  font-style: italic;
  color: var(--bone);
}
.booth-celebration-company {
  font-family: var(--font-mono);
  font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lagoon);
}
.booth-celebration-pitch {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--inkwell);
  border-left: 3px solid var(--voltage);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  max-width: 540px;
}
.booth-celebration-pitch li {
  position: relative;
  padding-left: 22px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--bone);
}
.booth-celebration-pitch li::before {
  content: '▸';
  position: absolute; left: 0; top: 0;
  color: var(--voltage);
}
.booth-celebration-walking {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  align-self: flex-start;
  padding: 10px 18px;
  background: var(--coral);
  color: var(--bone);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700;
  animation: walking-pulse 1.4s ease-in-out infinite;
}
@keyframes walking-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* Celebration countdown pill */
.cel-countdown {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  min-height: 28px;
}

/* AWB Label — XL booth variant */
.booth-awb-label--xl {
  padding: 32px 36px;
  font-size: 20px;
}
.booth-awb-label--xl .awb-row { padding: 8px 0; font-size: 16px; }
.booth-awb-label--xl .awb-num { font-size: 18px; }
.booth-awb-label--xl .awb-key { width: 80px; font-size: 14px; }
.booth-awb-label--xl .awb-val { font-size: 18px; }
.booth-awb-label--xl .awb-prize-emoji { font-size: 64px; }
.booth-awb-label--xl .awb-prize-name { font-size: clamp(36px, 4vw, 56px); }
.booth-awb-label--xl .awb-stamp { font-size: 16px; padding: 6px 16px; }
.booth-awb-label--xl .awb-barcode { width: 110px; height: 40px; }

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN PANEL (preserved layout, restyled)
   ═══════════════════════════════════════════════════════════════════════════ */

.logo-small { height: 36px; width: auto; }

.admin-login-wrap {
  align-items: stretch;
  text-align: center;
  gap: 20px;
}
.admin-login-wrap .logo-small { margin: 0 auto; }

.admin-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--hairline);
  background: var(--inkwell);
}
.admin-topbar-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.admin-topbar-right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.live-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steam);
}

.admin-tabs {
  display: flex; gap: 6px;
  border-bottom: 1px solid var(--hairline);
  padding: 0 22px;
}
.tab-btn {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--steam);
  border-bottom: 2px solid transparent;
}
.tab-btn.active {
  color: var(--voltage);
  border-bottom-color: var(--voltage);
}
.tab-content { display: none; padding: 22px; }
.tab-content.active { display: block; }

.admin-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.admin-section-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.prizes-list, .questions-list {
  display: flex; flex-direction: column; gap: 8px;
}
.prizes-list .row, .questions-list .row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
.prizes-list .row:hover, .questions-list .row:hover { border-color: var(--lagoon); }

.players-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.players-stats .stat {
  flex: 1; min-width: 120px;
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px;
}
.players-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--voltage);
}
.players-stats .stat span {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steam);
}

.table-wrap { overflow-x: auto; }
.players-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.players-table th, .players-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.players-table th {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steam);
}

/* Admin: hint + section actions */
.admin-hint {
  background: #FFF8E1;
  border: 1px solid #F5C451;
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--bone);
  margin-bottom: 14px;
}
.admin-section-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-search {
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-md);
  background: #FFFFFF;
  font-size: 13px;
  min-width: 240px;
}
.admin-search:focus { border-color: var(--voltage); outline: none; }

/* Admin: prize stock pill */
.prize-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
.prize-swatch {
  width: 14px; height: 36px; border-radius: 4px;
  flex-shrink: 0;
}
.prize-info { flex: 1; min-width: 0; }
.prize-info strong { display: block; font-size: 15px; }
.prize-info small { color: var(--steam); font-family: var(--font-mono); font-size: 11px; }
.prize-stock {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  background: rgba(45,177,148,0.12);
  color: var(--voltage);
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.prize-stock--out {
  background: rgba(226,90,74,0.15);
  color: #B8392B;
}
.prize-actions { display: flex; gap: 6px; }

/* Admin: booth control */
.booth-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.booth-control-card {
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.booth-control-card--danger {
  border-color: rgba(226,90,74,0.4);
  background: rgba(226,90,74,0.04);
}
.bc-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steam);
}
.bc-mode {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  color: var(--bone);
}
.bc-sub { font-size: 13px; color: var(--steam); }
.bc-empty { font-size: 13px; color: var(--steam); font-style: italic; }
.bc-empty.hidden, .bc-active.hidden { display: none; }
.bc-active { display: flex; flex-direction: column; gap: 6px; }
.bc-active-name { font-size: 18px; font-weight: 700; }
.bc-active-meta { font-size: 13px; color: var(--steam); }
.bc-active-stage, .bc-active-heartbeat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steam);
}
.bc-queue { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.bc-queue-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 6px;
  font-size: 12px;
}
.bc-queue-pos {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--voltage);
  min-width: 28px;
}
.bc-queue-id {
  font-family: var(--font-mono);
  color: var(--steam);
  flex: 1;
}
.bc-queue-age { font-family: var(--font-mono); font-size: 10px; color: var(--steam); }
.bc-help { font-size: 12px; color: var(--steam); margin-bottom: 4px; }

.btn-block { width: 100%; }

/* Admin: voucher list */
.voucher-list { display: flex; flex-direction: column; gap: 8px; }
.voucher-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  border-left: 4px solid #F5C451;
  border-radius: var(--r-md);
}
.voucher-item--sent {
  border-left-color: var(--voltage);
  background: rgba(45,177,148,0.05);
}
.voucher-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.voucher-info strong { font-size: 15px; }
.voucher-email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--voltage);
  text-decoration: none;
}
.voucher-email:hover { text-decoration: underline; }
.voucher-info small { color: var(--steam); font-size: 11px; }
.voucher-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--steam);
  white-space: nowrap;
}
.voucher-item--sent .voucher-status { color: var(--voltage); }

@media (max-width: 600px) {
  .voucher-item { grid-template-columns: 1fr; }
  .admin-section-actions { flex-direction: column; align-items: stretch; }
  .admin-search { min-width: 0; }
}

.settings-card {
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
}
.settings-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin-bottom: 14px;
}
.settings-card form { display: flex; flex-direction: column; gap: 14px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6,20,26,0.7);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--inkwell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Hidden ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.required { color: var(--coral); }

/* ═══════════════════════════════════════════════════════════════════════════
   PHONE BACKGROUND SHOWCASE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Subtle isometric grid behind everything */
.phone-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(35,181,183,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,181,183,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
}

/* Logistics flow — drifting motifs (parcels, AWB labels, courier trucks, forklifts) */
.phone-parcels {
  position: absolute;
  inset: 0;
  z-index: 0;                /* ALWAYS behind .screen (z-index: 1) */
  pointer-events: none;
  overflow: hidden;
  /* Fade motifs out behind the centered text/form column so it stays readable */
  mask-image: linear-gradient(180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 22%,
    rgba(0,0,0,0) 38%,
    rgba(0,0,0,0) 62%,
    rgba(0,0,0,1) 78%,
    rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 22%,
    rgba(0,0,0,0) 38%,
    rgba(0,0,0,0) 62%,
    rgba(0,0,0,1) 78%,
    rgba(0,0,0,1) 100%);
}

.phone-motif {
  position: absolute;
  top: var(--y);
  left: -180px;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(14,42,51,0.06)) blur(0.4px);
  animation: phone-motif-drift var(--duration, 40s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.phone-motif svg { display: block; width: 100%; height: auto; }

.phone-motif--parcel-branded { width: 110px; opacity: 0.45; }
.phone-motif--parcel-plain   { width: 76px;  opacity: 0.32; }
.phone-motif--awb-mini       { width: 100px; opacity: 0.42; }
.phone-motif--truck          { width: 130px; opacity: 0.50; }
.phone-motif--forklift       { width: 110px; opacity: 0.50; }

@keyframes phone-motif-drift {
  from { transform: translateX(0) translateY(0) scale(var(--scale, 1)) rotate(var(--rotate, 0deg)); }
  50%  { transform: translateX(50vw) translateY(-6px) scale(var(--scale, 1)) rotate(var(--rotate, 0deg)); }
  to   { transform: translateX(calc(100vw + 220px)) translateY(0) scale(var(--scale, 1)) rotate(var(--rotate, 0deg)); }
}

/* Conveyor belt lines: thin teal dashed line with sliding dots */
.phone-conveyor {
  position: absolute;
  left: 0; right: 0;
  top: var(--y);
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(0,155,168,0.18) 0 6px, transparent 6px 14px);
  pointer-events: none;
  opacity: 0.7;
}
.phone-conveyor::after {
  content: '';
  position: absolute;
  top: -3px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lagoon);
  box-shadow: 0 0 10px rgba(0,155,168,0.5);
  animation: conveyor-dot 9s linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes conveyor-dot {
  from { transform: translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateX(100vw); opacity: 0; }
}

/* Side rails — hidden on mobile, shown on tablet+ */
.phone-rail {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  display: none; /* mobile-first hidden */
  flex-direction: column;
  gap: 14px;
  z-index: 1;
  pointer-events: none; /* decorative — wizard owns clicks */
}
.phone-rail--left  { left: 32px; }
.phone-rail--right { right: 32px; }

@media (min-width: 1100px) {
  .phone-rail { display: flex; }
}

.rail-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px 18px;
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px -20px rgba(14,42,51,0.35);
}
.rail-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lagoon), transparent);
  opacity: 0.4;
}
.rail-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steam);
  margin-bottom: 8px;
}
.rail-card-figure {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--voltage);
  font-style: italic;
}
.rail-card-label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--bone);
  margin-top: 4px;
}
.rail-card-foot {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--lagoon);
}

/* Markets list */
.rail-markets {
  list-style: none;
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.rail-markets li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(29,70,82,0.5);
  font-size: 13px;
  color: var(--bone);
}
.rail-markets li:last-child { border-bottom: 0; }
.rail-flag { font-size: 18px; }
.rail-markets em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--voltage);
}

/* Couriers grid */
.rail-courier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.rail-courier-grid span {
  text-align: center;
  padding: 8px 4px;
  background: var(--tideline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--lagoon);
}

/* Rotator */
.rail-rotator {
  position: relative;
  height: 84px;
  margin-top: 8px;
}
.rail-rotator-slide {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.rail-rotator-slide--active {
  opacity: 1;
  transform: translateY(0);
}
.rail-rotator-slide strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  color: var(--voltage);
  line-height: 1;
}
.rail-rotator-slide span {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--bone);
  line-height: 1.4;
}
.rail-rotator-dots {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
.rail-rotator-dot {
  width: 16px; height: 2px;
  background: var(--hairline);
  border-radius: var(--r-pill);
  transition: background 0.3s;
}
.rail-rotator-dot--active { background: var(--voltage); }

/* Vertical mini ticker */
.rail-mini-ticker {
  position: relative;
  height: 28px;
  overflow: hidden;
  margin-top: 8px;
}
.rail-mini-ticker-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: rail-ticker-up 18s linear infinite;
}
.rail-mini-ticker-track span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--lagoon);
  height: 28px;
  display: flex;
  align-items: center;
  flex: 0 0 28px;
}
@keyframes rail-ticker-up {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-180px); } /* 5 items × 36px gap-adjusted */
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .phone-mesh, .booth-mesh { animation: none !important; }
  .booth-parcels, .phone-parcels { display: none !important; }
  .phone-conveyor::after { display: none !important; }
  .rail-mini-ticker-track { animation-duration: 60s !important; }
  .rail-rotator-slide { transition: none !important; }
  .booth-ticker-track, .queued-ticker-track { animation-duration: 60s !important; }
  .booth-rotator--out { opacity: 1 !important; transform: none !important; }
  .btn-walking::after { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE TWEAKS — booth screen falls back gracefully if ever rendered narrow
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .booth-brand-dock {
    top: 14px;
    right: 14px;
    padding: 0;
  }
  .booth-brand-logo { width: 98px; }
  .booth-idle-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 22px 0;
  }
  .booth-display { font-size: clamp(48px, 12vw, 72px); }
  .booth-spectator { padding: 28px 22px 0; }
  .booth-spectator-header { grid-template-columns: 1fr; gap: 14px; }
  .booth-hype { text-align: left; max-width: none; }
  .spec-trivia-options { grid-template-columns: 1fr; }
  .booth-celebration-grid { grid-template-columns: 1fr; padding: 32px 22px; gap: 28px; }
  .booth-qr-img-lg { width: 220px; height: 220px; }
}

@media (max-width: 480px) {
  .phone-shell { padding: 22px 18px 56px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATCH THE COD — mission tile art + phone game + booth spectator
   ═══════════════════════════════════════════════════════════════════════════ */

/* Mission tile art for COD */
.mission-tile-art--cod {
  background: radial-gradient(circle at 30% 30%, rgba(245,196,81,0.18), transparent 70%);
}
.mt-cash {
  font-size: 30px;
  display: inline-block;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.25));
}
.mission-tile:hover .mt-cash {
  animation: mt-cash-shake 0.9s ease-in-out infinite;
}
@keyframes mt-cash-shake {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-4px) rotate(8deg); }
}

.mission-tile-art--pack {
  background: radial-gradient(circle at 35% 25%, rgba(255,123,84,0.22), transparent 68%);
}
.mt-pack {
  position: relative;
  width: 74px;
  height: 58px;
}
.mt-pack-box {
  position: absolute;
  border-radius: 8px;
  border: 2px solid rgba(6,20,26,0.7);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}
.mt-pack-box--a {
  width: 32px;
  height: 20px;
  left: 4px;
  top: 24px;
  background: #F5C451;
}
.mt-pack-box--b {
  width: 28px;
  height: 18px;
  left: 28px;
  top: 8px;
  background: #2DB194;
}
.mt-pack-box--c {
  width: 26px;
  height: 18px;
  left: 42px;
  top: 28px;
  background: #FF7B54;
}
.mission-tile:hover .mt-pack-box--a { transform: translateY(-2px) rotate(-4deg); }
.mission-tile:hover .mt-pack-box--b { transform: translateY(-5px) rotate(5deg); }
.mission-tile:hover .mt-pack-box--c { transform: translateY(-3px) rotate(6deg); }

/* Phone — game shell */
.cod-shell { gap: 14px; }
.cod-hud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
}
.cod-hud-block {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: rgba(14, 42, 51, 0.55);
}
.cod-hud-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--steam);
}
.cod-hud-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--bone, #F7FBFA);
}
.cod-hud-combo {
  position: absolute;
  top: -10px; right: 10px;
  background: #F5C451;
  color: #0E2A33;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(245,196,81,0.4);
  animation: cod-combo-pulse 1s ease-in-out infinite;
}
@keyframes cod-combo-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.cod-stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #06141A;
  aspect-ratio: 340 / 480;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  touch-action: none;
}
#cod-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}
.cod-toast {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 20, 26, 0.85);
  border: 2px solid var(--voltage);
  color: var(--voltage);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  pointer-events: none;
  animation: cod-toast-in 0.2s ease-out;
}
@keyframes cod-toast-in {
  from { transform: translate(-50%, -8px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}

.cod-start-btn {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px 18px;
  background: rgba(6, 20, 26, 0.82);
  border: none;
  border-radius: var(--r-lg);
  color: var(--bone, #F7FBFA);
  font-family: var(--font-display);
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.cod-start-btn::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 2px dashed var(--voltage);
  border-radius: var(--r-lg);
  pointer-events: none;
  opacity: 0.7;
}
.cod-start-btn:active { background: rgba(45, 177, 148, 0.18); }
.cod-start-emoji { font-size: 44px; }
.cod-start-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
}
.cod-start-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steam);
  text-align: center;
}

/* ─── Pack the Truck — Phone ───────────────────────────────────────────── */
.pack-shell { gap: 10px; }
.pack-ops-panel,
.pack-bay-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(45, 190, 209, 0.18);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(10, 28, 36, 0.9) 0%, rgba(7, 20, 26, 0.84) 100%);
  box-shadow: 0 14px 30px rgba(7, 20, 26, 0.18);
}
.pack-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pack-section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #F5C451;
}
.pack-section-title {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bone, #F7FBFA);
}
.pack-section-note {
  max-width: 132px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-align: right;
  color: #9FB7BC;
}
.pack-hud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pack-hud-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 8px;
  border: 1px solid rgba(45, 190, 209, 0.18);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}
.pack-hud-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #9FB7BC;
}
.pack-hud-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--bone, #F7FBFA);
}
.pack-hud-block--warn .pack-hud-value { color: #FF7B54; }
.pack-game-area {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.pack-current-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(45, 190, 209, 0.16);
  background: linear-gradient(180deg, rgba(24, 59, 75, 0.84) 0%, rgba(14, 37, 48, 0.72) 100%);
}
.pack-logistics-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pack-logistics-pill:first-child {
  grid-column: 1 / -1;
}
.pack-logistics-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(45, 190, 209, 0.22);
  border-radius: var(--r-md);
  background: rgba(7, 20, 26, 0.5);
  min-width: 0;
}
.pack-logistics-pill span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #9FB7BC;
}
.pack-logistics-pill strong {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--bone, #F7FBFA);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pack-item-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.pack-item-prompt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #E8FF59;
  text-align: center;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232, 255, 89, 0.35);
  background: rgba(232, 255, 89, 0.08);
}
.pack-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(45, 190, 209, 0.26);
  background: linear-gradient(135deg, rgba(28, 71, 88, 0.92) 0%, rgba(18, 46, 58, 0.82) 100%);
  transition: background 0.22s ease, border-color 0.22s ease;
}
.pack-item-emoji {
  font-size: 30px;
  flex: none;
  width: 42px;
  text-align: center;
}
.pack-item-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pack-item-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  word-break: break-word;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.pack-item-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.pack-toast {
  text-align: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid #FF7B54;
  color: #FF7B54;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(6, 20, 26, 0.9);
  pointer-events: none;
  animation: cod-toast-in 0.15s ease-out;
}
.pack-bay {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.pack-col-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--r-md);
  padding: 6px 6px 0;
  border: 2px solid transparent;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease;
}
.pack-col-wrap:active { transform: scale(0.95); }
.pack-col-wrap.is-available {
  border-color: rgba(232, 255, 89, 0.55);
  background: rgba(232, 255, 89, 0.06);
}
.pack-col-wrap.is-full {
  border-color: rgba(255, 123, 84, 0.4);
  opacity: 0.55;
}
@keyframes pack-shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-5px); }
  40%  { transform: translateX(5px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
.pack-shake { animation: pack-shake 0.4s ease; }
.pack-col-cells {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}
.pack-cell {
  flex: 1;
  border-radius: 7px;
  border: 1.5px dashed rgba(45, 190, 209, 0.26);
  background: rgba(18, 46, 58, 0.62);
  min-height: 0;
  transition: background 0.18s ease;
}
.pack-cell.is-filled {
  border: 1.5px solid rgba(6, 20, 26, 0.35);
}
.pack-col-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 4px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(45, 190, 209, 0.34);
  background: rgba(10, 28, 36, 0.8);
  color: var(--bone, #F7FBFA);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
.pack-col-wrap.is-available .pack-col-btn {
  background: rgba(232, 255, 89, 0.18);
  border-color: #E8FF59;
  color: #E8FF59;
}
.pack-col-btn.is-full {
  border-color: rgba(255, 123, 84, 0.5);
  opacity: 0.55;
}
/* Column button inner layout */
.pack-col-btn {
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px;
}
.pack-btn-flag {
  font-size: 15px;
  line-height: 1;
}
.pack-btn-city {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.pack-btn-count {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.8;
  line-height: 1;
}
/* Target (correct destination) column glows */
.pack-col-wrap.is-target .pack-col-btn {
  background: rgba(232,255,89,0.20);
  border-color: #E8FF59;
  color: #E8FF59;
  animation: pack-target-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes pack-target-pulse {
  from { box-shadow: 0 0 8px rgba(232,255,89,0.25); }
  to   { box-shadow: 0 0 24px rgba(232,255,89,0.65); }
}
/* Start overlay city row */
.pack-start-cities {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 8px 6px;
  background: rgba(7,20,26,0.6);
  border-radius: var(--r-md);
  border: 1px solid rgba(45,190,209,0.18);
  gap: 2px;
}
.pack-start-cities span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--bone,#F7FBFA);
  text-align: center;
  flex: 1;
  letter-spacing: 0.02em;
}
.pack-start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 20, 26, 0.95);
  border-radius: var(--r-lg);
  z-index: 10;
  padding: 14px;
}
.pack-start-overlay[hidden],
.pack-toast[hidden] { display: none !important; }
.pack-start-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  padding: 20px 18px;
  background: rgba(18,46,58,0.92);
  border: 2px solid rgba(45,190,209,0.4);
  border-radius: var(--r-lg);
}
.pack-start-hero { font-size: 48px; line-height: 1; }
.pack-start-headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #E8FF59;
  letter-spacing: -0.02em;
  text-align: center;
}
.pack-start-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-align: center;
  letter-spacing: 0.04em;
}
.pack-start-tagline strong { color: #F5C451; }
.pack-start-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.pack-start-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(7,20,26,0.6);
  border-radius: var(--r-md);
  border-left: 3px solid rgba(45,190,209,0.5);
}
.pack-start-step-num {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2DBED1;
  color: #07141A;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.pack-start-step span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #FFFFFF;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.pack-start-btn {
  width: 100%;
  padding: 14px 20px;
  background: #2DBED1;
  border: none;
  border-radius: var(--r-md);
  color: #07141A;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.08s ease;
}
.pack-start-btn:active { background: #1da58a; transform: scale(0.97); }

/* Pack — fun additions: combo, special, countdown, milestone, summary, time pulse */
/* Load bar */
.pack-loadbar-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pack-loadbar-track {
  position: relative;
  width: 100%;
  height: 24px;
  background: rgba(7,20,26,0.78);
  border-radius: 999px;
  border: 1.5px solid rgba(45,190,209,0.3);
  overflow: visible;
}
.pack-loadbar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2DB194 0%, #2DBED1 60%, #E8FF59 100%);
  transition: width 0.3s cubic-bezier(.25,.9,.4,1);
  min-width: 0;
}
.pack-loadbar-truck {
  position: absolute;
  top: 50%;
  transform: translateY(-55%);
  font-size: 20px;
  transition: left 0.3s cubic-bezier(.25,.9,.4,1);
  pointer-events: none;
  left: -14px;
  filter: drop-shadow(0 0 4px rgba(232,255,89,0.6));
}
.pack-loadbar-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #9FB7BC;
}
/* Card slide-in */
@keyframes pack-card-slide {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.pack-card-slide-in { animation: pack-card-slide 0.22s cubic-bezier(.2,.9,.3,1); }
/* HUD LOAD block highlight */
.pack-hud-block--load .pack-hud-value { color: #E8FF59; }
.pack-item-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 28px;
}
.pack-item-strip .pack-item-prompt { margin: 0; flex: 1; }
.pack-combo-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF7B54, #E8FF59);
  color: #07141A;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 0 14px rgba(232, 255, 89, 0.45);
}
.pack-combo-chip[hidden] { display: none !important; }
@keyframes pack-combo-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.pack-combo-bump { animation: pack-combo-bump 0.32s ease-out; }
.pack-special-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 16px rgba(245, 196, 81, 0.45);
}
.pack-special-chip[hidden] { display: none !important; }
.pack-item-card { position: relative; overflow: hidden; }
.pack-item-card.is-golden {
  box-shadow: 0 0 0 2px #F5C451 inset, 0 0 30px rgba(245,196,81,0.45);
}
.pack-item-card.is-express {
  box-shadow: 0 0 0 2px #FF5A47 inset, 0 0 26px rgba(255,90,71,0.45);
  animation: pack-express-pulse 0.9s ease-in-out infinite;
}
@keyframes pack-express-pulse {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
.pack-express-ring {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(#FF5A47 360deg, rgba(255,90,71,0.12) 0deg);
  border: 2px solid rgba(7,20,26,0.6);
}
.pack-express-ring[hidden] { display: none !important; }
.pack-hud-block.is-urgent { animation: pack-time-pulse 0.7s ease-in-out infinite; border-color: #FF5A47; }
.pack-hud-block.is-urgent .pack-hud-value { color: #FF5A47; }
@keyframes pack-time-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,71,0.0); }
  50%      { box-shadow: 0 0 0 4px rgba(255,90,71,0.35); }
}

@media (max-width: 430px) {
  .pack-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .pack-section-note {
    max-width: none;
    text-align: left;
  }
}

.pack-cell.is-golden {
  box-shadow: 0 0 0 1.5px #F5C451 inset, 0 0 12px rgba(245,196,81,0.55);
}

.pack-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 20, 26, 0.92);
  border-radius: var(--r-lg);
  z-index: 11;
  pointer-events: none;
}
.pack-countdown[hidden] { display: none !important; }
.pack-countdown span {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #E8FF59;
  text-shadow: 0 0 32px rgba(232,255,89,0.55);
}
@keyframes pack-cd-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1.0);  opacity: 1; }
}
.pack-countdown-pop span { animation: pack-cd-pop 0.42s cubic-bezier(.2,.9,.3,1.4); display: inline-block; }

.pack-milestone-flash {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 12;
  padding: 10px 18px;
  border: 2px solid #2DBED1;
  border-radius: 999px;
  background: rgba(7,20,26,0.95);
  color: #2DBED1;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 0 30px currentColor;
}
.pack-milestone-flash[hidden] { display: none !important; }
@keyframes pack-ms-pop {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  40%  { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.0); opacity: 1; }
}
.pack-milestone-pop { animation: pack-ms-pop 0.36s cubic-bezier(.2,.9,.3,1.4); }

.pack-summary {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,20,26,0.94);
  border-radius: var(--r-lg);
  z-index: 13;
  padding: 16px;
}
.pack-summary[hidden] { display: none !important; }
.pack-summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  padding: 18px 18px;
  border: 2px solid #F5C451;
  border-radius: var(--r-lg);
  background: rgba(18,46,58,0.85);
  text-align: center;
  box-shadow: 0 0 40px rgba(245,196,81,0.30);
}
.pack-summary-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #F5C451;
}
.pack-summary-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bone, #F7FBFA);
  line-height: 1.2;
}
.pack-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pack-summary-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px;
  border: 1px solid rgba(245,196,81,0.28);
  border-radius: var(--r-md);
  background: rgba(7,20,26,0.6);
}
.pack-summary-grid span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #E8FF59;
  line-height: 1;
}
.pack-summary-grid small {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.10em;
  color: var(--steam);
  text-transform: uppercase;
}

/* Booth spectator — Catch the COD */
.spec-cod {
  width: 100%;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
}
/* Canvas + overlay wrapper */
.spec-cod-main {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}
.spec-cod-canvas {
  flex: 0 0 auto;
  width: 400px;
  height: 560px;
  border-radius: var(--r-md, 12px);
  border: 2px solid rgba(45, 177, 148, 0.4);
  background: #06141A;
  display: block;
  box-shadow: 0 0 40px rgba(45, 177, 148, 0.15);
}
.spec-cod-overlay {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.spec-cod-banner {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--voltage);
  background: rgba(45, 177, 148, 0.15);
  border: 1px solid rgba(45, 177, 148, 0.4);
  padding: 8px 18px;
  border-radius: 999px;
}
.spec-cod-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.spec-cod-score-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--steam);
  order: -1;
}
.spec-cod-score-value {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #F5C451;
  text-shadow: 0 6px 24px rgba(245, 196, 81, 0.35);
  display: inline-block;
}
.spec-cod-score-bump { animation: cod-bump 0.32s ease-out; }
@keyframes cod-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.16); color: #E8FF59; }
  100% { transform: scale(1); }
}
.spec-cod-currency {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--steam);
  letter-spacing: 0.06em;
}
.spec-cod-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 560px;
}
.spec-cod-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  background: rgba(14, 42, 51, 0.55);
}
.spec-cod-stat span {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--bone, #F7FBFA);
  line-height: 1;
}
.spec-cod-stat small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--steam);
  text-transform: uppercase;
}
.spec-cod-stat--miss span { color: #E52320; }
.spec-cod-stat--time span { color: #2DBED1; }
.spec-cod-combo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: #F5C451;
  color: #0E2A33;
  padding: 10px 22px;
  border-radius: 999px;
  animation: cod-combo-pulse 0.8s ease-in-out infinite;
}
.spec-cod-event {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--bone, #F7FBFA);
  min-height: 22px;
}

.spec-pack {
  width: 100%;
  max-width: 940px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
}
.spec-pack-main {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}
.spec-pack-canvas {
  flex: 0 0 auto;
  width: 420px;
  height: 620px;
  border-radius: var(--r-md, 12px);
  border: 2px solid rgba(245, 196, 81, 0.35);
  background: #07141A;
  display: block;
  box-shadow: 0 0 40px rgba(245, 196, 81, 0.10);
}
.spec-pack-overlay {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  text-align: center;
  min-width: 0;
}
.spec-pack-banner {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: #F5C451;
  background: rgba(245, 196, 81, 0.12);
  border: 1px solid rgba(245, 196, 81, 0.36);
  padding: 6px 14px;
  border-radius: 999px;
  align-self: center;
}
/* Progress display — replaces score-wrap/score-value/currency */
.spec-pack-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 18px 14px;
  background: rgba(18,46,58,0.55);
  border: 1px solid rgba(45,190,209,0.22);
  border-radius: var(--r-md);
}
.spec-pack-pct-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.spec-pack-pct-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #E8FF59;
  text-shadow: 0 4px 20px rgba(232,255,89,0.35);
  display: inline-block;
  transition: color 0.3s ease;
}
.spec-pack-pct-sym {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #9FB7BC;
  letter-spacing: -0.02em;
}
.spec-pack-pct-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--steam);
  margin-top: -4px;
}
.spec-pack-bar-track {
  position: relative;
  width: 100%;
  height: 18px;
  background: rgba(7,20,26,0.7);
  border-radius: 999px;
  border: 1px solid rgba(45,190,209,0.20);
  overflow: hidden;
}
.spec-pack-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2DB194 0%, #2DBED1 55%, #E8FF59 100%);
  transition: width 0.4s cubic-bezier(.25,.9,.4,1);
  min-width: 0;
}
.spec-pack-bar-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  color: var(--steam);
  padding: 0 2px;
}
.spec-pack-score-bump { animation: cod-bump 0.32s ease-out; }
.spec-pack-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}
.spec-pack-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  background: rgba(18, 46, 58, 0.55);
}
.spec-pack-stat span {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--bone, #F7FBFA);
  line-height: 1;
}
.spec-pack-stat small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--steam);
  text-transform: uppercase;
}
.spec-pack-stat--drop span { color: #FF7B54; }
.spec-pack-stat--time span { color: #2DBED1; }
.spec-pack-current {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(45,190,209,0.30);
  border-radius: var(--r-md);
  background: rgba(18,46,58,0.65);
  border-left: 3px solid #2DBED1;
}
.spec-pack-current-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #2DBED1;
}
.spec-pack-current strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--bone, #F7FBFA);
}
.spec-pack-current small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--steam);
}
.spec-pack-event {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bone, #F7FBFA);
  min-height: 20px;
  align-self: stretch;
  text-align: center;
}

.spec-pack-stat--combo span { color: #E8FF59; transition: color 0.2s ease; }
.spec-pack-stat--combo.is-hot {
  border-color: rgba(232,255,89,0.55);
  background: rgba(232,255,89,0.10);
  box-shadow: 0 0 24px rgba(232,255,89,0.25);
}
.spec-pack-stat--combo.is-hot span { color: #E8FF59; text-shadow: 0 0 18px rgba(232,255,89,0.6); }

.spec-pack-special-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  box-shadow: 0 0 22px rgba(245,196,81,0.45);
}
.spec-pack-special-badge[hidden] { display: none !important; }

.spec-pack-recent {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 560px;
}
.spec-pack-recent[hidden] { display: none !important; }
.spec-pack-recent-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--steam);
}
.spec-pack-recent-list {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.spec-pack-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18,46,58,0.65);
  border: 1px solid rgba(255,255,255,0.10);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--bone, #F7FBFA);
  letter-spacing: 0.04em;
}
.spec-pack-recent-chip.is-golden {
  border-color: rgba(245,196,81,0.65);
  background: rgba(245,196,81,0.12);
  box-shadow: 0 0 18px rgba(245,196,81,0.30);
}
.spec-pack-recent-chip.is-express {
  border-color: rgba(255,90,71,0.65);
  background: rgba(255,90,71,0.10);
}
.spec-pack-recent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.spec-pack-milestone {
  width: 100%;
  max-width: 560px;
  padding: 12px 18px;
  border: 2px solid #2DBED1;
  border-radius: 999px;
  background: rgba(7,20,26,0.85);
  color: #2DBED1;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-align: center;
  box-shadow: 0 0 30px currentColor;
}
.spec-pack-milestone[hidden] { display: none !important; }
@keyframes spec-pack-ms-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  40%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.spec-pack-milestone-pop { animation: spec-pack-ms-pop 0.42s cubic-bezier(.2,.9,.3,1.4); }

@media (max-width: 1100px) {
  .spec-pack-main {
    flex-direction: column;
    align-items: center;
  }
  .spec-pack-canvas {
    width: min(420px, 82vw);
    height: auto;
    aspect-ratio: 420 / 620;
  }
}
