*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{margin:0;font-family:"Hiragino Maru Gothic ProN","Hiragino Sans",system-ui,sans-serif;background:#fff6e9;color:#33291f}
.wrap{max-width:520px;margin:0 auto;padding:14px 14px 44px}
header{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#8a7768}
header a{color:#8a7768;text-decoration:none;font-weight:700}
.title{text-align:center;padding:12px 0 4px}
.eyebrow{color:#e2703a;font-weight:800;font-size:13px;margin:0;letter-spacing:.06em}
.title h1{font-size:38px;margin:4px 0 2px;letter-spacing:.03em}
.title h1 span{color:#e2703a}
.title p:last-child{color:#8a7768;margin:4px 0 0;font-size:14px}
.game{margin-top:14px}
.stats{display:flex;gap:8px}
.stats>div{flex:1;background:#fff;border:2px solid #f0dfc8;border-radius:14px;padding:8px 6px;text-align:center}
.stats span{display:block;font-size:11px;color:#8a7768;font-weight:700}
.stats strong{font-size:22px}
.stats small{font-size:12px;color:#8a7768}
.stage{position:relative;margin-top:10px;background:linear-gradient(180deg,#fffdf6,#ffefd6);border:2px solid #f0dfc8;border-radius:20px;overflow:hidden}
.stage svg{display:block;width:100%;height:auto}
.feedback{position:absolute;top:10px;left:0;right:0;text-align:center;font-weight:900;font-size:20px;color:#e2703a;pointer-events:none;text-shadow:0 2px 0 #fff;min-height:28px}
.overlay{position:absolute;inset:0;background:rgba(255,250,240,.88);display:flex;align-items:center;justify-content:center;padding:18px}
.overlay.hide{display:none}
.overlay.result{background:transparent;align-items:flex-end;padding:14px}
.overlay.result .panel{background:rgba(255,253,248,.97);border:2px solid #f0dfc8;border-radius:18px;padding:12px 16px;box-shadow:0 10px 30px rgba(51,41,31,.18);width:100%;max-width:420px}
.overlay.result .pill{display:none}
.overlay.result .panel h2{font-size:21px;margin:4px 0}
.overlay.result #results{margin-top:6px;padding:8px 10px}
.overlay.result .panel button{margin-top:10px;padding:10px 24px;font-size:16px}
.overlay.measure{visibility:hidden}
.panel{text-align:center;max-width:340px}
.pill{display:inline-block;background:#e2703a;color:#fff;font-size:12px;font-weight:800;border-radius:999px;padding:4px 12px}
.panel h2{font-size:24px;margin:10px 0 6px}
.panel p{font-size:14px;line-height:1.7;color:#5c4c3e;margin:0}
.panel button,.drop{cursor:pointer;font-family:inherit}
.panel button{margin-top:14px;background:#e2703a;color:#fff;border:none;border-radius:14px;font-size:18px;font-weight:800;padding:12px 28px}
#results{margin-top:10px;font-size:15px;line-height:1.8;background:#fff;border:2px solid #f0dfc8;border-radius:14px;padding:10px}
#results .rank{font-size:20px;font-weight:900;color:#e2703a}
.drop{width:100%;margin-top:10px;min-height:56px;border:none;border-radius:16px;background:linear-gradient(90deg,#e2703a,#e8a13a);color:#fff;font-size:18px;font-weight:800}
.drop:disabled{opacity:.4;cursor:default}
.drop span{font-size:11px;background:rgba(255,255,255,.25);border-radius:6px;padding:2px 6px;margin-left:6px}
.under{display:flex;justify-content:space-between;margin-top:8px;font-size:13px;color:#8a7768;font-weight:700}
.instructions{margin-top:22px;background:#fff;border:2px solid #f0dfc8;border-radius:18px;padding:14px 16px}
.instructions h2{font-size:17px;margin:0 0 6px}
.instructions p{font-size:14px;line-height:1.8;margin:6px 0}
.instructions .note{color:#8a7768;font-size:12px}
footer{text-align:center;color:#8a7768;font-size:12px;margin-top:20px}
