/* ==========================================================================
   CROWNLUP ESPORTS - PUBG Mobile Broadcast Graphics Overlay Stylesheet
   Powered by ui.css foundation & Calm Dark Theme
   ========================================================================== */

@import url('/ui.css');

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

body {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background-color: transparent;
  font-family: var(--font-body);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

#overlay-container {
  position: relative;
  width: 100%;
  height: 1080px;
  pointer-events: none;
}

/* Base Scene Transition */
.broadcast-scene {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  width: 100%;
  height: 1080px;
  position: absolute;
  top: 0;
  left: 0;
}

.broadcast-scene.active {
  display: block;
  opacity: 1;
}

/* ========================================================
   SCENE 1: IN-GAME LEADERBOARD (SIDEBAR KANAN)
   ======================================================== */
#match-header {
  position: absolute;
  top: 24px;
  left: 32px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(10, 15, 36, 0.95), rgba(16, 23, 53, 0.92));
  border: 1px solid rgba(196, 159, 72, 0.45);
  border-left: 4px solid var(--gold-400);
  border-radius: var(--radius-md);
  padding: 6px 18px;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.header-badge.live {
  color: #ef4444;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.header-info {
  color: var(--navy-50);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.08em;
  border-right: 1px solid var(--line);
  padding-right: 14px;
  text-transform: uppercase;
}

.header-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.header-stat .label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.header-stat .val {
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

#leaderboard-container {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 330px;
  background: linear-gradient(180deg, rgba(10, 15, 36, 0.96) 0%, rgba(16, 23, 53, 0.96) 100%);
  border: 1px solid rgba(196, 159, 72, 0.4);
  border-top: 3px solid var(--gold-400);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.lb-header {
  display: grid;
  grid-template-columns: 30px 1fr 60px 42px 42px;
  background: rgba(28, 39, 84, 0.65);
  border-bottom: 1px solid rgba(196, 159, 72, 0.35);
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.05em;
  text-align: center;
}

.lb-header .col-team {
  text-align: left;
  padding-left: 6px;
}

.teams-list {
  display: flex;
  flex-direction: column;
}

.team-row {
  display: grid;
  grid-template-columns: 30px 1fr 60px 42px 42px;
  align-items: center;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
  position: relative;
}

.team-row:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

.team-row.rank-1 {
  background: rgba(196, 159, 72, 0.16);
}
.team-row.rank-1 .team-rank {
  color: var(--gold-400);
  font-weight: 800;
}

.team-row.eliminated {
  opacity: 0.35;
  filter: grayscale(85%);
}
.team-row.eliminated .team-rank,
.team-row.eliminated .team-name,
.team-row.eliminated .team-pts,
.team-row.eliminated .team-elims { color: var(--muted); }

.team-rank {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--navy-50);
  text-align: center;
}

.team-identity {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding-left: 4px;
}

.slot-badge {
  border: 1px solid var(--line-strong);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 2px;
  background: rgba(10, 15, 36, 0.6);
  line-height: 14px;
}

.team-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Alive Bars */
.alive-bars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5px;
}

.alive-bar {
  width: 5px;
  height: 16px;
  border-radius: 1px;
  transition: all 0.2s ease;
}

.alive-bar.status-alive {
  background-color: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}
.alive-bar.status-knocked {
  background-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
  animation: knock-pulse 0.5s infinite alternate;
}
@keyframes knock-pulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}
.alive-bar.status-dead {
  background-color: rgba(28, 39, 84, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-pts, .team-elims {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  color: var(--navy-50);
  line-height: 1;
}

.team-pts {
  color: var(--gold-300);
}

.lb-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  background: rgba(10, 15, 36, 0.85);
  padding: 5px 0;
  border-top: 1px solid var(--line);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--muted);
}

.dot { width: 5px; height: 5px; border-radius: 50%; }
.alive-dot { background-color: #ffffff; }
.dead-dot { background-color: rgba(255, 255, 255, 0.25); }

/* ========================================================
   SCENE 2: TOP 4 SHOWDOWN (CARDS)
   ======================================================== */
.top4-hud-header {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 15, 36, 0.95);
  border: 1px solid rgba(196, 159, 72, 0.45);
  padding: 5px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.hud-stat-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.hud-label {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--muted);
}
.hud-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy-50);
  line-height: 1;
}
.hud-pill-tag {
  background: rgba(196, 159, 72, 0.15);
  color: var(--gold-300);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
}

.top4-cards-row {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.top4-card {
  width: 260px;
  background: linear-gradient(180deg, rgba(16, 23, 53, 0.96) 0%, rgba(10, 15, 36, 0.95) 100%);
  border: 1px solid rgba(196, 159, 72, 0.4);
  border-top: 3px solid var(--gold-400);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.4s ease, filter 0.4s ease, border-color 0.4s ease;
}

/* Eliminated State */
.top4-card.eliminated {
  opacity: 0.38;
  filter: grayscale(85%);
  border-top-color: #ef4444;
}

.top4-card.eliminated .t4-rank,
.top4-card.eliminated .t4-name,
.top4-card.eliminated .t4-stats strong {
  color: var(--muted);
}

.t4-elim-badge {
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  padding: 2px 0;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.top4-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.t4-rank {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-400);
}
.t4-slot {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  padding: 0 4px;
  border-radius: 2px;
  color: var(--gold-300);
  background: rgba(10, 15, 36, 0.6);
}
.t4-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.top4-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.t4-alive-group {
  display: flex;
  align-items: center;
  gap: 5px;
}
.t4-standing {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.t4-stats {
  display: flex;
  gap: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--muted);
  font-weight: 700;
}
.t4-stats strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-300);
}

.t4-win-bar {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.t4-win-text {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.t4-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.t4-progress .fill {
  height: 100%;
  background: var(--gold-400);
  transition: width 0.3s ease;
}

/* ========================================================
   SCENE 3: IN-GAME WWCD BANNER RIBBON (CENTERED)
   ======================================================== */
.ribbon-centered-wrapper {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 100;
}

.ribbon-overlay-card {
  display: flex;
  background: linear-gradient(90deg, rgba(10, 15, 36, 0.98) 0%, rgba(16, 23, 53, 0.96) 100%);
  border: 1px solid rgba(196, 159, 72, 0.6);
  border-left: none;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 30px rgba(196, 159, 72, 0.25);
  animation: pop-up-center 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-up-center {
  0% { transform: translateY(60px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.gold-ribbon-tag {
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-600) 100%);
  width: 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.4);
}
.rb-rank {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 400;
  color: var(--navy-950);
  line-height: 1;
}
.rb-slot {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-950);
}

.ribbon-content {
  padding: 16px 32px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rb-meta {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.rb-headline {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--gold-300);
  letter-spacing: 0.08em;
}
.rb-team-title {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rb-alive-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px 0;
}
.rb-alive-text {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy-200);
}

.rb-stats-grid {
  display: flex;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.rb-stat-item {
  display: flex;
  flex-direction: column;
}
.rb-stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
}
.rb-stat-num.highlight { color: var(--gold-300); }
.rb-stat-label {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
}

/* ========================================================
   SCENE 4: VICTORY CEREMONY
   ======================================================== */
.ceremony-container {
  width: 100%;
  height: 1080px;
  background: radial-gradient(circle at center, rgba(16, 23, 53, 0.98) 0%, rgba(10, 15, 36, 0.99) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 50px;
}

.ceremony-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(196, 159, 72, 0.4);
  background: rgba(10, 15, 36, 0.9);
  padding: 10px 24px;
  border-radius: var(--radius-md);
}
.ct-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.diamond-icon { color: var(--gold-400); font-size: 12px; }
.badge-tag {
  background: rgba(196, 159, 72, 0.15);
  color: var(--gold-300);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.ceremony-type { font-size: 11px; color: var(--muted); font-family: var(--font-mono); font-weight: 700; }
.ceremony-headline { font-size: 14px; font-weight: 800; color: #ffffff; letter-spacing: 0.05em; text-transform: uppercase; }

.ct-center {
  border: 1px solid var(--line);
  background: rgba(10, 15, 36, 0.6);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy-100);
  letter-spacing: 0.05em;
}
.ct-right {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--gold-300);
  letter-spacing: 0.05em;
}

.ceremony-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.chicken-icon-badge {
  background: rgba(196, 159, 72, 0.15);
  border: 2px solid var(--gold-400);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(196, 159, 72, 0.4);
  margin-bottom: 10px;
}
.wwcd-label {
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 4px;
}
.wwcd-main-title {
  font-family: var(--font-display);
  font-size: 78px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(196, 159, 72, 0.6);
  margin-bottom: 24px;
}

.squad-characters {
  display: flex;
  gap: 24px;
  margin-top: 10px;
}
.char-silhouette {
  background: linear-gradient(180deg, rgba(28, 39, 84, 0.5) 0%, rgba(10, 15, 36, 0.9) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  width: 130px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.char-silhouette.char-leader {
  border-color: var(--gold-400);
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(196, 159, 72, 0.35);
}
.char-avatar { font-size: 52px; }
.char-role { font-size: 10px; font-family: var(--font-mono); font-weight: 800; color: var(--navy-200); letter-spacing: 0.05em; }

.ceremony-marquee {
  width: 100%;
  overflow: hidden;
  background: rgba(10, 15, 36, 0.6);
  border-top: 1px solid rgba(196, 159, 72, 0.3);
  border-bottom: 1px solid rgba(196, 159, 72, 0.3);
  padding: 8px 0;
  margin: 20px 0;
}
.marquee-content {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold-300);
  letter-spacing: 0.08em;
  animation: marquee-roll 25s linear infinite;
}
@keyframes marquee-roll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ceremony-bottom-cards {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 16px;
}
.c-card {
  background: rgba(10, 15, 36, 0.92);
  border: 1px solid rgba(196, 159, 72, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.c-card.highlight-card {
  border-color: var(--gold-400);
  background: linear-gradient(135deg, rgba(28, 39, 84, 0.7), rgba(10, 15, 36, 0.95));
}
.cc-tag {
  background: rgba(196, 159, 72, 0.15);
  color: var(--gold-300);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 4px;
}
.cc-subtitle { font-size: 11px; font-family: var(--font-mono); font-weight: 700; color: var(--muted); }
.cc-title { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: #ffffff; line-height: 1.1; }
.cc-meta { font-size: 11px; font-weight: 600; color: var(--navy-200); }
.cc-big-val { font-family: var(--font-display); font-size: 46px; font-weight: 400; color: #ffffff; line-height: 1; }
.cc-big-val small { font-family: var(--font-mono); font-size: 16px; color: var(--muted); }
.cc-big-val.gold { color: var(--gold-300); }
.cc-highlight { font-size: 12px; font-weight: 800; color: var(--gold-300); }

/* ========================================================
   SCENE 5: POST-GAME MATCH STANDINGS
   ======================================================== */
.standings-container {
  width: 100%;
  height: 1080px;
  background: radial-gradient(circle at center, rgba(16, 23, 53, 0.98) 0%, rgba(10, 15, 36, 0.99) 100%);
  display: flex;
  flex-direction: column;
  padding: 36px 48px;
}

.standings-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(196, 159, 72, 0.4);
  background: rgba(10, 15, 36, 0.9);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.st-left { display: flex; align-items: center; gap: 12px; }
.st-left h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: #ffffff; letter-spacing: 0.06em; margin: 0; }
.st-subtitle { font-size: 13px; font-family: var(--font-mono); font-weight: 700; color: var(--muted); }
.st-right { display: flex; align-items: center; gap: 10px; }
.st-pill {
  background: rgba(10, 15, 36, 0.6);
  border: 1px solid var(--line);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy-100);
}
.st-pill.gold {
  background: rgba(196, 159, 72, 0.15);
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.standings-body {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  flex: 1;
}

/* Winner Card Left */
.st-winner-card {
  background: linear-gradient(180deg, rgba(16, 23, 53, 0.96) 0%, rgba(10, 15, 36, 0.98) 100%);
  border: 1px solid rgba(196, 159, 72, 0.45);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.st-wc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--gold-300);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.st-wc-rank { font-family: var(--font-display); font-size: 24px; color: var(--gold-400); }

.st-wc-hero { text-align: center; margin: 16px 0; }
.st-wc-slot {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-300);
  background: rgba(196, 159, 72, 0.15);
  border: 1px solid var(--line-strong);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 8px;
}
.st-wc-name {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  text-transform: uppercase;
}

.st-wc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.st-wc-box {
  background: rgba(10, 15, 36, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.box-label { font-size: 10px; font-family: var(--font-mono); font-weight: 700; color: var(--muted); }
.box-num { font-family: var(--font-display); font-size: 30px; font-weight: 400; color: #ffffff; line-height: 1; }
.box-num.gold { color: var(--gold-300); }

.st-wc-total {
  background: rgba(196, 159, 72, 0.12);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.st-wc-total-info { display: flex; flex-direction: column; }
.tot-label { font-size: 11px; font-family: var(--font-mono); font-weight: 800; color: var(--gold-300); letter-spacing: 0.05em; }
.tot-formula { font-size: 10px; font-family: var(--font-mono); color: var(--muted); }
.tot-score { font-family: var(--font-display); font-size: 50px; font-weight: 400; color: var(--gold-400); line-height: 1; }

/* Right Dual Standings Tables */
.st-tables-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.st-table-col {
  background: rgba(10, 15, 36, 0.94);
  border: 1px solid rgba(196, 159, 72, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.st-col-header {
  display: grid;
  grid-template-columns: 28px 1fr 42px 38px 38px 38px 44px 48px;
  background: rgba(28, 39, 84, 0.7);
  border-bottom: 1px solid rgba(196, 159, 72, 0.35);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-300);
  text-align: center;
  letter-spacing: 0.05em;
}
.st-col-header .col-t { text-align: left; padding-left: 6px; }
.st-col-header .col-tot { color: var(--gold-200); }

.st-table-rows { display: flex; flex-direction: column; }
.st-row {
  display: grid;
  grid-template-columns: 28px 1fr 42px 38px 38px 38px 44px 48px;
  align-items: center;
  padding: 6.5px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  text-align: center;
}
.st-row:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.st-row.rank-1 { background: rgba(196, 159, 72, 0.14); }
.st-row.rank-1 .st-rank { color: var(--gold-400); }

.st-rank { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: #ffffff; }
.st-team-col { display: flex; align-items: center; gap: 6px; text-align: left; padding-left: 6px; overflow: hidden; }
.st-team-slot { font-family: var(--font-mono); font-size: 9.5px; color: var(--gold-300); border: 1px solid var(--line-strong); padding: 0 4px; border-radius: 2px; }
.st-team-name { font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; text-transform: uppercase; }
.st-place { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.st-elims, .st-pp, .st-ep { font-family: var(--font-display); font-size: 18px; color: #ffffff; }
.st-match-pts { font-family: var(--font-display); font-size: 19px; font-weight: 400; color: var(--navy-100); }
.st-total-pts { font-family: var(--font-display); font-size: 21px; font-weight: 400; color: var(--gold-300); }

/* ========================================================
   SCENE 6: MOST IMPROVED SCREEN
   ======================================================== */
.mi-container {
  width: 100%;
  height: 1080px;
  background: radial-gradient(circle at center, rgba(16, 23, 53, 0.98) 0%, rgba(10, 15, 36, 0.99) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 70px;
}

.mi-top-bar h1 {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}
.mi-subtitle { font-size: 16px; font-family: var(--font-mono); color: var(--muted); font-weight: 600; }

.mi-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  margin: 30px 0;
}

.mi-hero-card {
  background: rgba(10, 15, 36, 0.94);
  border: 1px solid rgba(196, 159, 72, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mi-hero-team { display: flex; align-items: center; gap: 14px; }
.mi-avatar-box {
  background: rgba(196, 159, 72, 0.15);
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mi-team-text { display: flex; flex-direction: column; }
.mi-team-name { font-family: var(--font-display); font-size: 40px; font-weight: 400; color: #ffffff; line-height: 1; text-transform: uppercase; }
.mi-slot { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.mi-compare-row {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 24px 0;
  position: relative;
}
.mi-col { display: flex; flex-direction: column; }
.mi-label { font-size: 13px; font-family: var(--font-mono); color: var(--muted); font-weight: 700; text-transform: uppercase; }
.mi-rank-num { font-family: var(--font-display); font-size: 110px; font-weight: 400; color: #ffffff; line-height: 1; }
.mi-rank-num.gold { color: var(--gold-400); }
.mi-arrow { font-size: 36px; color: var(--muted); }

.mi-meter-track {
  position: absolute;
  right: 40px;
  height: 140px;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.mi-track-line {
  position: absolute;
  width: 3px;
  height: 100%;
  background: var(--gold-400);
  border-radius: 2px;
}
.mi-point {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-950);
  border: 2px solid var(--muted);
  color: #ffffff;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mi-point.current-pt {
  background: var(--gold-400);
  border-color: #ffffff;
  color: var(--navy-950);
  transform: scale(1.2);
}

.mi-hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.mi-badge-up {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--gold-300);
}
.triangle { font-size: 20px; }
.places-num { font-family: var(--font-display); font-size: 48px; font-weight: 400; line-height: 1; }
.places-text { font-size: 16px; font-family: var(--font-mono); font-weight: 800; letter-spacing: 1px; }
.mi-series-info { font-size: 14px; font-family: var(--font-mono); color: var(--muted); font-weight: 600; }

/* Right Cards */
.mi-right-cards { display: flex; flex-direction: column; gap: 14px; }
.mi-side-title { font-size: 14px; font-family: var(--font-mono); font-weight: 700; color: var(--muted); text-transform: uppercase; }

.mi-climber-card {
  background: rgba(10, 15, 36, 0.94);
  border: 1px solid rgba(196, 159, 72, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.climber-info { display: flex; flex-direction: column; }
.climber-name { font-size: 16px; font-weight: 800; color: #ffffff; text-transform: uppercase; }
.climber-path { font-size: 12px; font-family: var(--font-mono); color: var(--muted); font-weight: 600; }
.climber-gain { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--gold-300); }

.mi-footer-notes {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
