/* === crash-round.css === */
.crash-round { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px 16px; background: #131A2E; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 16px; }
.crash-round .crash-round-title { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: #F97316; text-align: center; }
.crash-round h2.crash-round-title, .crash-round h3.crash-round-title, .crash-round h4.crash-round-title { font-size: 12px; letter-spacing: 0.14em; }
.crash-round .crash-round-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; margin: 0; overflow: hidden; background: radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.14) 0%, rgba(15, 23, 42, 0) 60%), #0B1120; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 12px; }
.crash-round .crash-round-canvas { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.crash-round .crash-round-readout { position: absolute; top: 14px; left: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.crash-round .crash-round-phase { display: inline-block; padding: 4px 10px; background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #94A3B8; }
.crash-round .crash-round-multiplier { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: #ffffff; font-variant-numeric: tabular-nums; }
.crash-round.is-open .crash-round-phase { color: #93C5FD; border-color: rgba(147, 197, 253, 0.45); }
.crash-round.is-rising .crash-round-phase { color: #FBBF24; border-color: rgba(251, 191, 36, 0.45); }
.crash-round.is-rising .crash-round-multiplier { color: #FED7AA; }
.crash-round.is-crashed .crash-round-phase { color: #FCA5A5; border-color: rgba(239, 68, 68, 0.55); }
.crash-round.is-crashed .crash-round-multiplier { color: #F87171; }
.crash-round .crash-round-countdown { position: absolute; left: 12px; right: 12px; bottom: 10px; display: block; height: 4px; background: rgba(148, 163, 184, 0.12); border-radius: 999px; overflow: hidden; opacity: 0; transition: opacity 0.2s; }
.crash-round .crash-round-countdown-fill { display: block; width: 100%; height: 100%; background: #93C5FD; border-radius: 999px; transform-origin: left center; }
.crash-round .crash-round-countdown.is-counting { opacity: 1; }
.crash-round .crash-round-countdown.is-counting .crash-round-countdown-fill { animation: crashRoundCountdown 1.4s linear both; }
.crash-round .crash-round-history { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; margin: 0; }
.crash-round .crash-round-history-label { margin: 0 4px 0 0; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.crash-round .crash-round-history-empty { font-size: 13px; line-height: 1.4; color: #64748B; }
.crash-round .crash-round-history.has-rounds .crash-round-history-empty { display: none; }
.crash-round .crash-round-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.crash-round .crash-round-chip-low { background: rgba(147, 197, 253, 0.12); color: #93C5FD; }
.crash-round .crash-round-chip-mid { background: rgba(251, 191, 36, 0.12); color: #FBBF24; }
.crash-round .crash-round-chip-high { background: rgba(249, 115, 22, 0.16); color: #FB923C; }
.crash-round .crash-round-chip.is-new { animation: crashRoundChipIn 0.35s ease-out both; }
.crash-round .crash-round-result { min-height: 44px; margin: 0; font-size: 15px; line-height: 1.5; color: #CBD5E1; text-align: center; }
.crash-round .crash-round-actions { display: flex; justify-content: center; margin: 0; }
.crash-round .crash-round-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; background: transparent; border: 1px solid rgba(249, 115, 22, 0.55); border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.2; color: #ffffff; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.crash-round .crash-round-button:hover { background-color: rgba(249, 115, 22, 0.12); border-color: #F97316; }
.crash-round .crash-round-button:focus-visible { outline: 2px solid #93C5FD; outline-offset: 3px; }
.crash-round .crash-round-button:disabled { opacity: 0.5; cursor: wait; }
.crash-round .crash-round-note { margin: 0; font-size: 13px; line-height: 1.5; color: #94A3B8; text-align: center; }
@keyframes crashRoundCountdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes crashRoundChipIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .crash-round .crash-round-countdown.is-counting .crash-round-countdown-fill, .crash-round .crash-round-chip.is-new { animation: none; }
}
@media (min-width: 768px) {
  .crash-round { padding: 24px; gap: 16px; }
  .crash-round .crash-round-multiplier { font-size: 52px; }
  .crash-round .crash-round-stage { aspect-ratio: 16 / 11; }
  .crash-round .crash-round-readout { top: 18px; }
}
@media (min-width: 1024px) {
  .crash-round .crash-round-multiplier { font-size: 56px; }
}

/* === crash-target.css === */
.crash-target { display: flex; flex-direction: column; gap: 20px; margin: 0 0 32px; padding: 16px; background: #131A2E; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 14px; }
.crash-target .crash-target-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; }
.crash-target .crash-target-controls { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.crash-target .crash-target-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.crash-target .crash-target-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.crash-target .crash-target-option { min-height: 40px; min-width: 76px; padding: 8px 14px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; color: #CBD5E1; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.crash-target .crash-target-option:hover { border-color: rgba(249, 115, 22, 0.45); }
.crash-target .crash-target-option.is-active { background: rgba(249, 115, 22, 0.14); border-color: #F97316; color: #ffffff; }
.crash-target .crash-target-option:focus-visible, .crash-target .crash-target-button:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
.crash-target .crash-target-slider { display: block; margin: 0; }
.crash-target .crash-target-value { margin: 0 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: 0; text-transform: none; color: #F97316; font-variant-numeric: tabular-nums; }
.crash-target .crash-target-range { display: block; width: 100%; height: 28px; margin: 4px 0 0; accent-color: #F97316; cursor: pointer; }
.crash-target .crash-target-range:focus-visible { outline: 2px solid #93C5FD; outline-offset: 4px; }
.crash-target .crash-target-ends { display: flex; justify-content: space-between; margin: 2px 0 0; font-size: 12px; line-height: 1.3; color: #64748B; }
.crash-target .crash-target-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 14px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; }
.crash-target .crash-target-stat { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 0 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.10); }
.crash-target .crash-target-stat:last-child { padding: 0; border-bottom: 0; }
.crash-target .crash-target-stat-label { font-size: 13px; line-height: 1.4; color: #94A3B8; }
.crash-target .crash-target-stat-value { font-size: 20px; font-weight: 800; line-height: 1.25; color: #ffffff; font-variant-numeric: tabular-nums; }
.crash-target .crash-target-stat-hint { font-size: 13px; font-weight: 400; line-height: 1.4; color: #94A3B8; }
.crash-target .crash-target-stat-return .crash-target-stat-value { color: #F97316; }
.crash-target .crash-target-formula { margin: 0; padding: 10px 12px; background: rgba(249, 115, 22, 0.08); border: 1px solid rgba(249, 115, 22, 0.25); border-radius: 10px; font-size: 14px; line-height: 1.5; color: #FED7AA; font-variant-numeric: tabular-nums; }
.crash-target .crash-target-sample { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 14px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; }
.crash-target .crash-target-sample-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.crash-target .crash-target-sample-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: #ffffff; }
.crash-target h2.crash-target-sample-title, .crash-target h3.crash-target-sample-title, .crash-target h4.crash-target-sample-title { font-size: 17px; }
.crash-target .crash-target-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 18px; background: transparent; border: 1px solid rgba(249, 115, 22, 0.55); border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.2; color: #ffffff; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.crash-target .crash-target-button:hover { background-color: rgba(249, 115, 22, 0.12); border-color: #F97316; }
.crash-target .crash-target-canvas { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0; background: #0B1120; border-radius: 10px; }
.crash-target .crash-target-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.crash-target .crash-target-key { position: relative; margin: 0; padding: 0 0 0 22px; font-size: 13px; line-height: 1.4; color: #CBD5E1; }
.crash-target .crash-target-key::before { content: ""; position: absolute; top: 8px; left: 0; width: 16px; height: 3px; border-radius: 2px; background: #F97316; }
.crash-target .crash-target-key-rtp::before { height: 0; background: transparent; border-top: 2px dashed #93C5FD; }
.crash-target .crash-target-summary { margin: 0; font-size: 14px; line-height: 1.6; color: #CBD5E1; }
.crash-target .crash-target-summary strong { color: #ffffff; }
.crash-target .crash-target-note { margin: 0; font-size: 14px; line-height: 1.6; color: #94A3B8; }
.crash-target .crash-target-action { display: contents; }
.crash-target .crash-target-field { display: contents; }
@media (min-width: 768px) {
  .crash-target { gap: 22px; padding: 24px; }
  .crash-target .crash-target-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 18px; }
  .crash-target .crash-target-stat { padding: 0; border-bottom: 0; }
  .crash-target .crash-target-sample { padding: 20px; }
  .crash-target .crash-target-sample-title, .crash-target h2.crash-target-sample-title, .crash-target h3.crash-target-sample-title, .crash-target h4.crash-target-sample-title { font-size: 19px; }
  .crash-target .crash-target-canvas { aspect-ratio: 21 / 8; }
}
@media (min-width: 1024px) {
  .crash-target .crash-target-main { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 20px; }
  .crash-target .crash-target-formula { grid-column: 1 / -1; }
}

/* === crash-streak.css === */
.crash-streak { display: flex; flex-direction: column; gap: 20px; margin: 0 0 32px; padding: 16px; background: #131A2E; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 14px; }
.crash-streak .crash-streak-controls { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.crash-streak .crash-streak-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.crash-streak .crash-streak-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.crash-streak .crash-streak-option { min-height: 40px; min-width: 56px; padding: 8px 12px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; color: #CBD5E1; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; font-variant-numeric: tabular-nums; }
.crash-streak .crash-streak-option:hover { border-color: rgba(249, 115, 22, 0.45); }
.crash-streak .crash-streak-option.is-active { background: rgba(249, 115, 22, 0.14); border-color: #F97316; color: #ffffff; }
.crash-streak .crash-streak-option:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
.crash-streak .crash-streak-slider { display: block; margin: 0; }
.crash-streak .crash-streak-rounds { margin: 0 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: 0; text-transform: none; color: #F97316; font-variant-numeric: tabular-nums; }
.crash-streak .crash-streak-range { display: block; width: 100%; height: 28px; margin: 4px 0 0; accent-color: #F97316; cursor: pointer; }
.crash-streak .crash-streak-range:focus-visible { outline: 2px solid #93C5FD; outline-offset: 4px; }
.crash-streak .crash-streak-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; }
.crash-streak .crash-streak-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; }
.crash-streak .crash-streak-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 14px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; }
.crash-streak .crash-streak-stat-label { font-size: 14px; line-height: 1.4; color: #CBD5E1; }
.crash-streak .crash-streak-stat-value { flex-shrink: 0; font-size: 18px; font-weight: 800; line-height: 1.2; color: #ffffff; text-align: right; font-variant-numeric: tabular-nums; }
.crash-streak .crash-streak-stat-below .crash-streak-stat-value { color: #F97316; }
.crash-streak .crash-streak-chart { margin: 0; padding: 16px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; }
.crash-streak .crash-streak-title { margin: 0 0 14px; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: #ffffff; }
.crash-streak h2.crash-streak-title, .crash-streak h3.crash-streak-title, .crash-streak h4.crash-streak-title { font-size: 17px; }
.crash-streak .crash-streak-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.crash-streak .crash-streak-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; margin: 0; }
.crash-streak .crash-streak-name { font-size: 14px; font-weight: 600; line-height: 1.4; color: #CBD5E1; }
.crash-streak .crash-streak-value { font-size: 15px; font-weight: 800; line-height: 1.2; color: #ffffff; text-align: right; font-variant-numeric: tabular-nums; }
.crash-streak .crash-streak-bar { grid-column: 1 / -1; grid-row: 2; display: block; height: 10px; background: rgba(148, 163, 184, 0.10); border-radius: 999px; overflow: hidden; }
.crash-streak .crash-streak-fill { display: block; width: 0; height: 100%; background: #F97316; border-radius: 999px; transition: width 0.35s ease-out; }
.crash-streak .crash-streak-row.is-current .crash-streak-name { color: #F97316; }
.crash-streak .crash-streak-row.is-current .crash-streak-bar { box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.6); }
.crash-streak .crash-streak-w1 { width: 1%; }
.crash-streak .crash-streak-w5 { width: 5%; }
.crash-streak .crash-streak-w10 { width: 10%; }
.crash-streak .crash-streak-w15 { width: 15%; }
.crash-streak .crash-streak-w20 { width: 20%; }
.crash-streak .crash-streak-w25 { width: 25%; }
.crash-streak .crash-streak-w30 { width: 30%; }
.crash-streak .crash-streak-w35 { width: 35%; }
.crash-streak .crash-streak-w40 { width: 40%; }
.crash-streak .crash-streak-w45 { width: 45%; }
.crash-streak .crash-streak-w50 { width: 50%; }
.crash-streak .crash-streak-w55 { width: 55%; }
.crash-streak .crash-streak-w60 { width: 60%; }
.crash-streak .crash-streak-w65 { width: 65%; }
.crash-streak .crash-streak-w70 { width: 70%; }
.crash-streak .crash-streak-w75 { width: 75%; }
.crash-streak .crash-streak-w80 { width: 80%; }
.crash-streak .crash-streak-w85 { width: 85%; }
.crash-streak .crash-streak-w90 { width: 90%; }
.crash-streak .crash-streak-w95 { width: 95%; }
.crash-streak .crash-streak-w100 { width: 100%; }
.crash-streak .crash-streak-note { margin: 0; font-size: 14px; line-height: 1.6; color: #94A3B8; }
.crash-streak .crash-streak-field { display: contents; }
@media (prefers-reduced-motion: reduce) {
  .crash-streak .crash-streak-fill { transition: none; }
}
@media (min-width: 768px) {
  .crash-streak { gap: 22px; padding: 24px; }
  .crash-streak .crash-streak-controls { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: end; }
  .crash-streak .crash-streak-chart { padding: 20px; }
  .crash-streak .crash-streak-title, .crash-streak h2.crash-streak-title, .crash-streak h3.crash-streak-title, .crash-streak h4.crash-streak-title { font-size: 19px; }
  .crash-streak .crash-streak-row { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 72px; gap: 14px; align-items: center; }
  .crash-streak .crash-streak-bar { grid-column: 2; grid-row: 1; }
}
@media (min-width: 1024px) {
  .crash-streak .crash-streak-body { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 20px; }
}
