/* Crash's own look, on the game template (static/game.css styles the shell): one canvas stage (static/crash.js draws the
   number, the ruler, the gold curve, the ivory ball and the auto cash-out tag), the ruler strip on the left that takes
   the drags (it never scrolls the page), and the gold field laid over the tag to type a value. */

.cr-stage { position: relative; flex: 1; min-height: 320px; }
.cr-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
.cr-cv:focus-visible { box-shadow: inset 0 0 0 1.5px rgb(216 165 72 / .7); border-radius: 14px; }
.cr-rule { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; touch-action: none; cursor: ns-resize; }
.cr-rule.off { cursor: default; }
.gm .cr-in { --k: 6px; position: absolute; z-index: 6; height: 26px; flex: none; border: 0; outline: 0; padding: 0 8px; background: var(--gold-hi);
  color: var(--on-gold); -webkit-text-fill-color: var(--on-gold); font: 800 17px/26px var(--f-num); text-align: center;
  clip-path: polygon(var(--k) 0, 100% 0, 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, 0 100%, 0 var(--k)); }
.gm .cr-in::placeholder { color: rgb(36 22 0 / .5); }
/* the history chips: where past flights crashed (under 2×, 2× up, 10× up in gold) */
.gm-recent .gm-pill.cr-p-lo { color: var(--ink-3); }
.gm-recent .gm-pill.cr-p-hi { color: var(--ink); }
.gm-recent .gm-pill.cr-p-top { color: var(--gold); }
@media (max-width: 899px) { .cr-stage { min-height: 300px; } .cr-cv { touch-action: pan-y; } .gm[data-game="crash"] .gm-play { min-height: 0; } }
/* bet B's field over B's tag: ivory-outlined, as its tag */
.gm .cr-in.cr-in-b { background: var(--stage); color: var(--ivory); -webkit-text-fill-color: var(--ivory); box-shadow: inset 0 0 0 1.5px var(--ivory); }
.gm .cr-in.cr-in-b::placeholder { color: rgb(243 234 214 / .5); }
/* bet B in the panel: its amount, live once added (Add bet B / Remove) */
.cr-bhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cr-btog { border: 0; background: none; padding: 2px 0; color: var(--gold); font: 600 13px var(--f-ui); cursor: pointer; }
.cr-btog:hover { color: var(--gold-hi); text-decoration: underline; }
.cr-btog:disabled { opacity: .4; cursor: default; text-decoration: none; }
.cr-bf:not(.on) .cr-bamt { opacity: .45; }
.cr-bf.on .cr-bamt { box-shadow: inset 0 0 0 1px rgb(243 234 214 / .35); }
/* while both bets fly: Cash out A and Cash out B at the foot of the stage, right of the plate */
.cr-cash { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 8px; }
.cr-cash[hidden] { display: none; }
.cr-cash .gm-sec { --k: 8px; --fill: var(--stage); min-width: 0; height: 40px; padding: 0 14px; font: 600 14px/1 var(--f-ui); }
.cr-cash .cr-cash-b { --lnc: rgb(243 234 214 / .7); color: var(--ivory); }
.cr-cash .gm-sec.done { opacity: .55; }
.gm-stats dd.cr-dd2 { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.cr-two { display: block; font-size: 15px; line-height: 1.1; }
.cr-two.b { color: var(--ivory); }
@media (max-width: 899px) { .cr-cash { right: 8px; bottom: 10px; gap: 6px; } .cr-cash .gm-sec { height: 38px; padding: 0 10px; } .cr-co { display: none; } }
