.casino-machines { overflow-x: auto; scrollbar-width: thin; }
.casino-machines button { flex-shrink: 0; white-space: nowrap; }
#crashView [hidden] { display: none !important; }
#crashView { --crash-down: #e9a695; --crash-up: #d8ba79; }
#crashView .slots-heading h2 { margin: 0; font: 600 44px/1 var(--heading-type); }
.crash-recent { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; min-height: 30px; color: var(--muted); font-size: 11px; overflow: hidden; }
.crash-recent > span { flex-shrink: 0; }
#crashHistory { display: flex; gap: 12px; padding: 0; margin: 0; list-style: none; overflow-x: auto; font: 600 16px var(--heading-type); font-variant-numeric: tabular-nums; }
#crashHistory li { color: var(--crash-down); white-space: nowrap; }
#crashHistory .crash-history-high { color: var(--gold); }
.crash-machine { display: grid; grid-template-columns: minmax(0, 1fr) 268px; border: 1px solid var(--line); border-top: 2px solid var(--gold); background: var(--panel); }
.crash-stage { position: relative; overflow: hidden; min-height: 380px; background: var(--ink); }
.crash-readout { position: absolute; top: 28px; left: 16px; right: 16px; text-align: center; z-index: 2; pointer-events: none; }
#crashPhase { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
#crashMultiplier { display: block; color: var(--gold); font: 600 clamp(64px, 6vw, 88px)/1.08 var(--heading-type); font-variant-numeric: tabular-nums; }
.crash-plot { position: absolute; inset: 40px 12px 12px; }
.crash-plot svg { width: 100%; height: 100%; overflow: visible; }
.crash-grid { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 7; opacity: .55; }
.crash-plot text { fill: var(--muted); font: 11px var(--ui-type, Barlow, sans-serif); }
#crashPath { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.crash-rocket { position: absolute; width: 48px; height: 50px; transform: translate(-50%, -65%) rotate(16deg); z-index: 1; }
.crash-rocket img { position: relative; display: block; width: 100%; height: auto; }
.crash-rocket::before { content: ''; position: absolute; width: 48px; height: 6px; right: 24px; top: 43px; transform: rotate(-24deg); transform-origin: right center; background: var(--gold); opacity: .7; }
.crash-stage[data-phase="crashed"] #crashMultiplier { color: var(--crash-down); }
.crash-stage[data-phase="crashed"] #crashPath { stroke: var(--crash-down); }
.crash-stage[data-phase="crashed"] .crash-rocket { opacity: .35; transform: translate(-50%, -35%) rotate(55deg); transition: transform 200ms ease-out, opacity 200ms; }
.crash-stage:not([data-phase="flying"]) .crash-rocket::before { display: none; }
.crash-controls { padding: 24px; border-left: 1px solid var(--line); min-width: 0; }
#crashForm { display: grid; gap: 8px; }
#crashForm label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
#crashForm label:not(:first-child) { margin-top: 8px; }
#crashForm input { width: 100%; min-height: 46px; color: var(--paper); background: var(--ink); border: 1px solid var(--line); padding: 8px 12px; border-radius: 0; font: 600 24px var(--heading-type); }
#crashView button { min-height: 44px; border-radius: 0; font: 600 14px var(--heading-type); cursor: pointer; }
#crashPrimary { margin-top: 12px; }
#crashPrimary, #crashSignIn, #crashClaim { width: 100%; background: var(--gold); color: var(--ink); padding: 12px 8px; border: 1px solid var(--gold); }
#crashCancel, .crash-recovery button { color: var(--muted); background: transparent; border: 1px solid var(--line); padding: 8px 12px; }
#crashView button:disabled { opacity: .5; cursor: default; }
#crashView :is(button,input,summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#crashView button:hover:not(:disabled) { filter: brightness(1.12); }
.crash-result { margin: 16px 0 0; font-size: 14px; line-height: 1.5; }
.crash-result[data-result="cashed"] { color: var(--gold); }
.crash-result[data-result="lost"], .crash-notice { color: var(--crash-down); }
.crash-notice, #crashCredit { font-size: 12px; line-height: 1.5; margin: 12px 0; }
.crash-controls p:empty { display: none; }
.crash-recovery { display: flex; gap: 8px; margin-top: 12px; }
.crash-pool { margin-top: 26px; }
.crash-pool > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.crash-pool h3 { margin: 0; font: 600 22px var(--heading-type); }
#crashCount { color: var(--muted); margin-left: 8px; }
#crashPool { color: var(--gold); font: 600 20px var(--heading-type); }
.crash-table-wrap { max-height: 330px; overflow: auto; }
.crash-pool table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.crash-pool th { text-align: right; font-weight: 400; color: var(--muted); font-size: 11px; }
.crash-pool :is(th,td) { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.crash-pool :is(th,td):first-child { text-align: left; overflow-wrap: anywhere; max-width: 220px; }
.crash-pool tr[data-status="cashed"] td:nth-child(n+3) { color: var(--gold); }
.crash-pool tr[data-status="lost"] td:nth-child(3) { color: var(--crash-down); }
#crashPlayersEmpty { font-size: 13px; color: var(--muted); margin: 16px 0; }
.crash-rules { margin-top: 24px; border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.crash-rules ul { padding-left: 20px; margin-bottom: 0; }
.crash-rules li + li { margin-top: 6px; }
.crash-rules summary { cursor: pointer; color: var(--paper); }
@media(max-width: 760px) {
 .crash-machine { grid-template-columns: 1fr; }
 .crash-stage { min-height: 310px; }
 .crash-controls { padding: 20px; border-left: 0; border-top: 1px solid var(--line); }
 #crashMultiplier { font-size: 68px; }
 .crash-pool :is(th,td) { padding: 10px 4px; font-size: 12px; }
 .crash-pool :is(th,td):first-child { max-width: 105px; }
 .crash-recent { flex-wrap: wrap; }
}
@media(prefers-reduced-motion: reduce) {
 .crash-rocket { transform: translate(-50%, -65%); }
 .crash-rocket::before { display: none; }
 #crashPath { stroke-width: 2; }
 .crash-stage[data-phase="crashed"] .crash-rocket { transition: none; }
}

#crashAdminVision { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
