@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --ink: #29345f;
  --muted: #6d789d;
  --blue: #6679f5;
  --blue-deep: #4657c8;
  --blue-soft: #eef0ff;
  --yellow: #ffd75a;
  --yellow-soft: #fff4c7;
  --green: #50d39d;
  --orange: #ff9b68;
  --purple: #a486ef;
  --paper: #fffdf8;
  --line: #e8e9f6;
  --shadow: 0 22px 65px rgba(77, 86, 164, .14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff8f1;
  font-family: 'Tajawal', Tahoma, Arial, sans-serif;
  overflow-x: hidden;
}
button, a { font: inherit; }
button { cursor: pointer; border: 0; }
button:focus-visible, a:focus-visible { outline: 4px solid rgba(18, 97, 214, .28); outline-offset: 4px; }

.page-glow { position: fixed; border-radius: 50%; filter: blur(1px); pointer-events: none; z-index: -1; }
.page-glow-one { width: 480px; height: 480px; background: rgba(255, 216, 74, .18); top: -180px; right: -110px; }
.page-glow-two { width: 380px; height: 380px; background: rgba(93, 188, 255, .16); bottom: -180px; left: -100px; }
.app-shell { width: min(1240px, calc(100% - 44px)); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 94px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand-lockup { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px 14px 18px 7px; color: white; background: var(--blue); transform: rotate(-8deg); box-shadow: 0 9px 16px rgba(18, 97, 214, .22); }
.brand-mark span { display: block; transform: rotate(8deg); font-size: 24px; }
.brand-kicker { display: block; font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 1px; }
.brand-lockup strong { font-size: 17px; letter-spacing: -.35px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.grade-pill { color: var(--blue-deep); background: white; border: 1px solid rgba(18, 97, 214, .12); padding: 9px 14px; font-size: 12px; border-radius: 999px; box-shadow: 0 6px 20px rgba(34, 84, 146, .07); }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; background: white; box-shadow: 0 6px 20px rgba(34, 84, 146, .08); color: var(--ink); transition: transform .2s, background .2s; }
.icon-btn:hover { transform: translateY(-2px); background: var(--yellow-soft); }
.app-main { flex: 1; display: flex; align-items: center; }
.screen { display: none; width: 100%; animation: screenIn .45s ease both; padding: 30px 0 42px; }
.screen.is-active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: var(--blue); }
.mini-badge { display: inline-flex; gap: 8px; align-items: center; padding: 7px 11px 7px 7px; border-radius: 999px; background: white; border: 1px solid rgba(18, 97, 214, .12); box-shadow: 0 10px 25px rgba(31, 82, 143, .08); margin-bottom: 23px; color: var(--muted); font-size: 11px; font-weight: 700; }
.mini-badge b { padding: 6px 10px; color: #78530a; border-radius: 999px; background: var(--yellow-soft); }
.screen-intro { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 40px; min-height: 680px; }
.intro-copy { padding: 20px 0 30px; }
.intro-copy h1 { margin: 0; color: var(--blue-deep); font-size: clamp(42px, 5.1vw, 72px); line-height: 1.03; letter-spacing: -2.7px; font-weight: 900; }
.intro-copy h1 span { color: var(--orange); position: relative; display: inline-block; }
.intro-copy h1 span::after { content: ''; position: absolute; height: 10px; left: 5px; right: 2px; bottom: -4px; border-radius: 99px; background: var(--yellow); transform: rotate(-2deg); z-index: -1; }
.intro-lead { margin: 26px 0 8px; font-size: 22px; font-weight: 800; color: var(--ink); }
.intro-subcopy { margin: 0 0 28px; font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 420px; }
.primary-btn, .secondary-btn { border-radius: 16px; min-height: 56px; padding: 0 22px; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-btn { color: white; background: var(--blue); box-shadow: 0 12px 23px rgba(18, 97, 214, .25); }
.primary-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 16px 28px rgba(18, 97, 214, .3); background: #0d55bd; }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.button-arrow { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.19); font-size: 19px; }
.secondary-btn { color: var(--ink); background: white; border: 1px solid var(--line); }
.secondary-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(28, 72, 135, .09); }
.pulse-on-hover:hover { animation: softPulse 1.2s infinite; }
@keyframes softPulse { 50% { transform: translateY(-3px) scale(1.015); } }
.trust-row { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 12px; color: var(--muted); font-weight: 700; }
.trust-row i { width: 4px; height: 4px; border-radius: 50%; background: #b5c2d6; margin: 0 4px; }

.hero-stage { height: 580px; min-width: 0; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px dashed rgba(18,97,214,.18); border-radius: 50%; }
.orbit-a { width: 470px; height: 470px; transform: rotate(22deg); }
.orbit-b { width: 600px; height: 330px; transform: rotate(-30deg); }
.float-star { position: absolute; color: var(--yellow); text-shadow: 0 5px 0 rgba(242, 183, 20, .16); font-size: 31px; animation: float 3.3s ease-in-out infinite; }
.star-a { top: 78px; right: 98px; }.star-b { bottom: 98px; left: 90px; animation-delay: -.9s; color: var(--orange); font-size: 23px; }.star-c { top: 170px; left: 45px; animation-delay: -1.5s; color: var(--green); font-size: 18px; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(12deg); } }
.hero-cloud { position: absolute; height: 29px; width: 90px; border-radius: 50px; background: rgba(255,255,255,.85); filter: drop-shadow(0 10px 18px rgba(42, 98, 153, .08)); }
.hero-cloud::before, .hero-cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }.hero-cloud::before { width: 42px; height: 42px; left: 15px; bottom: 5px; }.hero-cloud::after { width: 32px; height: 32px; left: 48px; bottom: 3px; }
.cloud-a { top: 112px; left: 80px; transform: scale(.8); }.cloud-b { bottom: 110px; right: 54px; transform: scale(.68); opacity: .72; }
.book-illustration { position: relative; z-index: 2; display: flex; align-items: flex-end; filter: drop-shadow(0 25px 25px rgba(14, 59, 123, .16)); transform: rotate(-5deg); }
.book-page { width: 185px; height: 210px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid var(--blue-deep); background: #fff; color: var(--blue-deep); box-shadow: inset 0 -10px 0 rgba(236,245,255,.8); }
.book-page::after { content: ''; position: absolute; inset: 14px; border: 2px dashed #b9d2f6; border-radius: 12px; }
.page-right { border-radius: 9px 25px 9px 12px; transform: skewY(4deg); }.page-left { border-radius: 25px 9px 12px 9px; transform: skewY(-4deg); }
.book-page span, .book-page small { position: relative; z-index: 1; }.book-page span { font-size: 73px; line-height: 1; font-weight: 900; color: var(--orange); }.book-page small { font-size: 24px; font-weight: 800; margin-top: 9px; color: var(--blue); }
.book-spine { position: absolute; z-index: 5; width: 16px; height: 198px; right: calc(50% - 8px); bottom: 3px; background: var(--yellow); border-radius: 50%; transform: rotate(-1deg); }
.pencil-illustration { width: 208px; height: 27px; position: absolute; z-index: 4; right: 85px; bottom: 115px; transform: rotate(-32deg); background: var(--yellow); border: 4px solid #e7a908; border-radius: 4px 13px 13px 4px; filter: drop-shadow(0 8px 5px rgba(84,69,19,.15)); }.pencil-illustration::before { content:''; position:absolute; left:-24px; top:-4px; border-top:15px solid transparent; border-bottom:15px solid transparent; border-right:24px solid #f1cda9; }.pencil-illustration::after { content:''; position:absolute; left:-31px; top:8px; border-top:5px solid transparent; border-bottom:5px solid transparent; border-right:9px solid #1d315a; }.pencil-illustration span { position:absolute; right:35px; top:0; height:19px; width:4px; background:#e7a908; box-shadow: 16px 0 #e7a908, 32px 0 #e7a908; }
.speech-bubble { position: absolute; z-index: 6; top: 79px; right: 92px; color: var(--ink); font-weight: 800; background: white; border: 3px solid var(--blue); padding: 12px 18px; border-radius: 18px 18px 5px 18px; transform: rotate(5deg); box-shadow: 0 10px 0 rgba(18, 97, 214, .12); }.speech-bubble::after { content:''; position:absolute; bottom:-12px; right: 27px; border-top:13px solid var(--blue); border-left:10px solid transparent; }.speech-bubble span { font-size: 16px; }
.hero-character { position: absolute; z-index: 5; bottom: 70px; left: 94px; width: 98px; animation: characterBounce 2.7s ease-in-out infinite; }.character-hair { height: 33px; width: 82px; position:absolute; top:0; left:7px; background: var(--orange); border-radius: 50% 50% 28% 28%; transform: rotate(-6deg); }.character-hair::before, .character-hair::after { content:''; width: 22px; height: 22px; position:absolute; top:15px; background: var(--orange); border-radius:50%; }.character-hair::before { left:-7px; }.character-hair::after { right:-6px; }.character-face { width: 76px; height: 73px; margin: 17px auto 0; background:#ffd7ae; border:3px solid #a75f39; border-radius: 42% 42% 45% 45%; position:relative; }.eye { position:absolute; width:7px; height:10px; border-radius: 50%; background:#18284d; top:30px; }.eye-one { right:19px; }.eye-two { left:19px; }.smile { position:absolute; width:25px; height:12px; border-bottom: 3px solid #c45c56; border-radius: 0 0 50% 50%; bottom:14px; left:23px; }.character-body { width: 98px; height:75px; margin-top:-1px; background: var(--blue); border:3px solid var(--blue-deep); border-radius: 35px 35px 20px 20px; display:grid; place-items:center; color:var(--yellow); font-size:29px; }.character-body::before { content:''; position:absolute; left:-21px; bottom:23px; width:31px; height:13px; border-radius:20px; background:#ffd7ae; transform:rotate(22deg); border:3px solid #a75f39; }.character-body::after { content:''; position:absolute; right:-21px; bottom:23px; width:31px; height:13px; border-radius:20px; background:#ffd7ae; transform:rotate(-22deg); border:3px solid #a75f39; }
@keyframes characterBounce { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }

.screen-heading { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 12px; }.section-number { width: 41px; height: 41px; display:grid; place-items:center; border-radius: 14px; background:var(--yellow); color:#705000; font-weight:900; font-size:18px; box-shadow: 0 7px 0 #e6ab13; }.screen-heading h2 { margin:0; font-size:clamp(32px, 4vw, 46px); letter-spacing:-1.5px; color:var(--blue-deep); }.section-intro { color:var(--muted); text-align:center; margin:0 auto 28px; font-size:15px; }.guide-layout { display:grid; grid-template-columns: 1.35fr .8fr; gap:22px; align-items:stretch; max-width: 970px; margin:0 auto; }.rules-card, .team-preview { background:rgba(255,255,255,.78); border:1px solid rgba(224,234,248,.95); border-radius:var(--radius); box-shadow:var(--shadow); }.rules-card { padding: 18px 26px; }.rule-row { display:flex; align-items:center; gap:15px; padding:15px 0; border-bottom:1px dashed #dfe8f4; }.rule-row:last-child { border-bottom:0; }.rule-icon { width:45px; height:45px; flex:0 0 auto; display:grid; place-items:center; border-radius:14px; font-size:22px; }.rule-icon.blue {background:#e9f2ff}.rule-icon.yellow {background:#fff4c7}.rule-icon.green {background:#e0f8ee}.rule-icon.orange {background:#ffebe3}.rule-icon.purple {background:#eee8ff}.rule-row b { display:block; font-size:15px; margin-bottom:3px; }.rule-row p { margin:0; font-size:12px; color:var(--muted); }.team-preview { padding:26px 23px; display:flex; flex-direction:column; justify-content:center; align-items:stretch; }.team-preview .eyebrow { text-align:center; margin-bottom:15px; }.team-chip { display:flex; gap:12px; align-items:center; padding:13px 15px; border-radius:17px; }.team-chip .team-emoji { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; font-size:23px; }.team-chip b, .team-chip small { display:block; }.team-chip b { font-size:14px; }.team-chip small { font-size:11px; color:var(--muted); margin-top:2px; }.team-stars { background:#fff8dc; }.team-stars .team-emoji { background:#ffe497; }.team-heroes { background:#eaf3ff; }.team-heroes .team-emoji { background:#cce1ff; }.versus { align-self:center; margin: -3px 0; position:relative; z-index:2; display:grid; place-items:center; width:31px; height:31px; border-radius:50%; background:var(--blue); color:white; font-size:9px; font-weight:900; box-shadow: 0 5px 0 #a6c5ef; }.tip-box { margin-top:22px; display:flex; gap:7px; align-items:flex-start; padding:12px; color:#735413; background:var(--yellow-soft); border-radius:13px; font-size:11px; line-height:1.55; }.screen-actions { display:flex; justify-content:center; align-items:center; gap:12px; margin-top:28px; }.screen-actions .primary-btn { min-width:230px; }.centered-heading { margin-top:8px; }.centered-copy { max-width:480px; }

.draw-screen { text-align:center; }.wheel-zone { width:300px; height:300px; margin: 18px auto 4px; position:relative; display:grid; place-items:center; }.wheel-wrap { width:260px; height:260px; border-radius:50%; padding:10px; background:white; box-shadow: 0 16px 40px rgba(38,80,140,.18); }.wheel-wrap.is-spinning { animation: wheelSpin 2.8s cubic-bezier(.15,.75,.25,1) both; }.wheel { width:100%; height:100%; border:5px solid #fff; border-radius:50%; position:relative; overflow:hidden; background:conic-gradient(from -45deg, #ffd54e 0 50%, #2e86ed 50% 100%); }.wheel::after { content:''; position:absolute; inset:13px; border-radius:50%; border:2px dashed rgba(255,255,255,.65); }.wheel-label { position:absolute; z-index:2; top:28px; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:31px; color:white; text-shadow:0 2px 0 rgba(0,0,0,.1); }.wheel-label span { font-size:16px; font-weight:900; }.label-stars { right:28px; color:#825a00; transform:rotate(18deg); }.label-heroes { left:26px; top:auto; bottom:28px; transform:rotate(18deg); }.wheel-center { position:absolute; z-index:4; inset:0; margin:auto; width:58px; height:58px; display:grid; place-items:center; background:white; border:8px solid #fff; color:var(--orange); border-radius:50%; box-shadow:0 4px 12px rgba(25,58,114,.18); font-size:27px; }.wheel-pointer { position:absolute; z-index:7; top:-7px; color:var(--orange); font-size:34px; filter:drop-shadow(0 4px 0 rgba(171,81,48,.18)); }.draw-result { min-height:40px; display:flex; align-items:center; justify-content:center; gap:11px; color:var(--blue-deep); font-size:19px; font-weight:900; }.result-spark { color:var(--yellow); font-size:20px; }.draw-result.winner-reveal { animation: winnerPop .55s ease both; }.draw-result.winner-reveal #drawResultText { color:var(--orange); }.draw-result.winner-reveal .result-spark { animation: sparkle .6s ease infinite alternate; }.centered-actions { margin-top:10px; }.centered-actions .primary-btn { min-width:210px; }
@keyframes wheelSpin { from { transform:rotate(0); } to { transform:rotate(1220deg); } } @keyframes winnerPop { 0% { opacity:0; transform:scale(.85); } 70% { transform:scale(1.08); } 100% {opacity:1; transform:scale(1); } } @keyframes sparkle { to { transform:scale(1.35) rotate(20deg); } }

.quiz-screen { max-width:1040px; margin:0 auto; }.quiz-topline { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:12px; }.question-counter { display:flex; align-items:baseline; gap:8px; color:var(--muted); }.question-counter span { font-size:12px; }.question-counter b { font-size:30px; color:var(--blue-deep); line-height:1; }.question-counter em { font-size:12px; font-style:normal; }.turn-pill { display:flex; align-items:center; gap:10px; background:white; border:1px solid var(--line); padding:8px 12px 8px 15px; border-radius:999px; box-shadow:0 7px 18px rgba(32,74,133,.06); }.turn-pill span { font-size:11px; color:var(--muted); }.turn-pill b { background:var(--yellow-soft); color:#815e00; padding:6px 10px; border-radius:999px; font-size:12px; }.progress-track { height:8px; width:100%; border-radius:99px; overflow:hidden; background:#dfeafa; margin-bottom:15px; }.progress-track span { display:block; height:100%; width:20%; background:linear-gradient(90deg, var(--yellow), var(--orange)); border-radius:inherit; transition:width .4s ease; }.temporary-banner { display:flex; justify-content:center; align-items:center; gap:8px; width:fit-content; max-width:100%; margin:0 auto 14px; padding:7px 12px; border-radius:999px; background:#fff8e2; color:#886400; font-size:11px; font-weight:700; }.quiz-card { position:relative; overflow:hidden; text-align:center; padding:29px 28px 24px; border-radius:30px; background:white; box-shadow:var(--shadow); border:1px solid rgba(228,236,248,.95); }.quiz-card::before { content:''; width:185px; height:185px; position:absolute; top:-94px; left:-44px; border-radius:50%; background:#edf5ff; }.question-art { position:relative; display:grid; place-items:center; width:65px; height:65px; margin:0 auto 11px; border-radius:20px; background:var(--blue-soft); font-size:30px; transform:rotate(-5deg); }.question-copy { position:relative; }.question-copy .eyebrow { margin-bottom:3px; }.question-copy h2 { margin:0 0 9px; font-size:20px; color:var(--blue-deep); }.question-copy p { margin:0 auto; font-size:22px; font-weight:800; color:var(--ink); }.options-grid { position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; max-width:760px; margin:24px auto 8px; }.option-btn { min-height:69px; padding:9px 14px; border-radius:17px; color:var(--ink); background:#f7faff; border:2px solid #e5edf8; font-size:20px; font-weight:800; transition:transform .2s, border .2s, background .2s, box-shadow .2s; }.option-btn:hover:not(:disabled) { transform:translateY(-4px); border-color:#8db9f4; background:#eef6ff; box-shadow:0 9px 18px rgba(31,93,171,.1); }.option-btn:disabled { cursor:default; }.option-btn.correct { color:#096e49; border-color:var(--green); background:#ddf8ed; }.option-btn.wrong { color:#a74724; border-color:#ff9d7c; background:#fff0eb; animation:wrongShake .35s ease; }.option-number { display:inline-grid; place-items:center; width:25px; height:25px; margin-inline-start:5px; border-radius:8px; background:white; color:var(--blue); font-size:12px; vertical-align:middle; }.feedback { opacity:0; min-height:55px; max-width:650px; margin:13px auto 0; padding:9px 17px; display:flex; align-items:center; justify-content:center; gap:10px; border-radius:15px; transform:translateY(8px); transition:.3s ease; }.feedback.is-visible { opacity:1; transform:translateY(0); }.feedback.correct-feedback { color:#096e49; background:#e4faf0; }.feedback.wrong-feedback { color:#ad4e2d; background:#fff0eb; }.feedback-icon { width:31px; height:31px; display:grid; place-items:center; border-radius:10px; background:rgba(255,255,255,.65); font-weight:900; }.feedback b, .feedback span { display:block; }.feedback b { font-size:14px; }.feedback span:not(.feedback-icon) { margin-top:1px; font-size:11px; opacity:.8; }.scoreboard { display:grid; grid-template-columns:1fr 45px 1fr; align-items:center; gap:10px; margin-top:17px; }.score-card { padding:14px 17px 13px; border-radius:19px; background:white; border:1px solid var(--line); box-shadow:0 8px 22px rgba(32,74,133,.06); transition:transform .3s, box-shadow .3s; }.score-card.active-turn { transform:translateY(-3px); box-shadow:0 12px 25px rgba(18,97,214,.15); }.score-team { display:flex; gap:7px; align-items:center; font-size:12px; }.score-team span { font-size:17px; }.score-card > strong { display:block; font-size:28px; line-height:1.1; margin:3px 0; }.stars-score > strong { color:#b68100; }.heroes-score > strong { color:var(--blue); }.score-meta { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; }.score-meta b { color:var(--ink); }.score-bar { height:6px; margin-top:9px; background:#edf1f7; border-radius:99px; overflow:hidden; }.score-bar span { display:block; width:0; height:100%; border-radius:inherit; transition:width .4s ease; }.stars-score .score-bar span { background:var(--yellow); }.heroes-score .score-bar span { background:var(--blue); }.score-divider { color:#9aabc5; font-size:10px; font-weight:900; text-align:center; }
@keyframes wrongShake { 25% { transform:translateX(5px); } 50% { transform:translateX(-5px); } 75% { transform:translateX(3px); } }

.final-screen { text-align:center; position:relative; overflow:hidden; min-height:650px; padding-top:38px; }.final-crown { display:grid; place-items:center; width:96px; height:96px; margin:0 auto 9px; border-radius:50%; background:var(--yellow-soft); font-size:59px; box-shadow:0 10px 0 #f2d574, 0 22px 32px rgba(203,158,27,.18); animation:trophyFloat 2s ease-in-out infinite; }.final-screen h2 { margin:0; font-size:clamp(34px, 4vw, 52px); color:var(--blue-deep); letter-spacing:-1.5px; }.final-subtitle { margin:7px 0 15px; color:var(--muted); }.winner-ribbon { display:inline-block; padding:10px 24px; border-radius:999px; color:#7b5600; background:var(--yellow); box-shadow:0 6px 0 #e1ad1d; font-size:16px; font-weight:900; }.final-scores { display:grid; grid-template-columns:1fr 60px 1fr; align-items:center; max-width:620px; margin:29px auto 17px; gap:12px; }.final-team-card { min-height:157px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:23px; border:1px solid var(--line); box-shadow:var(--shadow); }.final-team-card.stars-score { background:#fffaf0; }.final-team-card.heroes-score { background:#f2f7ff; }.final-team-card > span { font-size:30px; }.final-team-card b { margin-top:4px; font-size:14px; }.final-team-card strong { font-size:42px; line-height:1.1; margin-top:4px; }.final-team-card small { color:var(--muted); font-size:11px; }.final-vs { color:#9aabc5; font-size:12px; font-weight:900; }.tie-note { color:var(--muted); font-size:13px; margin:0 0 18px; }.final-screen .primary-btn { min-width:180px; }.confetti-layer { position:absolute; inset:0; pointer-events:none; overflow:hidden; }.confetti { position:absolute; top:-20px; width:9px; height:18px; border-radius:3px; animation:confettiFall 3.6s linear infinite; opacity:.9; }.confetti:nth-child(3n) { background:var(--yellow); }.confetti:nth-child(3n+1) { background:var(--orange); }.confetti:nth-child(3n+2) { background:var(--blue); }.confetti:nth-child(4n) { width:13px; height:8px; border-radius:50%; background:var(--green); }.confetti:nth-child(5n) { background:var(--purple); transform:rotate(45deg); }.confetti:nth-child(1) {left:7%; animation-delay:-.4s}.confetti:nth-child(2) {left:13%; animation-delay:-2.2s}.confetti:nth-child(3) {left:19%; animation-delay:-1.1s}.confetti:nth-child(4) {left:27%; animation-delay:-3s}.confetti:nth-child(5) {left:35%; animation-delay:-1.8s}.confetti:nth-child(6) {left:43%; animation-delay:-.8s}.confetti:nth-child(7) {left:51%; animation-delay:-2.8s}.confetti:nth-child(8) {left:59%; animation-delay:-1.4s}.confetti:nth-child(9) {left:67%; animation-delay:-2.5s}.confetti:nth-child(10) {left:75%; animation-delay:-.2s}.confetti:nth-child(11) {left:83%; animation-delay:-1.9s}.confetti:nth-child(12) {left:91%; animation-delay:-3.3s}.confetti:nth-child(13) {left:24%; animation-delay:-2.7s}.confetti:nth-child(14) {left:72%; animation-delay:-.7s}.confetti:nth-child(15) {left:4%; animation-delay:-1.6s}.confetti:nth-child(16) {left:96%; animation-delay:-2.1s}
@keyframes confettiFall { 0% { transform:translateY(-30px) rotate(0deg); } 100% { transform:translateY(720px) rotate(540deg); } } @keyframes trophyFloat { 50% { transform:translateY(-7px) rotate(3deg); } }
.footer-note { display:flex; justify-content:center; gap:10px; padding:14px 0 22px; color:#91a2bc; font-size:10px; }

@media (max-width: 850px) { .screen-intro { grid-template-columns:1fr; gap:0; min-height:unset; text-align:center; padding-top:26px; }.intro-copy { padding-bottom:0; }.intro-copy h1 { font-size:clamp(43px, 10vw, 64px); }.intro-subcopy { margin-left:auto; margin-right:auto; }.trust-row { justify-content:center; }.hero-stage { height:390px; transform:scale(.84); margin-top:-8px; }.guide-layout { grid-template-columns:1fr; max-width:650px; }.team-preview { padding:22px 28px; }.team-chip { width: min(100%, 360px); margin:auto; }.tip-box { width:min(100%, 360px); margin-left:auto; margin-right:auto; }.rules-card { padding:12px 22px; }.rule-row { padding:13px 0; } }
@media (max-width: 560px) { .app-shell { width:min(100% - 28px, 1240px); }.topbar { min-height:77px; }.brand-kicker { display:none; }.brand-lockup strong { font-size:14px; }.brand-mark { width:36px; height:36px; border-radius:12px 12px 15px 6px; }.brand-mark span {font-size:20px}.grade-pill { display:none; }.topbar-actions { gap:0; }.screen { padding-top:20px; }.intro-copy h1 { letter-spacing:-1.7px; }.intro-lead { font-size:18px; }.hero-stage { transform:scale(.66); height:285px; margin-top:-4px; margin-bottom:-8px; }.screen-heading h2 { font-size:33px; }.section-intro { font-size:13px; line-height:1.7; }.rules-card { padding:8px 15px; }.rule-row { gap:10px; }.rule-icon { width:38px; height:38px; font-size:18px; }.rule-row b { font-size:13px; }.rule-row p { font-size:11px; line-height:1.45; }.screen-actions { flex-direction:column-reverse; }.screen-actions .primary-btn, .screen-actions .secondary-btn { width:100%; }.wheel-zone { transform:scale(.84); margin-top:3px; margin-bottom:-24px; }.draw-result { font-size:16px; }.quiz-topline { align-items:flex-start; }.turn-pill { flex-direction:column; gap:2px; align-items:flex-end; padding:7px 9px; }.question-counter b {font-size:26px}.temporary-banner { font-size:9px; padding:6px 9px; }.quiz-card { padding:22px 14px 16px; border-radius:23px; }.question-copy p { font-size:18px; line-height:1.6; }.options-grid { grid-template-columns:1fr; gap:9px; margin-top:18px; }.option-btn { min-height:57px; font-size:18px; }.scoreboard { grid-template-columns:1fr 25px 1fr; gap:4px; }.score-card { padding:11px 9px; }.score-team { font-size:10px; }.score-card > strong { font-size:25px; }.score-meta { font-size:8px; }.final-screen { min-height:600px; }.final-screen h2 { font-size:34px; }.winner-ribbon { font-size:13px; padding:9px 14px; }.final-scores { grid-template-columns:1fr 30px 1fr; gap:5px; }.final-team-card { min-height:135px; }.final-team-card strong { font-size:34px; }.final-team-card b { font-size:11px; }.footer-note { padding-bottom:15px; } }

.feedback.is-visible { animation: feedbackPop .45s ease both; }
@keyframes feedbackPop {
  0% { opacity: 0; transform: translateY(8px) scale(.98); }
  70% { transform: translateY(-1px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.next-question-btn { display: block; min-height: 48px; margin: 18px auto 0; padding: 0 22px; border-radius: 14px; color: white; background: var(--blue); box-shadow: 0 9px 18px rgba(18,97,214,.2); font-weight: 800; font-size: 15px; transition: transform .2s, background .2s, box-shadow .2s; }
.next-question-btn:hover:not(:disabled) { transform: translateY(-2px); background: #0d55bd; box-shadow: 0 12px 22px rgba(18,97,214,.26); }
.next-question-btn:disabled { opacity: .45; cursor: not-allowed; }
.next-question-btn[hidden] { display: none; }
@media (max-width: 560px) { .next-question-btn { width: 100%; } }

.feedback.correction-mode { border: 2px solid #ff9d7c; box-shadow: 0 8px 18px rgba(255, 134, 86, .14); }

.mistakes-panel { position:relative; max-width:720px; margin:24px auto 26px; padding:18px; text-align:right; border:1px solid #ffd9cc; border-radius:22px; background:rgba(255,248,244,.9); }
.mistakes-panel h3 { margin:0 0 12px; color:#a74724; font-size:18px; text-align:center; }
#mistakesReview { display:grid; gap:10px; }
.mistake-card { display:flex; align-items:flex-start; gap:11px; padding:12px; border-radius:15px; background:white; border:1px solid #ffe2d8; }
.mistake-number { flex:0 0 auto; width:28px; height:28px; display:grid; place-items:center; border-radius:9px; color:white; background:var(--orange); font-weight:900; }
.mistake-content { display:grid; gap:4px; min-width:0; }
.mistake-content > b { color:var(--ink); font-size:14px; }
.mistake-answer { font-size:12px; font-weight:700; }
.wrong-answer { color:#ad4e2d; }
.right-answer { color:#096e49; }
.mistake-content small { color:var(--muted); font-size:11px; line-height:1.6; }
.no-mistakes { padding:12px; text-align:center; color:#096e49; background:#e4faf0; border-radius:14px; font-weight:800; }
@media (max-width:560px) { .mistakes-panel { margin-inline:0; padding:13px; } .mistake-card { padding:10px; } }
