/* =========================================================
   L'ORATORE - STYLESHEET UFFICIALE ECOSISTEMA PROF. MEMMO
   Design System: Pure Black Base (#000000), Gold Accents (#d4af37),
   Exact Profile Dropdown Widget, 10-Pawns Selector, High Contrast
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Julius+Sans+One&family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'Julius Sans One', sans-serif;
  --font-body: 'Julius Sans One', sans-serif;

  --bg-base: #000000;
  --bg-surface: #070a12;
  --bg-surface-elevated: #0d1220;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-gold: #d4af37;

  --accent-gold: #d4af37;
  --accent-gold-hover: #f1c40f;
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --danger-color: #ef4444;
  --success-color: #10b981;
  --warning-color: #f59e0b;

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --team-red: #ef4444;
  --team-blue: #3b82f6;
  --team-green: #10b981;
  --team-yellow: #f59e0b;

  --shadow-lg: 0 10px 35px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* Regola Universale di Isolamento Elementi Nascosti / Modali */
.hidden,
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Julius Sans One', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Julius Sans One', sans-serif;
  background-color: #000000;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Julius Sans One', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-gold-hover);
  text-decoration: none;
}


/* ==========================================
   HEADER DELL'ECOSISTEMA
   ========================================== */
.app-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: #000000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-game-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.header-game-logo:hover {
  transform: scale(1.02);
}

.header-center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.header-prof-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.header-prof-logo:hover {
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================
   EXACT PROFILE WIDGET TRIGGER & DROPDOWN
   ========================================== */
.user-menu-container {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #050811;
  padding: 4px 16px 4px 6px;
  border-radius: 50px;
  border: 1.8px solid var(--accent-gold);
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.user-menu-trigger:hover {
  background: #0d1326;
  box-shadow: var(--shadow-gold);
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid var(--accent-gold);
  flex-shrink: 0;
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-trigger-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.user-trigger-name {
  font-family: 'Julius Sans One', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.user-trigger-role {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.user-trigger-chevron {
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-left: 2px;
}

/* Dropdown Card */
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 310px;
  background: #070a13;
  border: 2px solid var(--accent-gold);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1001;
}

.user-dropdown.hidden {
  display: none;
}

.dropdown-user-header {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-user-title {
  font-family: 'Julius Sans One', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dropdown-user-subtitle {
  font-size: 0.8rem;
  color: #8a99ad;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Sottofondo Music Player Box */
.dropdown-music-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.music-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.music-label {
  color: #cbd5e1;
  letter-spacing: 0.5px;
}

.music-link {
  color: #8a99ad;
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
}

.music-link:hover {
  color: var(--accent-gold);
}

.music-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020408;
  padding: 8px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-track-title {
  font-size: 0.78rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  font-family: monospace;
}

.music-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-btn-icon {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px;
  transition: color 0.15s;
}

.music-btn-icon:hover {
  color: var(--accent-gold);
}

.music-play-btn {
  background: var(--accent-gold);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Pill Action Buttons */
.dropdown-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 50px;
  background: #020408;
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.dropdown-pill-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #f1c40f;
  color: #f1c40f;
}

.dropdown-split-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.dropdown-split-row .dropdown-pill-btn {
  flex: 1;
}

.dropdown-bottom-row {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.btn-disattiva-musica {
  flex: 1.4;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-esci-red {
  flex: 1;
  background: #ef4444;
  border: 1.5px solid #ef4444;
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-esci-red:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* ==========================================
   MAIN LAYOUT & VIEWS
   ========================================== */
.main-container {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 90px 20px;
  display: flex;
  flex-direction: column;
}

.view {
  display: none;
  animation: fadeIn 0.3s ease forwards;
  width: 100%;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-card {
  background: #070a12;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b8972e 100%);
  color: #000;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f1c40f 0%, var(--accent-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: #0d1220;
  color: #fff;
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: #141b30;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-giant {
  padding: 16px 36px;
  font-size: 1.25rem;
  border-radius: var(--radius-full);
}

/* ==========================================
   VIEW: WELCOME HOME
   ========================================== */
.welcome-hero {
  text-align: center;
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  background: #050811;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
}

.welcome-hero-logo {
  max-width: 520px;
  width: 90%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.95));
  animation: floatLogo 4s ease-in-out infinite alternate;
}

@keyframes floatLogo {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.welcome-title {
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 1.5px;
}

.welcome-subtitle {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 850px;
}

.mode-pills-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.mode-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #0c101c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   4-STEP SETUP FLOW
   ========================================== */
.setup-header-box {
  text-align: center;
  margin-bottom: 28px;
}

.setup-step-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.setup-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 6px;
}

.setup-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Step 1: Team Selector Cards & Setup Layout */
.setup-card-container {
  max-width: 900px;
  margin: 0 auto 24px auto;
  width: 100%;
}

.teams-choice-grid,
.teams-count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.team-choice-card,
.setup-option-card {
  background: #070a12;
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.team-choice-card:hover,
.setup-option-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  background: #0d1222;
  box-shadow: var(--shadow-gold);
}

.team-choice-icon,
.team-choice-icon-wrap,
.option-icon {
  font-size: 2.6rem;
  color: var(--accent-gold);
}

.team-choice-num,
.team-choice-title,
.option-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.team-choice-desc,
.option-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Step 2 Helpers: Input Nome Squadra e Griglia Pedine */
.team-name-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.team-name-input-row label {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-modern {
  background: #070a13;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  min-width: 260px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-modern:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.pawns-grid-10,
.pawns-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  justify-items: center;
}

.pawn-choice-card {
  background: #070a12;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pawn-choice-card:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--accent-gold);
  background: #0e1424;
  box-shadow: var(--shadow-gold);
}

.pawn-choice-card.selected {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.2);
}

.pawn-choice-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-gold);
}

.pawn-choice-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Step 3: Mode Selector Cards */
.modes-choice-grid,
.mode-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.mode-choice-card,
.setup-option-card.mode-card {
  background: #070a12;
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  position: relative;
}

.mode-choice-card:hover,
.setup-option-card.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  background: #0d1222;
  box-shadow: var(--shadow-gold);
}

.mode-choice-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mode-choice-emoji {
  font-size: 2.5rem;
}

.mode-choice-title {
  font-size: 1.35rem;
  color: #fff;
}

.mode-choice-badge,
.mode-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 6px;
}

.badge-proibite,
.mode-tag-red {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-study,
.mode-tag-green {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.mode-choice-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Header Navigation Center (In-Game Views) */
.header-nav-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.header-nav-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.header-nav-btn.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
  .header-nav-btn span {
    display: none;
  }
}

/* Step 4: Level Selector */
.level-selector-box {
  background: #070a12;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.level-selector-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-pills-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.level-pill-btn {
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.level-pill-btn:hover {
  border-color: var(--accent-gold);
  color: #fff;
}

.level-pill-btn.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

/* Step 4: Decks Grid with Emojis */
.decks-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.deck-choice-card {
  background: #070a12;
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deck-choice-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  background: #0d1222;
  box-shadow: var(--shadow-gold);
}

.deck-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-card-emoji {
  font-size: 2.2rem;
}

.deck-card-title {
  font-size: 1.1rem;
  color: #fff;
}

.deck-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================
   VIEW: GAME HUD & FULL-FOCUS ORATOR CARD
   ========================================== */
.game-hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #070a12;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  margin-bottom: 20px;
  gap: 16px;
  width: 100%;
}

.active-team-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

.active-team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  object-fit: cover;
  background: #000;
}

.active-team-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.active-team-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 2-Minute Circular Timer */
.circular-timer-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timer-svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.timer-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3.8;
}

.timer-circle-progress {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 3.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.timer-controls-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.timer-display-digits {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1px;
  line-height: 1;
}

.btn-switch-board {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Full-Focus Orator Card Container */
.orator-full-screen-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.orator-main-card {
  width: 100%;
  background: #070a12;
  border: 2px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-xl);
  padding: 30px 36px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.card-deck-tag {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-level-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid #6366f1;
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-main-title {
  font-size: 1.85rem;
  color: #fff;
  line-height: 1.25;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 12px;
}

/* 2-Column Body Layout (Incipit Left, Words Right) */
.orator-card-body-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .orator-card-body-columns {
    grid-template-columns: 1fr;
  }
}

.card-incipit-box {
  background: #030509;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-incipit-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.card-incipit-text {
  font-size: 1.15rem;
  line-height: 1.62;
  color: #f8fafc;
}

.card-words-section {
  background: #030509;
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-words-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-words-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.word-chip {
  background: #000;
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.word-chip.mode-usare {
  border-color: rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
}

.card-actions-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-buzzer-giant {
  flex: 1;
  min-width: 240px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 2px solid #f87171;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-buzzer-giant:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.6);
}

.btn-buzzer-giant:active {
  transform: scale(0.97);
}

.buzzer-counter {
  background: #fff;
  color: #b91c1c;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 900;
}

.btn-advance-giant {
  flex: 1.2;
  min-width: 240px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
  color: #000;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-gold);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dedicated Full Board View */
.board-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #070a12;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.board-view-title {
  font-size: 1.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.board-view-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.board-full-view-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 20px;
}

/* Board Visualizer */
.board-container {
  background: #070a12;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.board-image-wrap {
  width: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.board-bg-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.pawns-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.board-pawn {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

/* Orator Challenge Card Panel */
.orator-card-panel {
  background: #070a12;
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.card-deck-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.card-title {
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.3;
}

.card-incipit-box {
  background: #020408;
  border-left: 3px solid var(--accent-gold);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
  font-style: italic;
}

/* Words Checklist */
.words-checklist-box {
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
}

.words-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.words-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.word-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #070a12;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.word-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.word-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

/* Buzzer Button */
.buzzer-btn {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transition: all 0.15s ease;
}

.buzzer-btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.8);
}

/* Scoreboard Strip */
.teams-scoreboard-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.team-score-card {
  flex: 1;
  min-width: 90px;
  background: #020408;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
}

.team-score-card.current {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
}

.team-score-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.team-score-pos {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

/* ==========================================
   BOTTOM DOCK NAVIGATION BAR
   ========================================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: #000000;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0 10px;
  z-index: 999;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  min-width: 50px;
  height: 100%;
  transition: all 0.2s ease;
}

.tab-item i {
  font-size: 1.15rem;
}

.tab-item:hover {
  color: var(--text-main);
}

.tab-item.active {
  color: var(--accent-gold);
}

/* ==========================================
   FOOTER COPYRIGHT (ECOSISTEMA STANDARD)
   ========================================== */
.view-footer-copyright {
  margin-top: 35px;
  padding: 14px 0 18px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.view-footer-copyright .footer-copy {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.9;
  flex: 1;
  text-align: justify;
  margin: 0;
}

.patamu-footer-badge {
  height: 52px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.3));
  margin: 0;
}

/* ==========================================
   LEGAL & EDIT PROFILE MODALS
   ========================================== */
.legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.legal-modal.hidden {
  display: none;
}

.legal-modal-content {
  background: #070a13;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
}

.close-legal {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.close-legal:hover {
  color: #fff;
}

/* ==========================================
   GIANT PAWNS SELECTOR (PASSO 2)
   ========================================== */
.pawns-choice-grid-giant {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 960px;
  margin: 0 auto 20px auto;
  width: 100%;
}

@media (max-width: 900px) {
  .pawns-choice-grid-giant {
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 540px) {
  .pawns-choice-grid-giant {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pawn-choice-card-giant {
  background: #070a12;
  border: 2px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  position: relative;
}

.pawn-choice-card-giant:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
  background: #0d1222;
}

.pawn-choice-card-giant.selected {
  border-color: #f1c40f;
  background: rgba(212, 175, 55, 0.18);
  box-shadow: 0 0 25px rgba(241, 196, 15, 0.45);
}

.pawn-choice-card-giant.taken {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.pawn-choice-card-giant.taken:hover {
  transform: none;
  box-shadow: none;
}

.pawn-choice-card-giant .taken-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.pawn-choice-card-giant .pawn-choice-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.8));
  transition: transform 0.2s;
}

.pawn-choice-card-giant:hover .pawn-choice-img {
  transform: scale(1.08);
}

.pawn-choice-card-giant .pawn-choice-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.setup-footer-bar {
  text-align: center;
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.welcome-actions-wrap {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.header-prof-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.leaderboard-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

/* ==========================================
   6 DIFFICULTY LEVELS GRID (PASSO 4)
   ========================================== */
.levels-six-grid,
.levels-grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 15px;
  width: 100%;
}

.level-six-card {
  background: #070a12;
  border: 2px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.level-six-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
  background: #0d1222;
}

.level-six-card.selected {
  border-color: #f1c40f;
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 25px rgba(241, 196, 15, 0.35);
}

.level-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.level-card-title {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 800;
}

.level-qcer-badge {
  background: var(--accent-gold);
  color: #000;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 900;
}

.level-card-badge {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
}

.level-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================
   ROUND HUD INFO PILL
   ========================================== */
.round-info-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #070a12;
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-full);
  padding: 6px 16px;
}

.round-number-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.round-category-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================
   TURN SUMMARY SCREEN (STILE OPS! STORIA)
   ========================================== */
.summary-container {
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
}

.summary-card {
  background: #070a12;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.summary-team-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.summary-team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.summary-title {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 4px;
}

.summary-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-stats-box {
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.summary-stat-val {
  font-weight: 800;
  font-size: 1.1rem;
}

.summary-steps-highlight {
  background: rgba(212, 175, 55, 0.15);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f1c40f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ORATOR LEVEL SELECTOR (VALUTAZIONE DOCENTE) */
.orator-levels-box {
  background: #020408;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.orator-levels-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.orator-levels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 500px) {
  .orator-levels-grid {
    grid-template-columns: 1fr;
  }
}

.orator-level-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  text-align: left;
  user-select: none;
}

.orator-level-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.orator-level-btn.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.orator-level-badge {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.orator-level-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.orator-level-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.orator-level-btn.active .orator-level-name {
  color: var(--accent-gold);
}

.orator-level-pts {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.orator-level-btn.active .orator-level-pts {
  color: #f1c40f;
}

.summary-steps-highlight.pending {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.btn:disabled, .btn[disabled] {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.6) !important;
  box-shadow: none !important;
  transform: none !important;
}


/* LiveEditor Button */
.btn-live-edit-active {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.btn-live-edit-active:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ==========================================
   ACTIVE TURN BONUS BANNER
   ========================================== */
.turn-bonus-banner {
  margin: 12px 0 16px 0;
  transition: all 0.3s ease;
}

.bonus-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(241, 196, 15, 0.45);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  color: #fef08a;
  font-size: 0.92rem;
  animation: pulseGoldGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGoldGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(241, 196, 15, 0.2); }
  50% { box-shadow: 0 0 22px rgba(241, 196, 15, 0.45); }
}

.bonus-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bonus-tag.bonus-time {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.bonus-tag.bonus-multiplier {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

/* ==========================================
   LEADERBOARD & PODIUM VIEW
   ========================================== */
.leaderboard-card-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 30px;
  text-align: center;
}

.leaderboard-header {
  margin-bottom: 28px;
}

.leaderboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.leaderboard-badge.interim-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.leaderboard-badge.final-badge {
  background: rgba(241, 196, 15, 0.2);
  color: #facc15;
  border: 1px solid rgba(241, 196, 15, 0.5);
  box-shadow: 0 0 16px rgba(241, 196, 15, 0.3);
}

.leaderboard-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.leaderboard-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto;
}

/* Podium Display */
.podium-display {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
  padding: 10px 0;
}

.podium-step {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--accent-gold);
  border-radius: 16px 16px 8px 8px;
  padding: 20px 16px 16px;
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.podium-step:hover {
  transform: translateY(-4px);
}

.podium-step.step-1 {
  height: 240px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-top: 5px solid var(--accent-gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
  order: 2;
  width: 200px;
}

.podium-step.step-2 {
  height: 195px;
  order: 1;
}

.podium-step.step-3 {
  height: 165px;
  order: 3;
}

.podium-crown {
  font-size: 1.8rem;
  margin-top: -10px;
  margin-bottom: 2px;
  animation: bounceSlow 2s infinite ease-in-out;
}

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

.podium-medal {
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.podium-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  background: #000;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.podium-avatar.winner {
  width: 72px;
  height: 72px;
  border-width: 3.5px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.podium-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.podium-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(0,0,0,0.4);
  padding: 3px 10px;
  border-radius: 12px;
}

/* Leaderboard Table */
.leaderboard-table-wrap {
  margin: 24px 0 32px 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tr.leader-row {
  background: rgba(212, 175, 55, 0.06);
}

.leaderboard-actions-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================
   SAVED GAMES LIST & MODAL
   ========================================== */
.saved-games-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.saved-game-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.saved-game-item:hover {
  border-color: var(--accent-gold);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.saved-game-info {
  flex: 1;
}

.saved-game-title {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 800;
}

.saved-game-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.saved-game-teams {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.saved-game-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-delete {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon-delete:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.05);
}







