*{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:1100px}
.stage{display:flex;gap:14px;align-items:flex-start;justify-content:center}
.host{flex:0 0 260px;display:flex;flex-direction:column;align-items:center;gap:6px}
.host img{width:180px;height:auto;animation:bob 1.4s ease-in-out infinite alternate}
.bubble{position:relative;background:#fff;border:4px solid #7b4dff;border-radius:22px;padding:12px 14px;font-size:20px;text-align:center;box-shadow:0 5px 0 #7b4dff55;min-height:96px;width:100%}
.bubble:before{content:"";position:absolute;top:-16px;left:50%;margin-left:-12px;border:12px solid transparent;border-bottom-color:#7b4dff;border-top:0;border-width:0 12px 14px}
.bubble b{display:block;color:#2b2140}.bubble b em{font-style:normal;color:#ff4f9a}
.bubble span{display:block;font-size:16px;font-weight:600;color:#7b4dff;margin-top:6px}
.bubble span.ok{color:#1f9e33}.bubble span.no{color:#e0302a}
.mapwrap{position:relative;height:calc(100vh - 210px);min-height:320px;aspect-ratio:1000/1073;max-width:100%;
 background:radial-gradient(circle,#d6f1ff,#a9ddf7);border-radius:24px;border:4px solid #00b3ff;box-shadow:0 6px 0 #0a7f9e66;overflow:hidden}
.shadow{position:absolute;z-index:0;left:-10%;top:-6%;width:125%;height:auto;filter:brightness(0);opacity:.17;transform:rotate(-12deg);pointer-events:none;user-select:none}
#map{position:relative;z-index:1;width:100%;height:100%;display:block;touch-action:manipulation}
#map .r{stroke:#fff;stroke-width:2.2;stroke-linejoin:round;cursor:pointer;transition:filter .15s}
#map .r:hover{filter:brightness(1.12)}
#map .r.right{fill:#2ecc40!important;animation:flash .5s 3 alternate}
#map .r.wrong{fill:#ff3b3b!important}
#map .r.ans{fill:#ffd000!important;animation:flash .4s 4 alternate}
#map .pk{fill:#9fb3a3;opacity:.75;pointer-events:none}
#map.lock .r{pointer-events:none}
@keyframes flash{to{opacity:.45}}
.pop{position:absolute;z-index:2;transform:translate(-50%,-110%);background:#fff;border-radius:12px;padding:4px 10px;font-weight:700;font-size:15px;border:3px solid #ff4f9a;white-space:nowrap;pointer-events:none}
.src{text-align:center;font-size:13px;color:#6b5f80;margin-top:8px}
.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}
@media (max-width:760px){
 .stage{flex-direction:column;align-items:center;gap:8px}
 .host{flex:none;flex-direction:row;width:100%;gap:8px}
 .host img{width:64px}
 .bubble{font-size:17px;min-height:0;padding:8px 10px;text-align:left}
 .bubble:before{top:50%;left:-16px;margin:-10px 0 0;border-width:10px 14px 10px 0;border-color:transparent #7b4dff transparent transparent}
 .bubble span{font-size:14px;margin-top:3px}
 .mapwrap{height:auto;width:100%;max-height:calc(100vh - 215px);aspect-ratio:1000/1073;width:auto;max-width:100%}
 .top .gtitle{font-size:26px}.sub{font-size:16px}.hud{margin:4px 0 6px}
}
