*{box-sizing:border-box;margin:0;padding:0}
html,body{overflow-x:hidden}
body{font-family:'Fredoka',system-ui,sans-serif;color:#2b2140;min-height:100vh;
 background:radial-gradient(circle at 10% 0,#fff 0,transparent 45%),linear-gradient(#bfe9ff,#e8f7ff 45%,#fff)}
.top{text-align:center;padding:10px 12px 4px}
.links{display:flex;justify-content:space-between;gap:8px;max-width:1100px;margin:0 auto 4px}
.links a{font-weight:600;color:#7b4dff;text-decoration:none;background:#fff;padding:8px 16px;border-radius:999px;box-shadow:0 3px 0 #7b4dff55;font-size:16px}
.links a:hover,.links a:focus-visible{background:#f3edff}
.gtitle{font-weight:700;line-height:.95;font-size:clamp(30px,4.6vw,56px);-webkit-text-stroke:.06em #fff;paint-order:stroke fill;
 text-shadow:0 .03em 0 #fff,0 .07em 0 rgba(40,20,90,.35),0 .1em .2em rgba(0,0,0,.2)}
.gtitle .line{display:inline}.gtitle .w{display:inline-block;white-space:nowrap}
.sub{font-weight:600;color:#ff4f9a;font-size:clamp(17px,2vw,22px)}
main{max-width:1100px;margin:0 auto;padding:6px 10px 20px}
.hud{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 14px;margin:6px 0 10px;font-size:18px}
.hud span{background:#fff;border-radius:14px;padding:6px 12px;box-shadow:0 3px 0 #00b3ff44}
.btn{font:inherit;font-weight:700;border:0;cursor:pointer;color:#fff;border-radius:999px;padding:8px 18px;min-height:44px;
 background:linear-gradient(90deg,#ff4f9a,#7b4dff);box-shadow:0 4px 0 #4b2bb0}
.btn:active{transform:translateY(2px)}
@media (max-width:640px){
 .hud{font-size:15px;gap:6px}
 .links a{font-size:14px;padding:7px 12px}
}
.win{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;background:rgba(191,233,255,.85);padding:16px;overflow:hidden}
.win[hidden]{display:none}
.panel{position:relative;z-index:2;background:#fff;border-radius:28px;padding:20px 26px 26px;text-align:center;max-width:440px;width:100%;
 border:5px solid #ff4f9a;box-shadow:0 10px 0 #7b4dff,0 20px 40px rgba(0,0,0,.2);animation:in .5s cubic-bezier(.3,1.5,.5,1)}
@keyframes in{from{transform:scale(.5);opacity:0}}
.panel img{width:min(220px,50vw);height:auto;animation:bob 1.2s ease-in-out infinite alternate}
@keyframes bob{to{transform:translateY(-10px) rotate(4deg)}}
.panel h2{color:#ff4f9a;font-size:clamp(24px,5vw,32px)}
.cheer{font-size:20px;font-weight:600;color:#7b4dff;margin:4px 0 10px}
.stats{font-size:18px;margin-bottom:16px}
.btn.big{font-size:22px;padding:12px 32px}
.confetti i{position:absolute;top:-20px;width:10px;height:16px;border-radius:2px;animation:fall linear infinite}
@keyframes fall{to{transform:translateY(110vh) rotate(720deg)}}
@media (prefers-reduced-motion:reduce){.inner,.confetti i,.panel img{transition:none;animation:none}}
main{max-width:760px}
.bar{height:12px;background:#fff;border-radius:99px;overflow:hidden;margin:0 auto 12px;box-shadow:0 2px 0 #00b3ff44}
.bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#ff3b3b,#ffd000,#2ecc40,#00b3ff,#7b4dff);transition:width .3s}
.quiz,.result{background:#fff;border-radius:24px;padding:16px;text-align:center;border:4px solid #ffd000;box-shadow:0 6px 0 #ffb30088}
.q{font-size:clamp(20px,3.4vw,28px);color:#2b2140;margin-bottom:8px}
.qpic img{width:min(200px,45vw);height:auto;aspect-ratio:1;object-fit:contain}
.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:8px}
.choice{font:inherit;font-weight:600;font-size:clamp(17px,2.4vw,21px);min-height:64px;border-radius:18px;border:3px solid #7b4dff;background:#f6f1ff;color:#2b2140;cursor:pointer;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px}
.choice img{width:min(110px,26vw);height:auto;aspect-ratio:1;object-fit:contain}
.choice:hover:not(:disabled){background:#ece2ff}
.choice.right{background:#d9ffe0;border-color:#2ecc40}.choice.wrong{background:#ffe0e0;border-color:#ff3b3b}
.choice:disabled{cursor:default}
.fb{min-height:1.6em;font-size:20px;font-weight:700;margin:10px 0}.fb.ok{color:#1f9e33}.fb.no{color:#e0302a}
.result img{width:min(200px,45vw);height:auto;animation:bob 1.2s ease-in-out infinite alternate}
.result h2{color:#ff4f9a;font-size:clamp(26px,5vw,34px)}
.actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.btn.alt{background:linear-gradient(90deg,#00b3ff,#2ecc40);box-shadow:0 4px 0 #0a7f9e;text-decoration:none;display:inline-flex;align-items:center}
[hidden]{display:none!important}
