.arcade{padding-top:34px;padding-bottom:50px}.intro h1{font-size:clamp(34px,4vw,55px);line-height:1.15;letter-spacing:-.05em;margin:0}.intro p{margin:9px 0 24px;color:var(--brand-muted)}.gameLayout{display:grid;grid-template-columns:minmax(0,1.36fr) minmax(300px,1fr);align-items:start;gap:22px}.machine,.console{border:1px solid var(--brand-line);border-radius:18px;background:var(--brand-white);overflow:hidden}.machine{padding:13px 14px 10px;background:linear-gradient(130deg,var(--brand-mist),var(--brand-cloud) 32%,var(--brand-cloud) 65%,var(--brand-mist));box-shadow:inset 0 1px var(--brand-lavender)}.machineBar,.machineFoot,.consoleHead,.counts{display:flex;align-items:center;justify-content:space-between}.machineBar{padding:0 5px 11px}.machineBar b,.machineFoot{font-size:12px;letter-spacing:.14em}.machineBar b span{color:var(--brand-muted)}.machineBar #lamp{font-size:12px;color:var(--brand-link)}.machineBar #lamp:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--win-tint);margin-right:7px}.playfield{position:relative;border:1px solid #445267;border-radius:12px;overflow:hidden;background:#0b1c20}.playfield canvas{display:block;width:100%;height:auto}.machineFoot{padding:9px 5px 0;color:var(--brand-muted);font-size:10px;gap:12px}.machineFoot i{height:1px;background:var(--brand-line);flex:1}.console{padding:clamp(18px,2.5vw,34px)}.console h2{font-size:26px;margin:0}.consoleHead{margin-bottom:24px}.console button{cursor:pointer}.consoleHead button{background:var(--brand-cloud);color:var(--brand-link);border:1px solid var(--brand-line);padding:7px 12px;border-radius:8px}.console label{display:block;font-size:14px;margin-bottom:9px}.console textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:92px;background:var(--brand-white);border:1px solid var(--brand-line);border-radius:9px;color:var(--brand-ink);padding:13px;font-size:17px;line-height:1.5}.console textarea:focus{outline:2px solid var(--brand-focus);outline-offset:2px}.hint,#odds{color:var(--brand-muted);font-size:14px;line-height:1.6}.counts{border-block:1px solid var(--brand-line);padding:16px 0;margin:20px 0 15px;color:var(--brand-muted)}.counts b{color:var(--brand-ink);margin-left:4px}.launch{width:100%;padding:13px 18px;border:0;border-radius:9px;background:var(--brand-lavender);color:var(--brand-ink);font-size:20px;font-weight:700;display:flex;justify-content:space-between}.launch:disabled{opacity:.55;cursor:default}.helpLink{display:inline-block;color:var(--brand-link);font-size:14px;margin-top:12px}#legend{display:flex;gap:7px;flex-wrap:wrap;list-style:none;padding:0;margin:14px 0;max-height:145px;overflow:auto}#legend li{background:var(--brand-cloud);padding:5px 9px;border-radius:6px;font-size:13px;overflow-wrap:anywhere}#legend i{display:inline-block;width:9px;height:9px;border-radius:100%;margin-right:5px}#error{color:var(--tone-loss)}#winPanel{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);background:var(--brand-white);border:1px solid var(--brand-lavender);color:var(--brand-ink);text-align:center;padding:15px 25px;border-radius:12px;max-width:85%;box-shadow:0 10px 40px #4a395288;overflow-wrap:anywhere}#winPanel span,#winPanel strong{display:block}#winPanel span{font-size:13px;color:var(--brand-link)}#winPanel strong{font-size:clamp(22px,4vw,40px);margin-top:4px}.srText{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:760px){.arcade{padding-top:22px}.gameLayout{grid-template-columns:minmax(0,1fr);gap:14px}.machine{padding:9px}.consoleHead{margin-bottom:15px}.intro p{font-size:15px}.machine{max-width:640px;width:100%;box-sizing:border-box}.toplinks{gap:13px}}
.arcade.wrap{width:min(96%,1510px);max-width:none;padding-top:20px}.intro{display:flex;align-items:baseline;gap:18px;margin-bottom:14px}.intro h1{font-size:clamp(28px,3.1vw,44px)}.intro p{margin:0}.gameLayout{position:relative;display:block}.machine{width:100%;max-width:none}.machineBar{gap:14px;min-height:38px}.machineBar #lamp{margin-left:auto}.machineBar button,.consoleHead button,#winPanel button{border:1px solid var(--brand-line);border-radius:7px;background:var(--brand-cloud);color:var(--brand-link);font-weight:600;padding:8px 12px;cursor:pointer}.playfield{height:clamp(360px,67vh,760px)}.playfield canvas{display:block;width:100%;height:100%}.console{position:absolute;right:20px;top:56px;width:min(410px,calc(100% - 32px));box-sizing:border-box;max-height:min(74dvh,660px);overflow-y:auto;overscroll-behavior:contain;background:var(--brand-white);box-shadow:0 12px 44px #4a395299;z-index:2;padding:22px}.console[hidden],.rules [hidden]{display:none}.consoleHead{gap:8px;margin-bottom:14px}.consoleHead h2{margin-right:auto;font-size:23px}.console textarea{min-height:65px;height:75px}.counts{margin:10px 0;padding:9px 0}.rules{border:0;padding:0;margin:16px 0}.rules legend{margin-bottom:8px;font-size:14px}.radios{display:flex;gap:5px}.radios label{flex:1;margin:0;position:relative}.radios input{position:absolute;opacity:0}.radios span{display:block;text-align:center;background:var(--brand-cloud);border:1px solid var(--brand-line);border-radius:6px;padding:7px 0;color:var(--brand-muted);font-size:14px;cursor:pointer}.radios input:checked+span{background:var(--brand-lavender);border-color:var(--brand-lavender);color:var(--brand-link)}.radios input:focus-visible+span{outline:2px solid var(--brand-focus)}.rules #rankRow{margin:8px 0 0}.rules input[type=number]{width:66px;background:var(--brand-white);color:var(--brand-ink);border:1px solid var(--brand-line);border-radius:5px;padding:4px}.hud{pointer-events:none;position:absolute;top:11px;left:13px;display:flex;align-items:center;gap:10px;padding:6px 11px;border:1px solid #4c6c64;border-radius:5px;background:#102423e8;color:#c3e7d9;font-size:13px}.hud span:empty{display:none}.machineFoot{font-size:12px;letter-spacing:.02em}#winPanel{z-index:1}#winPanel button{margin-top:12px}#winPanel #again{background:var(--brand-lavender);color:var(--brand-ink)}.console .hint{margin:6px 0;font-size:13px}#legend:empty{display:none}.console #legend{max-height:66px}.arcade button:focus-visible{outline:2px solid var(--brand-focus);outline-offset:2px}@media(max-width:760px){.arcade.wrap{width:96%;padding-block:14px 24px}.intro{display:block}.intro p{margin-top:4px}.console{top:52px;right:8px;width:calc(100% - 16px);max-height:69dvh;padding:15px}.playfield{height:clamp(360px,67dvh,720px)}.machineBar{gap:8px}.machineBar button{padding:7px 10px}.hud{font-size:12px;left:6px;top:6px}}
.arcade.wrap{padding-inline:0}.machineBar b,.machineBar #lamp,.machineBar button{white-space:nowrap}.machineBar button,#winPanel button{font-size:14px;line-height:1.35}.machineBar b{letter-spacing:.08em}@media(max-width:420px){.machineBar{gap:6px}.machineBar b{font-size:10px}.machineBar #lamp{font-size:11px}.machineBar button{font-size:13px}.machineBar #lamp:before{margin-right:4px}.consoleHead button{font-size:13px}.machineFoot{font-size:11px}}

.raceGuide{margin:-3px 0 12px;color:var(--brand-muted);font-size:14px}.raceGuide summary small{margin-inline-start:.6em;color:var(--brand-muted);font-size:.92em;font-weight:400}.raceGuide summary{cursor:pointer;width:fit-content;color:var(--brand-link)}.returnKey{display:flex;flex-wrap:wrap;align-items:center;gap:.4em .7em;margin:12px 0 8px}.returnExample{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;color:var(--tone-gold);background:var(--brand-white);border-radius:5px}.returnExample canvas{width:18px;height:18px}.raceGuide ul{padding-left:1.4em;line-height:1.65;margin:8px 0 13px}.hud{max-width:95%;flex-wrap:wrap}.hud #portalNotice{color:#f7b7ff;overflow-wrap:anywhere}.intro strong{color:var(--brand-link)}

.arcade.wrap{width:min(98%,1760px)}.playfield{height:clamp(380px,76dvh,940px)}
body.wideRace{overflow:hidden}.wideRace .gameLayout{position:fixed;inset:0;z-index:1000;background:var(--brand-white);padding:4px;box-sizing:border-box}
.wideRace .machine{box-sizing:border-box;height:100%;display:flex;flex-direction:column}
.wideRace .playfield{flex:1;min-height:0;height:auto}.wideRace .console{right:12px;top:56px}
@media(max-width:500px){.machineBar{gap:5px}.machineBar button{padding:6px 8px;font-size:12px}.playfield{height:74dvh}}
@media(max-width:370px){.machineBar b{display:none}.machineBar #lamp{margin-left:0;margin-right:auto}}
