#history-close-btn {
  top: calc(env(safe-area-inset-top, 0px) + 20px) !important;
  right: max(env(safe-area-inset-right), 2%) !important;
}

.history.title {
  background: linear-gradient(180deg, #1b213d 0%, #2C3560 32%, #2C3560 72%, #1f2646 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  font-family: var(--basic-font);
  font-size: clamp(16px, 3.5vh, 20px);
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: visible;
  text-align: center;
}
.history.title::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 -0.5px 0 rgba(36, 44, 79, 0.55), 0 0.5px 0 rgba(176, 187, 211, 0.85);
  filter: none;
  transform: none;
}

.history-bet, .history-win {
  font-size: clamp(12px, 2vw, 14px);
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, var(--history-col-date)) minmax(0, var(--history-col-bet)) minmax(var(--history-col-win-min), 1fr);
  column-gap: var(--history-gap);
  align-items: center;
  padding: 6px var(--history-pad-x);
}

.history-head {
  display: grid;
  grid-template-columns: minmax(0, var(--history-col-date)) minmax(0, var(--history-col-bet)) minmax(var(--history-col-win-min), 1fr);
  column-gap: var(--history-gap);
  padding: 4px var(--history-pad-x) 8px;
  color: #fff;
  font-family: var(--basic-font);
  font-size: clamp(12px, 3.8vw, 14px);
  font-style: normal;
  font-weight: 700;
  line-height: clamp(16px, 4.8vw, 18px);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
