/* A quiet charcoal hall, ivory type, brass hardware; green = RUSH, red = warning. */
:root{--v-bg:#151714;--v-panel:#1d201b;--v-text:#f2ecdf;--v-muted:#b1b2a2;--v-line:#434638;--v-gold:#dfb650;--v-rush:#88c6a3;--v-danger:#e48c7c;--space:20px;--radius:3px;--ui-font:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
body.v2{margin:0;padding:0;background:var(--v-bg);color:var(--v-text);font:14px/1.6 var(--ui-font);min-width:340px}
.v2 *{box-sizing:border-box}.v2 button,.v2 select{font:inherit}.v2 button{cursor:pointer;border-radius:var(--radius)}.v2 button:disabled{cursor:not-allowed;opacity:.42}.v2 button:focus-visible,.v2 select:focus-visible,.typing-plate:focus-visible{outline:2px solid var(--v-gold);outline-offset:3px}.v2 button:not(.push):hover:not(:disabled){filter:brightness(1.15)}
.topbar{max-width:1460px;margin:auto;padding:18px 30px;display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--v-line)}.brand h1{font:900 29px/1 var(--ui-font);letter-spacing:.04em;margin:0;color:var(--v-text)}.brand>span{font:10px/2 monospace;letter-spacing:.1em;color:var(--v-muted)}.brand b{border:1px solid #8d7d50;padding:0 3px;color:var(--v-gold)}.bank{margin-left:auto;display:flex;align-items:baseline;gap:10px;font-variant-numeric:tabular-nums}.bank small{color:var(--v-muted);font-size:12px}.bank strong{font-size:30px;color:var(--v-gold);line-height:1.2}.bank>span{color:var(--v-gold)}.topbar nav{display:flex;gap:6px}.topbar button,.machine-foot button{background:transparent;border:1px solid var(--v-line);padding:7px 12px;color:var(--v-text)}
.hall{max-width:1460px;margin:auto;padding:22px 30px 0;display:grid;grid-template-columns:minmax(370px,1.55fr) minmax(250px,1fr) minmax(240px,.9fr);gap:22px;align-items:start}.section-head{height:64px;border-bottom:1px solid var(--v-line);margin-bottom:14px}.section-head>span{font:10px monospace;letter-spacing:.15em;color:var(--v-muted)}.section-head h2,.section-head>strong{display:block;font-size:19px;font-weight:800;line-height:1.8;margin:5px 0 0}.section-head h2 small{font-size:12px;font-weight:500;color:var(--v-muted);float:right;margin-top:7px}.section-intro{color:var(--v-muted);font-size:12px;margin:0 0 15px}.v2 .machine-bezel{padding:7px;border:1px solid #6b6248;border-radius:12px;background:linear-gradient(110deg,#565449,#181b17 10%,#34372e 90%,#615c4c);box-shadow:0 8px 20px #0005}.v2 .machine-bezel:before{display:none}.v2 .board{width:100%;aspect-ratio:720/650;height:auto;border-radius:8px}.v2 #physics{width:100%;height:100%}.v2 .board-info{font-size:8px}.v2 .reel-panel{top:31%;left:27%;width:58%;padding:10px 12px}.v2 .reel-frame-art{left:24%;top:28%;width:64%;height:34%}.v2 .reels{gap:5px;height:auto}.v2 .reel{font-size:clamp(35px,5vw,70px);line-height:1.1;min-width:0;height:auto;min-height:62px}.v2 .reel-topline{font-size:9px}.v2 .reserve-row{margin-top:8px}.v2 .mode-badge{font-size:10px}.v2 .board-push{top:72%;width:48px;height:48px}.v2 .hit-banner{top:19%;font-size:21px;min-width:0;white-space:nowrap}.v2 .jackpot-fx{z-index:25}.v2 .jackpot-copy strong{font-family:var(--ui-font);font-size:clamp(28px,3.5vw,48px)}.v2 .chance-lamp-art{width:10%}.machine-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;color:var(--v-muted);font-size:11px}.machine-foot button{font-size:11px;padding:5px 8px;white-space:nowrap}
.collection,.shop{min-width:0}.group-list{display:flex;flex-direction:column;gap:8px;max-height:330px;overflow-y:auto}.group-row{border:1px solid var(--v-line);border-left:3px solid #626654;background:#20231e;position:relative}.group-row.selected{border-left-color:var(--v-gold);background:#2b2d22}.group-select{display:block;text-align:left;width:100%;border:0;background:none;color:var(--v-text);padding:12px}.group-select strong{font-size:17px}.group-select strong b{color:var(--v-gold);font-size:22px;margin-left:8px}.group-select small{display:block;color:var(--v-muted);font-size:11px;margin-top:4px}.group-select .rush{color:var(--v-rush)}.group-row.notified{border-color:var(--v-gold)}.group-notice{color:var(--v-gold);font-size:11px;display:block}.allocation{padding:0 12px 9px;display:flex;gap:8px;align-items:center;font-size:10px;color:var(--v-muted)}.allocation button{font-size:10px;background:transparent;border:1px solid #64634c;color:var(--v-text);padding:3px 6px}.fine{font-size:11px;line-height:1.7;color:var(--v-muted)}.collection-bottom{border-top:1px solid var(--v-line);padding-top:15px;margin-top:24px;font-size:12px}.collection-bottom>span{display:flex;justify-content:space-between;color:var(--v-muted)}.collection-bottom b{color:var(--v-text)}#funding-note{color:var(--v-danger);font-size:12px}.title-line{display:grid;grid-template-columns:1fr auto;gap:4px;margin-top:20px}.title-line small{grid-column:1/-1;color:var(--v-muted)}.title-line strong{font-size:16px}.title-line>span{color:var(--v-gold)}.text-link{border:0;background:none;color:var(--v-gold);padding:0;font-size:12px}
.shop-rate{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--v-muted);margin-bottom:5px}.shop-rate select{background:#25281f;color:var(--v-text);border:1px solid var(--v-line);padding:3px 12px}.shop-item{padding:12px 0;border-bottom:1px solid var(--v-line)}.shop-item header{display:flex;justify-content:space-between;gap:6px;align-items:baseline}.shop-item strong{font-size:14px}.shop-item header small{color:var(--v-muted);font-size:11px}.shop-item p{font-size:11px;color:var(--v-muted);margin:3px 0 9px}.shop-item button,.shop-expansion button{width:100%;display:flex;justify-content:space-between;gap:8px;background:#34372a;border:1px solid #77704d;color:var(--v-text);padding:7px 10px;font-size:12px}.shop-item button b{color:var(--v-gold)}.shop-expansion{margin-top:12px;display:grid;gap:7px}.shop-expansion button{background:transparent;border-color:var(--v-line);font-size:11px}#shop-feedback{color:var(--v-gold);font-size:12px;min-height:1em}
.typing-plate{grid-column:1/-1;background:#efeadf;color:#252920;padding:16px 24px 14px;border:1px solid #c1bda9;border-top:3px solid var(--v-gold);border-radius:3px;position:relative;z-index:50;min-height:185px;box-shadow:0 4px 12px #0003}.typing-top,.typing-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#555a4d}.typing-top{font:11px monospace;letter-spacing:.03em}.typing-plate .word{font:800 clamp(23px,2.4vw,34px)/1.4 var(--ui-font);margin:12px 0 1px;text-align:center;color:#20251d;overflow-wrap:anywhere;letter-spacing:.025em}.typing-plate .kana{text-align:center;color:#64695b;font-size:12px;margin:0}.typing-plate .romaji{font:700 clamp(22px,2.3vw,32px)/1.4 ui-monospace,"SFMono-Regular",Consolas,monospace;letter-spacing:.035em;white-space:normal;overflow-wrap:anywhere;text-align:center;margin:3px 0 9px}.typing-plate .romaji .typed{color:#8b927c}.typing-plate .romaji .remaining{color:#252920;text-decoration:none}.typing-bottom{padding-top:8px;border-top:1px solid #cecfbf}.typing-plate.miss{border-color:#b24d3c}.typing-plate.miss #input-feedback{color:#993728}.typing-plate.measuring{border-top-color:#337354}#measurement-clock{font-size:17px;color:#236041}.footer{max-width:1460px;padding:13px 30px 20px;margin:auto;display:flex;justify-content:space-between;gap:15px;color:var(--v-muted);font-size:10px}.v2 dialog{font-size:14px;line-height:1.8;border-radius:5px;background:#20231d;color:var(--v-text)}.v2 dialog p,.v2 .subtext,.v2 .instructions p{color:var(--v-muted);font-size:13px}.v2 dialog .primary{background:#dfb650;color:#22271c;border:1px solid #dfb650;font-weight:800}.v2 dialog .secondary{background:transparent;color:var(--v-text);border:1px solid var(--v-line)}.v2 .setting{grid-template-columns:120px 1fr auto}.v2 dialog[open]{max-height:85vh;overflow:auto}.record-row{display:flex;gap:16px;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--v-line);font-size:12px}.measurement-hero{font-size:38px;font-weight:900;color:var(--v-gold)}.v2 [hidden]{display:none!important}
body.v2.flash-off .board *,body.v2.reduced .board *{animation:none!important;transition:none!important}.v2.flash-off .flash,.v2.flash-off .spark-field,.v2.flash-off .jackpot-rays{display:none!important}.v2.flash-off .board:before{display:none}.v2.reduced .board:before{display:none}.v2.flash-off .group-row,.v2.reduced .group-row{animation:none!important}.v2 .reel.spinning{filter:none}
@media(min-width:1500px){.hall{gap:26px}.v2 .reel{font-size:70px}}
@media(max-width:1080px){.topbar{padding:15px 20px;gap:20px}.hall{padding:18px 20px 0;gap:16px;grid-template-columns:minmax(330px,1.35fr) minmax(210px,1fr) minmax(200px,.9fr)}.brand h1{font-size:25px}.topbar button{font-size:11px;padding:6px 8px}.bank strong{font-size:25px}.v2 .reel{font-size:46px;min-height:45px}.v2 .reel-panel{padding:6px}.v2 .reel-topline{font-size:7px}.section-head h2,.section-head>strong{font-size:16px}}
@media(max-width:820px){.topbar{flex-wrap:wrap;gap:10px 20px}.topbar nav{width:100%;justify-content:flex-end}.hall{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.shop{grid-column:1/-1}.shop #shop-items{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.typing-plate{grid-row:2;position:sticky;bottom:0}.section-head{height:57px}.bank strong{font-size:27px}.footer{padding:12px 20px}.v2 .board-push{width:40px;height:40px}.v2 .reel{font-size:38px}.v2 .mode-badge{font-size:8px}.typing-plate .word{font-size:23px}.typing-plate .romaji{font-size:24px}}
@media(max-width:540px){.hall{display:flex;flex-direction:column;padding:14px 12px 0;gap:18px}.cabinet,.collection,.shop{width:100%}.cabinet{max-width:460px;margin:auto}.typing-plate{order:0;position:static;width:100%;padding:12px;min-height:175px}.collection{order:1}.shop{order:2}.group-list{max-height:none}.typing-top,.typing-bottom{font-size:9px}.typing-bottom{align-items:flex-start}.typing-bottom #word-count{white-space:nowrap}.topbar{padding:14px 14px 10px}.brand h1{font-size:25px}.topbar nav{justify-content:space-between}.bank{gap:5px}.bank strong{font-size:24px}.footer{flex-direction:column;padding:12px}.collection-bottom{margin-top:16px}.v2 .reel{font-size:48px}.shop #shop-items{gap:0 12px}.typing-plate .word{font-size:23px}.typing-plate .romaji{font-size:23px}.section-head{height:55px;margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.v2 *, .v2 *:before{animation:none!important;transition:none!important}}
/* Keep the typing plate inside a laptop viewport; only inventory/shop scroll. */
@media(min-width:821px){
.topbar{padding-top:13px;padding-bottom:13px}.hall{padding-top:16px;gap:16px 22px;grid-template-rows:minmax(320px,calc(100svh - 290px)) auto}
.cabinet,.collection,.shop{height:max(320px,calc(100svh - 290px));min-height:0}
.cabinet{display:flex;flex-direction:column}.cabinet .section-head{flex:none}.v2 .machine-bezel{width:min(100%,calc((100svh - 410px)*720/650));min-width:230px;margin:0 auto}.machine-foot{margin-top:auto;padding-top:8px}.collection,.shop{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#696849 transparent}.collection{display:flex;flex-direction:column}.collection .section-head,.collection .section-intro{flex:none}.group-list{flex:1;min-height:76px;flex-shrink:0}.collection-bottom{margin-top:12px;padding-top:10px}.title-line{margin-top:12px}.shop .section-head{position:sticky;top:0;background:var(--v-bg);z-index:2}.typing-plate{min-height:160px;padding-top:10px;padding-bottom:10px}.typing-plate .word{margin-top:5px;font-size:27px}.typing-plate .romaji{font-size:27px;margin-bottom:5px}.typing-plate .kana{font-size:11px}.typing-bottom{padding-top:5px}.footer{padding-top:8px;padding-bottom:8px}
}
