
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;font-family:'Trebuchet MS',system-ui,sans-serif;background:linear-gradient(180deg,#8ed8ff 0,#eaf9ff 34%,#fff7df 100%);color:#12304f}
header{position:sticky;top:0;z-index:50;background:#0b2a4a;color:#fff;padding:8px 12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;box-shadow:0 3px 10px rgba(0,0,0,.25)}
header b{font-size:18px}.pill{border-radius:999px;padding:7px 12px;background:#fff;color:#0b2a4a;font-weight:800;text-decoration:none;font-size:14px}
.pill.active{background:linear-gradient(180deg,#ffe066,#ffb703);border:2px solid #fff;box-shadow:0 0 0 3px #ffb703}
button,.btn{cursor:pointer;border:0;border-radius:999px;padding:12px 18px;font-weight:900;font-size:17px;background:linear-gradient(180deg,#ffe066,#ffb703);color:#3a2500;box-shadow:0 3px 0 #c77d00;text-decoration:none;display:inline-block}
button:active{transform:translateY(2px);box-shadow:none}.btn.blue{background:linear-gradient(180deg,#4cc9f0,#4361ee);color:#fff;box-shadow:0 3px 0 #2b3a9e}
.hero{max-width:1060px;margin:14px auto;padding:0 12px}.hero img{width:100%;border-radius:22px;border:5px solid #fff;box-shadow:0 8px 24px rgba(0,0,0,.25)}
h1{font-size:clamp(28px,6vw,46px);margin:10px 0 4px;color:#0b2a4a;text-shadow:2px 2px 0 #ffe066}
h2{font-size:clamp(22px,5vw,32px);color:#0b2a4a}.sub{font-size:19px;font-weight:700}
.wrap{max-width:1060px;margin:0 auto;padding:12px}
.card{background:#fff;border-radius:20px;padding:16px;margin:14px 0;box-shadow:0 6px 18px rgba(11,42,74,.15);border-top:8px solid var(--ac,#ffb703)}
canvas.game{width:100%;max-width:520px;display:block;margin:10px auto;background:#3d9970;border-radius:16px;touch-action:none}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.big{font-size:20px;font-weight:900}
.word{display:inline-block;padding:6px 10px;margin:3px;background:#eaf6ff;border-radius:10px;cursor:pointer;font-weight:800}
.word.hl{background:#ffe066;outline:3px solid #ffb703}.word:hover{background:#d3ecff}
.chip{padding:10px 14px;border-radius:14px;background:#0b2a4a;color:#fff;font-weight:800;cursor:pointer}
.chip.done{background:#2a9d8f}.racerchip.sel{background:#b5179e;outline:3px solid #ffe066}.swatch{width:52px;height:52px;border-radius:50%;border:4px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.3);cursor:pointer}
.pit{display:block;width:100%;text-align:left;margin:8px 0;font-size:18px}
.karaoke{font-size:24px;line-height:1.7}header,header *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.stat{background:#fff3cd;border-radius:12px;padding:8px 14px;font-weight:900}
footer{padding:24px 12px;text-align:center;font-weight:700;color:#0b2a4a}
img.friend{width:96px;height:96px;object-fit:cover;border-radius:50%;border:4px solid #ffe066}
.gateinput{font-size:20px;padding:12px 16px;border-radius:999px;border:3px solid #0b2a4a;width:min(320px,84%);text-align:center;font-weight:800;color:#0b2a4a}
#gate-msg{font-weight:900;color:#b5179e;min-height:26px}
.book{width:150px;border-radius:10px;box-shadow:0 4px 12px rgba(0,0,0,.25)}
@media(max-width:560px){.book{width:44%}}
@keyframes spotpulse{0%{box-shadow:0 6px 18px rgba(11,42,74,.15)}30%{box-shadow:0 0 0 6px #ffb703,0 0 36px 10px rgba(255,183,3,.85)}100%{box-shadow:0 6px 18px rgba(11,42,74,.15)}}
.spotlight{animation:spotpulse 1.2s ease-in-out 2;border-top-color:#b5179e!important}
.mudpool{background:linear-gradient(180deg,#8a5a2b,#6b4226);border-radius:18px;padding:16px 10px;margin:10px 0;box-shadow:inset 0 6px 18px rgba(0,0,0,.45);text-align:center}
.stuckracer{background:none;box-shadow:none;padding:4px;margin:2px}
.stuckracer img{width:84px;height:84px;object-fit:cover;border-radius:50%;border:4px solid #5d3a1a;transform:rotate(-8deg) translateY(10px);transition:all .45s ease}
.stuckracer.out img{border-color:#2a9d8f;transform:rotate(0deg) translateY(0)}
.stuckracer .who{display:block;font-weight:900;color:#fff;text-shadow:1px 1px 2px #000;margin-top:4px}
.lessonchip.done{background:#2a9d8f}
