@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700;900&display=swap");
*{box-sizing:border-box}body{margin:0;background:#17112b;color:#17112b;font:18px/1.5 "Noto Sans",system-ui,sans-serif;overflow-x:hidden}
main{max-width:880px;margin:auto;padding:16px}h1,h2{font:900 30px/1.2 "Noto Sans",system-ui,sans-serif;color:#c02219;margin:0 0 10px}h1{font-size:clamp(28px,6vw,46px)}
section{background:#fbf3df;border:4px solid #ffd23f;padding:20px;margin:0 0 24px}img{display:block;width:100%;border:4px solid #17112b;max-height:430px;object-fit:cover;object-position:50% 30%}
.two{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center}.lab{background:#1f6f78;color:#fff;padding:16px;margin-top:16px}.lab b.t{color:#ffd23f}
button,.btn{font:inherit;cursor:pointer;background:#fff;color:#17112b;border:3px solid #17112b;padding:9px 14px;margin:4px;min-height:48px;text-decoration:none;display:inline-block}
button:hover:not(:disabled){background:#ffe9a8}button:focus-visible{outline:4px solid #c02219}.ok,.ok:disabled{background:#8fe0a4}.no,.no:disabled{background:#ffb3a8}.go{background:#ffd23f;font-weight:700}
.msg{min-height:28px;font-weight:700;margin:8px 0 0}.rec{font-family:ui-monospace,monospace}svg{width:100%;height:auto;display:block}.opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.opts button{margin:0;text-align:left}
.shake{animation:s .35s}@keyframes s{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}.fl{position:fixed;inset:0;pointer-events:none;opacity:0}.fl.g{background:#ffd23f;animation:f .5s}.fl.r{background:#c02219;animation:f .5s}@keyframes f{0%{opacity:.5}}
.board{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;background:#17112b;color:#ffd23f;padding:10px 16px;font:700 20px ui-monospace,monospace}.court{height:130px;background:#d98b4a;position:relative;overflow:hidden;border:4px solid #17112b}
.hoop{position:absolute;right:9%;top:6px;width:100px;height:90px;z-index:1}.ball{position:absolute;left:10%;bottom:8px;width:42px;height:42px;border-radius:50%;background:radial-gradient(circle,#fbf3df 4px,#c02219 5px 11px,#17112b 12px)}
.in{animation:in .9s}.out{animation:out .9s}@keyframes in{50%{left:45%;bottom:85px}85%{left:81%;bottom:78px}100%{left:81%;bottom:0}}@keyframes out{50%{left:45%;bottom:85px}80%{left:72%;bottom:85px}100%{left:62%;bottom:0}}
.ticket{border:6px dashed #c02219;background:#ffd23f;padding:24px;text-align:center;margin:16px 0}.ticket h2{font-size:clamp(26px,6vw,40px)}
@media(max-width:620px){.two,.opts{grid-template-columns:1fr}section{padding:14px}h2{font-size:24px}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}

[hidden]{display:none!important}
