*{box-sizing:border-box}body{margin:0;background:#101a17;color:#edf4eb;font-family:Arial,'Noto Sans JP',sans-serif}button,input{font:inherit}button{cursor:pointer;border:0;touch-action:manipulation}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #dbfb76;outline-offset:3px}button:disabled{cursor:default;opacity:.3}main{max-width:920px;margin:auto;padding:0 24px 24px}header{height:72px;display:flex;align-items:center;gap:16px}.brand{font-size:22px;font-weight:900;letter-spacing:-1px}.brand span{font-weight:400;margin-left:4px}.balance{margin-left:auto;font-size:21px;font-variant-numeric:tabular-nums}.balance small{color:#d7fa64;font-size:13px}.icon{background:#26382e;color:#e3eedf;border-radius:50%;width:38px;height:38px;font-size:24px}.machine{border:1px solid #425445;border-radius:18px;overflow:hidden;background:#20372b}#stage{height:calc(100dvh - 237px);min-height:330px;max-height:650px;position:relative;background:#b5c8b5}canvas{width:100%;height:100%;display:block}.hud{position:absolute;top:20px;left:24px;right:24px;display:flex;justify-content:space-between;pointer-events:none;font-size:12px;letter-spacing:2px;color:#314a37}.hud b{font-size:18px}#status{text-align:center;height:42px;display:flex;align-items:center;justify-content:center;font-size:14px;color:#d5e8cf;letter-spacing:1px}.controls{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:14px;padding:0 22px 22px}.controls button{height:85px;border-radius:13px;box-shadow:0 4px 0 #101d16}.play{background:#d7fa64;color:#243b29;font-size:25px;font-weight:900;letter-spacing:2px}.play small{display:block;font-size:13px;letter-spacing:0;margin-top:5px}.direction{background:#edf3e8;color:#1f3828;user-select:none;touch-action:none;display:flex;align-items:center;justify-content:center;gap:20px}.direction b{font-size:43px}.direction span{font-size:14px}.direction small{display:block;font-size:13px;margin-top:5px}.direction.held,.direction:active:not(:disabled){background:#d7fa64;transform:translateY(3px);box-shadow:0 1px 0 #101d16}#result{position:absolute;inset:0;background:#183627cc;z-index:2;align-items:center;justify-content:center;flex-direction:column;gap:25px}#result:not([hidden]){display:flex}#result strong{font-size:clamp(30px,6vw,60px);color:#d7fa64;font-weight:900}#result button{padding:15px 25px;border-radius:30px;background:#d7fa64;color:#20362a;font-weight:bold}dialog{width:min(440px,calc(100% - 32px));max-height:85dvh;overflow:auto;border:1px solid #c8d5c0;border-radius:22px;background:#f3f7ee;color:#25392a;padding:28px;box-shadow:0 20px 80px #0008}dialog::backdrop{background:#07170bcc;backdrop-filter:blur(5px)}h2{font-size:20px;margin:0 0 26px}#confirm{text-align:center}.cost-label{font-size:14px;color:#5a7157}.cost{display:block;font-size:38px;margin:6px 0 24px}.transition{display:flex;align-items:center;justify-content:space-around;padding:20px 0;background:#e6ecdf;border-radius:12px}.transition small{display:block;font-size:12px;color:#61745b;margin-bottom:8px}.transition b{font-size:19px;font-variant-numeric:tabular-nums}.transition i{font-style:normal;font-size:22px}.actions{display:flex;gap:10px;margin-top:25px}.actions button{flex:1;padding:15px 4px;border-radius:9px;font-size:14px;font-weight:bold;background:#e0e6d9}.accent,.actions .accent{background:#d7fa64;color:#213725;padding:13px 17px;border-radius:9px;font-weight:700}.dialog-head{display:flex;align-items:start;justify-content:space-between}.dialog-head button{background:transparent;padding:2px;font-size:20px}.help{font-size:14px;line-height:1.9;color:#53694f}.utility{display:flex;gap:10px;margin:20px 0}.utility button,.demo button{background:#e3eadc;padding:12px 15px;border-radius:8px;color:#354f32;font-size:14px}details{border-top:1px solid #d0dac8;padding-top:20px}summary{cursor:pointer;font-size:14px}label{display:flex;align-items:center;justify-content:space-between;margin:16px 0;font-size:14px}input{width:65px;border:1px solid #bacbb0;border-radius:6px;padding:7px;font-size:16px;background:white;color:#23341f}#settings-status{font-size:13px}.demo{border-top:1px solid #d0dac8;margin-top:24px;padding-top:20px}.demo small{display:block;font-size:12px;line-height:1.7;color:#6d7e64;margin-top:12px}#insufficient{font-size:14px;color:#9c4527;line-height:1.8}@media(max-width:600px){main{padding:0 8px 12px}header{height:58px;padding:0 8px;gap:12px}.brand{font-size:18px}.balance{font-size:18px}.icon{height:34px;width:34px;font-size:20px}#stage{height:calc(100dvh - 200px);min-height:260px;max-height:none}.machine{border-radius:14px}.hud{top:14px;left:16px;right:16px;font-size:10px}.controls{padding:0 12px 15px;gap:10px}.controls button{height:77px}.direction{gap:10px}.direction b{font-size:34px}.direction small{font-size:12px}.play{font-size:23px}#status{height:40px;font-size:13px}dialog{padding:23px}}@media(max-height:520px) and (min-width:601px){#stage{min-height:280px}main{max-width:750px}}
@media(max-width:600px){#stage{height:56dvh;min-height:300px;max-height:510px}}

#result{inset:16px 16px auto;background:#183627ed;border-radius:14px;padding:16px;gap:12px}#result strong{font-size:clamp(24px,4vw,36px)}#result button{padding:10px 20px}
body{background:#142c33}.machine{background:#23545c;border-color:#43727a}.balance small{color:#ffe27c}.play,.accent,.actions .accent,#result button{background:#ffe27c;color:#254750}.direction{background:#e8f1ed;color:#254750}.direction.held{background:#ffe27c}#status{color:#daedeb}.hud{color:#244e56}#result{background:#194a53ed}#result strong{color:#ffe27c}.icon{background:#23545c}button:focus-visible{outline-color:#ffe27c}

#prize-details{margin:0;color:#fff5cc;font-size:17px;line-height:1.6;text-align:center}.prize-settings h3{font-size:17px;margin:22px 0 10px}.prize-table{width:100%;border-collapse:collapse;font-size:15px}.prize-table th,.prize-table td{padding:10px 6px;border-bottom:1px solid #d0dac8;text-align:left}.prize-table th:last-child,.prize-table td:last-child{text-align:right}.return-metrics{font-size:14px}.return-metrics div{display:flex;justify-content:space-between;gap:12px;margin:10px 0}.return-metrics dd{margin:0;text-align:right;font-weight:700}
