#content[data-game=crash] { width: min(100%,1440px); padding: 30px 32px 0; }
.crash-game { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
.crash-game > .page-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; column-gap: 12px; margin: 0; }
.crash-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(235px,290px); gap: 16px; align-items: start; }
.crash-main { display: grid; min-width: 0; gap: 11px; }
.crash-history { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; min-height: 44px; }
.crash-history > strong { font-size: 14px; }
.crash-history > span { font-size: 13px; color: var(--muted); }
.crash-history-points { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 4px 2px; margin: 0; list-style: none; }
.crash-history-points li {
  flex: none;
  border: 1px solid #d3afed23;
  border-radius: 10px;
  color: #d9bddf;
  background: #2a2036;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.crash-history-points li[data-tone=medium] { color: #c3ebdb; background: #1e332f; }
.crash-history-points li[data-tone=high] { color: #ffdeac; background: #423027; }
.crash-history-points li:first-child { border-color: currentColor; }
.crash-history-points button { padding: 5px 9px; border: 0; border-radius: inherit; color: inherit; background: none; font: inherit; cursor: pointer; }
.crash-stage {
  min-height: 0;
  isolation: isolate;
  border: 1px solid #debbff2c;
  border-radius: 24px;
  background: #191420;
  --crash-color: #e5d2f8;
}
.crash-stage[data-crash-phase=running] { --crash-color: #e1bcff; }
.crash-stage[data-crash-phase=settled] { --crash-color: #ffc0ab; }
.crash-stage canvas { width: 100%; height: clamp(310px,36vw,424px); }
.crash-stage-copy {
  position: absolute;
  inset: 12% 16px auto;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
}
.crash-phase {
  padding: 4px 10px;
  border: 1px solid #e9d8ff2b;
  border-radius: 999px;
  background: #21192fb3;
  color: #f2e9f8;
  font-size: 13px;
  font-weight: 600;
}
.crash-multiplier {
  color: var(--crash-color);
  font-size: clamp(38px,6.5vw,82px);
  font-weight: 750;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  text-shadow: 0 1px 24px #a169d355;
}
.crash-stage-copy p { margin: 0; color: #e1d2ec; font-size: 14px; }
.crash-stage-copy progress {
  appearance: none;
  width: min(210px,78%);
  height: 5px;
  margin-top: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e9d8ff24;
}
.crash-stage-copy progress::-webkit-progress-bar { background: #e9d8ff24; }
.crash-stage-copy progress::-webkit-progress-value { background: #be91ef; }
.crash-stage-copy progress::-moz-progress-bar { background: #be91ef; }
.crash-controls { padding: 16px; border-color: #d6a7f224; border-radius: 21px; background: #1c1725; }
.crash-controls h2 { margin: 0; font-size: 18px; }
.crash-controls form > .actions { display: grid; }
.crash-controls .button { min-height: 45px; border-radius: 13px; }
.crash-controls .notice { margin: 0; }
#crash-recovery:empty, #crash-next-recovery:empty, #crash-next-actions:empty { display: none; }
.crash-wager { font-size: 25px; color: #ecdcff; font-variant-numeric: tabular-nums; }
.crash-main #crash-result:empty { display: none; }
.crash-game #crash-info { margin: 0; }
.crash-game #crash-info > .stack, .crash-game #crash-info .form { grid-template-columns: minmax(0,1fr); }
.crash-game #crash-info details, .crash-game #crash-info .form :is(label,input) { min-width: 0; }
.crash-sound[aria-pressed=true] { color: #eddbff; border-color: #bd98e95e; }
@media (max-width: 768px) {
  #content[data-game=crash] { padding: 20px 16px 0; }
  .crash-layout { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .crash-stage canvas { height: clamp(272px,70vw,340px); }
  .crash-stage { border-radius: 19px; }
  .crash-stage-copy { inset-block-start: 11%; }
  .crash-multiplier { font-size: clamp(40px,12vw,58px); }
  .crash-controls { padding: 13px; }
}
