:root { --primary: #5e4fa2; --secondary: #e91e63; }
#gameWrapper { background:linear-gradient(135deg,#fff9f0,#f3eeff,#e8f4ff); border-radius:24px; box-shadow:0 8px 32px rgba(94,79,162,.15); padding:24px; position:relative; min-height:400px; margin-bottom:24px; }
.btn-fullscreen { position:absolute; top:12px; right:12px; background:transparent; border:2px solid var(--primary); color:var(--primary); border-radius:8px; width:36px; height:36px; cursor:pointer; font-size:18px; z-index:10; }
.game-instruction { text-align:center; color:var(--primary); font-size:18px; font-weight:600; background:rgba(94,79,162,.08); border-radius:12px; padding:10px 16px; margin-bottom:16px; }
.game-stats { display:flex; gap:16px; justify-content:center; margin-bottom:12px; font-size:15px; font-weight:600; color:#333; }
.game-stats span { background:rgba(94,79,162,.1); border-radius:10px; padding:6px 14px; }
.progress-bar { display:flex; gap:10px; justify-content:center; margin-bottom:16px; flex-wrap:wrap; }
.progress-dot { width:14px; height:14px; border-radius:50%; background:#ddd; transition:all .3s; }
.progress-dot.done { background:#4caf50; } .progress-dot.active { background:var(--primary); transform:scale(1.4); }
.feedback-msg { text-align:center; font-size:22px; font-weight:bold; min-height:36px; margin:10px 0; }
.feedback-correct { color:#4caf50; } .feedback-wrong { color:#e53935; }
.ans-btn { min-width:72px; height:64px; border-radius:16px; background:linear-gradient(135deg,var(--primary),var(--secondary)); color:#fff; border:none; font-size:22px; font-weight:bold; cursor:pointer; transition:transform .15s; box-shadow:0 4px 12px rgba(94,79,162,.25); }
.ans-btn:hover:not(:disabled) { transform:scale(1.1); }
.ans-btn.correct { background:linear-gradient(135deg,#43a047,#66bb6a); }
.ans-btn.wrong { background:#e53935; animation:shake .4s ease; }
.ans-btn:disabled { opacity:.5; cursor:not-allowed; }
.answer-buttons { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:16px; }
.question-display { background:#fff; border-radius:16px; border:2px solid rgba(94,79,162,.15); padding:24px; text-align:center; margin:16px 0; }
.q-number { font-size:clamp(28px,5vw,48px); font-weight:bold; color:var(--primary); }
.btn-next { display:block; margin:16px auto 0; background:linear-gradient(135deg,var(--primary),var(--secondary)); color:#fff; border:none; border-radius:50px; padding:12px 30px; font-size:16px; font-weight:bold; cursor:pointer; }
/* Victory */
#victoryScreen { display:none; position:absolute; inset:0; background:linear-gradient(135deg,#f3eeff,#fff9f0); border-radius:24px; flex-direction:column; align-items:center; justify-content:center; z-index:20; }
.victory-content { text-align:center; }
.victory-trophy { font-size:72px; animation:trophyBounce 1s ease infinite alternate; }
#starsRow { font-size:42px; }
.btn-play-again { background:linear-gradient(135deg,var(--secondary),var(--primary)); color:#fff; border:none; border-radius:50px; padding:14px 32px; font-size:18px; font-weight:bold; cursor:pointer; margin-top:16px; }
#confettiContainer { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.confetti-piece { position:absolute; width:10px; height:10px; border-radius:2px; animation:confettiFall linear forwards; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }
@keyframes trophyBounce { from{transform:translateY(0)} to{transform:translateY(-16px)} }
@keyframes confettiFall { from{transform:translateY(-20px) rotate(0deg);opacity:1} to{transform:translateY(500px) rotate(360deg);opacity:0} }
