/* Reference classic presentation. Scoped to Auto; loaded after shared web layouts. */
body.browser-player:has(.auto-reference){background:#0b0e14}
.auto-reference #autoCanvas{position:absolute;inset:0;transform:none;width:100%;height:100%;touch-action:none}
.auto-reference .auto-stage::after{content:'';position:absolute;inset:0 0 auto;height:60px;z-index:3;pointer-events:none;background:linear-gradient(#0b0e14 58%,#0b0e1400)}
.auto-reference .auto-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:50px 22px 70px;background:radial-gradient(130% 90% at 50% 28%,#151b2c 0%,#0b0e14 68%);overflow-y:auto;font-family:inherit}
.auto-reference .auto-panel[hidden]{display:none}
.auto-reference .auto-title-group{display:flex;flex-direction:column;align-items:center;gap:4px;flex-shrink:0}
.auto-reference .auto-panel h1{display:block;margin:0;font:italic 900 52px/.94 -apple-system,'Segoe UI',Roboto,sans-serif;letter-spacing:.01em;text-shadow:-2px -2px #000,2px -2px #000,-2px 2px #000,2px 2px #000,3px 5px #000d}
.auto-reference .auto-panel h1 span{display:block;margin-left:.5em;font-size:19px;letter-spacing:.5em;line-height:.94;color:#e8ecf4}
.auto-reference .auto-panel h1 strong{display:block;color:white;font:inherit}
.auto-reference .auto-panel h1 em{display:block;color:#ffd23f;-webkit-text-fill-color:#ffd23f;background:none;font:inherit;letter-spacing:.06em;text-shadow:inherit}
.auto-reference .auto-title-stars{font:26px/35px -apple-system,'Segoe UI',sans-serif;letter-spacing:.22em;color:#ffd23f;text-shadow:0 0 14px #ffd23f80}
.auto-reference .auto-panel button{font-family:inherit;letter-spacing:normal}
.auto-reference #autoRulesToggle{padding:9px 22px;min-height:37px;border:1px solid #2a3142;border-radius:10px;background:#12182699;color:#e8ecf4;box-shadow:none;font-size:13px;font-weight:700;letter-spacing:.08em}
.auto-reference .auto-bet{display:grid;width:min(100%,340px);padding:0;gap:17px;margin-top:5px;flex-shrink:0}
.auto-reference .auto-bet>span{display:none}
.auto-reference .auto-bet-input{display:flex;gap:20px;margin:0;justify-content:center}
.auto-reference .auto-bet-input button{display:grid;place-items:center;width:52px;height:52px;min-height:52px;padding:0;border:2px solid #4cc9f0;border-radius:50%;background:#4cc9f01a;color:#4cc9f0;font-size:28px;box-shadow:none}
.auto-reference .auto-bet-input output{width:128px;min-width:0;height:47px;align-self:center;background:#0e1420;border:1px solid #2a3142;border-radius:12px;color:#ffd23f;font-size:24px;font-weight:900}
.auto-reference .auto-bet-presets,.auto-reference .auto-bet-actions{display:flex;justify-content:center;gap:6px;margin:0}
.auto-reference #autoBetActions{display:flex}
.auto-reference .auto-bet-presets button,.auto-reference .auto-bet-actions button{padding:7px 13px;min-height:35px;min-width:42px;border:1px solid #2a3142;border-radius:10px;background:#161d2d;color:#e8ecf4;box-shadow:none;font-size:13px;font-weight:700}
.auto-reference .auto-bet-presets button.active{color:#ffd23f;border-color:#ffd23f;background:#ffd23f1f}
.auto-reference .auto-bet-actions button{color:#2ee6a8;border-color:#2ee6a855}
.auto-reference #autoStart{width:auto;max-width:100%;min-height:50px;margin-top:16px;padding:14px 32px;border:0;border-radius:12px;background:#e8281e;color:white;font-size:17px;font-weight:700;box-shadow:0 0 18px #e8281e73}
.auto-reference #autoBest{display:none}
.auto-reference #autoMessage{max-width:320px;margin:0;color:#c6cede;font-size:14px;line-height:1.55}
.auto-reference #autoMessage:empty{display:none}
.auto-reference .auto-panel[data-result] .auto-title-group{display:none}
.auto-reference .auto-panel:has(#autoRules:not([hidden])){justify-content:flex-start;padding-top:130px}
.auto-reference .auto-panel:has(#autoRules:not([hidden])) .auto-title-group{display:none}
.auto-reference #autoRules{max-width:360px;margin:0;max-height:calc(100svh - 210px);overflow:auto}
.auto-reference .auto-hud{position:absolute;inset:12px 10px auto 12px;display:flex;justify-content:space-between;z-index:4;font-family:inherit}
.auto-reference .auto-hud>div{position:static;display:block;width:auto;max-width:56%;text-align:right;gap:0}
.auto-reference #autoCurrentBet{margin:2px 0 0 46px;padding:7px 11px;border:1px solid #2a3142;border-radius:9px;background:#121826cc;font-size:12px;letter-spacing:0;white-space:nowrap}
.auto-reference #autoBalance{font:800 22px/1.1 -apple-system,'Segoe UI',Roboto,sans-serif;letter-spacing:.02em;color:#75e783;text-shadow:-1px -1px #000,1px 1px #000,0 2px #000;font-variant-numeric:tabular-nums;white-space:nowrap}
.auto-reference #autoLives{display:flex;justify-content:flex-end;gap:3px;margin-top:1px;height:23px;font-size:0;visibility:visible}
.auto-reference #autoLives i{width:24px;height:23px;background:url("../../images/auto/reference-v1/heart.9d2eaa0e90c9.webp") center/contain no-repeat}
.auto-reference .auto-stage .auto-hud #autoLives{visibility:visible}
.auto-reference:not(.auto-race-visible) #autoLives::after{content:'';width:78px;height:23px;background:url("../../images/auto/reference-v1/heart.9d2eaa0e90c9.webp") right center/26px 23px repeat-x}
.auto-reference:not(.auto-race-visible) #autoLives i{display:none}
.auto-reference #autoWanted{display:flex;justify-content:flex-end;margin-top:2px;height:23px;font-size:0;gap:0}
.auto-reference #autoWanted>span{display:inline-block;width:24px;height:23px;background:url("../../images/auto/reference-v1/grey_star.8537b566634f.webp") center/contain no-repeat;font-size:0}
.auto-reference #autoWanted>span.is-lit{background-image:url("../../images/auto/reference-v1/yellow_star.4052e72a43fa.webp")}
.auto-reference #autoSound{top:54px;left:12px;width:38px;height:38px;padding:9px;border:1px solid #2a3142;background:#121826a6;color:#e8ecf4}
.auto-reference .auto-multiplier{top:168px;left:0;right:0;text-align:center;font-family:inherit;text-shadow:none}
.auto-reference .auto-multiplier strong{font:800 41px/45px -apple-system,'Segoe UI',Roboto,sans-serif;letter-spacing:-.02em;color:#2ee6a8;text-shadow:0 0 7px #2ee6a860}
.auto-reference .auto-multiplier span{font:600 17px/22px -apple-system,'Segoe UI',Roboto,sans-serif;color:#c3c5cd;text-transform:lowercase}
.auto-reference #autoControls{left:2%;right:2%;bottom:calc(64px + env(safe-area-inset-bottom));gap:4%;z-index:5}
.auto-reference #autoControls button{flex:1 1 0;min-width:0;height:96px;border:3px solid #4cc9f0;border-radius:18px;background:linear-gradient(#4cc9f04d,#4cc9f014);color:#d9f4ff;font:36px/1 -apple-system,'Segoe UI',Roboto,sans-serif;box-shadow:0 0 16px #4cc9f061;touch-action:none}
.auto-reference #autoControls button small{margin-top:2px;font:800 11px/1.3 -apple-system,'Segoe UI',Roboto,sans-serif;letter-spacing:.22em;color:#4cc9f0}
.auto-reference .auto-announce.is-roadblock{display:none}
@media(max-height:640px){
 .auto-reference .auto-panel{padding:100px 16px 20px;justify-content:flex-start;gap:6px}
 .auto-reference .auto-panel h1{font-size:36px}
 .auto-reference .auto-title-stars{font-size:20px;line-height:25px}
 .auto-reference .auto-bet{gap:8px;margin-top:0}
 .auto-reference .auto-bet-input button{width:44px;height:44px;min-height:44px}
 .auto-reference .auto-bet-input output{height:40px}
 .auto-reference #autoStart{min-height:44px;margin-top:4px;padding:10px 24px}
 .auto-reference #autoControls{bottom:calc(48px + env(safe-area-inset-bottom))}
 .auto-reference #autoControls button{height:76px;font-size:28px}
 .auto-reference .auto-multiplier{top:135px}
}
@media(max-height:460px){
 .auto-reference .auto-panel{display:grid;grid-template-columns:1fr 1fr;align-content:center;justify-items:center;padding:100px 20px 12px;gap:6px 15px}
 .auto-reference .auto-title-group{grid-column:1;grid-row:1/4}
 .auto-reference #autoRulesToggle,.auto-reference .auto-bet,.auto-reference #autoStart{grid-column:2}
 .auto-reference .auto-bet-input{gap:6px}
 .auto-reference .auto-bet-input output{width:85px}
 .auto-reference .auto-bet-presets button,.auto-reference .auto-bet-actions button{padding:5px;min-width:32px;min-height:30px}
 .auto-reference #autoStart{font-size:14px;padding:10px}
 .auto-reference .auto-panel:has(#autoRules:not([hidden])),.auto-reference .auto-panel[data-result]{display:flex}
}
