/* Kids Trivia Arena -- game-show stage */
.kta-play { --kta-bg1: #1a0b3d; --kta-bg2: #3b0f5c; --kta-accent: #ff4fd8; --kta-light: rgba(255, 79, 216, 0.25); }
.kta-retro { --kta-bg1: #3e1f0f; --kta-bg2: #7a3212; --kta-accent: #ffd54f; --kta-light: rgba(255, 213, 79, 0.25); }
.kta-space { --kta-bg1: #050b24; --kta-bg2: #0d1b4c; --kta-accent: #4fc3f7; --kta-light: rgba(79, 195, 247, 0.22); }
.kta-jungle { --kta-bg1: #0b2e13; --kta-bg2: #1b5e20; --kta-accent: #aed581; --kta-light: rgba(174, 213, 129, 0.22); }
.kta-gold { --kta-bg1: #2b1a0c; --kta-bg2: #5d4037; --kta-accent: #ffd740; --kta-light: rgba(255, 215, 64, 0.25); }

.kta-score { font-weight: 800; color: var(--color-primary); }
.kta-stage {
  position: relative; overflow: hidden; border-radius: 18px; padding: 18px 16px 16px;
  background: radial-gradient(ellipse at 50% 0%, var(--kta-bg2), var(--kta-bg1) 70%);
  border: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 12px; min-height: 330px;
}
.kta-lights { position: absolute; inset: 0; pointer-events: none; }
.kta-lights span { position: absolute; top: -40%; width: 30%; height: 140%; background: linear-gradient(180deg, var(--kta-light), transparent 70%); transform-origin: top center; animation: kta-sweep 6s ease-in-out infinite alternate; }
.kta-lights span:nth-child(1) { left: 5%; transform: rotate(18deg); }
.kta-lights span:nth-child(2) { left: 35%; animation-delay: -2s; }
.kta-lights span:nth-child(3) { right: 5%; transform: rotate(-18deg); animation-delay: -4s; }
@keyframes kta-sweep { from { opacity: 0.35; } to { opacity: 1; } }

.kta-progress { position: relative; display: flex; gap: 6px; justify-content: center; }
.kta-progress span { width: 22px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.kta-progress span.is-now { background: var(--kta-accent); }
.kta-progress span.is-right { background: var(--color-success); }
.kta-progress span.is-wrong { background: var(--color-accent); opacity: 0.7; }
.kta-timer { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.kta-timer-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--color-success), var(--kta-accent)); transition: width 0.1s linear; }
.kta-timer-fill.is-low { background: #ff5252; }
.kta-question { position: relative; margin: 4px 0; text-align: center; font-size: 1.4rem; font-weight: 800; line-height: 1.35; color: #fff; min-height: 2.7em; }
.kta-answers { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .kta-answers { grid-template-columns: 1fr; } .kta-question { font-size: 1.2rem; } }
.kta-answer {
  display: flex; align-items: center; gap: 10px; text-align: left; min-height: 54px; padding: 10px 14px; border-radius: 14px;
  font: inherit; font-size: 1.08rem; font-weight: 700; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.2s ease;
}
.kta-answer:hover:not(:disabled) { border-color: var(--kta-accent); background: rgba(255, 255, 255, 0.14); }
.kta-answer:active:not(:disabled) { transform: scale(0.98); }
.kta-answer:focus-visible { outline: 3px solid var(--kta-accent); outline-offset: 2px; }
.kta-letter { flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--kta-accent); color: #1a1a1a; font-weight: 900; }
.kta-answer.is-right { border-color: var(--color-success); background: rgba(74, 222, 128, 0.28); animation: kta-pop 0.35s ease; }
.kta-answer.is-wrong { border-color: #ff5252; background: rgba(255, 82, 82, 0.22); }
.kta-answer.is-gone { opacity: 0.15; }
@keyframes kta-pop { 50% { transform: scale(1.04); } }
.kta-crowd { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 110px; align-items: end; padding: 0 20%; }
.kta-bar { display: flex; flex-direction: column-reverse; align-items: center; height: 100%; color: #fff; font-weight: 800; font-size: 0.8rem; gap: 2px; }
.kta-bar i { width: 60%; background: var(--kta-accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.kta-fact { position: relative; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); color: #fff; line-height: 1.5; }
.kta-final { position: relative; text-align: center; color: #fff; padding: 20px 10px; }
.kta-trophy { font-size: 72px; animation: kta-pop 0.8s ease 2; }
.kta-final h3 { margin: 6px 0; font-size: 1.6rem; }
.kta-read { padding: 8px 14px; }

@media (prefers-reduced-motion: reduce) { .kta-lights span, .kta-answer.is-right, .kta-trophy { animation: none; } .kta-timer-fill { transition: none; } }
