*{box-sizing:border-box;margin:0;padding:0}
html,body{overflow-x:hidden}
body{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:#23262b;min-height:100vh;
 background:radial-gradient(circle at 10% 0,#fff 0,transparent 45%),linear-gradient(#e8f4f8,#f7f6f4 45%,#fff);
 touch-action:manipulation;-webkit-user-select:none;user-select:none}
.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:#C8102E;text-decoration:none;background:#fff;padding:8px 16px;border-radius:999px;box-shadow:0 3px 0 #C8102E55;font-size:16px}
.links a:hover,.links a:focus-visible{background:#fbe9ec}
.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:#C8102E;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,#C8102E,#C8102E);box-shadow:0 4px 0 #4b2bb0}
.btn:active{transform:translateY(2px)}
.btn.big{font-size:22px;padding:12px 32px}
.btn.alt{background:linear-gradient(90deg,#00b3ff,#C8102E);box-shadow:0 4px 0 #2654a8}
.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:auto}
.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 #C8102E;box-shadow:0 10px 0 #C8102E,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(200px,46vw);height:auto;animation:bob 1.2s ease-in-out infinite alternate}
@keyframes bob{to{transform:translateY(-10px) rotate(4deg)}}
.panel h2{color:#C8102E;font-size:clamp(22px,5vw,32px)}
.cheer{font-size:20px;font-weight:600;color:#C8102E;margin:4px 0 10px}
.how{font-size:16px;line-height:1.35;margin:0 0 16px;color:#23262b}
.stats{font-size:18px;margin-bottom:16px}
.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 (max-width:640px){
 .hud{font-size:15px;gap:6px}
 .links a{font-size:14px;padding:7px 12px}
}
@media (prefers-reduced-motion:reduce){.panel,.panel img,.confetti i{animation:none}}


.scene-title{text-align:center;color:#ffb300;font-size:clamp(20px,3vw,28px);margin:0 0 8px}
.list{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;list-style:none;margin:0 0 10px}
.list li{background:#fff;border-radius:999px;padding:4px 10px;font-size:14px;box-shadow:0 3px 0 #ffb30055}
.list li.got{text-decoration:line-through;opacity:.55;background:#e6ffe9}
.list li svg{width:16px;height:16px;vertical-align:-3px}
.gem svg{width:26px;height:26px;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 1px 1px #0008)}
.gem:has(svg){background:rgba(255,248,200,.45);border-radius:50%}
.scene{position:relative;width:100%;aspect-ratio:2.15/1;border-radius:22px;overflow:hidden;border:4px solid #ffb300;
 box-shadow:0 8px 0 #d49200;background:#f4e4c1}
.deco{position:absolute;pointer-events:none;line-height:1;text-align:center}
.gem{position:absolute;width:44px;height:44px;border:0;background:transparent;cursor:pointer;padding:0;
 display:flex;align-items:center;justify-content:center;font-size:26px;z-index:3;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
.gem:focus-visible{outline:3px solid #fff;outline-offset:2px}
.gem.found{pointer-events:none;transform:scale(1.4);opacity:0;transition:transform .4s,opacity .4s}
.gem.hint{animation:pulse 0.5s ease-in-out 4;z-index:5}
@keyframes pulse{50%{transform:scale(1.35);filter:drop-shadow(0 0 10px #fff56) drop-shadow(0 0 6px #ffd000)}}
.hint{text-align:center;margin-top:10px;font-weight:600;color:#C8102E;min-height:22px}

/* Bodega */
.scene.bodega{background:linear-gradient(#f7d37a 0 18%,#fff4cc 18% 72%,#c9a066 72% 100%)}
.scene.bodega .awning{top:0;left:0;right:0;height:18%;background:repeating-linear-gradient(90deg,#d23b2d 0 28px,#fff 28px 56px)}
.scene.bodega .sign{top:2%;left:50%;transform:translateX(-50%);background:#1b1b1b;color:#ffd000;font-weight:700;
 padding:4px 14px;border-radius:8px;font-size:clamp(14px,2.4vw,22px);z-index:2}
.scene.bodega .shelf{left:6%;right:6%;height:10%;background:#8d5a3a;border-top:4px solid #c4842e}
.scene.bodega .counter{left:0;right:0;bottom:0;height:28%;background:#6b3f24;border-top:10px solid #3d2414}
.scene.bodega .glass{left:8%;bottom:28%;width:36%;height:16%;background:linear-gradient(#b9ecffaa,#fff6);border:3px solid #7aa}
.scene.bodega .cat{bottom:30%;right:18%;font-size:clamp(28px,5vw,42px)}
.scene.bodega .goods{font-size:clamp(18px,3.4vw,28px)}

/* Stoop */
.scene.stoop{background:linear-gradient(#87c6ff 0 38%,#d9a066 38% 48%,#8b5a3c 48% 100%)}
.scene.stoop .building{top:6%;left:12%;right:12%;bottom:0;background:linear-gradient(#b4533a,#8d3b28);border-radius:8px 8px 0 0}
.scene.stoop .door{bottom:22%;left:50%;transform:translateX(-50%);width:18%;height:32%;background:#3b1d12;border-radius:8px 8px 0 0;
 box-shadow:inset 0 0 0 4px #6b3a24}
.scene.stoop .knob{bottom:36%;left:64%;width:10px;height:10px;background:#ffd000;border-radius:50%}
.scene.stoop .pane{position:absolute;top:14%;width:14%;height:20%;background:#b9ecff;border:4px solid #fff8e7;box-shadow:0 6px 0 #6b3a24}
.scene.stoop .steps{left:22%;right:22%;bottom:0;height:22%;background:repeating-linear-gradient(#efe7dc,#efe7dc 18%,#cfc3b4 18% 22%)}
.scene.stoop .rail{left:20%;right:20%;bottom:20%;height:6px;background:#23262b}
.scene.stoop .street{font-size:clamp(22px,4vw,34px)}

/* Coney */
.scene.coney{background:linear-gradient(#4db2ff 0 40%,#ffe08a 40% 58%,#e8c36a 58% 72%,#3aa0e8 72% 100%)}
.scene.coney .wheel{top:4%;right:8%;width:28%;aspect-ratio:1;border:6px solid #C8102E;border-radius:50%;
 box-shadow:0 0 0 6px #fff, inset 0 0 0 2px #ffd000}
.scene.coney .hub{top:calc(4% + 11%);right:calc(8% + 11%);width:6%;aspect-ratio:1;background:#ffd000;border-radius:50%}
.scene.coney .boardwalk{left:0;right:0;top:40%;height:18%;background:repeating-linear-gradient(90deg,#b8874a 0 14px,#9a6a32 14px 16px)}
.scene.coney .stand{top:28%;left:8%;width:22%;height:16%;background:#ff3b3b;border-radius:8px 8px 0 0}
.scene.coney .stand-top{top:24%;left:6%;width:26%;height:6%;background:#fff;border-radius:8px}
.scene.coney .bits{font-size:clamp(20px,3.8vw,32px)}

@media (max-width:640px){
 .scene{aspect-ratio:16/10}
 .gem{width:40px;height:40px;font-size:22px}
 .list li{font-size:12px;padding:3px 8px}
}
@media (prefers-reduced-motion:reduce){.gem.hint,.gem.found{animation:none;transition:none}}


.brand{display:inline-flex;align-items:center;margin:4px 0}
.brand img{height:44px;width:auto;display:block}
.sub{font-weight:700;color:#C8102E;font-size:clamp(17px,2vw,22px)}
.btn,.btn.big{background:#C8102E;color:#fff;border:0;border-radius:999px;padding:12px 24px;font:inherit;font-weight:700;cursor:pointer}
.btn:hover{background:#9d0c24}
