.content.crash-active {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.crash-game-embedded-mount {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.bl-crash-shell {
  --cr-purple: var(--bl-purple-700, #761083);
  --cr-deep: #21002b;
  --cr-cyan: var(--bl-cyan, #15c7e8);
  --cr-gold: #ffd75a;
  --cr-pink: #d82970;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(5px, 0.8vh, 9px);
  padding: clamp(5px, 0.9vh, 10px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 215, 90, 0.18), transparent 22%),
    radial-gradient(circle at 78% 20%, rgba(21, 199, 232, 0.26), transparent 22%),
    linear-gradient(180deg, rgba(34, 0, 42, 0.95), rgba(94, 0, 98, 0.82)),
    url("../../../img/logo/logogrand.png") center / min(72vw, 920px) auto no-repeat;
}

.bl-crash-shell *,
.bl-crash-shell *::before,
.bl-crash-shell *::after {
  box-sizing: border-box;
}

.bl-crash-top {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(76px, 112px) minmax(96px, 136px) minmax(106px, 150px);
  gap: 7px;
  align-items: stretch;
}

.bl-crash-brand,
.bl-crash-field,
.bl-crash-result,
.bl-crash-panel,
.bl-crash-note {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(24, 0, 32, 0.8);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.bl-crash-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  overflow: hidden;
}

.bl-crash-brand img {
  width: clamp(32px, 4.5vh, 44px);
  height: clamp(32px, 4.5vh, 44px);
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  flex: 0 0 auto;
}

.bl-crash-brand > div {
  min-width: 0;
}

.bl-crash-brand strong {
  display: block;
  color: #fff;
  font-size: clamp(15px, 1.55vw, 24px);
  font-weight: 900;
  line-height: 1;
}

.bl-crash-brand span {
  display: block;
  color: var(--cr-cyan);
  font-weight: 800;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bl-crash-field {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 5px 8px;
}

.bl-crash-field span,
.bl-crash-result span,
.bl-crash-panel h3 {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.bl-crash-field select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #211526;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 900;
  padding: 0 6px;
}

.bl-crash-start,
.bl-crash-cashout {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  font-size: clamp(11px, 1vw, 15px);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.bl-crash-start {
  background: linear-gradient(135deg, var(--cr-cyan), #c01ec9 62%, var(--cr-purple));
}

.bl-crash-cashout {
  color: #2d0935;
  background: linear-gradient(135deg, #fff7c6, var(--cr-gold));
}

.bl-crash-start:disabled,
.bl-crash-cashout:disabled,
.bl-crash-field select:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.bl-crash-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(174px, 260px);
  gap: clamp(6px, 0.9vw, 10px);
  overflow: hidden;
}

.bl-crash-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(7px, 1vh, 12px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.15), transparent 16%),
    linear-gradient(145deg, #063347, #2b0738 58%, #52005c);
  box-shadow: inset 0 0 44px rgba(0, 0, 0, 0.34), 0 16px 36px rgba(0, 0, 0, 0.24);
  padding: clamp(8px, 1vw, 14px);
  overflow: hidden;
}

.bl-crash-graph {
  position: relative;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 25% 20%, rgba(21, 199, 232, 0.26), transparent 28%),
    radial-gradient(circle at 78% 28%, rgba(255, 215, 90, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(5, 42, 63, 0.94), rgba(38, 0, 49, 0.96));
  background-size: auto, 9% 13%, auto, auto, auto;
  overflow: hidden;
}

.bl-crash-graph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 60%) var(--my, 34%), rgba(255, 255, 255, 0.12), transparent 18%);
  pointer-events: none;
}

.bl-crash-graph svg {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 82%;
  overflow: visible;
}

.bl-crash-graph path {
  fill: none;
  stroke: var(--cr-cyan);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(21, 199, 232, 0.8));
}

.bl-crash-graph path::selection {
  background: transparent;
}

.bl-crash-orb-placeholder {
  display: none;
}

.bl-crash-graph i {
  position: absolute;
  width: clamp(44px, 6vw, 72px);
  height: clamp(44px, 6vw, 72px);
  left: 5%;
  top: 90%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2a0035;
  font-style: normal;
  font-weight: 950;
  background:
    radial-gradient(circle at 30% 25%, #fff, #f9e67b 34%, #18c7e8 72%, #c51fb5);
  box-shadow: 0 0 24px rgba(21, 199, 232, 0.42), 0 12px 26px rgba(0, 0, 0, 0.32);
  transition: left 0.08s linear, top 0.08s linear, filter 0.2s ease, transform 0.2s ease;
}

.bl-crash-graph i span {
  transform: rotate(-8deg);
}

.bl-crash-stage.is-cashed .bl-crash-graph i {
  filter: drop-shadow(0 0 18px rgba(255, 215, 90, 0.8));
  transform: translate(-50%, -50%) scale(1.06);
}

.bl-crash-stage.is-crashed .bl-crash-graph i {
  filter: grayscale(0.45) drop-shadow(0 0 18px rgba(216, 41, 112, 0.65));
  transform: translate(-50%, -50%) scale(0.96);
}

.bl-crash-graph strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(48px, 9vw, 118px);
  font-weight: 950;
  line-height: 0.9;
  text-shadow: 0 5px 18px rgba(34, 0, 44, 0.65);
  pointer-events: none;
}

.bl-crash-graph small {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bl-crash-stats {
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.bl-crash-stats span,
.bl-crash-panel span,
.bl-crash-history li {
  min-width: 0;
  border-radius: 8px;
  background: rgba(24, 0, 32, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 6px 8px;
}

.bl-crash-stats b,
.bl-crash-panel b,
.bl-crash-history span {
  color: rgba(255, 255, 255, 0.64);
  font-size: clamp(9px, 0.9vw, 12px);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bl-crash-stats strong,
.bl-crash-panel strong,
.bl-crash-history strong {
  color: #fff;
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bl-crash-side {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(70px, 0.58fr) minmax(112px, 0.96fr) minmax(130px, 1.26fr) minmax(44px, 0.32fr);
  gap: 7px;
  overflow: hidden;
}

.bl-crash-result,
.bl-crash-panel,
.bl-crash-note {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.bl-crash-result {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 6px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 215, 90, 0.2), transparent 42%),
    rgba(24, 0, 32, 0.84);
}

.bl-crash-result strong {
  color: #fff;
  font-size: clamp(17px, 1.7vw, 28px);
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.bl-crash-result small {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(10px, 0.9vw, 13px);
  font-weight: 900;
}

.bl-crash-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 5px;
  padding: 7px;
}

.bl-crash-panel > div {
  min-height: 0;
  display: grid;
  gap: 4px;
  overflow: hidden;
}

.bl-crash-panel span {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 24px;
  padding: 4px 6px;
}

.bl-crash-history ol {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.bl-crash-history li {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 24px;
  padding: 4px 6px;
}

.bl-crash-history li.is-win strong {
  color: var(--cr-cyan);
}

.bl-crash-history li.is-lose strong {
  color: rgba(255, 255, 255, 0.72);
}

.bl-crash-note {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(8px, 0.72vw, 11px);
  font-weight: 800;
  line-height: 1.18;
}

@media only screen and (max-width: 900px) {
  .bl-crash-top {
    grid-template-columns: minmax(116px, 1fr) minmax(62px, 84px) minmax(72px, 98px) minmax(80px, 112px);
    gap: 5px;
  }

  .bl-crash-main {
    grid-template-columns: minmax(0, 1fr) minmax(142px, 190px);
  }
}

@media only screen and (max-width: 640px) {
  .bl-crash-shell {
    gap: 4px;
    padding: 4px;
  }

  .bl-crash-top {
    min-height: 66px;
    display: flex;
    flex-wrap: wrap;
    align-content: stretch;
    gap: 4px;
  }

  .bl-crash-brand {
    flex: 0 1 calc(100% - 92px);
    max-width: calc(100% - 92px);
    height: 32px;
    gap: 5px;
    padding: 4px;
  }

  .bl-crash-field {
    flex: 0 1 calc(50% - 2px);
    max-width: calc(50% - 2px);
    height: 30px;
    padding: 3px 4px;
  }

  .bl-crash-start {
    flex: 0 0 88px;
    max-width: 88px;
    height: 32px;
  }

  .bl-crash-cashout {
    flex: 0 1 calc(50% - 2px);
    max-width: calc(50% - 2px);
    height: 30px;
  }

  .bl-crash-brand img {
    width: 28px;
    height: 28px;
  }

  .bl-crash-brand strong {
    font-size: 12px;
  }

  .bl-crash-brand span,
  .bl-crash-field span {
    font-size: 8px;
  }

  .bl-crash-field select {
    min-height: 22px;
    font-size: 10px;
    padding: 0 2px;
  }

  .bl-crash-start,
  .bl-crash-cashout {
    min-height: 28px;
    font-size: 8px;
    padding: 0 2px;
  }

  .bl-crash-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(96px, 116px);
    gap: 4px;
  }

  .bl-crash-stage {
    gap: 5px;
    padding: 6px;
  }

  .bl-crash-graph i {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .bl-crash-graph small {
    font-size: 9px;
    bottom: 8px;
  }

  .bl-crash-stats {
    min-height: 40px;
    gap: 4px;
  }

  .bl-crash-stats span {
    padding: 3px 4px;
  }

  .bl-crash-stats b,
  .bl-crash-panel b,
  .bl-crash-history span {
    font-size: 7px;
  }

  .bl-crash-stats strong,
  .bl-crash-panel strong,
  .bl-crash-history strong {
    font-size: 10px;
  }

  .bl-crash-side {
    grid-template-columns: 0.8fr 1.2fr 1.05fr 0.75fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 4px;
  }

  .bl-crash-panel,
  .bl-crash-result,
  .bl-crash-note {
    padding: 4px;
  }

  .bl-crash-panel h3,
  .bl-crash-result span {
    font-size: 7px;
  }

  .bl-crash-panel > div,
  .bl-crash-history ol {
    gap: 2px;
  }

  .bl-crash-panel span,
  .bl-crash-history li {
    min-height: 15px;
    padding: 1px 3px;
  }

  .bl-crash-result strong {
    font-size: 12px;
  }

  .bl-crash-result small,
  .bl-crash-note {
    font-size: 6.5px;
    line-height: 1.05;
  }
}
