/* ==========================================================================
   ALLY'S STREAM HUB — UNIFIED DESIGN SYSTEM & THEME
   Single Source of Truth for Branding, Typography, Colors & Core Components
   ========================================================================== */

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

:root {
  /* --- Brand Color Palette --- */
  --brand-purple: #a855f7;
  --brand-purple-dark: #7c3aed;
  --brand-purple-deep: #4c1d95;
  --brand-purple-glow: rgba(168, 85, 247, 0.45);
  --brand-pink: #ec4899;
  --brand-pink-glow: rgba(236, 72, 153, 0.4);
  --brand-gold: #f59e0b;
  --brand-gold-glow: rgba(245, 158, 11, 0.4);
  --brand-yellow: #fde047;
  --brand-yellow-light: #fef08a;
  --brand-cyan: #06b6d4;
  --brand-emerald: #10b981;
  --brand-red: #ef4444;

  /* --- Canvas & Backgrounds --- */
  --bg-deep: #120924;
  --bg-canvas-gradient:
    radial-gradient(circle at 18% 12%, rgba(139, 92, 246, 0.45) 0, transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(236, 72, 153, 0.38) 0, transparent 34%),
    linear-gradient(165deg, #1e1548, #3b2a75 48%, #1b1642);

  /* --- Glassmorphism Cards --- */
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 235, 255, 0.94));
  --glass-border: #cbb8ff;
  --glass-text: #2e1065;
  --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

  --dark-glass-bg: linear-gradient(145deg, rgba(30, 21, 72, 0.92), rgba(20, 14, 50, 0.95));
  --dark-glass-border: rgba(168, 85, 247, 0.35);
  --dark-glass-text: #ffffff;

  /* --- Typography --- */
  --font-display: 'Fredoka', 'Outfit', system-ui, sans-serif;
  --font-body: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* --- Border Radii --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;

  /* --- Transitions --- */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   GLOBAL RESET & BASE CONTAINER
   ========================================================================== */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: #ffffff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Standard Stream Overlay Stage (10:16 Aspect Ratio) */
.overlay-app, .app {
  width: min(100vw, 62.5vh);
  height: 100vh;
  aspect-ratio: 10 / 16;
  margin: auto;
  padding: 2.2% 1.2%;
  display: flex;
  flex-direction: column;
  gap: 1.4%;
  background: var(--bg-canvas-gradient);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
}

/* Unified Main Content Area (Between Header and Footer) */
.main-content {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 10px;
}

/* Standardized Zone 1 (Question/Clue) - Fixed proportional height */
.main-content > .zone-1,
.main-content > .question-zone {
  flex: 0 0 clamp(80px, 15vh, 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Standardized Zone 2 (Answers/Board) - Takes remaining space */
.main-content > .zone-2,
.main-content > .board-zone {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Standard Glass Card */
.glass {
  background: var(--glass-bg);
  color: var(--glass-text);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  box-sizing: border-box;
}

/* ==========================================================================
   BRAND HEADER & MASCOT (Ally Avatar + Speech Bubble — Think & Link Style)
   ========================================================================== */

/* ==========================================================================
   BRAND HEADER & MASCOT (Ally Avatar + Speech Bubble — Think & Link Style)
   ========================================================================== */

.brand-card,
header.brand-card,
.glass.brand-card {
  width: 100% !important;
  padding: 8px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(145deg, #facc15 0%, #eab308 45%, #ca8a04 100%) !important;
  border: 2px solid #fef08a !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
  color: #451a03 !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Subtle Sunflower Pattern */
.brand-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg transform='translate(30,30)'%3E%3Cpath d='M0 -14 C-3 -9 -3 -4 0 0 C3 -4 3 -9 0 -14' fill='%23fef08a' opacity='0.9'/%3E%3Cpath d='M0 14 C-3 9 -3 4 0 0 C3 4 3 9 0 14' fill='%23fef08a' opacity='0.9'/%3E%3Cpath d='M-14 0 C-9 -3 -4 -3 0 0 C-4 3 -9 3 -14 0' fill='%23fef08a' opacity='0.9'/%3E%3Cpath d='M14 0 C9 -3 4 -3 0 0 C4 3 9 3 14 0' fill='%23fef08a' opacity='0.9'/%3E%3Cpath d='M-10 -10 C-8 -4 -4 -8 0 0 C-8 -4 -4 -8 -10 -10' fill='%23fde047' opacity='0.9'/%3E%3Cpath d='M10 10 C8 4 4 8 0 0 C8 4 4 8 10 10' fill='%23fde047' opacity='0.9'/%3E%3Cpath d='M-10 10 C-8 -4 -4 8 0 0 C-8 -4 -4 8 -10 10' fill='%23fde047' opacity='0.9'/%3E%3Cpath d='M10 -10 C8 -4 4 -8 0 0 C8 -4 4 -8 10 -10' fill='%23fde047' opacity='0.9'/%3E%3Ccircle cx='0' cy='0' r='5' fill='%23854d0e' opacity='0.95'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23451a03' opacity='0.95'/%3E%3C/g%3E%3Cg transform='translate(6,6)'%3E%3Ccircle cx='0' cy='0' r='6' fill='none' stroke='%23fef08a' stroke-width='1.8' stroke-dasharray='2,2' opacity='0.75'/%3E%3Ccircle cx='0' cy='0' r='2.5' fill='%2378350f' opacity='0.85'/%3E%3C/g%3E%3Cg transform='translate(54,54)'%3E%3Ccircle cx='0' cy='0' r='6' fill='none' stroke='%23fef08a' stroke-width='1.8' stroke-dasharray='2,2' opacity='0.75'/%3E%3Ccircle cx='0' cy='0' r='2.5' fill='%2378350f' opacity='0.85'/%3E%3C/g%3E%3Ccircle cx='50' cy='12' r='1.5' fill='%23ffffff' opacity='0.7'/%3E%3Ccircle cx='12' cy='48' r='1.5' fill='%23ffffff' opacity='0.7'/%3E%3C/svg%3E") !important;
  background-repeat: repeat !important;
  background-size: 54px 54px !important;
  opacity: 0.22 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.brand-header-top {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
}

.brand-avatar-wrap {
  width: clamp(72px, 10vh, 96px) !important;
  height: clamp(72px, 10vh, 96px) !important;
  border-radius: 50% !important;
  padding: 3px !important;
  background: linear-gradient(135deg, #fef08a, #f59e0b) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  animation: avatarFloat 3.4s ease-in-out infinite alternate !important;
}

@keyframes avatarFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(1.5deg); }
  100% { transform: translateY(0) rotate(-1deg); }
}

.brand-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  border: 2.5px solid #ffffff !important;
  display: block !important;
}

/* Speech Bubble override with design system typography */
.avatar-speech-bubble {
  position: relative !important;
  background: #ffffff !important;
  border: 2.5px solid #fef08a !important;
  border-radius: 20px !important;
  padding: 10px 18px !important;
  min-height: clamp(52px, 7vh, 72px) !important;
  max-width: clamp(230px, 34vw, 360px) !important;
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  animation: speechBubbleFloat 3.6s ease-in-out infinite alternate !important;
  user-select: none !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
}

/* Pointer tail pointing to the avatar on the left */
.avatar-speech-bubble::before {
  content: "" !important;
  position: absolute !important;
  left: -11px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 8px solid transparent !important;
  border-bottom: 8px solid transparent !important;
  border-right: 12px solid #ffffff !important;
  z-index: 3 !important;
}

.avatar-speech-bubble::after {
  content: "" !important;
  position: absolute !important;
  left: -15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 10px solid transparent !important;
  border-bottom: 10px solid transparent !important;
  border-right: 15px solid #fef08a !important;
  z-index: 2 !important;
}

.speech-bubble-text {
  font-family: var(--font-display, 'Fredoka', 'Outfit', sans-serif) !important;
  font-size: clamp(13px, 1.85vh, 18px) !important;
  font-weight: 800 !important;
  color: #2e1065 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.2px !important;
  display: inline-block !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  word-break: break-word !important;
}

/* ==========================================================================
   SUB HEADER ROW (Consistent Standalone White Pills: Round Left, Topic Center, Timer Right)
   ========================================================================== */

.sub-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 8px !important;
  position: relative !important;
  z-index: 2 !important;
  flex-shrink: 0 !important;
}

/* Remove any legacy outer double-pill wrapper */
.game-info-pill {
  display: contents !important;
}

/* Base White Pill Style */
.meta-pill {
  font-family: var(--font-display, 'Fredoka', sans-serif) !important;
  font-size: clamp(12px, 1.55vh, 15px) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 6px 16px !important;
  border-radius: var(--radius-pill) !important;
  background: #ffffff !important;
  color: #3b1d75 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
  border: 2px solid #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

/* Left: Round Number White Pill */
.round-pill,
.meta-pill.round-pill,
#roundPill,
#round {
  background: #ffffff !important;
  color: #3b1d75 !important;
  border: 2px solid #ffffff !important;
  flex-shrink: 0 !important;
}

/* Center: Topic / Category White Pill */
.topic-pill,
.category-pill,
.meta-pill.topic-pill,
.meta-pill.category-pill,
#categoryPill,
#topicPill {
  background: #ffffff !important;
  color: #4c1d95 !important;
  border: 2px solid #ffffff !important;
  text-align: center !important;
  margin: 0 auto !important;
  max-width: 52% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding: 6px 18px !important;
}

/* Right: Timer Standalone White Pill */
.timer-pill,
.timer-badge,
#timerBox {
  font-family: var(--font-display, 'Fredoka', sans-serif) !important;
  font-size: clamp(18px, 2.5vh, 24px) !important;
  font-weight: 800 !important;
  padding: 4px 16px !important;
  border-radius: var(--radius-pill) !important;
  background: #ffffff !important;
  color: #dc2626 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
  border: 2px solid #ffffff !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 2px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast) !important;
}

.timer-num {
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.5px !important;
  color: #dc2626 !important;
}

.timer-unit {
  font-size: clamp(11px, 1.35vh, 14px) !important;
  font-weight: 700 !important;
  color: #ef4444 !important;
  opacity: 0.9 !important;
}

/* Danger / Urgent low time state */
.timer-pill.urgent,
.timer-pill.danger,
#timerBox.urgent,
#timerBox.danger {
  animation: urgentTimerPulse 0.65s ease-in-out infinite alternate !important;
  background: #fff1f2 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}

/* ==========================================================================
   RULE BANNER (Think & Link Pure White Pill Style)
   ========================================================================== */

.rule-banner {
  background: #ffffff !important;
  border-radius: 999px !important;
  padding: 4px 18px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  width: auto !important;
}

/* Rotating Carousel Banner (e.g. Word Finder) */
.rule-banner-carousel,
#ruleBanner.rule-banner {
  padding: 0 !important;
  overflow: hidden !important;
  height: 28px !important;
  min-width: 275px !important;
  position: relative !important;
  display: block !important;
}

.rule-text {
  font-family: 'Outfit', var(--font-body, sans-serif) !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.5px !important;
  color: #17022d !important;
  text-transform: uppercase !important;
}

.rule-heart {
  font-size: 14px !important;
  display: inline-block !important;
}

/* ==========================================================================
   COMMUNITY STREAK PILL
   ========================================================================== */

.streak-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(30, 21, 72, 0.9), rgba(59, 30, 110, 0.95));
  border: 2px solid var(--brand-purple);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  width: 100%;
}

.streak-label {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.4vh, 14px);
  font-weight: 800;
  color: #e9d5ff;
  letter-spacing: 0.8px;
}

.streak-val {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flame-icon {
  font-size: clamp(14px, 1.8vh, 18px);
  animation: flameBounce 1.4s ease-in-out infinite;
}

.streak-num {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.9vh, 20px);
  font-weight: 800;
  color: #fde047;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes mascotFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(1.5deg); }
  100% { transform: translateY(2px) rotate(-1deg); }
}

@keyframes urgentTimerPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

@keyframes flameBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.15) translateY(-2px); }
}

/* ==========================================================================
   HOST & ADMIN CONTROLS DESIGN SYSTEM
   ========================================================================== */

.admin-card {
  background: var(--dark-glass-bg);
  border: 1px solid var(--dark-glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.btn-game-action {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-game-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-game-action:active {
  transform: translateY(1px);
}

/* ==========================================================================
   UNIFIED "THIS ROUND'S POINTS" MODAL (DESIGN SYSTEM)
   ========================================================================== */

.modal-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(36, 12, 70, 0.88) !important;
  backdrop-filter: blur(12px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5% !important;
  z-index: 1000 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}

.modal-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-content {
  width: 100% !important;
  max-width: 92% !important;
  max-height: 94vh !important;
  background: radial-gradient(circle at 50% 0%, #8b5cf6 0%, #6d28d9 45%, #4c1d95 100%) !important;
  border: 3px solid #d8b4fe !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 48px rgba(15, 3, 35, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
  padding: 3% 4% !important;
  text-align: center !important;
  transform: scale(0.9) !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.modal-overlay.active .modal-content {
  transform: scale(1) !important;
}

.modal-title {
  font-family: 'Fredoka', 'Outfit', sans-serif !important;
  font-size: clamp(18px, 2.4vh, 24px) !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) !important;
  margin-bottom: 2% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.round-winners-row {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin: 6px 0 !important;
  width: 100% !important;
}

.modal-content .podium-card {
  flex: 1 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%) !important;
  border: 2px solid #c4b5fd !important;
  border-radius: 16px !important;
  padding: 5px 4px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2px !important;
  position: relative !important;
  min-width: 0 !important;
  max-width: 155px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important;
}

.modal-content .podium-card.first {
  border: 2.5px solid #f59e0b !important;
  background: linear-gradient(180deg, #ffffff 0%, #fef3c7 100%) !important;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25) !important;
  animation: modalSpringIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both !important;
}

.modal-content .podium-card.second {
  border: 2.5px solid #94a3b8 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
  box-shadow: 0 6px 16px rgba(100, 116, 139, 0.2) !important;
  animation: modalSpringIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both !important;
}

.modal-content .podium-card.third {
  border: 2.5px solid #d97706 !important;
  background: linear-gradient(180deg, #ffffff 0%, #ffedd5 100%) !important;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.2) !important;
  animation: modalSpringIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.28s both !important;
}

@keyframes modalSpringIn {
  0% { transform: translateY(22px) scale(0.85); opacity: 0; }
  60% { transform: translateY(-4px) scale(1.05); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-content .podium-rank {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.35vh !important;
  font-weight: 900 !important;
  color: #4c1d95 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
}

.modal-content .podium-card.first .podium-rank {
  color: #b45309 !important;
  display: inline-block !important;
  animation: modalCrownWobble 2s ease-in-out infinite alternate !important;
}

.modal-content .podium-card.second .podium-rank {
  color: #475569 !important;
}

.modal-content .podium-card.third .podium-rank {
  color: #9a3412 !important;
}

@keyframes modalCrownWobble {
  0% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.08); }
  100% { transform: rotate(-3deg) scale(1); }
}

.modal-content .avatar-wrap {
  position: relative !important;
  width: clamp(32px, 3.8vh, 44px) !important;
  height: clamp(32px, 3.8vh, 44px) !important;
  max-width: 44px !important;
  max-height: 44px !important;
  margin: 2px auto !important;
  flex-shrink: 0 !important;
}

.modal-content .avatar-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  display: block !important;
}

.modal-content .avatar-letter {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
  display: grid !important;
  place-items: center !important;
  font-size: clamp(13px, 1.6vh, 18px) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.modal-content .podium-name {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.25vh !important;
  font-weight: 800 !important;
  max-width: 95% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #1e1b4b !important;
  margin: 1px 0 !important;
}

.modal-content .podium-pts {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.15vh !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  background: #7c3aed !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

.modal-content .podium-card.first .podium-pts {
  background: #f59e0b !important;
  color: #ffffff !important;
}

.modal-content .podium-card.second .podium-pts {
  background: #64748b !important;
  color: #ffffff !important;
}

.modal-content .podium-card.third .podium-pts {
  background: #ea580c !important;
  color: #ffffff !important;
}

.modal-content .podium-card.empty-winners {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%) !important;
  border: 2px dashed #c084fc !important;
  max-width: 240px !important;
  padding: 10px 16px !important;
}

/* Also Scored (Runners-Up Below Top 3 in Current Round) */
.modal-content .also-scored-section {
  background: rgba(30, 10, 68, 0.55) !important;
  border: 1.5px solid rgba(216, 180, 254, 0.3) !important;
  border-radius: 16px !important;
  padding: 8px 12px !important;
  margin: 6px 0 4px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  text-align: left !important;
  max-height: clamp(170px, 25vh, 230px) !important;
  overflow-y: auto !important;
}

.modal-content .also-scored-section::-webkit-scrollbar {
  width: 4px !important;
}

.modal-content .also-scored-section::-webkit-scrollbar-thumb {
  background: rgba(216, 180, 254, 0.35) !important;
  border-radius: 4px !important;
}

.modal-content .also-scored-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.15vh !important;
  font-weight: 900 !important;
  color: #f3e8ff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-align: left !important;
}

.modal-content .also-scored-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.modal-content .also-scored-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 2.5px 0 !important;
  font-size: clamp(11px, 1.2vh, 13.5px) !important;
  border-bottom: 1px solid rgba(216, 180, 254, 0.1) !important;
}

.modal-content .also-scored-row:last-child {
  border-bottom: none !important;
}

.modal-content .also-scored-footer {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(10px, 1.1vh, 12px) !important;
  font-weight: 800 !important;
  color: #c4b5fd !important;
  text-align: center !important;
  padding-top: 4px !important;
  opacity: 0.9 !important;
}

.modal-content .also-scored-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.modal-content .also-scored-rank {
  font-weight: 900 !important;
  color: #c084fc !important;
  font-size: 1.1vh !important;
  min-width: 18px !important;
}

.modal-content .also-scored-name {
  color: #ffffff !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.modal-content .also-scored-pts {
  color: #34d399 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.modal-content .top-avatar-wrap,
.top-avatar-wrap {
  width: clamp(20px, 2.2vh, 24px) !important;
  height: clamp(20px, 2.2vh, 24px) !important;
  min-width: clamp(20px, 2.2vh, 24px) !important;
  max-width: clamp(20px, 2.2vh, 24px) !important;
  min-height: clamp(20px, 2.2vh, 24px) !important;
  max-height: clamp(20px, 2.2vh, 24px) !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 1.5px solid #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
}

.modal-content .top-avatar-wrap img,
.top-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

.modal-content .top-avatar-wrap .avatar-letter,
.top-avatar-wrap .avatar-letter {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
  font-size: clamp(9px, 1.1vh, 11px) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
}

.modal-content .countdown-bar-wrap {
  width: 100% !important;
  height: 6px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin-top: 8px !important;
}

.modal-content .countdown-bar {
  height: 100% !important;
  width: 100% !important;
  background: linear-gradient(90deg, #facc15, #f472b6, #c084fc) !important;
  transition: width 4s linear !important;
}

.modal-content .countdown-txt {
  font-size: 1.05vh !important;
  font-weight: 800 !important;
  color: #f3e8ff !important;
  letter-spacing: 0.3px !important;
  margin-top: 4px !important;
}

