/* 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-tools{display:flex;align-items:center;gap:0}
.hud .hud-icon{display:grid;place-items:center;width:40px;height:46px;padding:0;border:0;border-radius:6px;background:transparent;box-shadow:none;backdrop-filter:none;color:#c6c4d2}
.hud .hud-icon svg{width:21px;height:21px;stroke-width:1.9}
.hud .hud-icon:hover{background:#ffffff0b;color:#fff}
.hud .hud-icon[aria-expanded=true]{background:#8defff10;color:var(--control-accent)}
.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-control{display:flex;align-items:center;justify-content:space-between;gap:2px;min-width:0;flex:none;height:58px;padding:0 5px;border:1px solid #ffffff1d;border-radius:8px;background:#ffffff04;text-align:center}
.hud .bet-control>button:not(.bet-select){width:30px;height:44px;flex:none;display:grid;place-items:center;padding:0;border:0;border-radius:5px;background:transparent;font-size:24px;font-weight:400;line-height:1;color:#d7d5e0}
.hud .bet-control>button:not(.bet-select):hover:enabled{color:var(--control-accent);background:#ffffff09}
.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}
.spin-arrowhead{fill:currentColor;stroke:none}
.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}
.auto-control{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:44px;height:56px;padding:0;border:0;border-radius:6px;background:transparent;color:#c6c4d2}
.auto-control svg{width:28px;height:28px;stroke-width:1.8}
.auto-control>span{font-size:8px;font-weight:600;letter-spacing:.08em;line-height:1}
.auto-control:hover:enabled{background:#ffffff08;color:#fff}
.auto-control[aria-pressed=true]{color:var(--control-accent)}
.auto-control[aria-pressed=true]>span{font-variant-numeric:tabular-nums;color:#11101b;background:var(--control-accent);min-width:24px;padding:3px 5px;border-radius:10px}
.auto-control .auto-stop{display:none}
.auto-control[aria-pressed=true] .auto-stop{display:block}
.auto-control[aria-pressed=true] .auto-play{display:none}
.auto-control .auto-stop{fill:currentColor;stroke:none}
.bonus-meter{min-width:0;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-left:2px solid #bb91ec;background:linear-gradient(90deg,#aa72ff0d,transparent);font-variant-numeric:tabular-nums}
.bonus-meter>span{color:#cfb0ed;font-size:9px;font-weight:700;letter-spacing:.08em}
.bonus-meter>strong{font-size:23px;line-height:1.05;color:#fff;font-weight:750}
.bonus-meter>small{font-size:7px;letter-spacing:.09em;color:var(--control-muted)}
.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}
.keyboard-hint{display:none}
.preview-panel{position:fixed;top:auto;right:auto;left:max(20px,calc((100vw - 1100px)/2 + 24px));bottom:calc(var(--control-height) + env(safe-area-inset-bottom) + 12px);width:320px;max-height:calc(100dvh - var(--control-height) - env(safe-area-inset-bottom) - 32px);padding:23px;border:1px solid #ffffff24;border-radius:12px;background:#181620;box-shadow:0 18px 65px #0006;backdrop-filter:none}
.preview-panel .panel-heading h2{font-size:18px;font-weight:650}
.preview-panel input[type=range]{accent-color:var(--control-accent)}
.settings-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:24px 0}
.settings-shortcuts button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:9px;border:1px solid #ffffff22;border-radius:6px;background:#ffffff04;font-size:11px;color:#e1dfe9}
.settings-shortcuts button:hover{border-color:#8defff66;background:#8defff08}
.settings-shortcuts svg{width:18px;height:18px}
.hud-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:26px;border:1px solid #ffffff28;border-radius:12px;background:#181620;color:#f4f3ff;box-shadow:0 20px 90px #0009}
.hud-dialog::backdrop{background:#05040bbf}
.hud-dialog h2{font-size:21px;font-weight:650;letter-spacing:-.02em}
.hud-dialog p{font-size:12px;color:#aaa6bb;margin:9px 0 24px}
.hud-dialog .icon-button{border:0;background:transparent;color:#aaa6bb;width:32px;height:32px}
.hud-dialog .icon-button:hover{background:#ffffff0b;color:#fff}
.bet-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.bet-options button{min-height:48px;padding:10px 4px;border:1px solid #ffffff22;border-radius:6px;background:#ffffff04;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}
.bet-options button:hover{border-color:#8defff88;background:#8defff0a}
.bet-options button[aria-pressed=true]{border-color:var(--control-accent);background:#8defff14;color:#bdf7ff}
.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}
#autospin-amount{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#autospin-amount label{position:relative;cursor:pointer}
#autospin-amount input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#autospin-amount 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}
#autospin-amount input:checked+span{color:#dcfaff;border-color:var(--control-accent);background:#8defff14}
#autospin-amount input:focus-visible+span{outline:2px solid var(--control-accent);outline-offset:3px}
.auto-budget{display:flex;justify-content:space-between;gap:16px;padding:18px 0;margin-bottom:21px;border-top:1px solid #ffffff12;border-bottom:1px solid #ffffff12}
.auto-budget>div{display:flex;flex-direction:column;gap:7px}.auto-budget>div:last-child{text-align:right}
.auto-budget span{font-size:8px;color:#9993ad;letter-spacing:.08em}
.auto-budget strong{font-size:16px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.auto-check{display:flex;gap:10px;align-items:center;font-size:12px;color:#e2ddef;cursor:pointer}
.auto-check input{width:18px;height:18px;margin:0;accent-color:#8defff;cursor:pointer}
.hud-dialog #autospin-help{line-height:1.6;margin:17px 0 23px;color:#9993ad}
.auto-start{width:100%;padding:15px;border:0;border-radius:6px;background:#a1edf8;color:#16141f;font-weight:750;font-size:15px}
.auto-start:hover{background:#c1f5fc}
@media(max-width:1000px){
 .hud{padding:0 18px;grid-template-columns:72px 138px minmax(105px,1fr) 156px auto;column-gap:18px}
 .hud .hud-icon{width:36px}.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}.auto-control{width:38px}
}
@media(max-width:850px){
 .hud{padding:0 12px;grid-template-columns:64px 115px minmax(88px,1fr) 130px auto;column-gap:10px}
 .hud .hud-icon{width:32px}.hud .hud-icon svg{width:19px;height:19px}.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-control{padding:0 3px;height:52px}.hud .bet-select strong{font-size:14px}.hud .bet-control>button:not(.bet-select){width:22px;font-size:21px}
 .spin-controls{gap:7px}.hud .spin{width:62px;height:62px}.hud .spin svg{width:42px;height:42px}
 .hud .turbo{width:26px}.auto-control{width:32px}.auto-control svg{width:25px;height:25px}
}
@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-tools{grid-column:1;grid-row:2;gap:0}.hud .hud-icon{width:32px;height:46px}
 .hud .bet-control{grid-column:2;grid-row:2;justify-content:center;padding:0;height:51px;background:transparent}
 .hud .bet-select{min-width:0;padding:3px 0}.hud .bet-select strong{font-size:13px}
 .hud .bet-control>button:not(.bet-select){display:none}
 .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}
 .hud .auto-control{width:32px;height:50px}.hud .auto-control svg{width:24px;height:24px}
 .bonus-meter{grid-column:2;grid-row:2;height:52px;gap:4px;background:none;border:0}
 .bonus-meter>span{font-size:8px;letter-spacing:0}.bonus-meter>strong{font-size:21px}.bonus-meter>small{font-size:7px;letter-spacing:.02em}
 .control-area>.status{font-size:9px;bottom:calc(100% + 8px)}
 .preview-panel{left:12px;width:min(320px,calc(100vw - 24px));bottom:calc(var(--control-height) + env(safe-area-inset-bottom) + 10px);padding:20px}
 .hud-dialog{padding:23px}
}
@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}
 .hud .bet-control,.bonus-meter{height:49px}.hud .auto-control{height:50px}
 .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-tools{grid-column:auto;grid-row:auto}.hud .hud-icon{width:32px;height:42px}
.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-control{grid-column:auto;grid-row:auto;display:grid;grid-template-columns:minmax(0,1fr) 27px;grid-template-rows:25px 25px;gap:0;height:50px;padding:0;border:0;border-radius:2px;background:#ffffff05}
.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-control>button:not(.bet-select){display:grid;width:27px;height:25px;min-height:0;border-radius:0}
.hud .bet-control>button svg{width:19px;height:19px;stroke-width:2.5}
.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}
.hud .auto-control{width:38px;height:50px;gap:4px}.hud .auto-control svg{width:28px;height:28px}
.hud .auto-control>span{font-size:7px;letter-spacing:.03em}
.bonus-meter{grid-column:auto;grid-row:auto;height:50px;border:0;background:#bb8cfe08;align-items:flex-start;padding-left:9px;gap:3px}
.bonus-meter>strong{font-size:22px}.bonus-meter>span{font-size:8px;letter-spacing:.03em}
.control-area>.status{bottom:calc(100% + 4px);font-size:9px;color:#c6c1d7}
.preview-panel{left:max(16px,calc((100vw - 820px)/2));bottom:calc(100dvh - var(--controls-top) + 8px);max-height:calc(var(--controls-top) - 24px)}
.settings-shortcuts #turbo[aria-pressed=true]{color:var(--control-accent);border-color:#8defff70;background:#8defff0c}
.settings-shortcuts #sound[aria-pressed=true]{color:#92909e}
@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 .hud-icon{width:28px}.hud .hud-icon svg{width:18px;height:18px}
 .hud .meter strong,.hud .win strong{font-size:14px}.hud .meter>span,.bet-select>span{font-size:7px}
 .hud .bet-control{grid-template-columns:minmax(0,1fr) 22px;height:46px;grid-template-rows:23px 23px}
 .hud .bet-select{height:46px;padding:3px 6px}.hud .bet-select strong{font-size:13px}
 .hud .bet-control>button:not(.bet-select){width:22px;height:23px}
 .hud .spin-controls{gap:6px}.hud .spin{width:62px;height:62px}.hud .spin svg{width:43px;height:43px}
 .hud .auto-control{width:30px}.hud .auto-control svg{width:25px;height:25px}
 .bonus-meter{height:46px;padding-left:5px}.bonus-meter>span{font-size:7px}.bonus-meter>strong{font-size:19px}.bonus-meter>small{font-size:6px}
}
@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-tools{grid-column:1;grid-row:2}.hud .hud-icon{width:30px;height:46px}
 .hud .bet-control{grid-column:2;grid-row:2;height:46px;grid-template-rows:23px 23px;grid-template-columns:minmax(0,1fr) 22px}
 .hud .bet-select{height:46px;padding:4px 6px}.hud .bet-select strong{font-size:13px}
 .hud .bet-control>button:not(.bet-select){width:22px;height:23px}
 .hud .spin-controls{grid-column:3;grid-row:2;gap:7px}.hud .spin{width:66px;height:66px}.hud .spin svg{width:44px;height:44px}
 .hud .auto-control{width:32px;height:50px}.hud .auto-control svg{width:25px;height:25px}
 .bonus-meter{grid-column:2;grid-row:2;height:46px;padding-left:7px;gap:3px}.bonus-meter>strong{font-size:21px}
}
@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,.hud .bonus-meter{height:var(--readout-height);gap:4px;justify-content:center}
.hud .meter>span,.hud .bet-select>span,.hud .bonus-meter>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,.hud .bonus-meter>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-control,.hud .bet-select,.hud .bet-select:hover:enabled,.hud .bonus-meter{background:transparent}
.hud .bet-select::after{content:none}
.hud .bonus-meter>small{display: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}
}
