/* ============================================
   KAUN BANEGA CHAMPION - Master Stylesheet
   Premium TV Quiz Show Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Primary Colors */
  --color-bg-dark: #0a0a1a;
  --color-bg-deep: #050510;
  --color-primary: #1a1a3e;
  --color-secondary: #0d0d2b;

  /* Accent Colors */
  --color-gold: #ffd700;
  --color-gold-light: #ffe44d;
  --color-gold-dark: #b8960f;
  --color-blue: #00b4ff;
  --color-blue-deep: #0066cc;
  --color-purple: #8b5cf6;
  --color-purple-deep: #6d28d9;
  --color-cyan: #06b6d4;
  --color-neon-blue: #00d4ff;
  --color-neon-purple: #a855f7;

  /* Status Colors */
  --color-correct: #22c55e;
  --color-correct-glow: #4ade80;
  --color-wrong: #ef4444;
  --color-wrong-glow: #f87171;
  --color-warning: #f59e0b;

  /* Glass Properties */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 215, 0, 0.3);

  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Shadows */
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
  --shadow-blue: 0 0 20px rgba(0, 180, 255, 0.3), 0 0 40px rgba(0, 180, 255, 0.1);
  --shadow-purple: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1);
  --shadow-neon: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.2), 0 0 60px rgba(0, 212, 255, 0.1);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-dark);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
}

img {
  max-width: 100%;
  display: block;
}

input {
  font-family: var(--font-body);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-gold), var(--color-blue));
  border-radius: 3px;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 150px;
  height: 150px;
  animation: loadingPulse 2s ease-in-out infinite;
}

.loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
}

.loading-text {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: loadingTextPulse 1.5s ease-in-out infinite;
}

.loading-bar-container {
  margin-top: 20px;
  width: 250px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-blue), var(--color-gold), var(--color-purple));
  border-radius: 2px;
  animation: loadingProgress 2s ease-in-out forwards;
}

@keyframes loadingProgress {
  0% {
    width: 0%;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

@keyframes loadingPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.8));
  }
}

@keyframes loadingTextPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0a0a2e 0%, #050510 100%);
}

.animated-bg .light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}

.animated-bg .light-orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--color-purple);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.animated-bg .light-orb:nth-child(2) {
  width: 350px;
  height: 350px;
  background: var(--color-blue);
  top: 50%;
  right: -10%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.animated-bg .light-orb:nth-child(3) {
  width: 300px;
  height: 300px;
  background: var(--color-neon-purple);
  bottom: -5%;
  left: 30%;
  animation-delay: 4s;
  animation-duration: 14s;
}

.animated-bg .light-orb:nth-child(4) {
  width: 250px;
  height: 250px;
  background: var(--color-cyan);
  top: 30%;
  left: 50%;
  animation-delay: 1s;
  animation-duration: 9s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(50px, -30px) scale(1.1);
  }

  50% {
    transform: translate(-30px, 50px) scale(0.9);
  }

  75% {
    transform: translate(30px, 20px) scale(1.05);
  }
}

/* Particle Background */
.particles-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 215, 0, 0.6);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* Spotlight Effect */
.spotlight-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.spotlight {
  position: absolute;
  width: 200px;
  height: 600px;
  background: linear-gradient(180deg, rgba(0, 180, 255, 0.15) 0%, transparent 100%);
  transform-origin: top center;
  animation: spotlightSweep 6s ease-in-out infinite;
}

.spotlight:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.spotlight:nth-child(2) {
  right: 10%;
  animation-delay: 3s;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, transparent 100%);
}

@keyframes spotlightSweep {

  0%,
  100% {
    transform: rotate(-15deg);
  }

  50% {
    transform: rotate(15deg);
  }
}

/* ============================================
   GLASSMORPHISM COMPONENTS
   ============================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-gold);
}

.glass-card-static {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 50px 40px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-blue), var(--color-purple), var(--color-gold));
  background-size: 400% 400%;
  border-radius: var(--radius-lg);
  z-index: -1;
  animation: borderGlow 4s ease infinite;
  opacity: 0.5;
}

.login-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgba(10, 10, 30, 0.9);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.login-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  animation: logoFloat 3s ease-in-out infinite;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 35px;
  letter-spacing: 1px;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.input-group input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  transition: all var(--transition-normal);
  outline: none;
}

.input-group input:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.login-error {
  color: var(--color-wrong);
  font-size: 0.8rem;
  margin-bottom: 15px;
  min-height: 20px;
  animation: shake 0.5s ease;
}

.btn-login {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light));
  color: #0a0a1a;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 30px rgba(255, 215, 0, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 20px;
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  margin-bottom: 30px;
  animation: fadeInDown 0.5s ease-out;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-logo {
  width: 50px;
  height: 50px;
}

.top-bar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.top-bar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 2px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  font-size: 1rem;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.btn-logout {
  padding: 8px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--transition-normal);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

/* Sets Section */
.sets-section {
  padding: 30px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.set-card {
  position: relative;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}

.set-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.set-card:hover::before {
  opacity: 1;
}

.set-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold), 0 10px 40px rgba(0, 0, 0, 0.3);
}

.set-card:active {
  transform: translateY(-2px) scale(0.98);
}

.set-card .set-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.set-card .set-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.set-card .set-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

/* Light Sweep on set cards */
.set-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent);
  transition: left 0.6s ease;
}

.set-card:hover::after {
  left: 150%;
}

/* Prize Ladder */
.prize-section {
  padding: 25px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.prize-section .section-title {
  font-size: 1rem;
}

.prize-ladder {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prize-level {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
  cursor: default;
}

.prize-level:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 215, 0, 0.15);
}

.prize-level.active {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: var(--shadow-gold);
}

.prize-level.active .prize-name {
  color: var(--color-gold);
}

.prize-level-img {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.prize-info {
  flex: 1;
}

.prize-level-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--color-blue);
  letter-spacing: 2px;
  font-weight: 600;
}

.prize-name {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin-top: 2px;
}

/* ============================================
   QUIZ SCREEN
   ============================================ */
.quiz-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Quiz Background with Stage Image */
.quiz-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('../images/image.png') center/cover no-repeat;
}

.quiz-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 16, 0.75);
}

/* Quiz Top Bar */
.quiz-top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quiz-category {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-category-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quiz-category-name {
  font-size: 0.9rem;
  color: var(--color-cyan);
  font-weight: 600;
}

.quiz-logo {
  width: 55px;
  height: 55px;
}

.quiz-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

/* Timer */
.timer-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timer-circle {
  position: relative;
  width: 52px;
  height: 52px;
}

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

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

.timer-circle .timer-progress {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.timer-circle .timer-progress.warning {
  stroke: var(--color-warning);
}

.timer-circle .timer-progress.danger {
  stroke: var(--color-wrong);
}

.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
}

.timer-text.warning {
  color: var(--color-warning);
}

.timer-text.danger {
  color: var(--color-wrong);
}

/* Quiz Main Content */
.quiz-main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 19px;
  max-width: 900px;
  margin: 0px 470px 0 auto;
  width: 100%;
}

/* Progress Bar Wrap & Dots */
.progress-bar-wrap {
  position: relative;
  width: 100%;
  max-width: 950px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 950px;
  margin: 10px auto -30px auto;
  padding: 0 15px;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), #FFFFFF 50%, rgba(255, 255, 255, 0.3));
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  transform: translateY(-50%);
  z-index: 1;
}

.progress-dot {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 10px #FFFFFF, 0 0 18px rgba(255, 255, 255, 0.9);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.progress-dot.completed {
  background: #22C55E;
  border-color: #4ADE80;
  box-shadow: 0 0 12px #22C55E, 0 0 20px rgba(34, 197, 94, 0.9);
}

.progress-dot.wrong-dot {
  background: #EF4444;
  border-color: #F87171;
  box-shadow: 0 0 12px #EF4444, 0 0 20px rgba(239, 68, 68, 0.9);
}

.progress-dot.current {
  background: #FFD700;
  border-color: #FFEE00;
  box-shadow: 0 0 15px #FFD700, 0 0 25px rgba(255, 215, 0, 0.9);
  transform: scale(1.4);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  }

  50% {
    box-shadow: 0 0 25px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8);
  }
}

/* KBC Circular Timer in Center of Progress Bar */
.center-timer-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 12px;
  flex-shrink: 0;
}

.dot-timer-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #6b0f80 0%, #450659 60%, #290038 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 20px rgba(84, 32, 122, 0.9), 0 0 10px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.dot-timer-svg {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
  z-index: 3;
  pointer-events: none;
}

.dot-timer-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 5;
}

.dot-timer-progress {
  fill: none;
  stroke: #00FF44;
  stroke-width: 5.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s linear, stroke 0.3s ease;
  filter: drop-shadow(0 0 6px #00FF44);
}

.dot-timer-progress.warning {
  stroke: #FFD700;
  filter: drop-shadow(0 0 6px #FFD700);
}

.dot-timer-progress.danger {
  stroke: #FF3333;
  filter: drop-shadow(0 0 6px #FF3333);
}

.dot-timer-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display, sans-serif);
  line-height: 1;
  margin-top: 2px;
}

.dot-timer-prev {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  transform: scaleY(0.7);
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.dot-timer-main {
  font-size: 1.65rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.dot-timer-main.warning {
  color: #FFD700;
}

.dot-timer-main.danger {
  color: #FF4444;
  animation: pulse 0.5s infinite alternate;
}

/* Question Area */
.question-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--color-blue);
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.question-prize {
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: 18px;
  font-weight: 600;
}

/* KBC Pointed Question Box Wrapper & Lines */
.question-box-wrap {
  position: relative;
  width: 100%;
  max-width: 950px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-box-wrap::before,
.question-box-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 100vw;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #FFE57F, #FFD700);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  transform: translateY(-50%);
  z-index: 1;
}

.question-box-wrap::before {
  right: calc(180% - 25px);
}

.question-box-wrap::after {
  left: calc(180% - 25px);
}

/* Outer Question Box (Golden #FFF8A8 Polygon Border Wrapper) */
.question-box {
  position: relative;
  z-index: 2;
  width: 130%;
  background: #FFF8A8;
  padding: 3px;
  /* Golden Border Width */
  clip-path: polygon(35px 0, calc(100% - 35px) 0, 100% 50%, calc(100% - 35px) 100%, 35px 100%, 0 50%);
  filter: drop-shadow(0 0 15px #FFF8A8);
  animation: questionEnter 2s ease-out;
}

/* Inner Question Box (KBC Deep Purple BG) */
.question-box-inner {
  width: 100%;
  min-height: 80px;
  background: linear-gradient(180deg, #3d0c5a 0%, #1e0034 100%);
  clip-path: polygon(33px 0, calc(100% - 33px) 0, 100% 50%, calc(100% - 33px) 100%, 33px 100%, 0 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 55px;
  text-align: center;
}

.question-text {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 2.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 255, 0, 0.25);
  font-family: var(--font-body);
}

.question-text .typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: #FFFF00;
  margin-left: 2px;
  animation: cursorBlink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Options */
.options-container {
  width: 115%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 25px;
  margin-top: 14px;

}

.option-btn {
  position: relative;
  padding: 3px;
  background: #FFF8A8;
  /* Golden Border Width */
  clip-path: polygon(35px 0, calc(100% - 35px) 0, 100% 50%, calc(100% - 35px) 100%, 35px 100%, 0 50%);
  filter: drop-shadow(0 0 15px #FFF8A8);
  color: #fff;
  font-size: 1.28rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  overflow: hidden;
  cursor: pointer;
}

.option-inner {
  width: 100%;
  min-height: 56px;
  background: linear-gradient(180deg, #3d0c5a 0%, #1e0034 100%);
  clip-path: polygon(33px 0, calc(100% - 33px) 0, 100% 50%, calc(100% - 33px) 100%, 33px 100%, 0 50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-align: left;
  transition: background 0.3s ease;
}

.option-btn .option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--color-gold);
  flex-shrink: 0;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.option-btn:hover:not(.disabled) .option-inner {
  background: linear-gradient(180deg, #5b1385 0%, #320353 100%);
}

.option-btn.selected {
  background: #FFD700;
  filter: drop-shadow(0 0 20px #FFD700);
}

.option-btn.selected .option-inner {
  background: linear-gradient(180deg, #8a6500 0%, #4a3600 100%);
}

.option-btn.correct {
  background: #22c55e;
  filter: drop-shadow(0 0 20px #22c55e);
}

.option-btn.correct .option-inner {
  background: linear-gradient(180deg, #15803d 0%, #052e16 100%);
}

.option-btn.correct .option-letter {
  background: var(--color-correct);
  color: #fff;
  border-color: var(--color-correct);
}

.option-btn.wrong {
  background: #ef4444;
  filter: drop-shadow(0 0 20px #ef4444);
}

.option-btn.wrong .option-inner {
  background: linear-gradient(180deg, #b91c1c 0%, #450a0a 100%);
}

.option-btn.wrong .option-letter {
  background: var(--color-wrong);
  color: #fff;
  border-color: var(--color-wrong);
}

.option-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.option-btn.hidden-5050 {
  opacity: 0.1;
  pointer-events: none;
  border-color: transparent;
}

/* Option Animations */
.option-btn.animate-in-left {
  animation: slideInLeft 0.4s ease-out forwards;
}

.option-btn.animate-in-right {
  animation: slideInRight 0.4s ease-out forwards;
}

@keyframes optionPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes correctFlash {
  0% {
    background: rgba(34, 197, 94, 0);
  }

  30% {
    background: rgba(34, 197, 94, 0.3);
  }

  60% {
    background: rgba(34, 197, 94, 0.1);
  }

  100% {
    background: rgba(34, 197, 94, 0.15);
  }
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-action {
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-show-options {
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(0, 180, 255, 0.3);
  color: var(--color-blue);
}

.btn-show-options:hover {
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.3), rgba(139, 92, 246, 0.3));
  border-color: var(--color-blue);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

.btn-start-timer {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--color-gold);
}

.btn-start-timer:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.2));
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-show-answer {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ADE80;
}

.btn-show-answer:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(16, 185, 129, 0.35));
  border-color: #4ADE80;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.btn-next {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: #0a0a1a;
  border: none;
  font-weight: 700;
}

.btn-next:hover {
  box-shadow: 0 5px 30px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

/* Side Panel Categories (Tapered Pyramid Design) */
.quiz-side-panel {
  position: fixed;
  right: 90px;
  top: 90px;
  z-index: 20;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-panel-logo {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.side-panel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.45));
}

.quiz-side-panel .question-number {
  margin-top: 25px;
  margin-bottom: 0;
  text-align: center;
  font-family: var(--font-display, sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-gold, #FFD700);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

.quiz-category-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 150%;
}

.quiz-category-item {
  position: relative;
  background: linear-gradient(180deg, #3d0c5a 0%, #1e0034 100%);
  color: #FFFFFF;
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  border: 2.5px solid #FFF8A8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.35), inset 0 1px 3px rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateY(35px) scale(0.8);
  animation: categoryPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: all 0.35s ease;
  white-space: normal;
  word-break: break-word;
}

.quiz-category-item.active-category {
  background: linear-gradient(180deg, #8e24aa 0%, #4a0e68 100%);
  border-color: #FFFFFF;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 15px rgba(255, 255, 255, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.4);
  transform: scale(1.06) !important;
  color: #FFFFFF;
  z-index: 2;
}

@keyframes categoryPopIn {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.8);
  }

  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1024px) {
  .quiz-side-panel {
    display: none;
  }
}

/* Lifelines */
.lifelines-container {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lifeline-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 215, 0, 0.3);
  color: var(--color-gold);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.lifeline-btn .lifeline-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.lifeline-btn .lifeline-label {
  font-size: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.lifeline-btn:hover:not(.used) {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.1);
  background: rgba(255, 215, 0, 0.1);
}

.lifeline-btn.used {
  opacity: 0.3;
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.3);
}

.lifeline-btn.used::after {
  content: '✕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--color-wrong);
}

/* Quiz Side Panel (Prize Ladder in Quiz) */
.quiz-side-panel {
  position: fixed;
  top: 165px;
  right: 80px;
  z-index: 20;
  width: 200px;
}

.quiz-prize-ladder {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quiz-prize-item {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all var(--transition-normal);
}

.quiz-prize-item .prize-num {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  min-width: 18px;
}

.quiz-prize-item.current-prize {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.quiz-prize-item.current-prize .prize-num {
  color: var(--color-gold);
}

.quiz-prize-item.completed-prize {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  color: rgba(34, 197, 94, 0.7);
}

/* Quiz Settings */
.quiz-settings {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

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

/* ============================================
   MODALS & POPUPS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

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

.modal-content {
  max-width: 480px;
  width: 100%;
  padding: 35px;
  text-align: center;
  animation: zoomIn 0.4s ease-out;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.modal-body {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.modal-btn-primary {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: #0a0a1a;
}

.modal-btn-primary:hover {
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.modal-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Audience Poll Modal */
.poll-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  height: 180px;
  margin: 25px 0;
}

.poll-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 60px;
}

.poll-bar-wrapper {
  width: 45px;
  height: 140px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.poll-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--color-blue), var(--color-purple));
  border-radius: 6px 6px 0 0;
  transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.poll-bar.highest {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-dark));
}

.poll-percentage {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
}

.poll-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* Expert Advice Modal */
.expert-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.expert-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.expert-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.expert-advice-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-style: italic;
}

/* ============================================
   RESULT SCREEN
   ============================================ */
.result-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.result-card {
  max-width: 550px;
  width: 100%;
  padding: 50px 40px;
  text-align: center;
  animation: zoomIn 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-blue), var(--color-purple), var(--color-gold));
  background-size: 400% 400%;
  border-radius: var(--radius-lg);
  z-index: -1;
  animation: borderGlow 4s ease infinite;
  opacity: 0.5;
}

.result-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgba(10, 10, 30, 0.92);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.result-trophy {
  font-size: 4rem;
  margin-bottom: 15px;
  animation: trophyBounce 1s ease-in-out;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

@keyframes trophyBounce {
  0% {
    transform: scale(0) rotate(-10deg);
  }

  50% {
    transform: scale(1.2) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.result-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.result-stat {
  padding: 18px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  text-align: center;
}

.result-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gold);
}

.result-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-stat.correct-stat .result-stat-value {
  color: var(--color-correct);
}

.result-stat.wrong-stat .result-stat-value {
  color: var(--color-wrong);
}

.result-prize-section {
  padding: 20px;
  margin-bottom: 25px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius-md);
}

.result-prize-label {
  font-size: 0.7rem;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.result-prize-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-gold);
  font-weight: 700;
}

.result-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-result {
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--transition-normal);
}

.btn-play-again {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: #0a0a1a;
}

.btn-play-again:hover {
  box-shadow: 0 5px 30px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.btn-dashboard {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-dashboard:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ============================================
   CONFETTI & FIREWORKS
   ============================================ */
.confetti-container {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotateZ(0deg) rotateX(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotateZ(720deg) rotateX(360deg);
    opacity: 0;
  }
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: fireworkBurst 1s ease-out forwards;
}

@keyframes fireworkBurst {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-6px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes borderGlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes questionEnter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.2);
  }
}

@keyframes neonFlicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    text-shadow: 0 0 7px var(--color-gold), 0 0 10px var(--color-gold), 0 0 21px var(--color-gold);
  }

  20%,
  24%,
  55% {
    text-shadow: none;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .prize-section {
    max-height: none;
  }

  .quiz-side-panel {
    display: none;
  }

  .lifelines-container {
    position: fixed;
    top: auto;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 8px;
  }

  .lifeline-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 768px) {
  .login-card {
    padding: 35px 25px;
  }

  .login-title {
    font-size: 1.3rem;
  }

  .sets-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .options-container {
    grid-template-columns: 1fr;
  }

  .question-text {
    font-size: 1rem;
  }

  .quiz-main {
    padding: 15px;
  }

  .question-box {
    padding: 20px;
  }

  .result-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .top-bar {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .quiz-top-bar {
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .sets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .set-card {
    padding: 20px 12px;
  }

  .set-card .set-number {
    font-size: 1.5rem;
  }

  .option-btn {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .result-card {
    padding: 30px 20px;
  }

  .result-title {
    font-size: 1.4rem;
  }

  .lifeline-btn {
    width: 42px;
    height: 42px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}

.text-gold {
  color: var(--color-gold);
}

.text-blue {
  color: var(--color-blue);
}

.text-green {
  color: var(--color-correct);
}

.text-red {
  color: var(--color-wrong);
}

.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

/* Volume Slider */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tooltip:hover::after {
  opacity: 1;
}

/* Smoke Effect */
.smoke-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.smoke {
  position: absolute;
  bottom: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05), transparent 70%);
  filter: blur(20px);
  animation: smokeRise 8s ease-in-out infinite;
}

.smoke:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.smoke:nth-child(2) {
  left: 40%;
  animation-delay: 2s;
}

.smoke:nth-child(3) {
  left: 70%;
  animation-delay: 4s;
}

@keyframes smokeRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-100px) scale(1.3);
    opacity: 0.1;
  }

  100% {
    transform: translateY(-200px) scale(1.5);
    opacity: 0;
  }
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.footer {
  width: 100%;
  background: rgba(5, 5, 16, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1.5px solid rgba(255, 215, 0, 0.2);
  padding: 15px 40px;
  margin-top: auto;
  position: relative;
  z-index: 10;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.footer-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  margin: 0;
  font-weight: 500;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  text-align: right;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-info-icon {
  font-size: 0.9rem;
}

.footer-info-text a {
  color: var(--color-blue);
  transition: color var(--transition-fast);
}

.footer-info-text a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer {
    padding: 15px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 10px;
  }

  .footer-right {
    align-items: center;
    text-align: center;
  }
}