/* 
 * Stage & Projector Presentation Styles - PHỐI MÀU CHUẨN THEO LOGO TRƯỜNG TIỂU HỌC TRƯNG NỮ VƯƠNG
 * TỐI ƯU TOÀN DIỆN VỪA KHÍT 1 MÀN HÌNH (100VH - NO SCROLL)
 */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

:root {
  --logo-blue: #004ca2;
  --logo-blue-dark: #003673;
  --logo-blue-light: #0284c7;
  --logo-red: #ed1b23;
  --logo-red-dark: #b91c1c;
  --logo-gold: #f59e0b;
  --logo-gold-amber: #d97706;

  /* Bright Theme Backgrounds */
  --bg-main: #f8fafc;
  --bg-gradient: radial-gradient(circle at 50% 10%, #ffffff 0%, #f0f7ff 40%, #e0f2fe 75%, #f8fafc 100%);
  --bg-card: rgba(255, 255, 255, 0.94);
  --border-card: rgba(0, 76, 162, 0.16);
  --shadow-card: 0 8px 24px rgba(0, 76, 162, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 30px rgba(0, 76, 162, 0.2);

  /* Typography */
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --font-heading: 'Be Vietnam Pro', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
}

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

html, body {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-dark);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Background Celebratory Light Rays & Orbs */
.stage-bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  animation: floatOrb 10s infinite alternate ease-in-out;
}

.glow-orb-1 {
  width: 450px;
  height: 450px;
  background: #38bdf8;
  top: -80px;
  left: 10%;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: #fca5a5;
  bottom: -80px;
  right: 8%;
  animation-delay: -4s;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.08); }
}

/* Top App Bar / Header */
.stage-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  min-height: 54px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 2.5px solid var(--logo-blue);
  box-shadow: 0 2px 12px rgba(0, 76, 162, 0.06);
  flex-shrink: 0;
}

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

.school-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 10px rgba(0, 76, 162, 0.2);
  object-fit: contain;
  border: 1.5px solid var(--logo-blue);
  transition: transform 0.3s;
}

.school-logo:hover {
  transform: scale(1.08) rotate(6deg);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.school-name {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: var(--logo-blue);
}

.event-title {
  font-size: 0.8rem;
  color: var(--logo-red);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.btn-icon {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--logo-blue);
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #f0f7ff;
  border-color: var(--logo-blue);
  transform: translateY(-1px);
}

.btn-admin-link {
  background: linear-gradient(135deg, #004ca2, #0284c7);
  border-color: #004ca2;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 76, 162, 0.25);
}

/* Main Layout Grid - Fits 100vh perfectly */
.stage-main-container {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: 250px 1fr 280px;
  gap: 12px;
  padding: 8px 16px 10px 16px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  height: calc(100vh - 54px);
  min-height: 0;
  overflow: hidden;
}

/* Glassmorphism Cards */
.stage-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-card);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Left Panel */
.left-panel {
  gap: 10px;
  justify-content: space-between;
}

.panel-section-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--logo-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* Active Prize Card */
.active-prize-card {
  background: linear-gradient(145deg, #ffffff, #f0f7ff);
  border: 1.5px solid rgba(0, 76, 162, 0.25);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 76, 162, 0.06);
}

.prize-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--logo-red), #ea580c);
  color: #fff;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.prize-image-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 6px auto;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 76, 162, 0.08);
  border: 1.5px solid #e0f2fe;
}

.prize-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prize-remaining {
  font-size: 0.8rem;
  color: var(--logo-blue);
  font-weight: 800;
}

.prize-btn-switch {
  margin-top: 6px;
  width: 100%;
  padding: 6px 10px;
  background: #eff6ff;
  border: 1.5px dashed var(--logo-blue);
  color: var(--logo-blue);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s;
}

.prize-btn-switch:hover {
  background: #dbeafe;
}

/* Game Mode Tabs */
.game-modes-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.game-mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s;
  text-align: left;
}

.game-mode-btn .mode-icon {
  font-size: 1.1rem;
}

.game-mode-btn:hover {
  background: #f0f7ff;
  border-color: #93c5fd;
  color: var(--logo-blue);
  transform: translateX(3px);
}

.game-mode-btn.active {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: var(--logo-blue);
  color: var(--logo-blue);
  box-shadow: 0 2px 10px rgba(0, 76, 162, 0.15);
}

/* Center Stage: Expanded Arena */
.center-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  position: relative;
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid rgba(0, 76, 162, 0.2);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.stage-arena-wrapper {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

/* Live Name HUD Banner */
.live-name-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffffff, #f0f7ff);
  border: 2px solid var(--logo-blue);
  border-radius: 24px;
  padding: 6px 20px;
  margin-bottom: 6px;
  box-shadow: 0 4px 16px rgba(0, 76, 162, 0.15);
  z-index: 10;
  max-width: 90%;
  animation: hudPulse 1.5s infinite alternate ease-in-out;
}

@keyframes hudPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.hud-target-icon {
  font-size: 1.3rem;
  animation: targetSpin 2s infinite linear;
}

@keyframes targetSpin {
  100% { transform: rotate(360deg); }
}

.hud-teacher-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--logo-red);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-teacher-dept {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--logo-blue);
  background: #e0f2fe;
  padding: 2px 10px;
  border-radius: 16px;
  white-space: nowrap;
  border: 1px solid #bae6fd;
}

/* Stage Bottom Action Bar */
.stage-control-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-shrink: 0;
}

.filter-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-pill {
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  color: var(--logo-blue);
  background: #e0f2fe;
  border-color: var(--logo-blue);
}

.filter-pill.active {
  background: var(--logo-blue);
  border-color: var(--logo-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 76, 162, 0.3);
}

/* Giant Spin Button */
.btn-giant-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 42px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #ed1b23 0%, #dc2626 50%, #b91c1c 100%);
  border: 2.5px solid #fde047;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(237, 27, 35, 0.4), 0 0 20px rgba(245, 158, 11, 0.35);
  transition: all 0.2s;
  position: relative;
}

.btn-giant-spin:hover:not(:disabled) {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 10px 30px rgba(237, 27, 35, 0.5);
}

.btn-giant-spin:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-giant-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.spin-shortcut-hint {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

/* Right Panel: 2 Tabs (Tham gia & Trúng thưởng) */
.right-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
}

.right-panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.r-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}

.r-tab-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.r-tab-btn.active {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 76, 162, 0.15);
}

.r-tab-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748b;
  white-space: nowrap;
}

.r-tab-btn.active .r-tab-label {
  color: var(--logo-blue);
}

.r-tab-count-badge {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #334155;
  line-height: 1.2;
}

.r-tab-btn.active .r-tab-count-badge {
  color: var(--logo-red);
}

.r-tab-content {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.r-tab-content.active {
  display: flex;
}

.p-search-wrapper {
  margin-bottom: 6px;
  flex-shrink: 0;
}

.p-search-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.78rem;
  outline: none;
  background: #ffffff;
  color: #0f172a;
}

.p-search-input:focus {
  border-color: var(--logo-blue);
}

.participants-scroll-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  padding-right: 2px;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 4px 8px;
  transition: all 0.15s;
}

.participant-item:hover {
  background: #f0f7ff;
  border-color: #93c5fd;
  transform: translateX(2px);
}

.p-order {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.p-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--logo-blue);
  flex-shrink: 0;
  background: #f0f7ff;
}

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

.p-info {
  flex: 1;
  min-width: 0;
}

.p-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.winners-stream-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding-right: 2px;
}

.winner-stream-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 8px;
  transition: all 0.2s;
  animation: slideInStream 0.3s ease-out;
}

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

.winner-stream-item:hover {
  background: #f0f7ff;
  border-color: #93c5fd;
}

.winner-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0f2fe;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--logo-blue);
}

.winner-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winner-item-info {
  flex: 1;
  min-width: 0;
}

.winner-item-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-item-gift {
  font-size: 0.72rem;
  color: var(--logo-red);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-item-dept {
  font-size: 0.68rem;
  color: var(--logo-blue);
  font-weight: 600;
}

/* ================================================= */
/* 🎡 LUCKY WHEEL */
/* ================================================= */
.wheel-game-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wheel-outer-ring {
  position: relative;
  border-radius: 50%;
  padding: 10px;
  background: radial-gradient(circle, #ffffff 60%, #e0f2fe 85%, #bae6fd 100%);
  border: 4px solid var(--logo-blue);
  box-shadow: 0 8px 32px rgba(0, 76, 162, 0.25), 0 0 0 8px rgba(0, 76, 162, 0.12);
}

.wheel-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-red));
  border: 4px solid #fff;
  box-shadow: 0 0 20px rgba(0, 76, 162, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.hub-logo-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-logo-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}

.pointer-arrow {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 36px solid var(--logo-red);
  filter: drop-shadow(0 4px 8px rgba(237, 27, 35, 0.6));
  animation: pointerPulse 1s infinite alternate ease-in-out;
}

@keyframes pointerPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* ================================================= */
/* 🏎️ 106-RACER MEGA MARATHON CANVASES */
/* ================================================= */
.race-mega-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.race-canvas-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 76, 162, 0.08);
  border: 1.5px solid #bae6fd;
  background: #f8fafc;
}

#race-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.race-countdown-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, var(--logo-red), #ea580c);
  padding: 16px 48px;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(237, 27, 35, 0.6), 0 0 0 6px #ffffff;
  z-index: 20;
  animation: countdownPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countdownPop {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ================================================= */
/* 🎁 MYSTERY BOXES STYLES */
/* ================================================= */
.boxes-game-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mystery-boxes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 720px;
}

.mystery-box-card {
  perspective: 800px;
  height: 105px;
  cursor: pointer;
  transition: transform 0.3s;
}

.box-3d-wrap {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--logo-blue), var(--logo-blue-dark));
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 76, 162, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid #fff;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mystery-box-card:hover .box-3d-wrap {
  transform: translateY(-4px) scale(1.04);
}

.box-number {
  position: absolute;
  top: 6px;
  left: 8px;
  font-weight: 900;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.box-icon {
  font-size: 2.2rem;
}

.box-highlighted .box-3d-wrap {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--logo-gold);
  border-color: #fff;
  background: linear-gradient(145deg, var(--logo-red), var(--logo-red-dark));
}

.box-selected-winner .box-3d-wrap {
  transform: scale(1.15) translateY(-8px);
  box-shadow: 0 0 45px var(--logo-red);
  z-index: 20;
}

.box-reveal-card {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  border: 2.5px solid var(--logo-red);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.reveal-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 4px;
  border: 2px solid var(--logo-blue);
}

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

.reveal-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.reveal-dept {
  font-size: 0.7rem;
  color: var(--logo-blue);
  font-weight: 700;
}

/* ================================================= */
/* 🎰 SLOT MACHINE STYLES */
/* ================================================= */
.slot-game-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.slot-cabinet {
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  border: 4px solid var(--logo-blue);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 35px rgba(0, 76, 162, 0.2);
  width: 100%;
  max-width: 720px;
}

.slot-marquee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-red));
  padding: 8px 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(0, 76, 162, 0.25);
}

.marquee-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
}

.slot-window-frame {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 10px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 10px;
  border: 2px solid #93c5fd;
}

.slot-reel-column {
  height: 140px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.slot-item {
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  padding: 8px;
}

.slot-badge-dept {
  background: #eff6ff;
  border: 1.5px solid var(--logo-blue);
  color: var(--logo-blue);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 76, 162, 0.1);
}

.slot-badge-loc {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  color: #b45309;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.1);
}

.slot-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--logo-blue);
  overflow: hidden;
  background: #f0f7ff;
  box-shadow: 0 4px 10px rgba(0, 76, 162, 0.2);
}

.slot-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-main-name .name-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--logo-red);
  letter-spacing: -0.2px;
}

/* ================================================= */
/* 🎆 GALAXY 3D NAME CLOUD STYLES */
/* ================================================= */
.galaxy-game-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.galaxy-canvas-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#galaxy-canvas {
  max-width: 100%;
  border-radius: 18px;
}

.galaxy-target-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.galaxy-target-reticle.active {
  opacity: 1;
}

.reticle-ring {
  width: 100%;
  height: 100%;
  border: 3px dashed var(--logo-red);
  border-radius: 50%;
  animation: reticleSpin 4s infinite linear;
}

@keyframes reticleSpin {
  100% { transform: rotate(360deg); }
}

.galaxy-target-reticle.locked .reticle-ring {
  border: 3.5px solid var(--logo-blue);
  box-shadow: 0 0 30px var(--logo-blue);
  animation: none;
}

/* ================================================= */
/* 👑 WINNER CELEBRATION MODAL (POPUP VINH DANH) */
/* ================================================= */
.winner-modal-card {
  background: linear-gradient(145deg, #ffffff, #f0f7ff);
  border: 3.5px solid var(--logo-blue);
  border-radius: 32px;
  width: 100%;
  max-width: 660px;
  padding: 32px 28px;
  text-align: center;
  color: #0f172a;
  box-shadow: 0 30px 80px rgba(0, 76, 162, 0.3), 0 0 70px rgba(237, 27, 35, 0.25);
  position: relative;
  overflow: hidden;
}

.winner-crown-icon {
  font-size: 3.6rem;
  margin-bottom: 4px;
  animation: crownBounce 1s infinite alternate ease-in-out;
}

.winner-modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.winner-avatar-frame {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--logo-blue);
  box-shadow: 0 6px 20px rgba(0, 76, 162, 0.3);
  margin: 0 auto 12px auto;
  overflow: hidden;
  background: #fff;
}

.winner-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winner-teacher-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--logo-red);
  margin-bottom: 3px;
}

.winner-teacher-dept {
  font-size: 1.05rem;
  color: var(--logo-blue);
  font-weight: 800;
  margin-bottom: 3px;
}

.winner-teacher-duty {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 14px;
}

.winner-awarded-prize {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 76, 162, 0.06);
}

.winner-prize-icon {
  font-size: 2.2rem;
}

.winner-prize-info .prize-tag {
  font-size: 0.74rem;
  color: var(--logo-red);
  font-weight: 800;
  text-transform: uppercase;
}

.winner-prize-info .prize-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.winner-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}

.btn-winner-confirm {
  flex: 1.2;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
  transition: all 0.2s;
}

.btn-winner-confirm:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-winner-cancel {
  flex: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 12px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-winner-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-winner-print {
  flex: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 12px;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-blue-dark));
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 76, 162, 0.25);
  transition: all 0.2s;
}

.btn-winner-print:hover {
  transform: translateY(-2px);
}
