/**
 * PolyQuiz (polyquiz.top) — Phong cách giao diện Kahoot Stage (Single-Layer UI)
 * 100% CSS thuần, không phụ thuộc CDN ngoài, không dùng inline style trong HTML
 * Đề 3: Minigame quiz thu lead cho fanpage — Đội LIL SIMP (VIBE-CODING 2026)
 */

:root {
  --kh-bg-deep: #1a044d;
  --kh-bg-main: #351073;
  --kh-bg-accent: #46178f;
  --kh-surface: #ffffff;
  --kh-surface-soft: rgba(255, 255, 255, 0.13);
  --kh-surface-hover: rgba(255, 255, 255, 0.22);
  --kh-text-dark: #1d1338;
  --kh-text-muted: #5b5075;
  --kh-text-light: #ffffff;

  /* 4 Màu đáp án đặc trưng của Kahoot */
  --kh-red: #e21b3c;
  --kh-red-lip: #9e0e26;
  --kh-blue: #1368ce;
  --kh-blue-lip: #0b458c;
  --kh-yellow: #d89e00;
  --kh-yellow-lip: #966d00;
  --kh-green: #26890c;
  --kh-green-lip: #165405;

  --kh-purple-btn: #6c2bd9;
  --kh-purple-lip: #48159c;
  --kh-gold: #ffc72c;
  --kh-danger: #ff3b5c;
  --kh-success: #22c55e;

  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-pill: 999px;
}

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

html,
body {
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: radial-gradient(circle at 18% 12%, #591eb3 0%, var(--kh-bg-main) 48%, var(--kh-bg-deep) 100%);
  color: var(--kh-text-light);
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

body {
  padding-top: 66px;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.065;
}

body::before {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: #ffffff;
  top: -120px;
  left: -120px;
}

body::after {
  width: 340px;
  height: 340px;
  background: #ffffff;
  transform: rotate(45deg);
  bottom: -130px;
  right: -100px;
  border-radius: 40px;
}

.is-hidden {
  display: none !important;
}

.flex-center-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flex-between-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.flex-row-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.w-full {
  width: 100%;
}

/* ================= TOP NAVIGATION BAR (KHOÁ CỨNG TRÊN CÙNG MÀN HÌNH) ================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 28px;
  background: rgba(20, 4, 58, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.brand-logo:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.06);
}

.brand-logo-img {
  height: clamp(36px, 3.8vh, 46px);
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.38));
}

.ai-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 199, 44, 0.16);
  color: #ffe082;
  border: 1px solid rgba(255, 199, 44, 0.45);
}

.ai-mode-badge.is-real-ai {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.5);
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sound-toggle-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.sound-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sound-toggle-btn.is-muted {
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-tab-btn {
  appearance: none;
  border: none;
  background: var(--kh-surface-soft);
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-tab-btn:hover {
  background: var(--kh-surface-hover);
}

.nav-tab-btn.active {
  background: #ffffff;
  color: var(--kh-bg-deep);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

/* ================= MAIN STAGE CONTAINER (SINGLE-LAYER CANVAS) ================= */
.stage-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 28px 20px 44px;
  flex: 1;
}

/* Chế độ Sân khấu Chơi Fullscreen (Tự động co giãn 1080p, 2K, 4K) */
.stage-main.is-playing-mode {
  max-width: 100%;
  width: 100%;
  padding: clamp(10px, 1.4vh, 22px) clamp(18px, 2.2vw, 48px) clamp(14px, 2vh, 30px);
  display: flex;
  flex-direction: column;
}

.stage-main.is-playing-mode ~ .stage-footer {
  display: none !important;
}

.stage-main.is-playing-mode #screen-play {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.screen-view {
  display: none;
  animation: fadeInStage 0.22s ease-out;
}

.screen-view.active {
  display: block;
}

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

/* ================= NÚT BẤM 3D PHONG CÁCH KAHOOT ================= */
.btn-3d {
  appearance: none;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  transition: transform 0.08s ease, filter 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  user-select: none;
}

.btn-3d:hover:not(:disabled) {
  filter: brightness(1.07);
}

.btn-3d:active:not(:disabled) {
  transform: translateY(3px);
}

.btn-3d:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-green {
  background: var(--kh-green);
  box-shadow: 0 5px 0 var(--kh-green-lip);
}

.btn-blue {
  background: var(--kh-blue);
  box-shadow: 0 5px 0 var(--kh-blue-lip);
}

.btn-purple {
  background: var(--kh-purple-btn);
  box-shadow: 0 5px 0 var(--kh-purple-lip);
}

.btn-gold {
  background: var(--kh-gold);
  color: var(--kh-bg-deep);
  box-shadow: 0 5px 0 #b58500;
}

.btn-red {
  background: var(--kh-red);
  box-shadow: 0 5px 0 var(--kh-red-lip);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.86rem;
  border-radius: 10px;
}

/* ================= 1. SẢNH CHỜ BẮT ĐẦU CHƠI (LOBBY STAGE) ================= */
.lobby-stage {
  text-align: center;
  padding: 24px 20px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.campaign-kicker {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 199, 44, 0.16);
  border: 1px solid rgba(255, 199, 44, 0.4);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  color: var(--kh-gold);
}

.lobby-title {
  font-size: clamp(1.75rem, 3.8vw, 2.55rem);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 12px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.lobby-subtitle {
  max-width: 680px;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

.lobby-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.lobby-pill {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lobby-pill strong {
  color: var(--kh-gold);
}

.lobby-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: left;
}

.spotlight-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 16px;
  border-radius: 14px;
}

.spotlight-icon {
  font-size: 1.65rem;
  line-height: 1;
  flex-shrink: 0;
}

.spotlight-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spotlight-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.spotlight-value {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--kh-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.btn-start-hero {
  font-size: 1.25rem;
  padding: 16px 44px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 var(--kh-green-lip), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.keyboard-tip-line {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 18px;
}

.keyboard-tip-line code {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--kh-gold);
  font-weight: 800;
}

/* ================= 2. SÂN KHẤU CHƠI CÂU HỎI (KAHOOT FULLSCREEN STAGE 1080P / 2K / 4K) ================= */
#play-stage:not(.is-hidden) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 96px);
}

.timer-progress-track {
  width: 100%;
  height: clamp(9px, 1vh, 15px);
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: clamp(10px, 1.2vh, 20px);
}

.timer-progress-fill {
  height: 100%;
  width: 100%;
  background: var(--kh-success);
  transition: width 0.15s linear, background-color 0.25s ease;
}

.timer-progress-fill.is-warning {
  background: var(--kh-gold);
}

.timer-progress-fill.is-danger {
  background: var(--kh-danger);
}

.hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(6px, 1vh, 16px);
}

.hud-left-stack,
.hud-right-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.6vh, 9px);
}

.hud-right-stack {
  align-items: flex-end;
}

.hud-pill {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: clamp(7px, 0.8vh, 12px) clamp(16px, 1.4vw, 28px);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: clamp(0.88rem, 0.96vw, 1.28rem);
}

.hud-score-pill {
  color: var(--kh-gold);
}

.hud-step-dots {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.45vw, 9px);
  padding-left: 4px;
}

.step-dot {
  width: clamp(22px, 1.7vw, 38px);
  height: clamp(7px, 0.75vh, 11px);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.step-dot.is-current {
  background: var(--kh-gold);
  transform: scaleY(1.25);
}

.step-dot.is-ok {
  background: var(--kh-success);
}

.step-dot.is-miss {
  background: var(--kh-danger);
}

.hud-speed-hint {
  font-size: clamp(0.75rem, 0.82vw, 1.08rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  padding-right: 4px;
}

.timer-circle {
  width: clamp(66px, 6.8vh, 108px);
  height: clamp(66px, 6.8vh, 108px);
  border-radius: 50%;
  background: var(--kh-purple-btn);
  box-shadow: 0 5px 0 var(--kh-purple-lip);
  border: 2px solid rgba(255, 255, 255, 0.26);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(1.38rem, 2.3vh, 2.35rem);
  line-height: 1;
  color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

.timer-circle small {
  font-size: clamp(0.6rem, 0.85vh, 0.9rem);
  font-weight: 800;
  opacity: 0.9;
  margin-top: 2px;
}

.timer-circle.is-warning {
  background: var(--kh-yellow);
  box-shadow: 0 5px 0 var(--kh-yellow-lip);
}

.timer-circle.is-danger {
  background: var(--kh-red);
  box-shadow: 0 5px 0 var(--kh-red-lip);
  animation: pulseUrgent 0.55s infinite alternate;
}

@keyframes pulseUrgent {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}

/* Vùng giữa màn hình chứa Ô Câu Hỏi cỡ lớn + Sticker Ong Poly linh hoạt */
.question-center-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(10px, 1.8vh, 30px) 0;
}

.question-stage-row {
  width: min(92%, 1720px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.8vw, 34px);
}

.stage-mascot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(118px, 10.5vw, 200px);
  position: relative;
  user-select: none;
}

.stage-mascot-bubble {
  background: #ffffff;
  color: var(--kh-bg-deep);
  font-weight: 800;
  font-size: clamp(0.74rem, 0.82vw, 1.04rem);
  line-height: 1.25;
  text-align: center;
  padding: clamp(6px, 0.7vh, 10px) clamp(10px, 0.9vw, 16px);
  border-radius: 14px;
  box-shadow: 0 4px 0 #cfc8e2, 0 8px 18px rgba(0, 0, 0, 0.25);
  margin-bottom: clamp(8px, 0.9vh, 14px);
  position: relative;
  max-width: 100%;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.stage-mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 7px 0;
  border-style: solid;
  border-color: #ffffff transparent transparent;
}

.stage-mascot-card.is-correct .stage-mascot-bubble {
  background: #dcfce7;
  color: #14532d;
  box-shadow: 0 4px 0 #4ade80, 0 8px 18px rgba(0, 0, 0, 0.25);
  transform: scale(1.06);
}

.stage-mascot-card.is-correct .stage-mascot-bubble::after {
  border-color: #dcfce7 transparent transparent;
}

.stage-mascot-card.is-wrong .stage-mascot-bubble {
  background: #ffe4e6;
  color: #881337;
  box-shadow: 0 4px 0 #fb7185, 0 8px 18px rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}

.stage-mascot-card.is-wrong .stage-mascot-bubble::after {
  border-color: #ffe4e6 transparent transparent;
}

.stage-mascot-img {
  width: clamp(104px, 9.2vw, 178px);
  height: clamp(124px, 14.5vh, 220px);
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
  animation: mascotIdleFloat 2.4s ease-in-out infinite;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.stage-mascot-card.is-correct .stage-mascot-img {
  animation: mascotCheerBounce 0.55s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 18px rgba(74, 222, 128, 0.65)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

.stage-mascot-card.is-wrong .stage-mascot-img {
  animation: mascotSadShake 0.48s ease-in-out 2;
  filter: drop-shadow(0 0 18px rgba(251, 113, 133, 0.65)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

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

@keyframes mascotCheerBounce {
  0% {
    transform: translateY(0) scale(1) rotate(-3deg);
  }
  100% {
    transform: translateY(-12px) scale(1.08) rotate(3deg);
  }
}

@keyframes mascotSadShake {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-7px) rotate(-5deg);
  }
  75% {
    transform: translateX(7px) rotate(5deg);
  }
}

.question-stage-banner {
  flex: 1;
  background: var(--kh-surface);
  color: var(--kh-text-dark);
  border-radius: clamp(18px, 1.3vw, 30px);
  padding: clamp(26px, 4.2vh, 64px) clamp(26px, 3.8vw, 76px);
  text-align: center;
  font-size: clamp(1.16rem, 1.48vw, 2.05rem);
  line-height: 1.38;
  font-weight: 800;
  box-shadow: 0 clamp(8px, 0.8vh, 14px) 0 #cfc8e2, 0 22px 54px rgba(0, 0, 0, 0.28);
  min-height: clamp(175px, 24vh, 390px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-banner {
  width: fit-content;
  max-width: min(92%, 1720px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: clamp(9px, 1vh, 14px) clamp(20px, 2vw, 32px);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: clamp(0.88rem, 1.02vw, 1.32rem);
  margin-top: clamp(10px, 1.3vh, 20px);
  display: none;
}

.feedback-banner.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedback-banner.correct {
  background: rgba(34, 197, 94, 0.28);
  border: 2px solid #4ade80;
  color: #dcfce7;
}

.feedback-banner.wrong {
  background: rgba(226, 27, 60, 0.34);
  border: 2px solid #fb7185;
  color: #ffe4e6;
}

/* 4 Ô Trả lời nằm sát dưới trang và phóng to đầy màn hình */
.answers-grid {
  width: 100%;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.25vw, 26px);
}

.answer-tile {
  appearance: none;
  border: none;
  border-radius: clamp(14px, 1vw, 24px);
  padding: clamp(18px, 2.6vh, 42px) clamp(20px, 2vw, 46px);
  min-height: clamp(118px, 17.5vh, 265px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 24px);
  text-align: left;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(0.98rem, 1.16vw, 1.58rem);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, opacity 0.2s ease;
  position: relative;
}

.answer-tile:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.answer-tile:active:not(:disabled) {
  transform: translateY(4px);
}

.answer-tile.tile-0 {
  background: var(--kh-red);
  box-shadow: 0 clamp(6px, 0.65vh, 11px) 0 var(--kh-red-lip);
}

.answer-tile.tile-1 {
  background: var(--kh-blue);
  box-shadow: 0 clamp(6px, 0.65vh, 11px) 0 var(--kh-blue-lip);
}

.answer-tile.tile-2 {
  background: var(--kh-yellow);
  box-shadow: 0 clamp(6px, 0.65vh, 11px) 0 var(--kh-yellow-lip);
}

.answer-tile.tile-3 {
  background: var(--kh-green);
  box-shadow: 0 clamp(6px, 0.65vh, 11px) 0 var(--kh-green-lip);
}

.shape-icon {
  width: clamp(38px, 2.8vw, 62px);
  height: clamp(38px, 2.8vw, 62px);
  border-radius: clamp(9px, 0.65vw, 15px);
  background: rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 1.35vw, 1.85rem);
  font-weight: 900;
  flex-shrink: 0;
}

.answer-text {
  flex: 1;
  word-break: break-word;
  line-height: 1.35;
}

.key-hint-badge {
  font-size: clamp(0.72rem, 0.8vw, 1.05rem);
  font-weight: 800;
  padding: clamp(4px, 0.5vh, 9px) clamp(8px, 0.7vw, 15px);
  border-radius: clamp(7px, 0.5vw, 12px);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  flex-shrink: 0;
}

.answer-tile.is-dimmed {
  opacity: 0.34;
}

.answer-tile.is-correct-reveal {
  outline: 4px solid #ffffff;
  filter: brightness(1.12);
}

.answer-tile.is-wrong-selected {
  outline: 4px solid #ff99ac;
  opacity: 0.78;
}

/* ================= 3. MÀN HÌNH KẾT QUẢ + GIẢI TRÌNH ĐIỂM + THU LEAD + CHIA SẺ ================= */
.podium-header {
  position: relative;
  text-align: center;
  margin-bottom: 22px;
  padding: 24px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  overflow: hidden;
}

.podium-header-layout {
  display: grid;
  grid-template-columns: 175px 1fr 175px;
  align-items: center;
  gap: 16px;
}

.podium-victory-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
}

.podium-victory-mascot::before {
  content: '';
  position: absolute;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 199, 44, 0.34) 0%, rgba(255, 199, 44, 0) 72%);
  pointer-events: none;
}

.podium-victory-img {
  position: relative;
  z-index: 1;
  width: 158px;
  height: 198px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 16px rgba(255, 199, 44, 0.42));
  animation: victoryTrophyFloat 2.4s ease-in-out infinite;
}

@keyframes victoryTrophyFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

.podium-score-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* Nút tròn dấu ? ở góc phải khung điểm */
.score-help-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 199, 44, 0.65);
  background: rgba(255, 199, 44, 0.18);
  color: var(--kh-gold);
  font-family: inherit;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.score-help-btn:hover {
  background: var(--kh-gold);
  color: var(--kh-bg-deep);
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(255, 199, 44, 0.55);
}

/* Popup chia đôi giải thích cách tính điểm & tự tính điểm người chơi */
.score-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(14, 3, 42, 0.76);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInStage 0.18s ease-out;
}

.score-modal-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: var(--kh-surface);
  color: var(--kh-text-dark);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 8px 0 #cfc8e2, 0 24px 60px rgba(0, 0, 0, 0.45);
}

.score-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1eef9;
  color: var(--kh-text-dark);
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.12s ease;
}

.score-modal-close:hover {
  background: #e2dcf3;
  transform: scale(1.06);
}

.score-modal-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}

.score-modal-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Vạch chia đôi mờ dần và nhọn dần ở 2 đầu */
.modal-tapered-divider {
  width: 3px;
  align-self: stretch;
  margin: 6px 0;
  background: linear-gradient(
    180deg,
    rgba(108, 43, 217, 0) 0%,
    rgba(108, 43, 217, 0.22) 18%,
    rgba(108, 43, 217, 0.65) 50%,
    rgba(108, 43, 217, 0.22) 82%,
    rgba(108, 43, 217, 0) 100%
  );
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.score-modal-heading {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--kh-bg-main);
  margin-bottom: 6px;
}

.score-modal-desc {
  font-size: 0.85rem;
  color: var(--kh-text-muted);
  margin-bottom: 12px;
}

.formula-highlight-box {
  background: linear-gradient(135deg, #f5f0ff 0%, #ede4ff 100%);
  border: 1.5px solid #cbb6f8;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  margin-bottom: 12px;
}

.formula-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #5b21b6;
  margin-bottom: 4px;
}

.formula-equation {
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--kh-bg-deep);
}

.formula-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--kh-text-dark);
}

.formula-rules-list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.42;
}

.formula-rules-list li::before {
  content: '•';
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--kh-purple-btn);
  font-weight: 900;
}

.formula-rules-list code {
  background: #f3e8ff;
  color: #5b21b6;
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 800;
}

.player-calc-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  flex: 1;
}

.player-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 700;
  background: #f8f6fc;
  border: 1px solid #e6e0f4;
}

.player-calc-row.is-ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

.player-calc-row.is-miss {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #881337;
}

.player-calc-pts {
  font-weight: 900;
  white-space: nowrap;
}

.player-calc-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--kh-bg-main);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.player-calc-total-bar strong {
  color: var(--kh-gold);
  font-size: 1.05rem;
  font-weight: 900;
}

.score-mega {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  color: var(--kh-gold);
  line-height: 1.05;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.32);
  margin: 4px 0 8px;
}

.result-summary-line {
  font-weight: 700;
  font-size: 1.05rem;
}

.reward-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 199, 44, 0.2);
  border: 2px solid var(--kh-gold);
  color: #fff3c4;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.96rem;
  margin-top: 10px;
}

/* Dải minh bạch công thức điểm từng câu 1..5 */
.score-breakdown-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.breakdown-pill {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.breakdown-pill.is-ok {
  background: rgba(34, 197, 94, 0.24);
  border-color: rgba(74, 222, 128, 0.5);
  color: #dcfce7;
}

.breakdown-pill.is-miss {
  background: rgba(226, 27, 60, 0.24);
  border-color: rgba(251, 113, 133, 0.5);
  color: #ffe4e6;
}

.result-action-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 20px;
  margin-bottom: 22px;
}

.surface-panel {
  background: var(--kh-surface);
  color: var(--kh-text-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 7px 0 #cfc8e2;
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--kh-text-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title.no-margin {
  margin-bottom: 0;
}

.panel-desc {
  font-size: 0.88rem;
  color: var(--kh-text-muted);
  margin-bottom: 14px;
}

.panel-desc.no-margin {
  margin-bottom: 0;
}

.form-field {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--kh-text-dark);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--kh-text-dark);
  background: #f6f4fb;
  border: 2px solid #dcd6ec;
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-input-sm {
  padding: 9px 12px;
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--kh-purple-btn);
  background: #ffffff;
}

.form-input.has-error {
  border-color: var(--kh-red);
  background: #fff5f7;
}

.field-error {
  color: var(--kh-red);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 4px;
  min-height: 18px;
}

.lead-success-msg {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #14532d;
  font-weight: 800;
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.45;
}

.lead-success-msg.show {
  display: block;
}

.share-preview-box {
  width: 100%;
  min-height: 124px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--kh-text-dark);
  background: #f6f4fb;
  border: 2px dashed #c6bddf;
  border-radius: 10px;
  resize: vertical;
  margin-bottom: 12px;
}

.copy-status-msg {
  font-size: 0.84rem;
  font-weight: 800;
  min-height: 20px;
  margin-top: 8px;
  color: #15803d;
}

/* ================= 4. BẢNG XẾP HẠNG TOP 10 (NẰM TRỰC TIẾP TRONG TRANG CHƠI) ================= */
.inline-leaderboard-wrap {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.scoreboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.scoreboard-title {
  font-size: 1.38rem;
  font-weight: 900;
}

.scoreboard-sub {
  font-size: 0.86rem;
  opacity: 0.86;
}

.leaderboard-stats-pill {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--kh-gold);
}

.scoreboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--kh-surface);
  color: var(--kh-text-dark);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 0 #cfc8e2;
  font-weight: 700;
  transition: transform 0.12s ease;
}

.leader-row:hover {
  transform: translateX(3px);
}

.leader-row.rank-1 {
  background: linear-gradient(90deg, #fff9db 0%, #ffffff 100%);
  border-left: 6px solid #f59e0b;
}

.leader-row.rank-2 {
  background: linear-gradient(90deg, #f1f5f9 0%, #ffffff 100%);
  border-left: 6px solid #94a3b8;
}

.leader-row.rank-3 {
  background: linear-gradient(90deg, #ffedd5 0%, #ffffff 100%);
  border-left: 6px solid #d97706;
}

.leader-row.is-current-player {
  outline: 3px solid var(--kh-gold);
  background: linear-gradient(90deg, #fef08a 0%, #ffffff 100%);
}

.leader-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ece8f6;
  color: var(--kh-bg-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.rank-1 .rank-badge {
  background: #f59e0b;
  color: #ffffff;
}

.rank-2 .rank-badge {
  background: #64748b;
  color: #ffffff;
}

.rank-3 .rank-badge {
  background: #d97706;
  color: #ffffff;
}

.leader-name-wrap {
  min-width: 0;
}

.leader-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--kh-text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.leader-meta {
  font-size: 0.78rem;
  color: var(--kh-text-muted);
  font-weight: 600;
}

.data-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
}

.data-tag.tag-real {
  background: #dcfce7;
  color: #166534;
}

.data-tag.tag-sample {
  background: #fef3c7;
  color: #92400e;
}

.data-tag.tag-you {
  background: #6c2bd9;
  color: #ffffff;
}

.voucher-code-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  background: #f3e8ff;
  color: #5b21b6;
  border: 1px dashed #c084fc;
}

.leader-score {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--kh-purple-btn);
  white-space: nowrap;
}

/* ================= 5. MÀN HÌNH TẠO QUIZ / QUẢN TRỊ (KAHOOT CREATOR) ================= */
.creator-toolbar {
  background: var(--kh-surface);
  color: var(--kh-text-dark);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 6px 0 #cfc8e2;
  margin-bottom: 16px;
}

.creator-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.creator-topic-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.creator-topic-row .form-input {
  flex: 1;
  min-width: 220px;
}

.creator-campaign-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f8f6fc;
  border-radius: 10px;
  border: 1px solid #ebe6f5;
}

.campaign-inline-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--kh-text-dark);
  white-space: nowrap;
}

.creator-campaign-row .form-input {
  flex: 1;
  min-width: 220px;
  background: #ffffff;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.preset-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--kh-text-muted);
}

.chip-btn {
  appearance: none;
  border: 1px solid #d5cee8;
  background: #f5f2fc;
  color: var(--kh-text-dark);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease;
}

.chip-btn:hover {
  background: #e9e2f8;
}

.chip-btn.danger-chip {
  color: #e21b3c;
  border-color: #fecdd3;
}

/* Thanh chuyển nhanh 5 câu hỏi [Câu 1..5] kiểu Kahoot Creator */
.question-Step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.q-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.q-tab-btn {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.12s ease, transform 0.1s ease;
}

.q-tab-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.q-tab-btn.active {
  background: var(--kh-gold);
  color: var(--kh-bg-deep);
  box-shadow: 0 4px 0 #b58500;
}

/* Khung xem tổng quan nhanh cả 5 câu hỏi */
.overview-panel {
  background: var(--kh-surface);
  color: var(--kh-text-dark);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 6px 0 #cfc8e2;
  margin-bottom: 16px;
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ebe6f5;
}

.overview-sub {
  font-size: 0.78rem;
  color: var(--kh-text-muted);
  font-weight: 700;
}

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

.overview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8f6fc;
  border: 1px solid #e5dff3;
  cursor: pointer;
  transition: background 0.12s ease;
}

.overview-item:hover {
  background: #efeaf9;
}

.overview-q-body {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--kh-text-dark);
  flex: 1;
  min-width: 0;
}

.overview-q-answer {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #dcfce7;
  color: #166534;
  white-space: nowrap;
}

/* Sân khấu chỉnh sửa trực tiếp từng câu hỏi (WYSIWYG) */
.wysiwyg-question-box {
  background: var(--kh-surface);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 6px 0 #cfc8e2;
  margin-bottom: 14px;
}

.wysiwyg-question-input {
  width: 100%;
  border: 2px solid #dcd6ec;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--kh-text-dark);
  text-align: center;
  background: #faf9fe;
}

.wysiwyg-question-input:focus {
  outline: none;
  border-color: var(--kh-purple-btn);
  background: #ffffff;
}

.wysiwyg-hint {
  font-size: 0.8rem;
  color: var(--kh-text-muted);
  margin-top: 8px;
  text-align: center;
  font-weight: 700;
}

.wysiwyg-answers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.editor-answer-tile {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.editor-answer-tile.tile-0 {
  background: var(--kh-red);
  box-shadow: 0 5px 0 var(--kh-red-lip);
}
.editor-answer-tile.tile-1 {
  background: var(--kh-blue);
  box-shadow: 0 5px 0 var(--kh-blue-lip);
}
.editor-answer-tile.tile-2 {
  background: var(--kh-yellow);
  box-shadow: 0 5px 0 var(--kh-yellow-lip);
}
.editor-answer-tile.tile-3 {
  background: var(--kh-green);
  box-shadow: 0 5px 0 var(--kh-green-lip);
}

.editor-option-input {
  flex: 1;
  min-width: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.96);
  color: var(--kh-text-dark);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
}

.editor-option-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #ffffff;
}

.correct-pick-btn {
  appearance: none;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.1s ease, background 0.15s ease;
}

.correct-pick-btn:hover {
  background: rgba(0, 0, 0, 0.42);
}

.correct-pick-btn.is-selected {
  background: var(--kh-success);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.editor-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.24);
  border-radius: var(--radius-md);
}

.step-indicator-label {
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0 6px;
}

.creator-status-banner {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 14px;
  display: none;
}

.creator-status-banner.show {
  display: block;
}

.creator-status-banner.is-ok {
  background: rgba(34, 197, 94, 0.25);
  border: 2px solid #4ade80;
  color: #dcfce7;
}

.creator-status-banner.is-err {
  background: rgba(226, 27, 60, 0.3);
  border: 2px solid #fb7185;
  color: #ffe4e6;
}

/* Ngăn kéo thu gọn Quản lý danh sách Lead trong localStorage */
.admin-leads-drawer {
  margin-top: 22px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.admin-leads-summary {
  padding: 13px 18px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff;
  user-select: none;
}

.admin-leads-summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.drawer-hint {
  font-size: 0.8rem;
  opacity: 0.85;
}

.admin-leads-body {
  background: var(--kh-surface);
  color: var(--kh-text-dark);
  padding: 18px;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 10px;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.clean-table th,
.clean-table td {
  padding: 9px 11px;
  text-align: left;
  border-bottom: 1px solid #ebe6f5;
}

.clean-table th {
  font-weight: 800;
  color: var(--kh-text-muted);
  background: #f8f6fc;
}

/* ================= FOOTER THƯƠNG HIỆU POLYQUIZ ================= */
.stage-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 16px 16px 22px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main-line {
  margin-bottom: 5px;
}

.footer-vision-line {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
  font-style: italic;
}

.stage-footer code {
  color: var(--kh-gold);
  font-weight: 700;
}

.footer-sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* ================= RESPONSIVE MOBILE (TIÊU CHÍ UI/UX BTC) ================= */
@media (max-width: 760px) {
  body {
    padding-top: 108px;
  }

  .topbar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-group {
    justify-content: space-between;
  }

  .nav-tabs {
    justify-content: space-between;
  }

  .nav-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .lobby-spotlight-grid,
  .answers-grid,
  .wysiwyg-answers-grid,
  .result-action-grid {
    grid-template-columns: 1fr;
  }

  .score-modal-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-tapered-divider {
    width: 100%;
    height: 3px;
    margin: 2px 0;
    background: linear-gradient(
      90deg,
      rgba(108, 43, 217, 0) 0%,
      rgba(108, 43, 217, 0.22) 18%,
      rgba(108, 43, 217, 0.65) 50%,
      rgba(108, 43, 217, 0.22) 82%,
      rgba(108, 43, 217, 0) 100%
    );
    clip-path: polygon(0% 50%, 50% 0%, 100% 50%, 50% 100%);
  }

  .answer-tile {
    min-height: 76px;
    padding: 15px 16px;
  }

  .key-hint-badge {
    display: none;
  }

  .question-stage-row {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .stage-mascot-card {
    width: auto;
    flex-direction: row;
    gap: 10px;
  }

  .stage-mascot-bubble {
    margin-bottom: 0;
  }

  .stage-mascot-bubble::after {
    display: none;
  }

  .stage-mascot-img {
    width: 72px;
    height: 86px;
  }

  .question-stage-banner {
    width: 100%;
    padding: 20px 16px;
    min-height: 96px;
  }

  .podium-header-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .podium-victory-img {
    width: 118px;
    height: 148px;
  }

  .hud-speed-hint {
    display: none;
  }
}
