/* ==========================================================================
   J SMOKERS' RUMMY 2.0 — THE 420 SMOKEHOUSE ARENA (CONCEPT 1)
   Pure #000000 OLED | Zero backdrop-filter | Zero 60fps canvas loops
   i3 7th Gen / Bluetooth Audio Safe | Across-the-Room TV Legibility
   ========================================================================== */

:root {
  --bg-oled: #000000;
  --bg-carbon: #060a07;
  --bg-panel: #090f0b;
  --bg-felt: #0a1f14;
  --bg-felt-deep: #05120b;

  --gold-light: #fef08a;
  --gold-mid: #d4af37;
  --gold-dark: #8c6a1c;
  --gold-border: #b89336;

  --kush-bright: #4ade80;
  --kush-mid: #16a34a;
  --kush-deep: #0c331d;

  --hemp-cream: #f5eedc;
  --hemp-muted: #b8b09c;

  --ember-red: #ef4444;
  --ember-orange: #f97316;
  --ember-yellow: #fbbf24;

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html, body {
  background-color: var(--bg-oled);
  color: var(--hemp-cream);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Pure static botanical leaf corner art — 0% CPU */
.arena-shell {
  position: relative;
  min-height: 100vh;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  padding: 12px 18px 16px;
  gap: 14px;
  overflow: hidden;
}

.leaf-corner {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}
.leaf-tl { top: -24px; left: -24px; width: 210px; height: 210px; transform: rotate(22deg); }
.leaf-tr { top: -24px; right: -24px; width: 210px; height: 210px; transform: scaleX(-1) rotate(22deg); }
.leaf-bl { bottom: -30px; left: -24px; width: 220px; height: 220px; transform: rotate(-18deg); }
.leaf-br { bottom: -30px; right: -24px; width: 220px; height: 220px; transform: scaleX(-1) rotate(-18deg); }

.arena-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

/* ==========================================================================
   TOP BROADCAST RIBBON (TV-SCALE)
   ========================================================================== */
.top-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, #0b1910 0%, #050a07 100%);
  border: 2px solid var(--gold-border);
  border-radius: 18px;
  padding: 10px 18px;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.14);
}

.ribbon-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-crest {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold-mid);
  background: radial-gradient(circle, #113820 0%, #04120a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.dealer-badge {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.dealer-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold-mid);
  text-transform: uppercase;
}

.dealer-name-tv {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  color: var(--hemp-cream);
  letter-spacing: -0.02em;
}
.dealer-name-tv span {
  color: var(--gold-light);
}

/* Celebrated 🔥🔥🔥 ROUND X Pill */
.round-pill-tv {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #211104 0%, #0c0906 100%);
  border: 2px solid var(--ember-orange);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.32);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.round-pill-tv:hover { transform: scale(1.03); }
.round-pill-tv:active { transform: scale(0.97); }
.round-flames { font-size: 24px; line-height: 1; }
.round-text {
  font-size: 36px;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
  color: var(--gold-light);
}

/* Centered 24px Weather Widget */
.weather-widget-tv {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 14px;
  background: #08120c;
  border: 2px solid #2b4a35;
  color: var(--hemp-cream);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.weather-widget-tv:hover { border-color: var(--gold-mid); }
.weather-icon-tv { font-size: 26px; line-height: 1; }
.weather-temp-tv {
  font-size: 24px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--gold-light);
  line-height: 1.1;
}
.weather-cond-tv {
  font-size: 13px;
  font-weight: 700;
  color: var(--kush-bright);
}

/* Right Navigation & CTA Controls */
.ribbon-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 11px;
  background: #0c140f;
  border: 1px solid #2b3d30;
  color: var(--hemp-cream);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.nav-btn:hover { border-color: var(--gold-mid); background: #122117; }
.nav-btn.active {
  background: linear-gradient(180deg, #d4af37 0%, #9b771e 100%);
  color: #050806;
  border-color: var(--gold-light);
}

.btn-record-primary {
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  border: 2px solid #86efac;
  color: #021207;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}
.btn-record-primary:hover { filter: brightness(1.08); }

/* Sub-Action Bar (Cut-off, Seating, End & Verify, Void, New Match) */
.sub-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}

.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: #090e0a;
  border: 1px solid #26362b;
  color: var(--hemp-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sub-pill:hover { border-color: var(--gold-mid); color: var(--hemp-cream); }
.sub-pill-gold { border-color: var(--gold-dark); color: var(--gold-light); background: #141005; }
.sub-pill-danger { border-color: #7f1d1d; color: #fca5a5; background: #1a0707; }
.sub-pill-danger:hover { border-color: #ef4444; background: #290a0a; }

/* ==========================================================================
   MAIN SMOKEHOUSE ARENA LAYOUT (CONCEPT 1)
   Left/Center: 3 Ornate Gold & Kush Monoliths | Right: Club Shrine & News
   ========================================================================== */
.arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 16px;
  align-items: stretch;
  flex: 1;
}

@media (max-width: 1240px) {
  .arena-grid {
    grid-template-columns: 1fr;
  }
}

.monoliths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .monoliths-grid {
    grid-template-columns: 1fr;
  }
}

/* Ornate Playing-Card Monolith */
.monolith {
  position: relative;
  border-radius: 22px;
  padding: 6px;
  background: linear-gradient(160deg, #d4af37 0%, #6b5015 45%, #b89336 100%);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85);
}

.monolith.is-leader {
  background: linear-gradient(160deg, #4ade80 0%, #15803d 45%, #d4af37 100%);
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.25);
}

.monolith.is-danger {
  background: linear-gradient(160deg, #f97316 0%, #9a3412 50%, #d4af37 100%);
}

.monolith-inner {
  flex: 1;
  border-radius: 17px;
  background: linear-gradient(180deg, #0b1f13 0%, #06120b 55%, #040a06 100%);
  border: 1px solid rgba(254, 240, 138, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.monolith.is-danger .monolith-inner {
  background: linear-gradient(180deg, #1b0f0a 0%, #0f0907 55%, #080504 100%);
}

/* Gold Foil Nameplate Banner */
.monolith-header {
  background: linear-gradient(180deg, #e5c665 0%, #b89232 100%);
  color: #080a06;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #5c430e;
}

.monolith-player-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-medallion {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 2px solid #080a06;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.45);
}

.player-name-tv {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: #070905;
  letter-spacing: -0.02em;
}

.player-rank-sub {
  font-size: 12px;
  font-weight: 800;
  color: #291e06;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.dealer-chip-btn {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  border: 2px solid #080a06;
  background: #0a1f14;
  color: var(--gold-light);
}
.dealer-chip-btn.inactive {
  background: rgba(8, 10, 6, 0.16);
  color: #1c1607;
  border-color: rgba(8, 10, 6, 0.4);
}
.dealer-chip-btn.inactive:hover {
  background: #0a1f14;
  color: var(--gold-light);
}

/* Main Score Body */
.monolith-body {
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.score-hero-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.score-number-tv {
  font-size: 70px;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 0.95;
  color: #ffffff;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
}

.monolith.is-leader .score-number-tv { color: #fef9c3; }
.monolith.is-danger .score-number-tv { color: #fed7aa; }

.score-target-meta {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
}
.score-target-den { font-size: 15px; font-weight: 800; color: var(--hemp-muted); }
.score-remaining { font-size: 13px; font-weight: 800; color: var(--kush-bright); }
.score-remaining.danger { color: #fb923c; }

/* ==========================================================================
   PROPORTIONAL BURNING JOINT METER (CONCEPT 1 SIGNATURE 420 FEATURE)
   Shows exact progress toward 300 with glowing ember cherry tip!
   ========================================================================== */
.joint-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.joint-meter-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--hemp-muted);
}

.joint-track {
  position: relative;
  height: 22px;
  width: 100%;
  background: #040805;
  border: 1px solid #2a3d30;
  border-radius: 6px 14px 14px 6px;
  padding: 2px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Crutch / Cardboard Filter Tip */
.joint-filter {
  width: 22px;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #d6b77b 0px,
    #d6b77b 4px,
    #a88446 4px,
    #a88446 6px
  );
  border-radius: 3px 0 0 3px;
  border-right: 2px solid #2b2110;
  flex-shrink: 0;
}

/* Unbleached RAW Hemp Rolling Paper Body */
.joint-body {
  height: 100%;
  min-width: 16px;
  background: linear-gradient(180deg, #f3ead3 0%, #d8cbb0 52%, #b5a588 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  transition: width 0.35s ease;
}

/* Ash Band + Glowing Cherry Ember */
.joint-ash {
  width: 10px;
  height: 100%;
  background: linear-gradient(90deg, #9ca3af 0%, #4b5563 100%);
  flex-shrink: 0;
}

.joint-ember {
  width: 12px;
  height: 100%;
  background: linear-gradient(90deg, #b91c1c 0%, #f97316 50%, #fef08a 100%);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 10px #f97316;
  flex-shrink: 0;
}

/* Compact Single-Row Stat Badges */
.stat-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  background: #060e09;
  border: 1px solid #233829;
}
.stat-pill.rummy { color: #4ade80; border-color: #166534; background: #051c0f; }
.stat-pill.packs { color: #fde047; border-color: #854d0e; background: #1a1405; }
.stat-pill.high  { color: #fda4af; border-color: #881337; background: #1f070e; }

/* Clickable Stamped Casino / Hash Token Round Chips */
.chips-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.chips-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--hemp-muted);
  text-transform: uppercase;
}
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.round-chip-token {
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border-radius: 50%;
  border: 3px dashed var(--gold-mid);
  background: #121713;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.round-chip-token:hover { transform: scale(1.1); border-color: #ffffff; }
.round-chip-token .chip-rn { font-size: 8px; opacity: 0.75; margin-bottom: 1px; }

.round-chip-token.chip-rummy {
  background: #0a2e19;
  border-color: #4ade80;
  color: #bbf7d0;
}
.round-chip-token.chip-drop {
  background: #2b1d07;
  border-color: #f59e0b;
  color: #fef08a;
}
.round-chip-token.chip-high {
  background: #330b14;
  border-color: #f43f5e;
  color: #fecdd3;
}
.round-chip-token.chip-adjusted {
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
}

/* ==========================================================================
   BUILT-IN CLICKABLE 225 & -25 RULE RADAR FOOTER PLAQUE
   ========================================================================== */
.radar-plaque {
  width: 100%;
  border: none;
  border-top: 2px solid var(--gold-dark);
  background: linear-gradient(180deg, #b89232 0%, #7d5e18 100%);
  color: #070a05;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: filter 0.14s ease;
}
.radar-plaque:hover { filter: brightness(1.1); }

.radar-plaque.radar-alert {
  background: linear-gradient(180deg, #f97316 0%, #9a3412 100%);
  color: #ffffff;
  border-top-color: #fde047;
}

.radar-plaque.radar-safe-green {
  background: linear-gradient(180deg, #166534 0%, #0a331a 100%);
  color: #ecfdf5;
  border-top-color: #4ade80;
}

.radar-left {
  display: flex;
  flex-direction: column;
}
.radar-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}
.radar-safety {
  font-size: 13px;
  font-weight: 900;
  margin-top: 2px;
}

.radar-max-tv {
  font-size: 30px;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
  text-align: right;
}
.radar-max-sub {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: right;
  opacity: 0.85;
}

/* ==========================================================================
   RIGHT FEATURE COLUMN: CLUB PHOTO SHRINE + STREAK BANNER + GROUND NEWS
   ========================================================================== */
.right-shrine-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Gold-Framed "J Smokers' Rummy Club" Photo Shrine */
.club-shrine-card {
  background: linear-gradient(180deg, #0d1d13 0%, #050a07 100%);
  border: 2px solid var(--gold-border);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.club-shrine-card:hover { border-color: var(--gold-light); }

.shrine-photo-frame {
  width: 100%;
  border: 3px solid var(--gold-mid);
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  position: relative;
}

.shrine-photo-frame img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
}

.shrine-plaque {
  width: 100%;
  background: linear-gradient(180deg, #d4af37 0%, #9b771e 100%);
  color: #080a05;
  border-radius: 10px;
  padding: 7px 12px;
  text-align: center;
}
.shrine-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.shrine-sub {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.85;
}

/* Celebration / Streak Banner */
.streak-banner-card {
  background: linear-gradient(135deg, #0f2918 0%, #07120b 100%);
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
}
.streak-banner-card.penalty-mode {
  background: linear-gradient(135deg, #2b0b12 0%, #120508 100%);
  border-color: #f43f5e;
}
.streak-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.streak-headline {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 2px;
  line-height: 1.15;
}
.streak-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--kush-bright);
  margin-top: 3px;
}

/* Expanded Ground News Live Ticker */
.ground-news-card {
  flex: 1;
  background: #070b08;
  border: 2px solid #2a3e30;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.gn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.gn-brand {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.gn-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.gn-tab {
  padding: 4px 8px;
  border-radius: 7px;
  background: #0e1711;
  border: 1px solid #26382c;
  color: var(--hemp-muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.gn-tab.active {
  background: var(--gold-mid);
  color: #050806;
  border-color: var(--gold-light);
}

.gn-story-body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.gn-thumb {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  border: 1px solid var(--gold-dark);
  flex-shrink: 0;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #0d2b1a 0%, #1c1708 100%);
}
.gn-headline {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}
.gn-source {
  font-size: 11px;
  color: var(--hemp-muted);
  margin-top: 4px;
  font-weight: 700;
}

/* Ground News Left / Center / Right Bias Bar */
.gn-bias-bar {
  display: flex;
  height: 22px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #2f4034;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}
.gn-bias-l { background: #1d4ed8; color: #ffffff; display: flex; align-items: center; justify-content: center; }
.gn-bias-c { background: #f3f4f6; color: #09090b; display: flex; align-items: center; justify-content: center; }
.gn-bias-r { background: #b91c1c; color: #ffffff; display: flex; align-items: center; justify-content: center; }

.gn-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #1c2920;
  font-size: 12px;
}
.gn-upnext {
  color: var(--hemp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gn-upnext strong { color: var(--gold-light); }
.gn-step-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.gn-step-btn {
  padding: 4px 8px;
  border-radius: 6px;
  background: #101b14;
  border: 1px solid #2b4032;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================================
   SCOREBOARD MATRIX VIEW
   ========================================================================== */
.matrix-card {
  background: #060b08;
  border: 2px solid var(--gold-border);
  border-radius: 18px;
  padding: 16px;
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}
.matrix-table th, .matrix-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #1a291f;
  text-align: center;
}
.matrix-table th {
  background: #0c1c12;
  color: var(--gold-light);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}
.matrix-table td {
  font-size: 18px;
  font-weight: 800;
}
.matrix-row-btn {
  cursor: pointer;
}
.matrix-row-btn:hover td {
  background: #0d1f14;
}
.cell-r { color: #4ade80; font-weight: 900; }
.cell-25 { color: #fde047; }
.cell-75 { color: #fb923c; font-weight: 900; }
.cell-high { color: #fda4af; }
.cell-adj { font-size: 11px; color: #4ade80; display: block; }

/* ==========================================================================
   NEON / GOLD VISUAL CAREER STATS VIEW (DONUT RINGS, PODIUM, TOWERS, SVG GRAPH)
   ========================================================================== */
.stats-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-section-card {
  background: #060b08;
  border: 2px solid var(--gold-border);
  border-radius: 18px;
  padding: 18px;
}

.stats-section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.donut-card {
  background: #09130d;
  border: 2px solid #243b2c;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.donut-card.rank-1 { border-color: var(--gold-mid); background: linear-gradient(180deg, #171407 0%, #080d09 100%); }

.towers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tower-player-card {
  background: #08100b;
  border: 1px solid #263b2d;
  border-radius: 14px;
  padding: 14px;
}

.tower-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 150px;
  align-items: end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #1b2b20;
}

.tower-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.tower-fill {
  width: 34px;
  border-radius: 8px 8px 2px 2px;
  min-height: 8px;
}

.tower-val { font-family: var(--font-mono); font-size: 15px; font-weight: 900; color: #ffffff; }
.tower-lbl { font-size: 10px; font-weight: 800; color: var(--hemp-muted); text-align: center; line-height: 1.1; }

.clutch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.clutch-card {
  background: #0a140d;
  border: 1px solid var(--gold-dark);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.clutch-num { font-family: var(--font-mono); font-size: 34px; font-weight: 900; color: var(--gold-light); line-height: 1; }
.clutch-name { font-size: 14px; font-weight: 800; color: #ffffff; }
.clutch-desc { font-size: 12px; color: var(--hemp-muted); }

/* ==========================================================================
   9-PHOTO CLUB GALLERY MODAL & LIGHTBOX (STATIC CRISP IMAGES ONLY)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gallery-item {
  background: #080f0a;
  border: 2px solid var(--gold-dark);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item:hover { border-color: var(--gold-light); }
.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  padding: 10px 12px;
}

/* ==========================================================================
   SOLID OPAQUE MODALS (ZERO BACKDROP-FILTER BLUR FOR BLUETOOTH SAFETY)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  overflow-y: auto;
  background: #060b08;
  border: 2px solid var(--gold-mid);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #223628;
  padding-bottom: 12px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-light);
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #141c17;
  border: 1px solid #324a39;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.entry-player-row {
  background: #0a140d;
  border: 2px solid #233829;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.entry-player-row.active-focus {
  border-color: var(--gold-light);
  background: #0e1e13;
}

.quick-btn {
  padding: 9px 14px;
  border-radius: 10px;
  background: #111c15;
  border: 1px solid #2d4535;
  color: var(--hemp-cream);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.quick-btn.sel-r { background: #16a34a; color: #021207; border-color: #86efac; }
.quick-btn.sel-25 { background: #d97706; color: #090501; border-color: #fde047; }
.quick-btn.sel-75 { background: #dc2626; color: #ffffff; border-color: #fca5a5; }
.quick-btn.sel-hand { background: #d4af37; color: #070905; border-color: #fef08a; }

.pill-score-btn {
  padding: 5px 10px;
  border-radius: 8px;
  background: #0d1610;
  border: 1px solid #2c4033;
  color: var(--hemp-cream);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.pill-score-btn:hover { border-color: var(--gold-mid); color: var(--gold-light); }

/* ==========================================================================
   OPAQUE HIGH-CONTRAST DRAGGABLE FLOATING NUMPAD
   ========================================================================== */
.floating-numpad {
  position: fixed;
  z-index: 1050;
  width: 270px;
  background: #040705;
  border: 3px solid var(--gold-mid);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.96);
  user-select: none;
}

.numpad-drag-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #26382b;
  cursor: move;
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.numpad-screen {
  background: #0b140e;
  border: 2px solid #2b4534;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}

.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.numpad-key {
  padding: 14px 0;
  border-radius: 11px;
  background: #101c14;
  border: 1px solid #304a38;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.numpad-key:hover { border-color: var(--gold-light); background: #17291d; }
.numpad-key.key-clr { background: #3b0d14; border-color: #f43f5e; color: #fecdd3; font-size: 14px; }
.numpad-key.key-ok  { background: #16a34a; border-color: #86efac; color: #021207; font-size: 14px; }

/* ==========================================================================
   ONE-SHOT 4-SECOND STADIUM PYRO FIREWORKS (UNMOUNTS COMPLETELY AFTER 4s)
   ========================================================================== */
@keyframes pyroJetRise {
  0% { transform: scaleY(0.05); opacity: 0.95; }
  30% { transform: scaleY(1.1); opacity: 1; }
  75% { transform: scaleY(0.95); opacity: 0.85; }
  100% { transform: scaleY(0.15); opacity: 0; }
}

@keyframes milestoneStamp {
  0% { transform: scale(0.4); opacity: 0; }
  18% { transform: scale(1.08); opacity: 1; }
  80% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0; }
}

.pyro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

.pyro-stamp {
  background: linear-gradient(180deg, #1f1104 0%, #090603 100%);
  border: 4px solid var(--gold-mid);
  border-radius: 26px;
  padding: 26px 46px;
  text-align: center;
  box-shadow: 0 0 60px rgba(249, 115, 22, 0.7);
  animation: milestoneStamp 3.9s ease-out forwards;
}

.pyro-jets-row {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44vh;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 4vw;
}

.pyro-jet {
  width: 28px;
  height: 100%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(to top, #dc2626 0%, #f97316 45%, #fde047 85%, #ffffff 100%);
  transform-origin: bottom center;
  animation: pyroJetRise 3.8s ease-out forwards;
}
