/* ========================================================
   TIKTOK LIVE QUIZ OVERLAY - ARCADE GAME SHOW AESTHETIC
   Exact recreation of the popular viral TikTok Live quiz theme
   ======================================================== */

:root {
  --bg-page: #f6f3eb;
  --card-bg: #ffffff;
  --card-border: #1e293b;
  --card-subtle-border: #e2e8f0;
  
  --primary-red: #d90429;
  --primary-red-dark: #800f2f;
  --primary-red-deep: #590d22;
  --primary-red-light: #ef233c;
  
  --accent-gold: #ffb703;
  --accent-gold-dark: #fb8500;
  --accent-yellow-light: #fef08a;
  --accent-green: #10b981;
  --accent-green-light: #d1fae5;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  
  --text-dark: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --font-title: 'Titan One', 'Fredoka', cursive, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  font-size: clamp(14px, 1.6vh, 22px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  image-rendering: -webkit-optimize-contrast;
}

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

body {
  background: #0b0f19;
  background-image: radial-gradient(circle at 50% 50%, #1e293b 0%, #080d1a 100%);
  font-family: var(--font-body);
  color: var(--text-dark);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* ==========================================
   MAIN 9:16 PORTRAIT CANVAS (STREAM & DESKTOP ADAPTIVE)
   Target Stream Resolution: 720 x 1280 (HD) or 1080 x 1920 (FHD)
   ========================================== */
.overlay-container {
  height: 100vh;
  max-height: 100vh;
  box-sizing: border-box;
  margin: 0 auto;
  background: var(--bg-page);
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(239, 35, 60, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(251, 133, 0, 0.04) 0%, transparent 40%),
    linear-gradient(180deg, #faf7f2 0%, #f3eee6 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  gap: clamp(4px, 0.7vh, 8px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Portrait Canvas (TikTok LIVE Studio, OBS Browser Source - 720x1280 or 1080x1920) */
@media (max-aspect-ratio: 1/1) {
  body {
    background: transparent;
  }
  .overlay-container {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    /* TikTok Live Mobile Safe Zone:
       - Top: 80px - 125px safe buffer below camera notch & TikTok host status header (profile bengg)
       - Bottom: 45px - 75px safe buffer above TikTok live comment box
       - Sides: 52px - 85px safe margin to prevent left/right edge cropping on mobile phones
    */
    padding-top: clamp(80px, 8.5vh, 125px);
    padding-bottom: clamp(45px, 5vh, 75px);
    padding-left: clamp(52px, 7.5vw, 85px);
    padding-right: clamp(52px, 7.5vw, 85px);
  }
}

/* Desktop Monitor Preview (Landscape 1920x1080 monitor) */
@media (min-aspect-ratio: 1/1) {
  body {
    background: #0b0f19;
    background-image: radial-gradient(circle at 50% 50%, #1e293b 0%, #080d1a 100%);
  }
  .overlay-container {
    height: 100vh;
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: calc(100vh * 9 / 16);
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
    /* Balanced preview safe padding */
    padding-top: clamp(30px, 3.5vh, 50px);
    padding-bottom: clamp(25px, 3vh, 45px);
    padding-left: clamp(28px, 4.2vw, 48px);
    padding-right: clamp(28px, 4.2vw, 48px);
  }
}

/* 1. GIANT RED ARCADE 3D TITLE BANNER */
.banner-header-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  margin-top: 4px;
  margin-bottom: 16px; /* Space for overlapping pills */
}

.banner-red-box {
  width: 100%;
  background: linear-gradient(180deg, #ff2a4b 0%, #d90429 60%, #a80320 100%);
  border: 3px solid #1e293b;
  border-radius: 6px;
  padding: 8px 10px 18px 10px;
  text-align: center;
  position: relative;
  box-shadow: 
    0 4px 0 #800f2f,
    0 5px 0 #1e293b,
    0 10px 18px rgba(217, 4, 41, 0.35);
}

.banner-live-tag {
  position: absolute;
  top: 6px;
  right: 10px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.banner-title {
  font-family: 'Plus Jakarta Sans', 'Fredoka', sans-serif;
  font-size: clamp(1.4rem, 3.2vh, 1.9rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  text-shadow: 
    0 2px 0 #7f1d1d,
    0 3.5px 0 #450a0a,
    0 4.5px 0 #0f172a;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}

/* OVERLAPPING SUB PILLS (3 Equal Frames: Ronde, Soal, Format with Pure SVG Icons) */
.banner-sub-pills {
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: clamp(330px, 94%, 480px);
  z-index: 10;
  box-sizing: border-box;
  padding: 0 4px;
}

/* Base Frame: Ukuran dan bentuk frame mereka bertiga 100% sama persis, 1 warna putih dengan efek shadow & glow */
.pill-sub-frame {
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.68rem, 1vh, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  text-align: center;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  box-shadow: 
    0 4px 12px rgba(15, 23, 42, 0.08),
    0 0 14px rgba(37, 99, 235, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.04);
  -webkit-font-smoothing: antialiased;
  transition: all 0.25s ease;
}

.pill-sub-frame .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2563eb;
  filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.35));
}

.pill-sub-frame .pill-svg-icon {
  display: block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: #2563eb;
}

.pill-sub-frame .pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
}

/* 1. Ronde Frame (Putih Elegan dengan Shadow, Glow & Ikon Biru) */
.pill-sub-frame.pill-round-tag {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  box-shadow: 
    0 4px 12px rgba(15, 23, 42, 0.08),
    0 0 14px rgba(37, 99, 235, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.04);
}
.pill-sub-frame.pill-round-tag .pill-svg-icon {
  stroke: #2563eb;
}

/* 2. Soal Frame (Putih Elegan dengan Shadow, Glow & Ikon Biru) */
.pill-sub-frame.pill-soal-tag {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  box-shadow: 
    0 4px 12px rgba(15, 23, 42, 0.08),
    0 0 14px rgba(37, 99, 235, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.04);
}
.pill-sub-frame.pill-soal-tag .pill-svg-icon {
  stroke: #2563eb;
}

/* 3. Format Frame (Putih Elegan dengan Shadow, Glow & Ikon Biru - Satu Warna Selaras) */
.pill-sub-frame.pill-sub-tag {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  box-shadow: 
    0 4px 12px rgba(15, 23, 42, 0.08),
    0 0 14px rgba(37, 99, 235, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.04);
}
.pill-sub-frame.pill-sub-tag .pill-svg-icon {
  stroke: #2563eb;
}

/* 2. MAIN QUESTION ARENA (RED BORDER & WATERMARKS) */
.main-question-arena {
  background: #fff;
  border: 3.5px solid var(--primary-red);
  border-radius: 6px;
  padding: clamp(16px, 2.2vh, 26px) clamp(12px, 1.8vw, 20px) clamp(10px, 1.4vh, 18px);
  position: relative;
  overflow: visible; /* Sangat penting: agar timer di tengah garis atas tidak terpotong */
  box-shadow: 
    0 6px 0 #b7094c,
    0 8px 0 var(--card-border),
    0 14px 28px rgba(0, 0, 0, 0.08);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: clamp(230px, 32vh, 370px);
  box-sizing: border-box;
}

/* ⏱️ TIMER DI TENGAH GARIS ATAS KOLOM SOAL */
.pill-timer-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  background: #ffffff;
  color: #0f172a;
  border: 2.5px solid var(--primary-red);
  border-radius: 999px;
  height: 32px;
  padding: 0 16px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.22), 0 2px 0 #991b1b;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}

.pill-timer-tag .timer-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-timer-tag .timer-svg-icon {
  stroke: var(--primary-red);
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.pill-timer-tag strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  color: var(--primary-red);
  font-size: 1.15em;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pill-timer-tag.danger {
  background: #dc2626;
  color: #ffffff;
  border-color: #991b1b;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45), 0 2px 0 #7f1d1d;
  animation: pulse-danger 0.5s infinite alternate;
}

.pill-timer-tag.danger .timer-svg-icon {
  stroke: #ffffff;
}

.pill-timer-tag.danger strong {
  color: #ffffff;
}

.pill-timer-tag.reading {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4), 0 2px 0 #1e40af;
  animation: pulse-reading 1.2s ease-in-out infinite alternate;
}

.pill-timer-tag.reading .timer-svg-icon {
  stroke: #ffffff;
}

.pill-timer-tag.reading strong {
  color: #ffffff;
}

@keyframes pulse-danger {
  from { transform: translate(-50%, -50%) scale(1); }
  to { transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes pulse-reading {
  from { transform: translate(-50%, -50%) scale(1); }
  to { transform: translate(-50%, -50%) scale(1.05); }
}

/* Floating Math Watermark Symbols */
.math-watermark {
  position: absolute;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.5vh, 2.2rem);
  font-weight: 900;
  color: #f43f5e;
  opacity: 0.28;
  pointer-events: none;
  line-height: 1;
}

.wm-tl { top: 12px; left: 16px; }
.wm-tr { top: 12px; right: 18px; }
.wm-ml { top: 48%; left: 14px; }
.wm-mr { top: 48%; right: 16px; }
.wm-bl { bottom: 12px; left: 16px; }
.wm-br { bottom: 12px; right: 18px; }

.question-display-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(4px, 0.9vh, 10px);
  z-index: 2;
  position: relative;
  min-height: 80px;
}


.q-main-formula {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.3vh, 1.9rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.32;
  letter-spacing: -0.3px;
  max-width: 95%;
  word-break: break-word;
}

.q-main-formula.long-text {
  font-size: clamp(0.95rem, 1.7vh, 1.25rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.q-equals-symbol {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.4vh, 3rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
  margin: -4px 0;
}

.q-answer-slot {
  background: #fff;
  border: 3.5px solid var(--primary-red);
  border-radius: 8px;
  min-width: clamp(90px, 20vw, 160px);
  height: clamp(56px, 7.8vh, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 #b7094c, 0 6px 12px rgba(217, 4, 41, 0.15);
  padding: 0 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.q-answer-slot.is-revealed {
  background: #ecfdf5;
  border-color: var(--accent-green);
  box-shadow: 0 4px 0 #059669;
}

.slot-symbol {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.8vh, 3.2rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}

.q-answer-slot.is-revealed .slot-symbol {
  color: #047857;
}

/* ========================================================
   MEDIA / FLAG ARENA (TEBAK BENDERA DUNIA & GAMBAR)
   ======================================================== */
.q-media-arena {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px auto 4px auto;
  animation: flagEntrance 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes flagEntrance {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.q-flag-frame {
  position: relative;
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 2.5px solid #ffffff;
  background: #ffffff;
  max-width: 125px;
  max-height: 78px;
  transition: transform 0.2s ease;
}

.q-flag-frame:hover {
  transform: scale(1.03);
}

.q-flag-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 120px;
  max-height: 74px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}

.q-flag-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: 6px 6px 0 0;
}

/* Jaminan Mutlak: Soal, Bendera & Opsi Tidak Pernah Keluar dari Kotak Merah */
.main-question-arena.has-media {
  padding: clamp(6px, 1.2vh, 12px) clamp(10px, 1.6vw, 16px) !important;
  justify-content: space-evenly !important;
}

.main-question-arena.has-media .question-display-wrap {
  gap: clamp(2px, 0.5vh, 6px) !important;
  height: 100%;
  justify-content: space-evenly !important;
}

.main-question-arena.has-media .q-main-formula {
  font-size: clamp(0.88rem, 1.35vh, 1.08rem) !important;
  line-height: 1.26 !important;
  max-width: 96% !important;
  margin-bottom: 2px !important;
}

.main-question-arena.has-media .q-main-formula.long-text {
  font-size: clamp(0.82rem, 1.2vh, 0.98rem) !important;
  line-height: 1.22 !important;
}

.main-question-arena.has-media .options-grid {
  margin-top: 2px !important;
  gap: clamp(4px, 0.6vh, 6px) !important;
}

.main-question-arena.has-media .option-box {
  padding: clamp(4px, 0.6vh, 6px) clamp(6px, 0.8vw, 10px) !important;
  font-size: clamp(0.75rem, 1.1vh, 0.86rem) !important;
  gap: 6px !important;
}

.main-question-arena.has-media .option-letter {
  width: clamp(20px, 2.3vh, 25px) !important;
  height: clamp(20px, 2.3vh, 25px) !important;
  font-size: 0.78rem !important;
}

.main-question-arena.has-media .tebak-words-container {
  padding: 2px 4px !important;
  gap: clamp(4px, 0.6vh, 6px) clamp(6px, 0.8vw, 10px) !important;
}

.main-question-arena.has-media .tebak-letter-box {
  width: clamp(26px, 3.2vh, 32px) !important;
  height: clamp(32px, 4vh, 40px) !important;
  font-size: clamp(1rem, 1.7vh, 1.25rem) !important;
}

/* ========================================================
   TEBAK KATA / ISIAN: LETTER BOXES & GIFT CLUE ARENA
   ======================================================== */
.tebak-kata-arena {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vh, 12px);
  margin-top: 4px;
}

.tebak-words-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vh, 14px) clamp(10px, 1.6vw, 18px);
  max-width: 100%;
  padding: 4px 6px;
}

.tebak-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.6vw, 6px);
  flex-wrap: nowrap;
}

.tebak-letter-box {
  background: #ffffff;
  border: 2.5px solid var(--primary-red);
  border-radius: 8px;
  width: clamp(34px, 4.4vh, 44px);
  height: clamp(42px, 5.4vh, 52px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.4vh, 1.7rem);
  color: var(--primary-red);
  box-shadow: 0 4px 0 #b7094c, 0 4px 10px rgba(217, 4, 41, 0.15);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  box-sizing: border-box;
}

.tebak-letter-box .letter-char {
  display: inline-block;
  line-height: 1;
}

/* Compact scale for words with many letters */
.tebak-words-container.is-compact .tebak-letter-box {
  width: clamp(28px, 3.6vh, 36px);
  height: clamp(36px, 4.6vh, 44px);
  font-size: clamp(1.1rem, 2vh, 1.4rem);
  border-width: 2px;
  box-shadow: 0 3px 0 #b7094c;
}

/* Super compact scale if total letters > 16 */
.tebak-words-container.is-super-compact .tebak-letter-box {
  width: clamp(24px, 3.1vh, 30px);
  height: clamp(32px, 4vh, 38px);
  font-size: clamp(0.95rem, 1.7vh, 1.2rem);
  border-width: 2px;
  box-shadow: 0 2.5px 0 #b7094c;
}

.tebak-letter-box.is-revealed {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #059669;
  color: #065f46;
  box-shadow: 0 4px 0 #047857, 0 0 16px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.tebak-words-container.is-compact .tebak-letter-box.is-revealed {
  box-shadow: 0 3px 0 #047857, 0 0 10px rgba(16, 185, 129, 0.3);
}

.tebak-letter-box.just-unlocked {
  animation: clue-letter-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes clue-letter-pop {
  0% { transform: scale(0.4) rotateY(90deg); opacity: 0; filter: brightness(1.8); }
  50% { transform: scale(1.35) rotateY(0deg); filter: brightness(1.4); }
  75% { transform: scale(0.95); }
  100% { transform: scale(1) translateY(-2px); opacity: 1; filter: brightness(1); }
}

.tebak-letter-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text-dark);
  padding: 0 2px;
  line-height: 1;
}

/* ========================================================
   RUNNING MARQUEE BANNER (KETERANGAN BERJALAN PETUNJUK GIFT)
   ======================================================== */
.tebak-marquee-banner {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(90deg, #1e1b4b 0%, #0f172a 100%);
  border: 1.5px solid #fbbf24;
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 12px rgba(251, 191, 36, 0.22);
  box-sizing: border-box;
}

.marquee-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2.5px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 0 #92400e;
  z-index: 2;
}

.marquee-badge .marquee-icon {
  font-size: 0.9em;
}

.marquee-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  margin-left: 8px;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 18s linear infinite;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fef08a; /* soft glowing yellow */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.marquee-content span {
  display: inline-block;
  white-space: nowrap;
}

.marquee-spacer {
  margin: 0 14px;
  color: #f59e0b;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Multiple choice options grid */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 1vh, 10px);
  width: 100%;
  margin-top: 6px;
}

.option-box {
  background: #f8fafc;
  border: 2px solid var(--card-border);
  border-radius: 6px;
  padding: clamp(8px, 1.2vh, 14px) clamp(8px, 1vw, 12px);
  font-size: clamp(0.85rem, 1.4vh, 1.05rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  text-align: left;
  box-shadow: 0 2px 0 var(--card-border);
}

.option-letter {
  background: #0f172a;
  color: #fff;
  width: clamp(22px, 2.8vh, 32px);
  height: clamp(22px, 2.8vh, 32px);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85em;
  flex-shrink: 0;
}

.option-box.is-correct {
  background: #ecfdf5;
  border-color: var(--accent-green);
  color: #065f46;
  box-shadow: 0 3px 0 #059669;
}

.option-box.is-correct .option-letter {
  background: var(--accent-green);
  color: #fff;
}

.option-box.is-revealed-wrong {
  opacity: 0.45;
}

/* Round Winner Banner inside Arena */
.round-winner-banner {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  padding: clamp(8px, 1.2vh, 14px) clamp(10px, 1.4vw, 14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.rw-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: clamp(0.72rem, 1.1vh, 0.88rem);
  font-weight: 800;
  color: var(--accent-gold);
}

.rw-key {
  color: #cbd5e1;
}

.rw-key strong {
  color: #34d399;
}

.top3-winners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.top3-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.top3-card.rank-1 {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--accent-gold);
}

.top3-medal {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.top3-avatar {
  width: clamp(28px, 3.8vh, 42px);
  height: clamp(28px, 3.8vh, 42px);
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2px;
}

.top3-name {
  font-size: clamp(0.68rem, 1.1vh, 0.82rem);
  font-weight: 700;
  color: #fff;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top3-pts {
  font-size: 0.65rem;
  font-weight: 800;
  color: #38bdf8;
}

.no-winners-box {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 8px;
  font-style: italic;
}

.next-q-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #cbd5e1;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4px;
  transition: all 0.4s ease;
}

.ticker-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  animation: pulse-dot 1s infinite ease-in-out;
}


/* 6. SOAL SELESAI BAR */
.soal-completed-bar, .streak-completed-bar {
  background: #fff;
  border: 2px solid var(--card-border);
  border-radius: 6px;
  padding: clamp(6px, 0.9vh, 10px) clamp(10px, 1.5vw, 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 0 rgba(30, 41, 59, 0.15);
  flex-shrink: 0;
}

.soal-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.soal-icon {
  font-size: 1.1rem;
}

.soal-label {
  font-size: clamp(0.7rem, 1.15vh, 0.85rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.soal-right {
  display: flex;
  align-items: center;
}

.soal-pill {
  background: #22c55e;
  border: 1px solid #16a34a;
  color: #fff;
  font-size: clamp(0.72rem, 1.2vh, 0.9rem);
  font-weight: 900;
  padding: 2px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

/* 7. HOST SPEECH CARD WITH 3D POP-OUT CHIBI MASCOT */
.host-speech-card {
  background: #fffdf8;
  border: 2px solid #fed7aa;
  border-radius: 6px;
  padding: clamp(6px, 1vh, 10px) clamp(10px, 1.4vw, 14px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 18px);
  box-shadow: 0 3px 0 rgba(251, 146, 60, 0.2);
  flex-shrink: 0;
  position: relative;
  overflow: visible; /* Allows 3D pop-out head & arms to burst out! */
  margin-top: 10px; /* Room for pop-out character head */
}

/* 3D Pop-Out Character Stage */
.host-avatar-stage {
  width: clamp(60px, 8.8vh, 78px);
  height: clamp(60px, 8.8vh, 78px);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

/* Circular Background Frame Ring (Latar Belakang Keren) */
.host-avatar-circle, .host-avatar-wrap {
  width: clamp(52px, 7.8vh, 66px);
  height: clamp(52px, 7.8vh, 66px);
  border-radius: 50%;
  border: 2.5px solid var(--primary-red);
  /* Latar belakang keren: Glowing arcade radial gradient */
  background: radial-gradient(circle at 50% 35%, #fff1f2 0%, #fee2e2 50%, #fca5a5 100%);
  box-shadow: 
    0 4px 10px rgba(217, 4, 41, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.host-avatar-circle.is-panic, .host-avatar-wrap.is-panic {
  border-color: #ef4444;
  background: radial-gradient(circle at 50% 35%, #fef2f2 0%, #fecaca 50%, #ef4444 100%);
  animation: host-shake 0.35s infinite alternate ease-in-out;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
}

.host-avatar-circle.is-celebrate, .host-avatar-wrap.is-celebrate {
  border-color: #f59e0b;
  background: radial-gradient(circle at 50% 35%, #fefce8 0%, #fef08a 50%, #eab308 100%);
  animation: host-celebrate-jump 0.55s infinite alternate ease-in-out;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
}

@keyframes host-shake {
  0% { transform: translateX(-50%) rotate(-5deg) scale(1.06); }
  50% { transform: translateX(-50%) rotate(5deg) scale(1.1); }
  100% { transform: translateX(-50%) rotate(-4deg) scale(1.06); }
}

@keyframes host-celebrate-jump {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-50%) translateY(-5px) scale(1.12); }
}

/* Big 3D Pop-Out Character Image (Breaks outside the circle!) */
.chibi-popout-img {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scale(1.48); /* Big pop-out breaking out of the circle! */
  transform-origin: bottom center;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2; /* Sits above the circle frame */
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.32));
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chibi-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.speech-bubble {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.speech-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-pesan-host {
  background: var(--primary-red);
  color: #fff;
  font-size: clamp(0.58rem, 0.95vh, 0.72rem);
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.speech-text {
  font-size: clamp(0.7rem, 1.15vh, 0.85rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

/* 8. BOTTOM SPLIT SECTION (TWO CARDS) */
.bottom-split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.2vw, 14px);
  height: clamp(140px, 17.5vh, 215px);
  flex-shrink: 0;
  width: 100%;
}

.card-top10-gift, .card-top10-leaderboard, .card-jawaban-masuk {
  min-width: 0;
  background: #fff;
  border: 2px solid var(--card-border);
  border-radius: 6px;
  padding: clamp(6px, 0.8vh, 10px) clamp(6px, 1vw, 10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 3px 0 rgba(30, 41, 59, 0.15);
}

.top10-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.68rem, 1.05vh, 0.82rem);
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.top10-gift-header .top10-title {
  color: #b45309;
}

.top10-gift-coin-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.72em;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.top10-gift-pts {
  color: #d97706;
  font-weight: 900;
}

/* Left Card: Jawaban Masuk */
.jm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.6rem, 0.95vh, 0.74rem);
  font-weight: 800;
  color: var(--text-muted);
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.jm-col-title { color: var(--text-dark); }
.jm-col-points { color: #f59e0b; }
.jm-col-status { color: var(--text-secondary); }

.jm-feed-list {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  overflow: hidden;
}

.jm-entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: clamp(0.65rem, 1.05vh, 0.8rem);
  animation: slide-in 0.25s ease-out;
}

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

.jm-entry-user {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.jm-entry-avatar {
  width: clamp(16px, 2.2vh, 22px);
  height: clamp(16px, 2.2vh, 22px);
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.jm-entry-name-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.jm-entry-nick {
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95em;
}

.jm-entry-ans {
  font-size: 0.85em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jm-entry-pts {
  font-weight: 800;
  color: #f59e0b;
  font-size: 0.85em;
  white-space: nowrap;
  flex-shrink: 0;
}

.jm-badge {
  font-size: 0.75em;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.jm-badge.benar {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.jm-badge.salah {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.empty-feed-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  margin: auto;
  font-style: italic;
}

/* Right Card: Top 10 */
.top10-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.64rem, 1vh, 0.78rem);
  font-weight: 800;
  color: var(--text-dark);
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.top10-total {
  font-size: 0.88em;
  color: var(--text-muted);
  font-weight: 600;
}

.top10-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.top10-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.top10-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: clamp(0.65rem, 1.05vh, 0.82rem);
  background: #fafaf9;
}

.top10-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.top10-rank-icon {
  width: 16px;
  font-weight: 900;
  font-size: 0.85em;
  text-align: center;
  flex-shrink: 0;
}

.top10-avatar {
  width: clamp(16px, 2.2vh, 22px);
  height: clamp(16px, 2.2vh, 22px);
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.top10-name {
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.top10-level-badge {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #fde047;
  font-size: 0.72em;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

.top10-score {
  font-weight: 900;
  color: var(--text-dark);
  flex-shrink: 0;
  font-feature-settings: "tnum";
}

.empty-lb-notice {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  margin: auto;
  font-style: italic;
}


/* GIFT TOAST NOTIFICATION (Di space kosong bawah kolom soal, tidak menutupi soal/pilihan) */
.gift-splash-modal {
  position: absolute;
  bottom: clamp(10px, 1.6vh, 18px);
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 92%;
  height: auto;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  pointer-events: none;
}

.gift-splash-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 50%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 999px;
  padding: clamp(3px, 0.5vh, 6px) clamp(10px, 1.8vw, 16px) clamp(3px, 0.5vh, 6px) clamp(6px, 1.1vw, 10px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 12px);
  box-shadow: 
    0 3px 0 #b45309,
    0 6px 18px rgba(245, 158, 11, 0.35);
  animation: giftToastPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: auto;
  white-space: nowrap;
}

@keyframes giftToastPop {
  0% { transform: translateY(20px) scale(0.85); opacity: 0; }
  70% { transform: translateY(-4px) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.gift-icon-bounce {
  font-size: clamp(1.4rem, 2.4vh, 1.9rem);
  width: clamp(38px, 4.8vh, 48px);
  height: clamp(38px, 4.8vh, 48px);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fef08a 60%, #f59e0b 100%);
  border: 2px solid #ca8a04;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  animation: giftIconWiggle 0.6s infinite alternate ease-in-out;
  overflow: hidden;
  padding: 3px;
  box-sizing: border-box;
}

.gift-splash-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.gift-splash-fallback {
  font-size: 1.5rem;
  line-height: 1;
}

@keyframes giftIconWiggle {
  0% { transform: rotate(-8deg) scale(1); }
  100% { transform: rotate(8deg) scale(1.1); }
}

.gift-toast-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.gift-toast-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gift-splash-headline {
  font-family: var(--font-title);
  font-size: clamp(0.58rem, 0.95vh, 0.72rem);
  font-weight: 900;
  color: var(--primary-red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gift-splash-bonus {
  background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
  color: #713f12;
  font-weight: 900;
  font-size: clamp(0.56rem, 0.9vh, 0.7rem);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #ca8a04;
  letter-spacing: 0.3px;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.gift-toast-row-bottom {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(0.7rem, 1.15vh, 0.86rem);
  color: var(--text-dark);
}

.gift-splash-user {
  font-weight: 900;
  color: #0f172a;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-splash-info {
  font-weight: 700;
  color: #d97706;
}

/* FOLLOW TOAST NOTIFICATION (Di space kosong bawah kolom soal, persis seperti gift) */
.follow-splash-modal {
  position: absolute;
  bottom: clamp(10px, 1.6vh, 18px);
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 92%;
  height: auto;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  pointer-events: none;
}

.follow-splash-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 50%, #fce7f3 100%);
  border: 2px solid #ec4899;
  border-radius: 999px;
  padding: clamp(3px, 0.5vh, 6px) clamp(10px, 1.8vw, 16px) clamp(3px, 0.5vh, 6px) clamp(6px, 1.1vw, 10px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 12px);
  box-shadow: 
    0 3px 0 #be185d,
    0 6px 18px rgba(236, 72, 153, 0.35);
  animation: giftToastPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: auto;
  white-space: nowrap;
}

.follow-avatar-wrap {
  position: relative;
  width: clamp(34px, 4.4vh, 44px);
  height: clamp(34px, 4.4vh, 44px);
  border-radius: 50%;
  border: 2px solid #ec4899;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(236, 72, 153, 0.3);
}

.follow-splash-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.follow-heart-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.95rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
  animation: followHeartBeat 0.7s infinite alternate ease-in-out;
}

@keyframes followHeartBeat {
  0% { transform: scale(1) rotate(-8deg); }
  100% { transform: scale(1.25) rotate(8deg); }
}

.follow-toast-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.follow-toast-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.follow-splash-headline {
  font-family: var(--font-title);
  font-size: clamp(0.58rem, 0.95vh, 0.72rem);
  font-weight: 900;
  color: #db2777;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.follow-splash-bonus {
  background: linear-gradient(180deg, #ec4899 0%, #db2777 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(0.56rem, 0.9vh, 0.7rem);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #be185d;
  letter-spacing: 0.3px;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.follow-toast-row-bottom {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(0.7rem, 1.15vh, 0.86rem);
  color: var(--text-dark);
}

.follow-splash-user {
  font-weight: 900;
  color: #0f172a;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-splash-info {
  font-weight: 700;
  color: #db2777;
}

.hidden {
  display: none !important;
}

/* Flag Icons */
.flag-icon {
  width: 1.35em;
  height: 0.9em;
  vertical-align: -0.15em;
  display: inline-block;
  margin-right: 4px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* ========================================================
   IN-CARD TOP 3 FASTEST PODIUM & ANSWER REVEAL
   ======================================================== */
.q-answer-slot.is-revealed {
  background: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 4px 0 #059669, 0 8px 20px rgba(16, 185, 129, 0.25);
  min-width: clamp(140px, 35vw, 340px);
  max-width: 95%;
  height: auto;
  padding: clamp(6px, 1.1vh, 12px) clamp(16px, 2.5vw, 28px);
  animation: pop-bounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.q-answer-slot.is-revealed .slot-symbol {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2.6vh, 2rem);
  font-weight: 900;
  color: #065f46;
  letter-spacing: 0.5px;
  line-height: 1.2;
  word-break: break-word;
}

@keyframes pop-bounce {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

.q-podium-section {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 2px solid var(--card-border);
  border-radius: 6px;
  box-shadow: 0 3px 0 rgba(30, 41, 59, 0.15);
  padding: clamp(6px, 0.9vh, 10px) clamp(8px, 1.2vw, 12px);
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.9vh, 8px);
  flex-shrink: 0;
  margin-top: clamp(8px, 1.4vh, 16px); /* Jarak pemisah antara kotak soal dan kotak 3 tercepat */
  box-sizing: border-box;
}

.q-podium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
}

.q-podium-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(0.78rem, 1.25vh, 0.95rem);
  font-weight: 900;
  color: #dc2626;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-shadow: none;
}

.q-podium-icon {
  color: #f59e0b;
  font-size: 1.05em;
  line-height: 1;
}

.q-countdown-wrap, .q-podium-subtitle {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(0.68rem, 1.05vh, 0.8rem);
  font-weight: 700;
  color: #475569;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.q-countdown-wrap strong {
  color: #dc2626;
  font-weight: 900;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.q-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(5px, 1vw, 8px);
  width: 100%;
}

.q-winner-chip {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: clamp(5px, 0.8vh, 8px) clamp(3px, 0.6vw, 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  min-width: 0;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
}

.q-winner-chip.rank-1 {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  box-shadow: 0 3px 0 #d97706, 0 4px 10px rgba(245, 158, 11, 0.2);
}

.q-winner-chip.rank-2 {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #94a3b8;
  box-shadow: 0 3px 0 #64748b;
}

.q-winner-chip.rank-3 {
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #ea580c;
  box-shadow: 0 3px 0 #c2410c;
}

.q-winner-chip.is-empty {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  box-shadow: none;
  opacity: 0.85;
}

.qw-avatar-empty {
  width: clamp(24px, 3.4vh, 34px);
  height: clamp(24px, 3.4vh, 34px);
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.75rem, 1.1vh, 0.9rem);
  color: #94a3b8;
  font-weight: 800;
  flex-shrink: 0;
}

.qw-nick.is-empty {
  color: #94a3b8;
  font-style: italic;
  font-weight: 600;
}

.qw-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.66rem, 1.05vh, 0.78rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.q-winner-chip.rank-1 .qw-badge { color: #b45309; }
.q-winner-chip.rank-2 .qw-badge { color: #475569; }
.q-winner-chip.rank-3 .qw-badge { color: #c2410c; }

.qw-avatar {
  width: clamp(24px, 3.4vh, 34px);
  height: clamp(24px, 3.4vh, 34px);
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.qw-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.qw-nick {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.64rem, 1vh, 0.76rem);
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.qw-pts {
  font-size: clamp(0.55rem, 0.9vh, 0.68rem);
  font-weight: 900;
  color: #10b981;
  line-height: 1.1;
}

.q-podium-empty {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  padding: clamp(8px, 1.2vh, 12px);
  text-align: center;
  font-size: clamp(0.68rem, 1.05vh, 0.8rem);
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}


/* 9. FOOTER RIBBON: DAFTAR JUARA BERTAHAN */
.juara-bertahan-footer {
  background: #ffffff;
  border: 2px solid var(--card-border);
  border-radius: 6px;
  padding: clamp(5px, 0.8vh, 8px) clamp(8px, 1.2vw, 12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 3px 0 rgba(30, 41, 59, 0.15);
  flex-shrink: 0;
  width: 100%;
}

.jb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(0.62rem, 1vh, 0.74rem);
  font-weight: 900;
}

.jb-title {
  color: var(--text-dark);
}

.jb-sub {
  color: #f59e0b;
}

.jb-champions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.jb-chip {
  flex: 1;
  background: #fefce8;
  border: 1.5px solid #fef08a;
  border-radius: 5px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

/* Rank 1 Gold */
.jb-chip.rank-1 {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.2);
}

/* Rank 2 Silver */
.jb-chip.rank-2 {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #94a3b8;
}

/* Rank 3 Bronze */
.jb-chip.rank-3 {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #ea580c;
}

/* Empty State Chip (Clean placeholder without dummy names) */
.jb-chip.is-empty {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  box-shadow: none;
  opacity: 0.85;
}

.jb-avatar {
  width: clamp(20px, 2.5vh, 26px);
  height: clamp(20px, 2.5vh, 26px);
  border-radius: 50%;
  border: 1.5px solid #ca8a04;
  flex-shrink: 0;
  object-fit: cover;
}

.jb-avatar-empty {
  width: clamp(20px, 2.5vh, 26px);
  height: clamp(20px, 2.5vh, 26px);
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.7rem, 1.1vh, 0.85rem);
  flex-shrink: 0;
}

.jb-name {
  font-size: clamp(0.65rem, 1.05vh, 0.78rem);
  font-weight: 700;
  color: #713f12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.jb-name.is-empty {
  color: #94a3b8;
  font-style: italic;
  font-weight: 600;
}

.jb-badge {
  background: #fde047;
  color: #854d0e;
  font-size: 0.65em;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

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

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

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

.jb-badge.is-empty {
  background: #e2e8f0;
  color: #94a3b8;
  font-weight: 700;
  padding: 1px 4px;
}


/* ========================================================
   CALL-TO-ACTION: JAWAB DI KOMENTAR! (Ultra-Crisp, Sharp)
   ======================================================== */
.jawab-komentar-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fef08a 0%, #facc15 50%, #eab308 100%);
  border: 2px solid #1e293b;
  border-radius: 999px;
  padding: clamp(5px, 0.8vh, 8px) clamp(18px, 3.5vw, 28px);
  box-shadow: 
    0 3px 0 #1e293b,
    0 3px 10px rgba(234, 179, 8, 0.4);
  margin: 0 auto;
  width: fit-content;
  max-width: 90%;
  flex-shrink: 0;
  z-index: 10;
  /* Glow subtly without scale transform to keep text 100% crisp and unblurred */
  animation: cta-glow 2s ease-in-out infinite;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@keyframes cta-glow {
  0%, 100% {
    box-shadow: 0 3px 0 #1e293b, 0 3px 8px rgba(234, 179, 8, 0.3);
  }
  50% {
    box-shadow: 0 3px 0 #1e293b, 0 4px 16px rgba(245, 158, 11, 0.65);
  }
}

.jk-text {
  font-family: 'Plus Jakarta Sans', var(--font-body), sans-serif;
  font-size: clamp(0.76rem, 1.3vh, 0.94rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


/* READING TIMER PILL STATE */
.pill-timer-tag.reading {
  background: #2563eb;
  color: #ffffff;
  border-color: #1e3a8a;
  box-shadow: 0 2px 0 #1e3a8a;
  animation: pulse-reading 1.2s ease-in-out infinite alternate;
}

.pill-timer-tag.reading strong {
  color: #ffffff;
  font-size: 0.9em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: none;
}

@keyframes pulse-reading {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}


/* SECRET ANSWER FEED STYLING */
.jm-entry-row.is-correct-feed {
  background: #f0fdf4;
  border-color: #86efac;
}

.jm-entry-pts.pts-win {
  color: #16a34a;
  font-weight: 900;
}

.jm-entry-pts.pts-zero {
  color: #94a3b8;
  font-weight: 700;
}

.jm-badge.salah {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ========================================================
   WAKTU OFF LIVE RUNNING COUNTDOWN BAR (1 KOIN = 1 MENIT)
   ======================================================== */
/* ========================================================
   WAKTU OFF LIVE RUNNING COUNTDOWN BAR (1 KOIN = 1 MENIT)
   ======================================================== */
/* ========================================================
/* ========================================================
   WAKTU OFF LIVE - 2-COLUMN CLEAN WIDGET (SESUAI TEMA KUIS)
   - Background putih bersih selaras tema kuis game-show
   - Border 3D solid navy & bayangan halus
   - Jam digital merah tebal & badge gift emas hangat
   ======================================================== */
.offlive-widget-card {
  width: 100%;
  background: #ffffff;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  padding: clamp(5px, 0.7vh, 7px) clamp(10px, 1.6vw, 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  box-shadow: 0 3px 0 var(--card-border);
  position: relative;
  flex-shrink: 0;
  z-index: 10;
  min-height: clamp(48px, 6vh, 58px);
  -webkit-font-smoothing: antialiased;
}

/* Kolom Kiri: Hitung Mundur Jam */
.offlive-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
}

.offlive-col-header {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  margin-bottom: 2px;
}

.offlive-live-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
  animation: redDotPulse 1.5s infinite ease-in-out;
  flex-shrink: 0;
  margin-right: 2px;
}

@keyframes redDotPulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.offlive-header-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.58rem, 0.9vh, 0.68rem);
  font-weight: 800;
  color: #dc2626;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.offlive-clock-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-radius: 6px;
  padding: 1px 8px;
}

.offlive-clock-value {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: clamp(1.05rem, 1.7vh, 1.25rem);
  font-weight: 900;
  color: #be123c;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}

.offlive-added-anim {
  position: absolute;
  top: -14px;
  right: -6px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 0 #15803d;
  animation: floatUpFade 2s forwards;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes floatUpFade {
  0% { opacity: 0; transform: translateY(5px) scale(0.9); }
  20% { opacity: 1; transform: translateY(-2px) scale(1.1); }
  75% { opacity: 1; transform: translateY(-5px) scale(1); }
  100% { opacity: 0; transform: translateY(-12px) scale(0.8); }
}

/* Center Vertical Divider */
.offlive-col-divider {
  width: 1.5px;
  height: 32px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Kolom Kanan: Aturan Gift */
.offlive-col-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.offlive-gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  border-radius: 6px;
  padding: 2px 8px;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.15);
}

.offlive-gift-icon {
  font-size: 0.8rem;
  line-height: 1;
}

.offlive-gift-highlight {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.72rem, 1.1vh, 0.82rem);
  font-weight: 900;
  color: #92400e;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 1.2;
}

.offlive-gift-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.56rem, 0.85vh, 0.65rem);
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.offlive-gift-badge.is-gift-alert {
  background: #dcfce7;
  border-color: #22c55e;
  animation: pulse-alert 0.8s infinite alternate;
}

.offlive-gift-badge.is-gift-alert .offlive-gift-highlight {
  color: #15803d;
}

@keyframes pulse-alert {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

/* ========================================================
   MUSIC REQUEST RUNNING TEXT TICKER
   ======================================================== */
.music-ticker-bar {
  width: 100%;
  background: linear-gradient(90deg, #18181b 0%, #312e81 40%, #1e1b4b 100%);
  border: 1.5px solid #818cf8;
  border-radius: 999px;
  height: clamp(23px, 2.9vh, 28px);
  display: flex;
  align-items: center;
  padding: 0 10px 0 3px;
  box-sizing: border-box;
  box-shadow: 
    0 2px 0 #4338ca,
    0 4px 12px rgba(99, 102, 241, 0.35);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  z-index: 10;
}

.music-ticker-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-title);
  font-size: clamp(0.56rem, 0.9vh, 0.7rem);
  font-weight: 900;
  letter-spacing: 0.4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  margin-right: 8px;
  z-index: 2;
}

.music-icon-pulse {
  display: inline-block;
  animation: musicBounce 0.8s infinite alternate ease-in-out;
}

@keyframes musicBounce {
  0% { transform: scale(1) rotate(-6deg); }
  100% { transform: scale(1.2) rotate(6deg); }
}

.music-ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.music-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: musicMarqueeScroll 20s linear infinite;
  gap: 16px;
}

.music-ticker-item {
  font-family: var(--font-body);
  font-size: clamp(0.66rem, 1.05vh, 0.8rem);
  font-weight: 700;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.music-ticker-item strong {
  color: #fde047;
}

.music-cmd-tag {
  background: #4f46e5;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.92em;
  font-weight: 800;
  border: 1px solid #a5b4fc;
}

.music-ticker-sep {
  color: #818cf8;
  font-size: 0.72rem;
  opacity: 0.8;
}

@keyframes musicMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================
   ☕ SESI ISTIRAHAT (BREAK SESSION - 30s)
   ======================================================== */
.break-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.4vh, 18px);
  box-sizing: border-box;
  z-index: 60;
  border-radius: 4px;
  animation: breakOverlayFadeIn 0.35s ease-out;
}

@keyframes breakOverlayFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.break-pill-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #dc2626;
  border: 2px solid #ef4444;
  border-radius: 999px;
  padding: 3px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.7rem, 1.1vh, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 2px 0 #b91c1c;
  margin-bottom: clamp(6px, 1vh, 10px);
}

.break-steaming-cup {
  font-size: 1.05rem;
  animation: cupWiggle 2s infinite ease-in-out;
}

@keyframes cupWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(-6deg); }
  75% { transform: translateY(-2px) rotate(6deg); }
}

.break-timer-circle {
  width: clamp(76px, 11vh, 96px);
  height: clamp(76px, 11vh, 96px);
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid #ef4444;
  box-shadow: 
    0 4px 0 #b91c1c,
    0 6px 16px rgba(239, 68, 68, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(6px, 1vh, 10px);
  position: relative;
}

.break-timer-value {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: clamp(1.8rem, 3.2vh, 2.4rem);
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.break-timer-unit {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.55rem, 0.85vh, 0.65rem);
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1px;
}

.break-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.88rem, 1.4vh, 1.08rem);
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  margin-bottom: 2px;
  line-height: 1.2;
}

.break-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.62rem, 0.95vh, 0.72rem);
  font-weight: 600;
  color: #64748b;
  text-align: center;
  margin-bottom: clamp(8px, 1.2vh, 12px);
}

.break-podium-section {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  box-sizing: border-box;
  margin-bottom: clamp(6px, 1vh, 10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.break-podium-header {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.58rem, 0.85vh, 0.68rem);
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-align: center;
}

.break-podium-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.break-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.break-rank-1 {
  border-color: #ef4444;
  background: #fff1f2;
}

.break-rank-2 {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.break-rank-3 {
  border-color: #fb923c;
  background: #fff7ed;
}

.break-chip-medal {
  font-size: 0.8rem;
}

.break-chip-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.break-chip-name {
  font-size: clamp(0.62rem, 0.9vh, 0.72rem);
  font-weight: 800;
  color: #0f172a;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.break-chip-pts {
  font-size: clamp(0.58rem, 0.85vh, 0.68rem);
  font-weight: 900;
  color: #dc2626;
}

.break-empty-notice {
  font-size: 0.68rem;
  color: #64748b;
  font-style: italic;
  text-align: center;
}

.break-tip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.58rem, 0.88vh, 0.68rem);
  font-weight: 700;
  color: #b91c1c;
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-radius: 6px;
  padding: 4px 10px;
}

/* ========================================================
   🔄 ROUND SYSTEM & LOCKED FASTEST PODIUM STYLES
   ======================================================== */
/* 🔒 Locked Podium Slot (Nama Akun Baru Terbuka Saat Jawaban Dibuka) */
.qw-avatar-locked {
  width: clamp(24px, 3.4vh, 34px);
  height: clamp(24px, 3.4vh, 34px);
  border-radius: 50%;
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  color: #713f12;
  border: 1.5px solid #eab308;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
  animation: lockSlotPulse 1.2s infinite alternate ease-in-out;
  flex-shrink: 0;
}

.qw-question-svg,
.qw-lock-svg {
  display: block;
  stroke: #713f12;
}

.qw-lock-inline-svg {
  display: inline-block;
  vertical-align: -1px;
  stroke: currentColor;
  margin-left: 2px;
}

@keyframes lockSlotPulse {
  0% { transform: scale(0.96); box-shadow: 0 0 4px rgba(234, 179, 8, 0.3); }
  100% { transform: scale(1.06); box-shadow: 0 0 10px rgba(234, 179, 8, 0.6); }
}

.qw-nick-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: clamp(0.68rem, 1.05vh, 0.82rem);
  font-weight: 900;
  color: #b45309;
  letter-spacing: 0.3px;
}

.q-podium-locked-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d97706;
  font-weight: 800;
}

/* 🏆 ROUND CELEBRATION FULL POP-UP MODAL OVERLAY */
.round-celebration-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.8vh, 18px);
  box-sizing: border-box;
  z-index: 1000;
  animation: roundOverlayPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.round-cel-modal {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 3.5px solid #f59e0b;
  border-radius: 16px;
  padding: clamp(14px, 2vh, 22px) clamp(12px, 1.6vw, 18px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(245, 158, 11, 0.35);
  animation: roundCardPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes roundCardPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.round-cel-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(6px, 1vh, 10px);
}

.round-cel-crown {
  font-size: clamp(2rem, 3.5vh, 2.6rem);
  line-height: 1;
  margin-bottom: 2px;
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.5));
  animation: crownBob 1.6s infinite ease-in-out;
}

@keyframes crownBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px) scale(1.1); }
}

.round-cel-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.05rem, 1.8vh, 1.35rem);
  font-weight: 900;
  color: #b45309;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.round-cel-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.68rem, 1vh, 0.8rem);
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}

.round-cel-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.72rem, 1.1vh, 0.84rem);
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  letter-spacing: 0.3px;
  margin-bottom: clamp(8px, 1.2vh, 12px);
}

/* PODIUM DENGAN FOTO ASLI MEREKA */
.round-cel-podium {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: clamp(6px, 1vw, 10px);
  align-items: flex-end;
  margin-bottom: clamp(10px, 1.6vh, 16px);
}

.round-cel-chip {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: clamp(8px, 1.2vh, 14px) clamp(4px, 0.8vw, 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.2s ease;
}

/* Rank 1: Juara Utama (Tinggi, Emas, Avatar Terbesar) */
.round-cel-chip.rank-1 {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  box-shadow: 0 4px 0 #d97706, 0 8px 20px rgba(245, 158, 11, 0.25);
  transform: translateY(-10px);
  padding-top: clamp(12px, 1.8vh, 18px);
}

.round-cel-gold-crown {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.35rem;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.6));
  animation: crownBob 1.6s infinite ease-in-out;
}

.round-cel-chip.rank-1 .round-cel-avatar {
  width: clamp(48px, 6.5vh, 64px);
  height: clamp(48px, 6.5vh, 64px);
  border: 3px solid #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}

/* Rank 2: Juara 2 (Perak) */
.round-cel-chip.rank-2 {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #94a3b8;
  box-shadow: 0 3px 0 #64748b;
}

.round-cel-chip.rank-2 .round-cel-avatar {
  width: clamp(38px, 5.2vh, 48px);
  height: clamp(38px, 5.2vh, 48px);
  border: 2.5px solid #94a3b8;
}

/* Rank 3: Juara 3 (Perunggu) */
.round-cel-chip.rank-3 {
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #ea580c;
  box-shadow: 0 3px 0 #c2410c;
}

.round-cel-chip.rank-3 .round-cel-avatar {
  width: clamp(38px, 5.2vh, 48px);
  height: clamp(38px, 5.2vh, 48px);
  border: 2.5px solid #ea580c;
}

.round-cel-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.round-cel-avatar {
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

.round-cel-avatar-empty {
  width: clamp(38px, 5.2vh, 48px);
  height: clamp(38px, 5.2vh, 48px);
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px dashed #cbd5e1;
}

.round-cel-badge {
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.58rem, 0.88vh, 0.7rem);
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.round-cel-badge.rank-1 {
  background: #f59e0b;
  color: #78350f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.round-cel-badge.rank-2 {
  background: #cbd5e1;
  color: #334155;
}

.round-cel-badge.rank-3 {
  background: #fed7aa;
  color: #9a3412;
}

.round-cel-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.68rem, 1vh, 0.82rem);
  font-weight: 800;
  color: #0f172a;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-cel-pts {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.72rem, 1.1vh, 0.88rem);
  font-weight: 900;
  color: #d97706;
}

/* KETERANGAN RESET POIN BOX - SIMPEL & RINGKAS (TANPA JUDUL BESAR & TANPA GIFT) */
.round-cel-reset-alert {
  width: 100%;
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: 8px;
  padding: 8px 14px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(10px, 1.4vh, 14px);
}

.rc-alert-desc {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.66rem, 0.98vh, 0.78rem);
  font-weight: 700;
  color: #78350f;
  line-height: 1.4;
}

.round-cel-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.round-cel-ticker-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 999px;
  padding: 4px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.72rem, 1.1vh, 0.85rem);
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.round-cel-ticker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

.round-cel-ticker-label strong {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #facc15;
  font-size: 1.15em;
  font-weight: 900;
}

