/* Original player controls, separate from the artwork and preview styles. */
.app{--control-height:94px;--control-accent:#8defff;--control-muted:#9997ab}
.viewport{inset:48px 0 120px}
.scene{width:min(calc((100vw - 32px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 168px)*var(--stage-w)/var(--frame-h)))}
.control-area{height:calc(var(--control-height) + env(safe-area-inset-bottom));bottom:0;padding-bottom:env(safe-area-inset-bottom);background:linear-gradient(180deg,#11101bec,#0b0a13fa);border-top:1px solid #ffffff12;justify-content:center}
.hud{height:var(--control-height);width:100%;max-width:1100px;margin:0 auto;padding:0 24px;display:grid;grid-template-columns:80px 156px minmax(120px,1fr) 174px auto;column-gap:24px;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}
.hud .meter{gap:6px;min-width:0;font-variant-numeric:tabular-nums}
.hud .meter>span,.bet-select>span{font-size:9px;font-weight:600;letter-spacing:.09em;color:var(--control-muted);line-height:1.2}
.hud .meter strong{font-size:20px;font-weight:650;line-height:1.15;white-space:nowrap}
.hud .balance{padding-left:20px;border-left:1px solid #ffffff15}
.hud .win{text-align:left}
.hud .win strong{font-size:24px;font-weight:750;color:#fff0b4}
.hud .bet-select{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:4px 0;border:0;border-radius:5px;background:transparent}
.bet-select>span{display:flex;align-items:center;gap:5px}
.bet-select>span svg{width:10px;height:10px;stroke-width:1.5}
.hud .bet-select strong{font-size:17px;line-height:1.15;font-weight:700;white-space:nowrap}
.hud .bet-select:hover:enabled{background:#ffffff07}
.spin-controls{display:flex;align-items:center;gap:12px}
.hud .turbo{width:32px;height:50px;margin:0;gap:5px;border-radius:6px;color:#aaa7bb}
.hud .turbo svg{width:22px;height:22px}
.hud .turbo span{font-size:7px;letter-spacing:.07em}
.hud .turbo:hover:enabled{color:#fff;background:#ffffff08}
.hud .turbo[aria-pressed=true]{color:var(--control-accent);background:#8defff0c}
.hud .spin{position:relative;width:78px;height:78px;margin:0;display:grid;place-items:center;border:1px solid #ffffff3a;border-radius:50%;background:#25232f;box-shadow:inset 0 0 0 5px #17151f;color:#fff;transition:background .16s,border-color .16s,transform .16s}
.hud .spin::before{content:'';position:absolute;inset:4px;border:2px solid transparent;border-top-color:#8defff;border-radius:50%;transform:rotate(22deg);pointer-events:none}
.hud .spin svg{width:49px;height:49px;stroke-width:3.8;overflow:visible}
.hud .spin:hover:enabled{background:#34323f;border-color:#b6f5ff;transform:scale(1.035);filter:none}
.hud .spin:active:enabled{transform:scale(.96)}
.hud .spin:disabled{opacity:.5}
.hud .spin span.sr-only{margin:-1px}
.hud .spin[data-action=skip] svg{display:none}
.hud .spin[data-action=skip]::after{content:'';width:22px;height:22px;border-radius:3px;background:currentColor}
.control-area>.status{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);min-height:0;margin:0;font-size:10px;line-height:1.4;color:#dfdbea;letter-spacing:.03em;pointer-events:none;text-shadow:0 1px 5px #05020e}

















.auto-count-options{padding:0;margin:24px 0;border:0;min-width:0}
.auto-count-options legend{font-size:12px;color:#bfbacd;margin-bottom:12px}
.auto-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.auto-chips label{position:relative;cursor:pointer}
.auto-chips input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.auto-chips span{display:grid;place-items:center;height:51px;border:1px solid #ffffff28;border-radius:6px;background:#ffffff04;color:#bfbacd;font-size:19px;font-weight:650}
.auto-chips input:checked+span{color:#dcfaff;border-color:var(--control-accent);background:#8defff14}
.auto-chips input:focus-visible+span{outline:2px solid var(--control-accent);outline-offset:3px}
@media(max-width:1000px){
 .hud{padding:0 18px;grid-template-columns:72px 138px minmax(105px,1fr) 156px auto;column-gap:18px}.hud .balance{padding-left:16px}.hud .meter strong{font-size:18px}.hud .win strong{font-size:21px}
 .hud .bet-select strong{font-size:16px}.spin-controls{gap:9px}.hud .spin{width:72px;height:72px}
 .hud .turbo{width:28px}
}
@media(max-width:850px){
 .hud{padding:0 12px;grid-template-columns:64px 115px minmax(88px,1fr) 130px auto;column-gap:10px}.hud .balance{padding-left:10px}
 .hud .meter strong{font-size:16px}.hud .win strong{font-size:19px}.hud .meter>span,.bet-select>span{font-size:8px}.hud .bet-select strong{font-size:14px}
 .spin-controls{gap:7px}.hud .spin{width:62px;height:62px}.hud .spin svg{width:42px;height:42px}
 .hud .turbo{width:26px}
}
@media(max-width:650px){
 .app{--control-height:132px}
 .viewport{inset:52px 0 156px}.scene{width:min(calc((100vw - 24px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 208px)*var(--stage-w)/var(--frame-h)))}
 .hud{padding:0 12px;grid-template-columns:64px minmax(0,1fr) 142px;grid-template-rows:52px 80px;column-gap:6px;position:relative}
 .hud::before{content:'';position:absolute;left:12px;right:12px;top:52px;border-top:1px solid #ffffff12}
 .hud .balance{grid-column:1/3;grid-row:1;padding:0;border:0;align-self:center}
 .hud .win{grid-column:3;grid-row:1;text-align:right;align-self:center}
 .hud .meter{gap:3px}.hud .meter strong{font-size:16px}.hud .win strong{font-size:18px}
 .hud .bet-select{min-width:0;padding:3px 0}.hud .bet-select strong{font-size:13px}
 .hud .spin-controls{grid-column:3;grid-row:2;justify-content:flex-end;gap:7px}
 .hud .turbo{width:26px;height:46px}.hud .turbo span{display:none}
 .hud .spin{width:66px;height:66px}.hud .spin svg{width:43px;height:43px}
 .control-area>.status{font-size:9px;bottom:calc(100% + 8px)}
 
 
}
@media(min-width:651px) and (max-height:560px) and (orientation:landscape){
 .app{--control-height:66px}
 .viewport{inset:36px 0 92px}.scene{width:min(calc((100vw - 24px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 128px)*var(--stage-w)/var(--frame-h)))}
 .hud .spin{width:56px;height:56px}.hud .spin svg{width:38px;height:38px}
 .control-area>.status{font-size:9px;bottom:calc(100% + 5px)}
}

/* Compact reference arrangement: one short strip, with an oversized spin dial. */
.app{--control-height:82px;--controls-scene-width:min(calc((100vw - 32px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 160px)*var(--stage-w)/var(--frame-h)));--controls-center-offset:64px;--controls-top:min(calc(100dvh - var(--control-height) - max(12px,env(safe-area-inset-bottom))),calc((100dvh - var(--controls-center-offset))/2 + var(--controls-scene-width)*var(--frame-bottom-offset)/var(--stage-w) + 12px))}
.viewport{inset:48px 0 112px}.scene{width:min(calc((100vw - 32px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 160px)*var(--stage-w)/var(--frame-h)))}
.control-area{top:var(--controls-top);bottom:auto;height:var(--control-height);padding:0;background:none;border:0}
.hud{width:min(820px,calc(100vw - 32px));max-width:none;height:64px;padding:0 12px;grid-template-columns:32px 135px minmax(84px,1fr) 132px 126px;grid-template-rows:minmax(0,1fr);align-items:center;align-content:center;column-gap:14px;background:#111116ec;border-radius:3px;box-shadow:0 3px 12px #08061230}
.hud .balance{grid-column:auto;grid-row:auto;padding-left:0;border:0}.hud .win{grid-column:auto;grid-row:auto;text-align:left}
.hud .meter{gap:4px}.hud .meter>span,.bet-select>span{font-size:8px;letter-spacing:.02em;color:#aaa7b6}
.hud .meter strong,.hud .win strong{font-size:18px;font-weight:650;color:#f8f7fb}
.hud .bet-select{position:relative;grid-column:1;grid-row:1/3;align-items:flex-start;min-height:0;height:50px;gap:4px;padding:4px 8px;border-radius:0}
.hud .bet-select::after{content:'';position:absolute;left:8px;right:16px;bottom:1px;height:2px;background:#dceff2}
.hud .bet-select strong{font-size:16px}
.hud #bet-up{grid-column:2;grid-row:1}.hud #bet-down{grid-column:2;grid-row:2}
.hud .spin-controls{grid-column:auto;grid-row:auto;gap:8px;justify-content:flex-end}
.hud .spin{width:78px;height:78px;border:2px solid #17151b;background:#27262e;box-shadow:0 0 0 1px #ffffff14;color:#fff}
.hud .spin::before{content:none}.hud .spin svg{width:51px;height:51px;stroke-width:4}
.hud .spin:hover:enabled{background:#37353f;border-color:#a8f3ff}
.control-area>.status{bottom:calc(100% + 4px);font-size:9px;color:#c6c1d7}



@media(min-width:481px) and (max-width:700px){
 .app{--control-height:72px;--controls-scene-width:min(calc((100vw - 24px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 150px)*var(--stage-w)/var(--frame-h)));--controls-center-offset:54px}.viewport{inset:48px 0 102px}
 .scene{width:min(calc((100vw - 24px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 150px)*var(--stage-w)/var(--frame-h)))}
 .hud{width:calc(100vw - 20px);height:57px;padding:0 8px;grid-template-columns:28px 99px minmax(60px,1fr) 100px 98px;grid-template-rows:minmax(0,1fr);column-gap:6px}
 .hud::before{content:none}
 .hud .meter strong,.hud .win strong{font-size:14px}.hud .meter>span,.bet-select>span{font-size:7px}
 .hud .bet-select{height:46px;padding:3px 6px}.hud .bet-select strong{font-size:13px}
 .hud .spin-controls{gap:6px}.hud .spin{width:62px;height:62px}.hud .spin svg{width:43px;height:43px}
}
@media(max-width:480px){
 .app{--control-height:120px;--controls-scene-width:min(calc((100vw - 24px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 198px)*var(--stage-w)/var(--frame-h)));--controls-center-offset:102px}.viewport{inset:48px 0 150px}
 .scene{width:min(calc((100vw - 24px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 198px)*var(--stage-w)/var(--frame-h)))}
 .hud{width:calc(100vw - 24px);height:110px;padding:0 10px;grid-template-columns:30px minmax(0,1fr) 111px;grid-template-rows:40px 70px;column-gap:7px}
 .hud::before{content:none}.hud .balance{grid-column:1/3;grid-row:1}.hud .win{grid-column:3;grid-row:1;text-align:right}
 .hud .meter strong,.hud .win strong{font-size:15px}.hud .meter>span,.bet-select>span{font-size:7px}
 .hud .bet-select{height:46px;padding:4px 6px}.hud .bet-select strong{font-size:13px}
 .hud .spin-controls{grid-column:3;grid-row:2;gap:7px}.hud .spin{width:66px;height:66px}.hud .spin svg{width:44px;height:44px}
}
@media(min-width:701px) and (max-height:560px) and (orientation:landscape){
 .app{--control-height:62px;--controls-scene-width:min(calc((100vw - 24px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 120px)*var(--stage-w)/var(--frame-h)));--controls-center-offset:48px}
 .viewport{inset:36px 0 84px}.scene{width:min(calc((100vw - 24px)*var(--stage-w)/var(--frame-w)),calc((100dvh - 120px)*var(--stage-w)/var(--frame-h)))}
 .hud{height:54px}.hud .spin{width:64px;height:64px}.hud .spin svg{width:44px;height:44px}
}

/* All readouts share a type scale and baseline; the spin dial cannot size the row. */
.hud{--readout-height:50px;--readout-label-size:8px;--readout-label-line:10px;--readout-value-size:18px;--readout-value-line:22px}
.hud .meter,.hud .bet-select{height:var(--readout-height);gap:4px;justify-content:center}
.hud .meter>span,.hud .bet-select>span{font-size:var(--readout-label-size);line-height:var(--readout-label-line);height:var(--readout-label-line);font-weight:600;letter-spacing:.02em;color:#aaa7b6;white-space:nowrap}
.hud .meter strong,.hud .win strong,.hud .bet-select strong{font-size:var(--readout-value-size);line-height:var(--readout-value-line);font-weight:650;letter-spacing:0;color:#f8f7fb;font-variant-numeric:tabular-nums}
.hud .bet-select,.hud .bet-select:hover:enabled{background:transparent}
.hud .bet-select::after{content:none}
@media(min-width:481px) and (max-width:700px){
 .hud{--readout-height:46px;--readout-label-size:7px;--readout-label-line:9px;--readout-value-size:14px;--readout-value-line:18px}
}
@media(max-width:480px){
 .hud{--readout-height:46px;--readout-label-size:7px;--readout-label-line:9px;--readout-value-size:15px;--readout-value-line:18px}
 .hud .meter{height:40px}
}
