.hilo-body {
  background: #0d202b;
}

.hilo-stage {
  display: grid;
  gap: 0.9rem;
}

.hilo-bet-panel {
  display: grid;
  gap: 0.8rem;
}

.hilo-bet-panel .button {
  width: 100%;
  min-height: 2.7rem;
}

.hilo-bet-panel .button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  filter: saturate(0.65);
}

.call-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  text-align: left;
}

.call-button strong {
  font-size: 0.9rem;
}

.hilo-profit-box {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  min-height: 3.3rem;
  padding: 0.8rem;
  border-radius: 0.45rem;
  background: #102a38;
  color: #d7e6ef;
}

.hilo-profit-box span {
  min-width: 0;
  color: #b9cad7;
}

.hilo-note {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border-radius: 0.45rem;
  background: #123442;
  color: #b9cad7;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hilo-note strong {
  color: #e7f3f8;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hilo-table-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(14rem, 1fr) auto auto;
  gap: 1rem;
  min-height: 34rem;
  padding: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(38, 86, 119, 0.35), transparent 20rem),
    linear-gradient(180deg, #0b1c28, #071a23);
}

.hilo-body .round-banner {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(31rem, 100%);
  transform: none;
  background: rgba(19, 48, 64, 0.96);
}

.hilo-body .round-banner.win {
  background: rgba(35, 211, 158, 0.94);
  color: #03150f;
}

.hilo-body .round-banner.loss {
  background: rgba(255, 40, 84, 0.94);
}

.current-card-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 16rem;
}

.current-card-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  width: 6.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(0.25rem);
  transform: translateX(-50%);
}

.hilo-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 4.45rem;
  height: 6.25rem;
  padding: 0.55rem;
  border-radius: 0.4rem;
  background: #f7f7f5;
  color: #142431;
  box-shadow: 0 0.3rem 0 rgba(255, 255, 255, 0.68), 0 0.7rem 1rem rgba(0, 0, 0, 0.28);
}

.hilo-card.red {
  color: #e8174f;
}

.hilo-card.current {
  width: 5.95rem;
  height: 8.2rem;
  border: 0.24rem solid #23d49d;
  transform: translateY(-0.25rem);
  transition: transform 160ms ease, border-color 160ms ease;
}

.hilo-card.current.loss {
  border-color: #ff2854;
}

.hilo-card.dimmed {
  opacity: 0.52;
}

.hilo-card .rank {
  font-size: 1.2rem;
  line-height: 1;
}

.hilo-card.current .rank {
  font-size: 1.9rem;
}

.hilo-card .suit-centre {
  display: grid;
  place-items: center;
  font-size: 1.9rem;
}

.hilo-card.current .suit-centre {
  font-size: 3rem;
}

.hilo-card .suit-bottom {
  justify-self: end;
  align-self: end;
  font-size: 1rem;
  transform: rotate(180deg);
}

.hilo-card.back {
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    #2c5267;
  color: #9fd7f3;
}

.hilo-card.back::before {
  content: "HL";
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 0.18rem solid rgba(159, 215, 243, 0.72);
  font-weight: 900;
}

.card-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  min-height: 1.1rem;
  border-radius: 0 0 0.35rem 0.35rem;
  background: #23d49d;
  color: #03150f;
  font-size: 0.72rem;
  font-weight: 900;
}

.card-badge.loss {
  background: #ff2854;
  color: #ffffff;
}

.hilo-card-rail {
  display: flex;
  gap: 0.45rem;
  min-height: 7.2rem;
  padding: 0.45rem;
  overflow-x: auto;
  border-radius: 0.45rem;
  background: #061923;
}

.hilo-card-rail .hilo-card {
  flex: 0 0 auto;
}

.hilo-card-rail .hilo-card::after {
  content: attr(data-action);
  position: absolute;
  right: -0.55rem;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.92);
  color: #23a573;
  font-size: 0.8rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.hilo-card-rail .hilo-card:last-child::after,
.hilo-card-rail .hilo-card[data-action=""]::after {
  display: none;
}

.hilo-projections {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0.8rem;
  border-radius: 0.45rem;
  background: #163645;
}

.hilo-projections > div {
  display: grid;
  gap: 0.25rem;
}

.hilo-projections span {
  color: #b8cad5;
  font-size: 0.82rem;
  font-weight: 800;
}

.hilo-projections strong {
  display: block;
  padding: 0.6rem;
  border-radius: 0.35rem;
  background: #0a2230;
  color: #ffffff;
}

.hilo-extreme-note {
  position: absolute;
  top: 9rem;
  z-index: 0;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  width: 7rem;
  color: rgba(184, 202, 213, 0.6);
  text-align: center;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.hilo-extreme-note.left {
  left: 4rem;
}

.hilo-extreme-note.right {
  right: 4rem;
}

.ghost-card {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 6.1rem;
  border: 1px solid rgba(148, 178, 196, 0.22);
  border-radius: 0.45rem;
  color: rgba(184, 202, 213, 0.24);
  font-size: 1.9rem;
  font-weight: 900;
}

.hilo-body .live-stats-drawer {
  padding: 1rem;
  min-width: 19rem;
}

.hilo-body .live-stats-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hilo-body .live-stats-header h2 {
  display: flex;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
}

.hilo-body .live-stats-header h2 span {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.7rem;
}

.hilo-body .live-stats-header .icon-button,
.hilo-body .stats-filter-row .icon-button {
  flex: 0 0 auto;
  min-width: 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.hilo-body .stats-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.hilo-body .live-stats-metrics {
  grid-template-columns: minmax(0, 1.45fr) minmax(3.2rem, 0.7fr);
  gap: 0;
  padding: 0.85rem;
  margin-bottom: 0.85rem;
}

.hilo-body .live-stats-metrics > div {
  min-width: 0;
  min-height: 3.5rem;
  padding: 0.2rem 0.7rem;
}

.hilo-body .live-stats-metrics strong {
  max-width: 100%;
  font-size: clamp(0.72rem, 3vw, 0.96rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hilo-body .live-stats-metrics .credit-dot {
  flex: 0 0 auto;
  vertical-align: top;
}

.hilo-body .live-stats-metrics .metric-with-credit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.25rem;
}

.hilo-body .live-stats-metrics .metric-with-credit .label {
  grid-column: 1 / -1;
}

.hilo-body .stats-chart {
  height: 13.75rem;
  padding: 0.8rem;
  overflow: hidden;
}

.hilo-body .chart-loss-fill {
  fill: rgba(255, 40, 84, 0.24);
}

.hilo-game-layout.stats-open {
  grid-template-columns: 19rem 18rem minmax(0, 1fr);
}

@media (max-width: 980px) {
  .hilo-table-panel {
    min-height: 30rem;
  }

  .hilo-extreme-note {
    display: none;
  }

  .hilo-card.current {
    width: 5rem;
    height: 7rem;
  }

  .hilo-projections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hilo-table-panel {
    padding: 0.8rem;
  }

  .current-card-wrap {
    min-height: 12rem;
  }

  .hilo-card {
    width: 3.5rem;
    height: 5rem;
    padding: 0.45rem;
  }

  .hilo-card.current {
    width: 4.4rem;
    height: 6.1rem;
  }

  .hilo-card .rank {
    font-size: 1rem;
  }

  .hilo-card.current .rank {
    font-size: 1.5rem;
  }

  .hilo-card .suit-centre {
    font-size: 1.45rem;
  }

  .hilo-card.current .suit-centre {
    font-size: 2.2rem;
  }
}
