/* ============================================================================
   PITSENTRY — DESIGN SYSTEM
   BBQ competition management. Bold, Texan, confident.
   ============================================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Brand — overridden per tenant */
  --brand-primary: #C8102E;
  --brand-accent:  #1A1A1A;

  /* PitSentry core palette */
  --ps-red:     #C8102E;
  --ps-red-dk:  #9E0C24;
  --ps-red-lt:  #FBE9EC;
  --ps-char:    #1a1a1a;
  --ps-char-2:  #2a2a2a;
  --ps-smoke:   #4a4a4a;
  --ps-ash:     #8a8a8a;
  --ps-bone:    #e5e5e5;
  --ps-line:    #e0e0e0;
  --ps-cream:   #f8f6f3;
  --ps-sand:    #faf7f2;
  --ps-ember:   #f97316;
  --ps-gold:    #eab308;
  --ps-green:   #16a34a;
  --ps-green-lt:#dcfce7;
  --ps-amber:   #f59e0b;
  --ps-amber-lt:#fef3c7;
  --ps-red-bg:  #fee2e2;
  --ps-blue:    #2563eb;
  --ps-blue-lt: #dbeafe;
  --ps-gray:    #6b7280;
  --ps-gray-lt: #f3f4f6;

  --ps-ink:     #151515;
  --ps-muted:   #6b6b6b;
  --ps-sub:     #9a9a9a;

  /* Typography */
  --ff-body:    'Rubik', system-ui, -apple-system, sans-serif;
  --ff-display: 'Rubik', Georgia, serif;
  --ff-mono:    ui-monospace, Menlo, 'Courier New', monospace;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Radius */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 18px;

  /* Shadow */
  --sh-sm:  0 1px 2px rgba(0,0,0,.05);
  --sh-md:  0 2px 6px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --sh-lg:  0 8px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.08);
  --sh-xl:  0 20px 40px rgba(0,0,0,.18);

  --header-h: 72px;
  --sidebar-w: 240px;
}

/* ── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ps-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { font-family: var(--ff-display); margin: 0 0 var(--sp-3); line-height: 1.15; color: var(--ps-ink); }
h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 600; }
p  { margin: 0 0 var(--sp-3); }
code { font-family: var(--ff-mono); font-size: 0.92em; background: var(--ps-gray-lt); padding: 2px 6px; border-radius: 3px; }
.muted { color: var(--ps-muted); }
.lead  { font-size: 17px; line-height: 1.6; color: var(--ps-smoke); }

/* ── LAYOUT ────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-5); }
.container.narrow { max-width: 820px; }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: #fff;
  color: var(--ps-ink);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-sm); }
.btn:disabled, .btn-disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.btn-primary:hover { background: var(--ps-red-dk); border-color: var(--ps-red-dk); }
.btn-outline { background: transparent; border-color: var(--ps-line); color: var(--ps-ink); }
.btn-outline:hover { border-color: var(--ps-char); background: #fafafa; }
.btn-danger  { background: #fff; border-color: #fecaca; color: #b91c1c; }
.btn-danger:hover { background: #fef2f2; }
.btn-block { display: flex; width: 100%; }
.btn-sm { font-size: 13px; padding: 6px 12px; }
.btn-xs { font-size: 12px; padding: 4px 10px; }
.btn-large { font-size: 16px; padding: 14px 28px; }
.btn-huge  { font-size: 18px; padding: 18px 28px; font-weight: 700; }
.btn-hero  { font-size: 16px; padding: 16px 32px; font-weight: 700; letter-spacing: 0.02em; }

/* ── FORMS ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-4); }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ps-char); margin-bottom: 6px; }
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=tel],
.form-group input[type=url],
.form-group input[type=number],
.form-group input[type=password],
.form-group input[type=date],
.form-group input[type=search],
.form-group select,
.form-group textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ps-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input[readonly] { background: var(--ps-gray-lt); color: var(--ps-muted); }
.hint { font-size: 12px; color: var(--ps-muted); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── CARDS ─────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  box-shadow: var(--sh-sm);
}
.card h2, .card h3 { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }

/* ── ALERTS / BADGES ───────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
  font-size: 14px;
  border-left: 4px solid;
}
.alert-success { background: var(--ps-green-lt); color: #166534; border-left-color: var(--ps-green); }
.alert-error   { background: var(--ps-red-bg);   color: #991b1b; border-left-color: var(--ps-red); }
.alert-info    { background: var(--ps-blue-lt);  color: #1e40af; border-left-color: var(--ps-blue); }
.alert-warning { background: var(--ps-amber-lt); color: #92400e; border-left-color: var(--ps-amber); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--ps-gray-lt);
  color: var(--ps-smoke);
  white-space: nowrap;
}
.badge-red    { background: var(--ps-red-bg);   color: #991b1b; }
.badge-green  { background: var(--ps-green-lt); color: #166534; }
.badge-blue   { background: var(--ps-blue-lt);  color: #1e40af; }
.badge-amber  { background: var(--ps-amber-lt); color: #92400e; }
.badge-gray   { background: var(--ps-gray-lt);  color: var(--ps-smoke); }
.badge-included { background: var(--ps-green-lt); color: #166534; }
.badge-optional { background: var(--ps-blue-lt);  color: #1e40af; }

/* ── TABLES ────────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ps-line);
  font-size: 14px;
  vertical-align: middle;
}
.table th {
  background: var(--ps-gray-lt);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ps-smoke);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafafa; }

.kv { width: 100%; border-collapse: collapse; }
.kv th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--ps-muted);
  padding: 6px 12px 6px 0;
  width: 140px;
  vertical-align: top;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kv td { padding: 6px 0; font-size: 14px; }

/* ══════════════════════════════════════════════════════════════════════ */
/* PUBLIC SITE                                                            */
/* ══════════════════════════════════════════════════════════════════════ */

.pub-body { background: var(--ps-cream); }
.pub-main { min-height: calc(100vh - var(--header-h) - 200px); }

/* HEADER */
.pub-header {
  background: #fff;
  border-bottom: 1px solid var(--ps-line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sh-sm);
}
.pub-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-size: 20px;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.15);
}
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--ff-display); font-size: 17px; font-weight: 700; line-height: 1.1; }
.brand-sub  { font-size: 11px; color: var(--ps-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

.pub-nav { display: flex; align-items: center; gap: var(--sp-5); }
.pub-nav a { color: var(--ps-char); font-size: 14px; font-weight: 500; }
.pub-nav a:hover { color: var(--brand-primary); text-decoration: none; }
.pub-nav .btn-primary { color: #fff; }
@media (max-width: 700px) {
  .pub-nav a:not(.btn) { display: none; }
}

/* HERO */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 100px 0 90px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--ps-red-dk) 70%, var(--ps-char) 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.3) 0%, transparent 40%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.02), rgba(255,255,255,.02) 2px, transparent 2px, transparent 8px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 99px;
  margin-bottom: var(--sp-6);
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 var(--sp-4);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-date {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--sp-5);
}
.hero-body {
  max-width: 680px;
  margin: 0 auto var(--sp-8);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.hero-cta { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp-10); }
.hero-cta .btn-primary { background: #fff; color: var(--brand-primary); border-color: #fff; }
.hero-cta .btn-primary:hover { background: var(--ps-cream); }
.hero-cta .btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: #fff; }
.hero-cta .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.2);
  max-width: 600px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat-num { font-family: var(--ff-display); font-size: 40px; font-weight: 800; line-height: 1; color: #fff; }
.stat-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; margin-top: 4px; }

/* SECTIONS */
.section { padding: var(--sp-20) 0; }
.section-light { background: var(--ps-cream); }
.section-dark  { background: var(--ps-char); color: #fff; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto var(--sp-10); }
.section-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: var(--sp-3); }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.1; margin-bottom: var(--sp-3); }
.section-head .lead { color: var(--ps-smoke); font-size: 17px; }
.section-cta { text-align: center; margin-top: var(--sp-8); }

/* CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}
.cat-card {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.cat-card-primary { border-top: 4px solid var(--brand-primary); }
.cat-head { display: flex; justify-content: center; margin-bottom: var(--sp-3); }
.cat-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--ps-red-lt);
  color: var(--brand-primary);
}
.cat-badge-jackpot { background: var(--ps-amber-lt); color: #92400e; }
.cat-name { font-family: var(--ff-display); font-size: 22px; font-weight: 700; margin-bottom: var(--sp-2); }
.cat-turn-in { font-size: 13px; color: var(--ps-muted); margin-bottom: var(--sp-2); }
.cat-fee { font-weight: 600; color: var(--ps-char); font-size: 14px; }

/* STEPS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}
.step-card {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
  position: relative;
}
.step-num {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto var(--sp-3);
}
.step-card h3 { margin-bottom: var(--sp-2); }
.step-card p  { color: var(--ps-muted); font-size: 14px; margin: 0; }

/* TEAM GRID */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-3);
}
.team-card {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  text-align: center;
}
.team-ticket {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--ps-red-lt);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: var(--sp-2);
}
.team-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.team-location { font-size: 12px; color: var(--ps-muted); }

/* CTA BANNER */
.cta-banner {
  text-align: center;
  padding: var(--sp-10) var(--sp-5);
}
.cta-banner h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-banner p  { color: rgba(255,255,255,0.75); font-size: 18px; margin-bottom: var(--sp-5); }
.cta-banner .btn-primary { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.cta-banner .btn-primary:hover { background: var(--ps-red-dk); }

/* FOOTER */
.pub-footer {
  background: var(--ps-char);
  color: rgba(255,255,255,0.75);
  padding: var(--sp-12) 0 var(--sp-6);
  font-size: 14px;
}
.pub-footer a { color: rgba(255,255,255,0.85); }
.pub-footer a:hover { color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { font-family: var(--ff-display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: var(--sp-2); }
.foot-heading { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; margin-bottom: var(--sp-3); }
.foot-bottom { padding-top: var(--sp-5); font-size: 12px; color: rgba(255,255,255,0.5); }
.powered { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.powered i { color: var(--ps-ember); }

/* ── REGISTRATION FORM ─────────────────────────────────────────────────── */
.page-head { padding: var(--sp-10) 0 var(--sp-5); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ps-muted);
  margin-bottom: var(--sp-3);
}

.cat-include-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-3); }
.cat-inc {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--ps-green-lt);
  border-radius: var(--r-md);
  border: 1px solid #bbf7d0;
}
.cat-inc i { color: var(--ps-green); font-size: 20px; }
.cat-inc-name { font-weight: 700; font-size: 14px; }
.cat-inc-meta { font-size: 12px; color: #166534; }

.jackpot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-3); }
.jackpot-opt {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--ps-line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.jackpot-opt:hover { border-color: var(--brand-primary); background: #fafafa; }
.jackpot-opt input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.jackpot-opt input:checked ~ .jackpot-opt-body { color: var(--brand-primary); }
.jackpot-opt-name { font-weight: 600; font-size: 15px; }
.jackpot-opt-meta { font-size: 12px; color: var(--ps-muted); margin-top: 2px; }
.jackpot-opt:has(input:checked) { border-color: var(--brand-primary); background: var(--ps-red-lt); }

.summary-card { background: var(--ps-cream); border-color: var(--ps-bone); }
.summary-table { width: 100%; }
.summary-table td { padding: 8px 0; font-size: 15px; border: none; }
.summary-table td.amt { text-align: right; font-weight: 600; }
.summary-table .total-row td { font-size: 20px; font-weight: 800; padding-top: var(--sp-3); border-top: 2px solid var(--ps-line); }

/* ── MOCK STRIPE CHECKOUT ──────────────────────────────────────────────── */
.mock-stripe {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}
.mock-stripe-header {
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--ps-line);
  background: #f8fafc;
}
.mock-stripe-logo { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.mock-stripe-body { padding: var(--sp-6); }
.mock-merchant { margin-bottom: var(--sp-4); }
.mock-amount { margin-bottom: var(--sp-6); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--ps-line); }
.mock-line { display: flex; justify-content: space-between; margin-bottom: var(--sp-6); }
.mock-form { margin-bottom: var(--sp-5); }
.mock-disclaimer {
  margin-top: var(--sp-4);
  padding: var(--sp-3);
  background: var(--ps-blue-lt);
  border-radius: var(--r-md);
  font-size: 12px;
  color: #1e40af;
}

/* ── SUCCESS PAGE ──────────────────────────────────────────────────────── */
.success-panel { padding: var(--sp-10) 0; }
.success-icon {
  text-align: center;
  font-size: 72px;
  color: var(--ps-green);
  margin-bottom: var(--sp-4);
}
.success-panel h1 { text-align: center; }
.success-panel .lead { text-align: center; margin-bottom: var(--sp-8); }

.ticket-card {
  background: linear-gradient(135deg, var(--ps-char) 0%, var(--ps-char-2) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-6);
  text-align: center;
  margin-bottom: var(--sp-8);
  box-shadow: var(--sh-xl);
  position: relative;
  overflow: hidden;
}
.ticket-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, var(--brand-primary) 0%, transparent 60%);
  opacity: 0.25;
}
.ticket-header { position: relative; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: rgba(255,255,255,0.6); margin-bottom: var(--sp-3); }
.ticket-num {
  position: relative;
  font-family: var(--ff-display);
  font-size: 96px;
  font-weight: 900;
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: var(--sp-2);
}
.ticket-team { position: relative; font-size: 20px; font-weight: 700; }
.ticket-hint { position: relative; font-size: 13px; color: rgba(255,255,255,0.6); margin-top: var(--sp-3); font-style: italic; }

.entered-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-3); }
.entered-cat { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--ps-line); border-radius: var(--r-md); }
.entered-cat i { color: var(--brand-primary); font-size: 20px; }
.entered-cat-name { font-weight: 700; font-size: 14px; }
.entered-cat-meta { font-size: 12px; color: var(--ps-muted); }

.next-steps { padding-left: 20px; }
.next-steps li { margin-bottom: var(--sp-3); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════════════ */
/* LEADERBOARD                                                            */
/* ══════════════════════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-5);
  color: var(--ps-muted);
}
.empty-state i { font-size: 56px; color: var(--ps-line); margin-bottom: var(--sp-4); }
.empty-state h2 { margin-bottom: var(--sp-2); }
.empty-state .btn { margin-top: var(--sp-4); }

.leaderboard-section { margin-bottom: var(--sp-12); }
.lb-section-head { margin-bottom: var(--sp-5); padding-bottom: var(--sp-3); border-bottom: 2px solid var(--ps-line); }
.lb-section-head h2 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; color: var(--brand-primary); }
.lb-sub { font-size: 13px; color: var(--ps-muted); margin-top: 4px; }

.lb-overall { display: flex; flex-direction: column; gap: var(--sp-2); }
.lb-row {
  display: grid;
  grid-template-columns: 70px 1fr 2fr 110px;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-lg);
  transition: transform 0.2s;
}
.lb-row:hover { transform: translateX(4px); }
.lb-row-champion {
  background: linear-gradient(90deg, #fffbe6 0%, #fff 100%);
  border-color: var(--ps-gold);
  border-left: 6px solid var(--ps-gold);
}
.lb-row-podium { border-left: 4px solid var(--ps-ember); }
.lb-rank { font-family: var(--ff-display); font-size: 32px; font-weight: 900; color: var(--ps-char); text-align: center; }
.lb-row-champion .lb-rank { color: var(--ps-gold); font-size: 40px; }
.lb-team-name { font-weight: 700; font-size: 17px; }
.lb-team-ticket { font-size: 12px; color: var(--ps-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.lb-per-cat { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-cat-pill { background: var(--ps-gray-lt); padding: 4px 10px; border-radius: var(--r-sm); text-align: center; }
.lb-cat-pill-name { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ps-muted); }
.lb-cat-pill-rank { font-weight: 700; font-size: 14px; }
.lb-points { text-align: right; }
.lb-points-num { font-family: var(--ff-display); font-size: 28px; font-weight: 800; line-height: 1; color: var(--brand-primary); }
.lb-points-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ps-muted); margin-top: 2px; }

@media (max-width: 720px) {
  .lb-row { grid-template-columns: 50px 1fr 100px; }
  .lb-per-cat { display: none; }
}

.champion-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  background: linear-gradient(135deg, var(--ps-gold) 0%, #f59e0b 100%);
  color: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}
.champion-banner i { font-size: 40px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.champion-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.9; }
.champion-name { font-family: var(--ff-display); font-size: 28px; font-weight: 800; margin-top: 2px; }
.champion-pts { margin-left: auto; font-family: var(--ff-display); font-size: 32px; font-weight: 800; }

.lb-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-5);
}
.lb-cat-card {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  border-top: 4px solid var(--brand-primary);
}
.lb-cat-card-jackpot { border-top-color: var(--ps-amber); }
.lb-cat-card h3 { font-size: 18px; margin-bottom: var(--sp-3); display: flex; justify-content: space-between; align-items: center; }
.lb-cat-table { width: 100%; border-collapse: collapse; }
.lb-cat-table td { padding: 8px 6px; border-bottom: 1px solid var(--ps-line); font-size: 14px; }
.lb-cat-table tr:last-child td { border-bottom: none; }
.lb-cat-champ td { background: #fffbe6; font-weight: 700; }
.lb-cat-rank { width: 40px; color: var(--ps-muted); font-weight: 700; }
.lb-cat-ticket { width: 60px; color: var(--ps-muted); font-family: var(--ff-mono); font-size: 12px; }
.lb-cat-score { width: 70px; text-align: right; font-weight: 600; font-family: var(--ff-mono); }

/* ══════════════════════════════════════════════════════════════════════ */
/* ADMIN PANEL                                                            */
/* ══════════════════════════════════════════════════════════════════════ */

.admin-body { background: #f7f8fa; }
.admin-shell { display: flex; min-height: 100vh; }

/* SIDEBAR */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--ps-char);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-brand {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0 var(--sp-5) var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-brand-mark { width: 36px; height: 36px; background: var(--brand-primary); border-radius: var(--r-sm); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.admin-brand-name { font-family: var(--ff-display); font-size: 15px; font-weight: 700; color: #fff; }
.admin-brand-sub  { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }

.admin-nav { flex: 1; display: flex; flex-direction: column; padding: var(--sp-4) 0; }
.admin-nav a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px var(--sp-5);
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); text-decoration: none; }
.admin-nav a.active { color: #fff; background: rgba(255,255,255,0.08); border-left-color: var(--brand-primary); font-weight: 600; }
.admin-nav a i { width: 18px; text-align: center; }
.admin-nav-divider { height: 1px; background: rgba(255,255,255,0.08); margin: var(--sp-4) var(--sp-5); }

.admin-user { padding: var(--sp-4) var(--sp-5); border-top: 1px solid rgba(255,255,255,0.08); }
.admin-user-name { font-weight: 600; font-size: 13px; color: #fff; }
.admin-user-email { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.admin-logout { font-size: 12px; color: rgba(255,255,255,0.6); }
.admin-logout:hover { color: #fff; }

/* MAIN CONTENT */
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--ps-line);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-topbar h1 { margin: 0; font-size: 22px; }
.admin-topbar-right { display: flex; gap: var(--sp-2); }

.admin-content { padding: var(--sp-6); flex: 1; max-width: 1400px; width: 100%; }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 900px) { .admin-grid-2 { grid-template-columns: 1fr; } }

/* STAT CARDS */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.stat-card {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
}
.stat-card-primary { border-top: 3px solid var(--brand-primary); }
.stat-card-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ps-muted); }
.stat-card-num { font-family: var(--ff-display); font-size: 32px; font-weight: 800; line-height: 1.1; color: var(--ps-ink); margin: 6px 0 4px; }
.stat-card-sub { font-size: 12px; color: var(--ps-muted); }

/* QUICK ACTIONS */
.quick-actions { display: flex; flex-direction: column; gap: var(--sp-2); }
.quick-action {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--ps-line);
  border-radius: var(--r-md);
  color: inherit !important;
  transition: border-color 0.15s, background 0.15s;
}
.quick-action:hover { border-color: var(--brand-primary); background: #fafafa; text-decoration: none; }
.quick-action i { font-size: 18px; color: var(--brand-primary); width: 24px; text-align: center; }
.quick-action strong { font-size: 14px; }
.quick-action .muted { font-size: 12px; }

/* SCORING GRID */
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.scoring-card {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.scoring-card-open { border-left: 4px solid var(--ps-green); }
.scoring-card-closed { opacity: 0.7; }
.scoring-card-setup { border-left: 4px solid var(--ps-amber); }
.scoring-card-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: var(--sp-3); }
.scoring-cat { font-weight: 700; font-size: 16px; }
.scoring-meta { font-size: 12px; color: var(--ps-muted); margin-top: 2px; }
.scoring-progress { margin-bottom: var(--sp-3); }
.scoring-progress-bar { height: 8px; background: var(--ps-gray-lt); border-radius: 99px; overflow: hidden; }
.scoring-progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand-primary), var(--ps-ember)); transition: width 0.3s; }
.scoring-progress-lbl { font-size: 12px; color: var(--ps-muted); margin-top: 6px; text-align: center; }
.scoring-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-3); padding: var(--sp-3); background: var(--ps-gray-lt); border-radius: var(--r-sm); }

/* RESULTS PAGE */
.results-header { text-align: center; padding: var(--sp-8) 0 var(--sp-4); margin-bottom: var(--sp-5); border-bottom: 2px solid var(--ps-line); }
.results-title { font-family: var(--ff-display); font-size: 36px; font-weight: 800; margin-bottom: 4px; }
.results-subtitle { color: var(--ps-muted); font-size: 15px; }

.champion-panel {
  background: linear-gradient(135deg, var(--ps-gold) 0%, #f59e0b 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-5);
  text-align: center;
  margin-bottom: var(--sp-5);
  box-shadow: var(--sh-lg);
  position: relative;
}
.champion-icon { font-size: 56px; margin-bottom: var(--sp-3); opacity: 0.9; }
.champion-label-big { font-size: 14px; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.9; }
.champion-team { font-family: var(--ff-display); font-size: 44px; font-weight: 900; line-height: 1.1; margin: var(--sp-2) 0; }
.champion-ticket { font-size: 16px; opacity: 0.85; }

.reserve-panel {
  background: var(--ps-cream);
  border: 2px solid var(--ps-bone);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
  margin-bottom: var(--sp-5);
}
.reserve-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ps-muted); }
.reserve-team { font-family: var(--ff-display); font-size: 28px; font-weight: 800; margin: 4px 0; }
.reserve-ticket { font-size: 14px; color: var(--ps-smoke); }

.results-table { width: 100%; border-collapse: collapse; }
.results-table th, .results-table td { padding: 10px 12px; border-bottom: 1px solid var(--ps-line); text-align: left; font-size: 14px; }
.results-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ps-muted); background: var(--ps-gray-lt); }
.results-table .results-champ td { background: #fffbe6; font-weight: 700; }
.results-table .results-reserve td { background: #f0f9ff; font-weight: 600; }
.results-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-5); }
.results-cat-block h3 { margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--brand-primary); display: flex; justify-content: space-between; align-items: center; }

/* LOGIN PAGE */
.login-body { background: linear-gradient(135deg, var(--ps-char) 0%, #0f0f0f 100%); min-height: 100vh; display: grid; place-items: center; padding: var(--sp-5); }
.login-shell { width: 100%; max-width: 440px; }
.login-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  box-shadow: var(--sh-xl);
}
.login-card h1 { font-size: 26px; text-align: center; margin-bottom: var(--sp-5); }
.login-brand { display: flex; align-items: center; gap: var(--sp-3); justify-content: center; margin-bottom: var(--sp-6); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--ps-line); }
.login-brand-mark { width: 44px; height: 44px; background: var(--brand-primary); border-radius: var(--r-md); color: #fff; display: grid; place-items: center; font-size: 20px; }
.login-brand-name { font-family: var(--ff-display); font-size: 18px; font-weight: 700; }
.login-brand-sub { font-size: 11px; color: var(--ps-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.login-footer { text-align: center; margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--ps-line); font-size: 13px; }

/* ══════════════════════════════════════════════════════════════════════ */
/* JUDGE APP — Mobile-first                                               */
/* ══════════════════════════════════════════════════════════════════════ */

.judge-body {
  background: var(--ps-cream);
  min-height: 100vh;
  padding-bottom: var(--sp-20);
}
.judge-body-score { background: #fafafa; }

.judge-header {
  background: var(--ps-char);
  color: #fff;
  padding: var(--sp-4) var(--sp-5);
  position: sticky;
  top: 0;
  z-index: 50;
}
.judge-header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); max-width: 600px; margin: 0 auto; }
.judge-header-name { font-weight: 700; font-size: 15px; }
.judge-header-event { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.judge-header-logout, .judge-back { color: rgba(255,255,255,0.8); font-size: 18px; }
.judge-header-logout:hover, .judge-back:hover { color: #fff; text-decoration: none; }

.judge-main { max-width: 600px; margin: 0 auto; padding: var(--sp-5); }
.judge-page-head { margin-bottom: var(--sp-5); }
.judge-page-head h1 { font-size: 28px; margin-bottom: 4px; }

.judge-empty { text-align: center; padding: var(--sp-16) var(--sp-5); }
.judge-empty i { font-size: 56px; color: var(--ps-line); margin-bottom: var(--sp-3); }

/* Judge tables list */
.judge-tables { display: flex; flex-direction: column; gap: var(--sp-4); }
.judge-table-card {
  display: block;
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.judge-table-card.judge-table-open { cursor: pointer; border-left: 4px solid var(--ps-green); }
.judge-table-card.judge-table-open:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.judge-table-card.judge-table-closed { opacity: 0.6; }
.judge-table-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.judge-table-cat { font-family: var(--ff-display); font-size: 22px; font-weight: 800; }
.judge-table-num { color: var(--ps-muted); font-size: 13px; margin-bottom: var(--sp-4); }
.judge-table-progress { margin-bottom: var(--sp-3); }
.judge-progress-bar { height: 10px; background: var(--ps-gray-lt); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.judge-progress-fill { height: 100%; background: linear-gradient(90deg, var(--ps-green), #22c55e); transition: width 0.3s; }
.judge-progress-text { font-size: 13px; color: var(--ps-smoke); text-align: center; }
.judge-table-cta { text-align: center; font-weight: 700; color: var(--brand-primary); padding-top: var(--sp-2); border-top: 1px solid var(--ps-line); margin-top: var(--sp-3); }
.judge-table-cta i { margin-left: 6px; }
.judge-table-waiting { text-align: center; color: var(--ps-muted); font-size: 13px; font-style: italic; padding-top: var(--sp-3); border-top: 1px solid var(--ps-line); margin-top: var(--sp-3); }

/* Judge login — PIN keypad */
.judge-login { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-5); background: linear-gradient(135deg, var(--ps-char) 0%, #0f0f0f 100%); }
.judge-login-card { width: 100%; max-width: 400px; background: #fff; border-radius: var(--r-xl); padding: var(--sp-8) var(--sp-6); box-shadow: var(--sh-xl); }
.judge-brand { display: flex; align-items: center; gap: var(--sp-3); justify-content: center; margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--ps-line); }
.judge-brand-mark { width: 44px; height: 44px; background: var(--brand-primary); color: #fff; border-radius: var(--r-md); display: grid; place-items: center; font-size: 20px; }
.judge-brand-title { font-family: var(--ff-display); font-size: 20px; font-weight: 700; }
.judge-brand-sub { font-size: 11px; color: var(--ps-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.pin-display { display: flex; justify-content: center; gap: var(--sp-3); margin-bottom: var(--sp-4); display: none; }
.pin-dot { width: 14px; height: 14px; background: var(--ps-line); border-radius: 50%; color: transparent; font-size: 0; }

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: var(--sp-3);
}
.pin-key {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 700;
  padding: 20px 0;
  background: var(--ps-gray-lt);
  border: 2px solid var(--ps-line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.1s;
}
.pin-key:active { transform: scale(0.95); background: var(--ps-bone); }
.pin-key-clear { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.pin-key-submit { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.pin-key-submit:active { background: var(--ps-red-dk); }

/* Judge score entry */
.score-main { max-width: 600px; margin: 0 auto; padding: var(--sp-4); }

.blind-header {
  background: var(--ps-char);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  margin-bottom: var(--sp-5);
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.blind-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(200, 16, 46, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.blind-label { position: relative; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.6); margin-bottom: var(--sp-2); }
.blind-num { position: relative; font-family: var(--ff-display); font-size: 84px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.blind-sub { position: relative; font-size: 14px; color: rgba(255,255,255,0.8); margin-top: var(--sp-2); }
.blind-scored-badge { position: relative; display: inline-block; margin-top: var(--sp-3); padding: 4px 12px; background: rgba(34, 197, 94, 0.25); color: #bbf7d0; border: 1px solid #22c55e; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

.score-block {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.score-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-4); }
.score-block-title { font-family: var(--ff-display); font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.score-block-title i { color: var(--brand-primary); }
.score-block-val { font-family: var(--ff-display); font-size: 32px; font-weight: 800; color: var(--brand-primary); font-variant-numeric: tabular-nums; }

.score-slider {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 12px;
  background: var(--ps-gray-lt);
  border-radius: 99px;
  outline: none;
  margin: var(--sp-3) 0 var(--sp-2);
}
.score-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 36px; height: 36px;
  background: var(--brand-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}
.score-slider::-webkit-slider-thumb:active { transform: scale(1.15); }
.score-slider::-moz-range-thumb {
  width: 36px; height: 36px;
  background: var(--brand-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.score-scale {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ps-muted);
  font-variant-numeric: tabular-nums;
  font-family: var(--ff-mono);
  padding: 0 4px;
}

.score-preview {
  background: var(--ps-char);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-align: center;
  margin-bottom: var(--sp-5);
}
.score-preview-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.6); }
.score-preview-val { font-family: var(--ff-display); font-size: 48px; font-weight: 900; color: #fff; margin: var(--sp-2) 0; font-variant-numeric: tabular-nums; }
.score-preview-formula { font-size: 11px; color: rgba(255,255,255,0.5); font-family: var(--ff-mono); }

.entry-tray-wrap { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--ps-line); }
.entry-tray-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ps-muted); margin-bottom: var(--sp-2); }
.entry-tray { display: flex; gap: 6px; flex-wrap: wrap; }
.entry-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-sm);
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ps-ink);
  font-weight: 600;
}
.entry-chip:hover { border-color: var(--brand-primary); text-decoration: none; }
.entry-chip-current { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.entry-chip-scored { background: var(--ps-green-lt); color: #166534; border-color: #bbf7d0; }
.entry-chip-scored i { font-size: 10px; }

/* ══════════════════════════════════════════════════════════════════════ */
/* PRINT                                                                  */
/* ══════════════════════════════════════════════════════════════════════ */
@media print {
  body { background: #fff; }
  .admin-sidebar, .admin-topbar, .pub-header, .pub-footer { display: none !important; }
  .admin-content { padding: 0; }
  .card { border: 1px solid #ccc; box-shadow: none; page-break-inside: avoid; }
}
.print-body { padding: 40px; background: #fff; }
.print-page { max-width: 800px; margin: 0 auto; }
