/* Shared chrome uses the exact lemon yellow from the Obby logo. */
:root{--accent:#f8ff13;--chrome-text:#f2f2f2;--chrome-muted:#a3a3a3;--chrome-line:#ffffff14}
.game-footer{background:#1a1a1a;border:0;border-top:1px solid var(--chrome-line)}
@media(orientation:landscape){.game-footer{padding-block:14px 15px}}
.game-footer .secondary-button{background:transparent;border:1px solid #ffffff1c;border-radius:8px;color:#c7c7c7;box-shadow:none;font-size:14px;font-weight:500;min-height:44px}
.game-footer .secondary-button:hover{background:#ffffff08;border-color:#ffffff30;filter:none}
.game-footer .secondary-button[aria-expanded=true]{background:#f8ff1310;border-color:#f8ff1338;color:var(--accent)}
.game-footer .secondary-button:focus-visible,.popover button:focus-visible,.popover input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.footer-balance>span{color:var(--chrome-muted)}
.footer-balance output{color:var(--chrome-text)}

/* Content determines the Settings height, including its final audio row. */
.popover{--line:var(--chrome-line);height:auto;max-height:calc(100dvh - 100px);border:1px solid var(--chrome-line);border-radius:14px;background:#1a1a1a;backdrop-filter:none;color:var(--chrome-text);box-shadow:0 12px 40px #0006}
.popover-content{height:auto;min-height:0}
.settings-main{padding:8px 0;gap:4px}
.settings-group{padding:0 8px;gap:0}
.settings-divider{margin:4px 16px;background:var(--chrome-line)}
.settings-row{min-height:44px;padding:10px 8px;gap:12px;border-radius:7px;font-size:13px;color:var(--chrome-text)}
.settings-row:hover{background:#ffffff06;filter:none!important}
.settings-row svg,.volume-row svg{width:18px;height:18px;color:var(--chrome-muted)}
.settings-row .row-label{line-height:20px}
.row-label small{display:block;margin-top:2px;color:var(--chrome-muted);font-size:11px;line-height:16px;font-weight:400}
.settings-row .chevron{color:var(--chrome-muted)}
.switch{width:32px;height:18px;background:#454545}
.switch:after{width:14px;height:14px;background:#aaa;transition:transform 120ms ease}
.settings-row[aria-checked=true] .switch{background:var(--accent)}
.settings-row[aria-checked=true] .switch:after{left:2px;transform:translateX(14px);background:#1a1a1a}
.volume-row{display:flex;flex-direction:column;align-items:stretch;min-height:70px;padding:10px 8px;gap:8px}
.volume-heading{display:flex;align-items:center;gap:12px;color:var(--chrome-text);font-size:13px;line-height:20px}
.volume-row input{accent-color:var(--accent);height:20px;cursor:pointer}
.popover-header{padding:12px 16px;min-height:52px;font-size:14px;font-weight:600}
.popover-header>span{color:var(--accent)}
.popover-header button{display:grid;place-items:center;min-width:32px;min-height:32px;color:#aaa;border-radius:6px}
.popover-header button:hover{background:#ffffff08}
.subscreen,.fairness-body{padding:16px;color:#bcbcbc;font-size:13px;line-height:1.6;overflow:auto;min-height:0}
.subscreen dd,.fairness-body dd,.subscreen h3{color:var(--accent)}
.fairness-body p:first-child{display:inline-block;margin:0 0 12px;padding:3px 8px;background:#f8ff1310;color:var(--accent);font-size:11px;border-radius:4px}
.fairness-body p{margin:0 0 16px}
.history-table th{color:var(--chrome-muted)}
.history-table td{color:var(--chrome-text)}
.history-popover .subscreen:empty{display:none}
.toast{background:#1a1a1a;border-color:var(--chrome-line);color:var(--chrome-text)}
.half-double-row .max-bet{color:var(--bet-brand);font-size:14px}

/* Reference structure: bold multiplier above a compact payout / tile row. */
.mines-outcome{left:50%;top:50%;width:min(320px,70%);transform:translate(-50%,-50%);padding:0;margin:0;border:2px solid #383838;border-radius:16px;background:#2b2b2b;color:#f2f2f2;box-shadow:0 10px 28px #0007;pointer-events:none;overflow:hidden;font-variant-numeric:tabular-nums}
.mines-outcome:not([hidden]){animation:outcome-enter 180ms cubic-bezier(.2,.8,.2,1) both}
.outcome-hero{display:flex;flex-direction:column;align-items:center;padding:16px 12px 20px;background:var(--accent);color:#1a1a1a}
.outcome-emblem{display:block;width:80px;height:56px;margin-bottom:6px}
.mines-outcome:not([hidden]) .outcome-emblem{animation:emblem-arrive 420ms cubic-bezier(.2,.8,.2,1) both}
.outcome-label{font-size:11px;line-height:16px;font-weight:700;letter-spacing:2px;text-transform:uppercase}
.mines-outcome-meta{margin:4px 0 0;color:inherit;font-size:clamp(30px,4.2vw,52px);line-height:1.1;font-weight:800;letter-spacing:-2px;text-transform:none;overflow-wrap:anywhere}
.outcome-details{display:flex;align-items:stretch;justify-content:center;gap:18px;padding:18px 20px;background:#2b2b2b;border-top:1px solid #ffffff14}
.outcome-details>div{min-width:0;text-align:left}
.outcome-caption{display:block;text-align:left;font-size:10px;line-height:14px;color:#a3a3a3;margin-bottom:2px}
.mines-outcome-value{margin:0;color:#f2f2f2;font-size:clamp(13px,1.7vw,18px);line-height:24px;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.outcome-tiles{display:flex;flex-direction:column;justify-content:center;border-left:1px solid #ffffff1f;padding-left:18px}
@keyframes outcome-enter{from{opacity:0;transform:translate(-50%,-48%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes emblem-arrive{from{opacity:0;transform:translateY(6px) scale(.8) rotate(-8deg)}to{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
.motion-off .mines-outcome,.motion-off .outcome-emblem{animation:none!important}
.motion-off .switch:after{transition:none}
@media(prefers-reduced-motion:reduce){.mines-outcome,.outcome-emblem{animation:none!important}.switch:after{transition:none}}
@media(orientation:portrait){
  .popover{bottom:var(--mobile-footer-height);max-height:calc(100dvh - var(--mobile-footer-height) - 12px);border-bottom:0;border-radius:14px 14px 0 0}
  .settings-popover{left:0;right:0;width:100%;max-width:100%}
  .outcome-hero{padding:10px 12px 14px}
  .outcome-emblem{width:64px;height:44px;margin-bottom:4px}
  .mines-outcome-meta{font-size:clamp(26px,9vw,42px)}
  .outcome-details{gap:10px;padding:12px}
  .outcome-tiles{padding-left:12px}
  .mines-outcome-value{font-size:14px;line-height:20px}
}
@media(orientation:landscape) and (max-height:500px){
  .outcome-emblem{width:48px;height:34px;margin-bottom:2px}
  .outcome-hero{padding:8px}
  .mines-outcome-meta{font-size:30px}
  .outcome-details{padding:10px;gap:10px}
  .outcome-tiles{padding-left:10px}
  .mines-outcome-value{font-size:13px;line-height:18px}
}

/* The jackpot uses the existing win card, with an explicit collection action. */
.jackpot-dialog{position:fixed;inset:auto;left:50%;top:50%;width:min(360px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 24px);margin:0;padding:0;display:none;flex-direction:column;gap:0;pointer-events:auto;overflow:auto;z-index:200}
.jackpot-dialog[open]{display:flex}
.jackpot-dialog::backdrop{background:#080d12a8;backdrop-filter:blur(3px)}
.jackpot-dialog .outcome-hero,.jackpot-dialog .outcome-details,.jackpot-footer{width:100%;flex-shrink:0}
.jackpot-dialog .mines-outcome-meta{font-size:48px;letter-spacing:-2px}
.jackpot-subtitle{margin-top:8px;font-size:12px;line-height:18px;font-weight:600}
.jackpot-dialog .outcome-label{font-size:14px;letter-spacing:2px}
.jackpot-footer{padding:0 20px 20px;text-align:center}
.jackpot-footer p{margin:0 0 16px;color:#c5c5c5;font-size:13px;line-height:20px}
.jackpot-footer .primary-action{height:52px;min-height:52px;border-radius:10px;background:var(--accent);border:0;color:#1a1a1a;font-size:16px;font-weight:700;box-shadow:none}
.jackpot-footer .primary-action:before,.jackpot-footer .primary-action:after{display:none}
.jackpot-footer .primary-action:focus-visible{outline:2px solid #fff;outline-offset:3px}
.jackpot-footer .primary-action.is-pending{background:var(--accent);color:#1a1a1a;box-shadow:inset 0 2px 6px #0005}
@media(max-height:500px){.jackpot-dialog .outcome-emblem{display:none}.jackpot-dialog .outcome-hero{padding:10px}.jackpot-dialog .mines-outcome-meta{font-size:32px}.jackpot-dialog .outcome-details{padding:10px 20px}.jackpot-footer{padding-bottom:12px}.jackpot-footer p{margin-bottom:10px}}
.rgs-blocker{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px max(24px,calc(50% - 220px));background:#080f11eb;color:#f5f0e5;font-size:16px;font-weight:600;line-height:1.5;text-align:center}
