/* region TOP BAR */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding:
          calc(env(safe-area-inset-top, 0px) + 10px)
          max(env(safe-area-inset-right), 2%);
          env(safe-area-inset-bottom, 0px)
          max(env(safe-area-inset-left), 2%);
  gap: 12px;
  pointer-events: none;
  justify-content: flex-end;
}
.topbar-message {
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--basic-font);
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(85.27% 86.29% at 50% 13.71%, rgba(46, 56, 102, 0.50) 0%, rgba(67, 79, 135, 0.50) 33.98%, rgba(165, 175, 220, 0.50) 80.75%);
  box-shadow: 0 0.7px 0 0 rgba(255, 255, 255, 0.55) inset, 0 0 2px 0 rgba(255, 255, 255, 0.60) inset, 0 1px 2px 0 rgba(9, 33, 63, 0.90);
  backdrop-filter: blur(10px);
  overflow: visible;
}
.topbar-message-text {
  position: relative;
  display: block;
  padding: 0 4px;
  overflow: visible;
  line-height: 1;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  white-space: nowrap;
}
.topbar-message-text::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(180deg, #1C2343 0%, #4758A9 100%);

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;

  -webkit-text-stroke: 3px #4758A9;

  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));

  display: block;
  width: 100%;
  white-space: inherit;
  line-height: inherit;
  text-align: inherit;
  font: inherit;
  letter-spacing: inherit;
}
.topbar-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
/* endregion */
/* region BOTTOM BAR */
.bottomBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottomPanel-h);
  width: 100%;
  box-sizing: border-box;
  background: var(--console-bg);

  display: grid;
  grid-template-columns: 35% 1fr 30%;
  align-items: center;
  gap: 12px;

  padding-left: max(env(safe-area-inset-left), 1%);
  padding-right: max(env(safe-area-inset-right), 2.5%);
}
.bottomBar-name {
  display: none;
  align-items: center;
  height: 100%;
  font-family: var(--basic-font);
  font-size: clamp(10px, calc(0.8dvw + 0.8dvh), 16px);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}
.bottomBar-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
}
.bottomBar-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  margin: 0;

  font-family: var(--basic-font);
  font-weight: 900;
  font-size: clamp(9px, 2.2vw, 16px);

  line-height: 100%;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}
.bottomBar-balance > span:first-child {
  color: #C0C9F6;
}

.bottomBar-balance [data-role="player-balance"] {
  color: #fff;
}
@media (orientation: landscape) {
  .bottomBar-balance {
    font-size: clamp(9px, 1.2vw, 16px);
  }
}
.bottomBar-balance span {
  font-size: clamp(11px, 2vw, 17px);
  font-weight: 800;
  color: #fff;
}
@media (orientation: landscape) {
  .bottomBar-balance span {
    font-size: clamp(12px, 1.2vw, 18px);
  }
}
.bottomBar-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.active-players {
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  white-space: nowrap;
  color: #FFFFFF;
  text-align: center;
  font-family: var(--basic-font);
  font-size: clamp(9px, 2.2vw, 14px);
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  flex: 0 0 auto;
}
@media (orientation: landscape) {
  .active-players {
    font-size: clamp(9px, 0.9vw, 14px);
  }
}
.active-players-icon {
  width: clamp(14px, 3.5vw, 24px);
  height: clamp(12px, 3vw, 20px);
  display: block;
  flex: 0 0 auto;
}
@media (orientation: landscape) {
  .active-players-icon {
    width: clamp(14px, 1.4vw, 24px);
    height: clamp(12px, 1.2vw, 20px);
  }
}
.ping {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  height: clamp(12px, 3vw, 20px);
  min-width: clamp(50px, 14vw, 90px);
  max-width: clamp(70px, 24vw, 120px);
  box-sizing: border-box;
  padding: 0 clamp(4px, 1.2vw, 6px);
  border-radius: clamp(8px, 2vw, 12px);
  white-space: nowrap;
  color: #c0c9f7;
  text-align: center;
  font-family: var(--basic-font);
  font-size: clamp(9px, 2.2vw, 16px);
  font-style: normal;
  line-height: 1;
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.ping::before,
.ping::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + clamp(1px, 0.25vw, 3px));
  border-radius: 50%;
  pointer-events: none;
}
.ping::before {
  width: clamp(12px, 2.8vw, 20px);
  height: clamp(12px, 2.8vw, 20px);
  transform: translate(calc(-50% + clamp(3.5px, 0.8vw, 6px)), -50%);
  filter: none;
  opacity: 0;
  z-index: 0;
}
.ping::after {
  width: clamp(7px, 1.6vw, 12px);
  height: clamp(7px, 1.6vw, 12px);
  transform: translateY(-50%);
  background-size: 200% 100%;
  box-shadow:
          rgba(255, 255, 255, 0.5) 0 0.5px 0.5px 0 inset,
          rgba(0, 0, 0, 0.25) 0 0.5px 0.5px 0;
  animation:
          ping-status-gradient 2.4s linear infinite,
          ping-status-pulse 1.5s ease-in-out infinite;
  z-index: 1;
}
.ping.is-good::after {
  background: linear-gradient(270deg, #269c50 11.61%, #17BA77 68.43%, #01E13C 97.09%);
}
.ping.is-good::before {
  background: rgba(23, 186, 119, 0.85);
  animation: ping-good-glow 1.5s ease-in-out infinite;
}
.ping.is-warn::after {
  background: linear-gradient(270deg, #D89702 11.61%, #FEDD09 68.43%, #F9F104 97.09%);
}
.ping.is-warn::before {
  background: rgba(254, 221, 9, 0.85);
  animation: ping-warn-glow 1.5s ease-in-out infinite;
}
.ping.is-bad::after {
  background: linear-gradient(270deg, #ec4242 11.61%, #f44545 68.43%, #FE5858 97.09%);
}
.ping.is-bad::before {
  background: rgba(244, 69, 69, 0.85);
  animation: ping-bad-glow 1.5s ease-in-out infinite;
}
@keyframes ping-status-gradient {
  0% {
    background-position: 0 center;
  }

  100% {
    background-position: 200% center;
  }
}
@keyframes ping-status-pulse {
  0%, 100% {
    transform: translateY(-50%) scale(0.92);
    filter: brightness(0.96);
  }

  50% {
    transform: translateY(-50%) scale(1.06);
    filter: brightness(1.08);
  }
}
@keyframes ping-good-glow {
  0%, 100% {
    opacity: .18;
    transform: translate(calc(-50% + clamp(3.5px, 0.8vw, 6px)), -50%) scale(.92);
  }
  50% {
    opacity: .38;
    transform: translate(calc(-50% + clamp(3.5px, 0.8vw, 6px)), -50%) scale(1.06);
  }
}
@keyframes ping-warn-glow {
  0%, 100% {
    opacity: .16;
    transform: translate(calc(-50% + clamp(3.5px, 0.8vw, 6px)), -50%) scale(.92);
  }
  50% {
    opacity: .34;
    transform: translate(calc(-50% + clamp(3.5px, 0.8vw, 6px)), -50%) scale(1.08);
  }
}
@keyframes ping-bad-glow {
  0%, 100% {
    opacity: .18;
    transform: translate(calc(-50% + clamp(3.5px, 0.8vw, 6px)), -50%) scale(.9);
  }
  50% {
    opacity: .42;
    transform: translate(calc(-50% + clamp(3.5px, 0.8vw, 6px)), -50%) scale(1.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ping::before,
  .ping::after {
    animation: none;
  }
}

.ping:not(.is-monitoring)::before,
.ping:not(.is-monitoring)::after {
  animation: none;
}

@media (orientation: landscape) {
  .ping {
    margin-top: -2px;
    height: clamp(12px, 1.2vw, 20px);
    min-width: clamp(50px, 7vw, 90px);
    max-width: clamp(70px, 10vw, 120px);

    padding: 0 clamp(2px, 0.8vw, 4px);
    border-radius: clamp(8px, 1vw, 12px);

    font-size: clamp(9px, 0.9vw, 16px);
  }
}
@media (orientation: portrait) {
  :root {
    --bottomPanel-h: clamp(16px, calc(1.5vh + 1.5vw), 26px);
    --gap-panel-console: clamp(8px, 2.6vw, 10px);
  }
}
@media (orientation: landscape) {
  :root {
    --bottomPanel-h: clamp(16px, calc(1.3vh + 1.3vw), 26px);
    --gap-panel-console: clamp(8px, 2.6vw, 10px);
  }
}
.bottomPanel-logo {
  display: block;
  width: clamp(54px, 7.3vw, 97px);
  height: clamp(18px, 2.05vw, 25px);
}
/* endregion */
/* region BUTTON MENU */
/* region Menu button base */
#menu-btn {
  width: 46px;
  height: 46px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  z-index: 2100;
}
#menu-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(100% 100% at 50% 0%,
              #B7C9E9 0%,
              #92A6CA 57.77%,
              #717FA9 100%);
  box-shadow: 0 0.587px 0 0 rgba(255, 255, 255, 0.55)
              inset, 0 1.676px 1.676px 0 rgba(0, 0, 0, 0.50);
}
/* endregion */
/* region Icon */
#menu-btn .icon {
  width: 26px;
  height: 26px;
  position: absolute;
  z-index: 1;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* region Menu burger */
#menu-btn .burger {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: .18s ease;
}
/* endregion */
/* region Open state: burger -> X */
#menu-btn.is-open .burger {
  opacity: 0;
  transform: scale(.98);
}
#menu-btn .x {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transform: scale(.98);
  transition: .18s ease;
}
#menu-btn.is-open .x {
  opacity: 1;
  transform: scale(1);
}
#menu-btn .burger,
#menu-btn .x {
  pointer-events: auto;
}
#game:has(#menu-overlay:not(.hidden)) #menu-btn .burger {
  opacity: 0;
  transform: scale(.98);
}
#game:has(#menu-overlay:not(.hidden)) #menu-btn .x {
  opacity: 1;
  transform: scale(1);
}
/* endregion */
/* endregion */
/* endregion */
/* region CONSOLE */
.bottom-tools {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottomPanel-h);
  z-index: 11;
  --r: clamp(16px, 6vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  overflow-x: hidden;
}
@media (orientation: portrait) {
  .bottom-tools.full .bets-toolbar {
    height: 30vh;
    max-height: 30vh;
  }
}
.bottom-tools.full .bets-toolbar__panel.is-active {
  flex: 1 1 auto;
  min-height: 0;
}
.bottom-tools.full .bets-toolbar__table-wrap {
  flex: 1 1 auto;
  min-height: 0;
}
.bottom-tools.full .console-block {
  max-height: 30vh;
}
.bets-toolbar__panel {
  display: none;
  min-height: 0;
}
.bets-toolbar__panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}
.console-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: calc(100vw - 14px);
  margin: 2px auto 0;
  max-height: calc(60vh - 78px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 2.3px 0 0;
  -webkit-mask-image: none;
  mask-image: none;
}
.console-block::-webkit-scrollbar {
  width: 3px;
}
.console-block::-webkit-scrollbar-track {
  background: transparent;
}
.console-block::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}
.console-block::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.55);
}
.console-item {
  position: relative;
  list-style: none;
  background: var(--console-bg);
  border-radius: var(--r);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--start-btn-size);
  column-gap: var(--gap);
  align-items: center;
  padding: clamp(4px, 1.4vw, 8px) clamp(8px, 1.6vw, 10px);
  backdrop-filter: blur(4px);
}
.console-item > .console-item-inner {
  display: contents;
}
.console-bg {
  position: absolute;
  inset: 0;
  background: var(--console-bg);
  border-radius: var(--r);
  z-index: 0;
  pointer-events: none;
}
.console-item > .console-item-inner > :not(.console-bg) {
  position: relative;
  z-index: 2;
}
/* endregion */
/* region BUTTON PLUS/MINUS */
.console-item > .console-item-inner > .console-corner-btn {
  position: absolute;
  top: -24px;
  right: -22px;
  z-index: 50;

  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  outline: none;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
  appearance: none;
}
.console-item > .console-item-inner > .console-corner-btn svg {
  pointer-events: auto;
}
.bet-panel-toggle-icon {
  width: 22px;
  height: 20px;
  display: block;
}
.bet-panel-toggle-icon.is-minus .icon-sign--vertical {
  display: none;
}
/* endregion */
/* region STATS */
.stats {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stats-right-col-w);
  grid-template-rows: var(--stats-row-1-h) var(--stats-row-2-h);
  gap: var(--gap);
  align-items: stretch;
}
.win {
  grid-column: 1;
  grid-row: 1;
}
.auto {
  grid-column: 2;
  grid-row: 1;
}
.bet {
  grid-column: 1;
  grid-row: 2;
}
.auto-cashout {
  grid-column: 2;
  grid-row: 2;
}
/* endregion */
/* region CELL BASE — appearance preserved */
.cell {
  height: auto;
  border-radius: var(--cell-radius);
  display: grid;
  align-content: center;
  min-width: 0;
  background: radial-gradient(100% 100% at 50% 0%, #6A739A 0%, #404972 57.77%, #3A4269 100%);
  box-shadow:
          0 0.5px 0 0 rgba(255, 255, 255, 0.55) inset,
          0 1.5px 1.5px 0 rgba(0, 0, 0, 0.50);
}
.cell .label {
  color: #C0C9F6;
  leading-trim: both;
  text-edge: cap;
  text-shadow: 0 1.2px 1.2px rgba(0, 0, 0, 0.70);
  font-family: var(--basic-font);
  font-size: var(--cell-label-font-size);
  font-style: normal;
  font-weight: var(--cell-label-font-weight);
  line-height: normal;
  text-transform: uppercase;
  text-align: center;
}
.cell .value {
  color: #FFF;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.70);
  font-family: var(--basic-font);
  font-style: normal;
  font-weight: var(--cell-value-font-weight);
  line-height: normal;
  text-transform: uppercase;
  font-size: var(--cell-value-font-size);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* exact row heights */
.win,
.auto {
  height: var(--stats-row-1-h);
}
.bet,
.auto-cashout {
  height: var(--stats-row-2-h);
}
/* endregion */
/* region WIN */
.cell.win {
  border-radius: 12px;
  display: flex;
  align-items: center;
  /*gap: clamp(10px, 2vw, 16px);*/
  padding-inline: clamp(6px, 1.8vw, 8px);
  border: 0.272px solid transparent;
  background: linear-gradient(90deg, #272A53 0%, #49517B 48.56%, #272A53 97.93%) padding-box,
              linear-gradient(180deg, rgba(87, 92, 116, 0.4) 0%, rgba(163, 173, 218, 0.4) 100%) border-box;
  box-shadow: 0 0.906px 2.718px 0 rgba(15, 0, 37, 0.50) inset;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.cell.win .label {
  flex: 0 0 auto;
}
.cell.win .value {
  min-width: 0;
}
/* endregion */
/* region BET */
.cell.bet {
  margin-right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 5px;
}
.cell.bet .value {
  flex: 1;
  min-width: 0;
}
.cell.bet.bet--wide {
  display: grid;
  grid-template-columns: clamp(38px, 10vw, 40px) 1fr clamp(38px, 10vw, 40px);
  align-items: center;
  gap: clamp(6px, 1.2vw, 10px);
  padding-inline: 3px;
}
.cell.bet.bet--wide .bet-center {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 0;
  text-align: center;
}
.cell.bet.bet--wide .bet-center .value {
  margin-top: 2px;
  color: var(--text);
  font-weight: 900;
  font-size: var(--cell-value-font-size);
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
}
.bet-center .value {
  font-size: clamp(8px, calc(13.333vw - 40px), 11px);;
}
.cell.bet.bet--wide .bet-btn {
  width: clamp(38px, 10vw, 40px);
  height: clamp(33px, 9vw, 35px);
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: var(--basic-font);
  font-weight: 700;
  font-size: 34px;
  line-height: 0;
  padding: 0;
  color: #303A69;
  text-shadow:
          -0.6px  0.6px 0 #B0BBD3,
          0.0px  0.6px 0 #B0BBD3,
          0.6px  0.6px 0 #B0BBD3,
          -0.6px -0.6px 0 #909ac5,
          0.0px -0.6px 0 #909ac5,
          0.6px -0.6px 0 #909ac5;
  background: radial-gradient(100% 100% at 50% 0%,
  #B7C9E9 0%,
  #92A6CA 57.77%,
  #717FA9 100%);
  box-shadow:
          0 0.6px 0 rgba(255, 255, 255, 0.55) inset,
          0 1.7px 1.7px rgba(0, 0, 0, 0.50);
}
.cell.bet.bet--wide .bet-btn:active {
  transform: translateY(1px) scale(.98);
}
.cell.bet.bet--wide .bet-btn:focus {
  outline: none;
}
/* endregion */
/* region AUTO BET — appearance preserved */
.cell.auto {
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(6px, 1.8vw, 8px);
  gap: 10px;
  width: auto;
  min-width: 0;
  aspect-ratio: auto;
}
.auto-bet-toggle-control,
.auto-cashout-toggle-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.toggle-autobet,
.toggle-autocashout {
  position: relative;
  flex: 0 0 auto;
  width: 43px;
  height: 20px;
  border-radius: 999px;
  border: 0.272px solid transparent;
  background:
          linear-gradient(90deg, rgba(44, 42, 90, 0.56) 0%, rgba(107, 116, 166, 0.56) 48.56%, rgba(44, 42, 90, 0.56) 97.93%) padding-box,
          linear-gradient(180deg, rgba(87, 92, 116, 0.4) 0%, rgba(163, 173, 218, 0.4) 100%) border-box;
  box-shadow: 0 0.906px 2.718px 0 rgba(15, 0, 37, 0.50) inset;
}
.toggle-autobet .knob,
.toggle-autocashout .knob {
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #D9E2F7 0%, #FFF 100%);
  box-shadow: 0 0.906px 0.906px 0 #FFF inset, 0 -0.906px 0.906px 0 rgba(0, 0, 0, 0.25) inset, 0.906px 0.906px 1.812px 0 rgba(0, 0, 0, 0.50);
}
/* ON state */
.auto-bet-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.auto-bet-input:checked + .toggle-autobet {
  background:
          linear-gradient(270deg, #00BF7E 53.46%, #00E13C 86.25%) padding-box,
          linear-gradient(180deg, rgba(87, 92, 116, 0.4) 0%, rgba(163, 173, 218, 0.4) 100%) border-box;
  box-shadow: 0 1px 2px 0 #04451B inset;
}
.auto-bet-input:checked + .toggle-autobet .knob {
  left: calc(100% - 16px - 2px);
}
.toggle-autobet,
.toggle-autocashout {
  cursor: pointer;
}
/* endregion */
/* region AUTO CASH OUT — appearance preserved */
.auto-cashout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: clamp(6px, 1.4vw, 8px);
  gap: 2px;
  min-width: 0;
}
.auto-cashout .label {
  text-align: center;
  color: #C0C9F6;
  text-shadow: 0 1.2px 1.2px rgba(0, 0, 0, 0.70);
  font-family: var(--basic-font);
  font-size: var(--cell-label-font-size);
  font-style: normal;
  font-weight: var(--cell-label-font-weight);
  line-height: normal;
  text-transform: uppercase;
}
.auto-cashout-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.auto-cashout-toggle-control {
  width: 100%;
  gap: 8px;
}
.auto-cashout-input {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 43px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
/* value pill: OFF */
.auto-cashout-value {
  flex: 1 1 auto;
  min-width: 0;
  width: 61px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 6px;
  border: 0.7px solid #262F54;
  background: transparent;
  box-sizing: border-box;
  color: #262F54;
  text-align: center;
  text-decoration: none;
  font-family: var(--basic-font);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}
.auto-cashout-input:not(:checked) ~ .auto-cashout-value {
  pointer-events: none;
  cursor: default;
}
.auto-cashout-value .x {
  line-height: 1;
}
.auto-cashout-value-input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  outline: none;
  color: inherit;
  text-align: center;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
}
/* toggle: OFF */
.toggle-autocashout {
  position: relative;
  flex: 0 0 auto;
  width: 43px;
  height: 20px;
  border-radius: 999px;
  border: 0.272px solid transparent;
  background:
          linear-gradient(90deg, rgba(44, 42, 90, 0.56) 0%, rgba(107, 116, 166, 0.56) 48.56%, rgba(44, 42, 90, 0.56) 97.93%) padding-box,
          linear-gradient(180deg, rgba(87, 92, 116, 0.4) 0%, rgba(163, 173, 218, 0.4) 100%) border-box;
  box-shadow: 0 0.906px 2.718px 0 rgba(15, 0, 37, 0.50) inset;
  cursor: pointer;
  display: block;
  box-sizing: border-box;
}
.toggle-autocashout .knob {
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #F6F8FF 0%, #D8DDE9 100%);
  box-shadow:
          0 2px 5px rgba(0, 0, 0, 0.28),
          inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: left 0.2s ease;
}
/* toggle: ON */
.auto-cashout-input:checked ~ .toggle-autocashout {
  border: 0.272px solid transparent;
  background:
          linear-gradient(270deg, #00BF7E 53.46%, #00E13C 86.25%) padding-box,
          linear-gradient(180deg, rgba(87, 92, 116, 0.4) 0%, rgba(163, 173, 218, 0.4) 100%) border-box;
  box-shadow: 0 1px 2px 0 #04451B inset;
}
.auto-cashout-input:checked ~ .toggle-autocashout .knob {
  left: calc(100% - 16px - 2px);
}
/* value pill: ON */
.auto-cashout-input:checked ~ .auto-cashout-value {
  border: 0.7px solid #717FA9;
  background: #3D456D;
  color: #FFF;
}
/* optional focus */
.auto-cashout-input:focus-visible ~ .toggle-autocashout {
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 2px;
}
/* region AUTO CASH OUT KEYPAD */
.auto-cashout-keypad-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: end center;
  padding: clamp(10px, 3vw, 18px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 120px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}
.auto-cashout-keypad-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 35, 0.45);
  cursor: pointer;
}
.auto-cashout-keypad {
  position: relative;
  width: min(92vw, 280px);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 10px;

  background: radial-gradient(
          100% 100% at 50% 0%,
          rgba(165, 175, 220, 0.60) 0%,
          rgba(100, 111, 162, 0.60) 67.57%,
          rgba(110, 120, 168, 0.60) 100%
  );
  box-shadow:
          0 0.7px 0 0 rgba(255, 255, 255, 0.55) inset,
          0 -0.6px 5px 0 rgba(210, 220, 239, 0.10) inset,
          0 2px 2px 0 rgba(1, 19, 42, 0.80);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);

  transform: translateY(96px) scale(.96);
  opacity: 0;
  transition:
          transform .34s cubic-bezier(.22, .8, .28, 1),
          opacity .24s ease;
}
#auto-cashout-keypad-toggle:checked ~ .auto-cashout-keypad-overlay {
  opacity: 1;
  pointer-events: auto;
}
#auto-cashout-keypad-toggle:checked ~ .auto-cashout-keypad-overlay .auto-cashout-keypad {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.auto-cashout-keypad__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
}
.auto-cashout-keypad__display {
  position: relative;
  grid-column: span 2;
  height: 44px;
  padding-inline: 28px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: linear-gradient(
          90deg,
          rgba(44, 42, 90, 0.56) 0.01%,
          rgba(107, 116, 166, 0.56) 51.44%,
          rgba(44, 42, 90, 0.56) 99.14%
  );
  box-shadow: 0 1px 3px 0 rgba(15, 0, 37, 0.50) inset;
  border: 0.272px solid transparent;

  color: #FFF;
  font-family: var(--basic-font);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.5px;
}
.auto-cashout-keypad__ok {
  grid-column: span 1;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;

  background: linear-gradient(270deg, #00BF7E 53.46%, #00E13C 86.25%);
  box-shadow:
          0 1px 2px 0 #04451B inset,
          0 1.5px 1.5px rgba(0, 0, 0, 0.40);

  font-family: var(--basic-font);
  font-weight: 700;
  font-size: 26px;
  color: #d6e3f9;
  text-shadow:
          -1px 1px 0 #B0BBD3,
          0 1px 0 #929db3,
          0.6px 0.6px 0 #70798c,
          -1px -1px 0 #575c74,
          0 -1px 0 #909ac5,
          1px -1px 0 #909ac5;

  transition:
          transform .14s ease,
          filter .14s ease,
          box-shadow .14s ease;
}
.auto-cashout-keypad__keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.auto-cashout-keypad__key {
  height: 44px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  color: #262F54;
  font-family: var(--basic-font);
  font-weight: 900;
  font-size: 22px;

  background: radial-gradient(
          85.27% 86.29% at 50% 13.71%,
          rgba(46, 56, 102, 0.26) 0%,
          rgba(67, 79, 135, 0.25) 33.98%,
          rgba(165, 175, 220, 0.50) 80.75%
  );
  box-shadow:
          0 0.7px 0 0 rgba(255, 255, 255, 0.55) inset,
          0 0 5px 0 rgba(255, 255, 255, 0.60) inset,
          0 1px 1px 0 rgba(9, 33, 63, 0.47);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  transition:
          transform .14s ease,
          filter .14s ease,
          box-shadow .14s ease;
}
@media (hover: hover) and (pointer: fine) {
  .auto-cashout-keypad__key:hover {
    filter: brightness(1.08);
    box-shadow:
            0 0.7px 0 0 rgba(255, 255, 255, 0.65) inset,
            0 0 7px 0 rgba(255, 255, 255, 0.72) inset,
            0 1px 2px 0 rgba(9, 33, 63, 0.55);
  }
  .auto-cashout-keypad__ok:hover {
    filter: brightness(1.06);
    box-shadow:
            0 1px 2px 0 #0b5f28 inset,
            0 2px 3px rgba(0, 0, 0, 0.45);
  }
}
.auto-cashout-keypad__key:active {
  transform: translateY(1px) scale(.98);
  filter: brightness(1.1);
}
.auto-cashout-keypad__ok:active {
  transform: translateY(1px) scale(.98);
  filter: brightness(1.06);
}
.auto-cashout-keypad__key--backspace {
  font-size: 20px;
}
/* endregion */
/* endregion */
/* region START WRAP */
.start-wrap {
  width: var(--start-btn-size);
  min-width: var(--start-btn-size);
  height: var(--start-btn-size);
  display: grid;
  place-items: center;
  justify-self: end;
  align-self: center;
  position: relative;
  pointer-events: none;
}
.start-wrap > button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--start-btn-size);
  height: var(--start-btn-size);
  pointer-events: auto;
}
/* endregion */
/* region BUTTON START/CANCEL/CASHOUT — appearance preserved */
/* region Main button label tuning */
.bottom-tools .start-wrap {
  --main-btn-start-font-size-base: 19px;
  --main-btn-start-scale: 1;

  --main-btn-cancel-font-size-base: 19px;
  --main-btn-cancel-scale: 1;

  --main-btn-cashout-font-size-base: 19px;
  --main-btn-cashout-scale: 1;

  --main-btn-next-round-font-size-base: 8px;
  --main-btn-next-round-scale: 1;
  --main-btn-next-round-line-height: 1.05;
  --main-btn-next-round-compact-line-height: 1;

  --main-btn-start-compact-font-size-base: 12px;
  --main-btn-start-compact-scale: 1;

  --main-btn-cancel-compact-font-size-base: 12px;
  --main-btn-cancel-compact-scale: 1;

  --main-btn-cashout-compact-font-size-base: 12px;
  --main-btn-cashout-compact-scale: 1;

  --main-btn-next-round-compact-font-size-base: 6px;
  --main-btn-next-round-compact-scale: 1;

  --main-btn-start-single-open-font-size-base: var(--main-btn-start-compact-font-size-base);
  --main-btn-start-single-open-scale: var(--main-btn-start-compact-scale);

  --main-btn-cancel-single-open-font-size-base: var(--main-btn-cancel-compact-font-size-base);
  --main-btn-cancel-single-open-scale: var(--main-btn-cancel-compact-scale);

  --main-btn-cashout-single-open-font-size-base: var(--main-btn-cashout-compact-font-size-base);
  --main-btn-cashout-single-open-scale: var(--main-btn-cashout-compact-scale);

  --main-btn-next-round-single-open-font-size-base: var(--main-btn-next-round-compact-font-size-base);
  --main-btn-next-round-single-open-scale: var(--main-btn-next-round-compact-scale);
  --main-btn-next-round-single-open-line-height: var(--main-btn-next-round-compact-line-height);

  --main-btn-start-single-open-narrow-font-size-base: var(--main-btn-start-compact-font-size-base);
  --main-btn-start-single-open-narrow-scale: var(--main-btn-start-compact-scale);

  --main-btn-cancel-single-open-narrow-font-size-base: var(--main-btn-cancel-compact-font-size-base);
  --main-btn-cancel-single-open-narrow-scale: var(--main-btn-cancel-compact-scale);

  --main-btn-cashout-single-open-narrow-font-size-base: var(--main-btn-cashout-compact-font-size-base);
  --main-btn-cashout-single-open-narrow-scale: var(--main-btn-cashout-compact-scale);

  --main-btn-next-round-single-open-narrow-font-size-base: var(--main-btn-next-round-compact-font-size-base);
  --main-btn-next-round-single-open-narrow-scale: var(--main-btn-next-round-compact-scale);
  --main-btn-next-round-single-open-narrow-line-height: var(--main-btn-next-round-compact-line-height);
}

[data-part="start"] .label b {
  font-size: calc(var(--main-btn-start-font-size-base) * var(--main-btn-start-scale));
}
[data-part="cancel"] .label b {
  font-size: calc(var(--main-btn-cancel-font-size-base) * var(--main-btn-cancel-scale));
}
[data-part="cashout"] .label b {
  font-size: calc(var(--main-btn-cashout-font-size-base) * var(--main-btn-cashout-scale));
}
[data-part="cancel"] .label [data-role="next-round-hint"] {
  font-size: calc(var(--main-btn-next-round-font-size-base) * var(--main-btn-next-round-scale));
}

html:lang(pt) [data-part="cancel"] .label [data-role="next-round-hint"] {
  font-size: 7px;
}

@media (orientation: landscape) {
  .console-block:has(> .console-item:nth-child(2)) > .console-item [data-part="start"] .label b {
    font-size: calc(var(--main-btn-start-compact-font-size-base) * var(--main-btn-start-compact-scale));
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item [data-part="cancel"] .label b {
    font-size: calc(var(--main-btn-cancel-compact-font-size-base) * var(--main-btn-cancel-compact-scale));
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item [data-part="cashout"] .label b {
    font-size: calc(var(--main-btn-cashout-compact-font-size-base) * var(--main-btn-cashout-compact-scale));
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item [data-part="cancel"] .label [data-role="next-round-hint"] {
    font-size: calc(var(--main-btn-next-round-compact-font-size-base) * var(--main-btn-next-round-compact-scale));
  }
}

@media (min-width: 768px) and (max-width: 1200px) and (orientation: portrait) {
  .bottom-tools .start-wrap {
    --main-btn-start-font-size-base: 24px;
    --main-btn-cancel-font-size-base: 22px;
    --main-btn-cashout-font-size-base: 22px;
  }
}

/* Language-specific label tuning. The active language is set on <html lang>. */
html:lang(uk) .bottom-tools .start-wrap {
  --main-btn-start-scale: .9;
  --main-btn-start-compact-scale: .96;
  --main-btn-cancel-scale: .78;
  --main-btn-cancel-compact-scale: .81;
  --main-btn-cashout-scale: .76;
  --main-btn-cashout-compact-scale: .84;
  --main-btn-next-round-scale: .92;
  --main-btn-next-round-compact-scale: .9;
  --main-btn-next-round-line-height: 1.3;
  --main-btn-next-round-compact-line-height: 1.3;
}

html:lang(ru) .bottom-tools .start-wrap {
  --main-btn-start-scale: .9;
  --main-btn-start-compact-scale: .96;
  --main-btn-cancel-scale: .9;
  --main-btn-cancel-compact-scale: .86;
  --main-btn-cashout-scale: .7;
  --main-btn-cashout-compact-scale: .8;
  --main-btn-next-round-scale: .96;
  --main-btn-next-round-compact-scale: .94;
  --main-btn-next-round-line-height: 1.3;
  --main-btn-next-round-compact-line-height: 1.3;
}

html:lang(pt) .bottom-tools .start-wrap {
  --main-btn-start-scale: .9;
  --main-btn-start-compact-scale: .96;
  --main-btn-cancel-scale: .78;
  --main-btn-cancel-compact-scale: .81;
  --main-btn-cashout-scale: .74;
  --main-btn-cashout-compact-scale: .82;
  --main-btn-next-round-scale: .96;
  --main-btn-next-round-compact-scale: .94;
  --main-btn-next-round-line-height: 1.3;
  --main-btn-next-round-compact-line-height: 1.3;
}

html:lang(es) .bottom-tools .start-wrap {
  --main-btn-start-scale: .88;
  --main-btn-start-compact-scale: .94;
  --main-btn-cancel-scale: .78;
  --main-btn-cancel-compact-scale: .81;
  --main-btn-cashout-scale: .94;
  --main-btn-cashout-compact-scale: .94;
  --main-btn-next-round-scale: .96;
  --main-btn-next-round-compact-scale: .94;
  --main-btn-next-round-line-height: 1.3;
  --main-btn-next-round-compact-line-height: 1.3;
}

html:lang(fr) .bottom-tools .start-wrap {
  --main-btn-cancel-scale: .78;
  --main-btn-cancel-compact-scale: .81;
  --main-btn-cashout-scale: .74;
  --main-btn-cashout-compact-scale: .8;
  --main-btn-next-round-scale: 1.2;
  --main-btn-next-round-compact-scale: 1.2;
  --main-btn-next-round-line-height: 1.15;
  --main-btn-next-round-compact-line-height: 1.15;
}

html:lang(de) .bottom-tools .start-wrap {
  --main-btn-start-scale: .88;
  --main-btn-start-compact-scale: .94;
  --main-btn-cancel-scale: .78;
  --main-btn-cancel-compact-scale: .81;
  --main-btn-cashout-scale: .68;
  --main-btn-cashout-compact-scale: .8;
  --main-btn-next-round-scale: 1.1;
  --main-btn-next-round-compact-scale: 1;
  --main-btn-next-round-line-height: 1.15;
  --main-btn-next-round-compact-line-height: 1.15;
}

html:lang(nl) .bottom-tools .start-wrap {
  --main-btn-cancel-scale: .7;
  --main-btn-cancel-compact-scale: .7;
  --main-btn-cashout-scale: .68;
  --main-btn-cashout-compact-scale: .8;
  --main-btn-next-round-scale: .9;
  --main-btn-next-round-compact-scale: .9;
  --main-btn-next-round-line-height: 1.15;
  --main-btn-next-round-compact-line-height: 1.15;
}

html:lang(tr) .bottom-tools .start-wrap {
  --main-btn-next-round-scale: 1.2;
  --main-btn-next-round-compact-scale: 1.2;
  --main-btn-next-round-line-height: 1.15;
  --main-btn-next-round-compact-line-height: 1.15;
}

/* endregion */
/* region BET */
[data-part="start"] {
  position: relative;
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(154deg,
  #09DB49 14.28%,
  #16B768 30.74%,
  #19B06E 45.35%,
  #03AC3C 68.44%,
  #06b748 87.48%,
  #0c7932 97.71%);
  box-shadow:
          0 4px 2px rgba(0, 255, 129, 0.25) inset,
          0 -2px 1px #00400C inset,
          0 0 10px rgba(255, 255, 255, 0.50) inset,
          1px 2px 1px #00FF81 inset;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
  display: grid;
  place-items: center;
}
[data-part="start"] .label {
  display: grid;
  text-align: center;
}
[data-part="start"] .label b {
  font-family: "Baloo 2", "Baloo-Cyrillic", "Baloo", system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans", Arial, sans-serif;
  font-weight: 800;
  z-index: 1;
  /*font-size: 19px;*/
  letter-spacing: 0;
  color: #012801;
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
  text-shadow: 0 0 4px rgba(143, 255, 95, 0.44);
}
[data-part="start"] .label b.stroke {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
[data-part="start"] .label b.stroke::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 0.5px;
  -webkit-text-stroke-color: rgba(0, 153, 23, 1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 60%, transparent 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
[data-part="start"] .label b.stroke::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 0.5px;
  -webkit-text-stroke-color: rgba(0, 255, 38, 1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, #000 55%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, #000 55%, #000 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
/* endregion */
/* region CANCEL */
[data-part="cancel"] {
  position: relative;
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(160deg,
  #FF0101 11.47%,
  #EE0202 32.16%,
  #FF4242 50.7%,
  #EC0303 65.56%,
  #CD0000 85.1%);
  box-shadow:
          0 4.629px 2.314px 0 rgba(255, 0, 0, 0.25) inset,
          0 -2.314px 1.157px 0 #401900 inset,
          0 0 11.572px 0 rgba(255, 255, 255, 0.50) inset,
          1.157px 2.314px 1.157px 0 #FF9A9A inset;
  filter: drop-shadow(0 4.629px 4.629px rgba(0, 0, 0, 0.25));
  display: grid;
  place-items: center;
}
[data-part="cancel"] .label {
  gap: 6px;
  display: grid;
  text-align: center;
}
[data-part="cancel"] .label b {
  font-family: "Baloo 2", "Baloo-Cyrillic", "Baloo", system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans", Arial, sans-serif;
  font-weight: 800;
  z-index: 1;
  /*font-size: 19px;*/
  letter-spacing: 0;
  color: #280D01;
  font-style: normal;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 4.629px rgba(250, 150, 133, 0.79);
  -webkit-text-stroke-width: 0.34px;
  -webkit-text-stroke-color: #000;
}
[data-part="cancel"] .label b.stroke {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
[data-part="cancel"] .label b.stroke::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 0.5px;
  -webkit-text-stroke-color: #990000;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 60%, transparent 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
[data-part="cancel"] .label b.stroke::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #FFA89B;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, #000 55%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, #000 55%, #000 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
[data-part="cancel"] .label [data-role="next-round-hint"] {
  display: block;
  /*width: 60px;*/
  margin: -4px auto 0;
  font-family: var(--basic-font);
  /*font-size: 8px;*/
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  color: #fff5f5;
  line-height: var(--main-btn-next-round-line-height);
}
@media (orientation: landscape) {
  .console-block:has(> .console-item:nth-child(2)) > .console-item [data-part="cancel"] {
    position: relative;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item [data-part="cancel"] .label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item [data-part="cancel"] .label b {
    /*font-size: 12px;*/
    line-height: 1;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item [data-part="cancel"] .label [data-role="next-round-hint"] {
    width: 44px;
    margin: 0;
    /*font-size: 6px;*/
    line-height: var(--main-btn-next-round-compact-line-height);
    text-align: center;
    transform: none;
  }
}
/* endregion */
/* region CASH OUT */
[data-part="cashout"] {
  position: relative;
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(154deg,
  #FFFF01 0%,
  #EED602 27%,
  #FFDE08 52%,
  #ECB203 72%,
  #CD8900 98%);
  box-shadow:
          0 4px 2px rgba(255, 255, 255, 0.25) inset,
          0 -2px 1px #402700 inset,
          0 0 10px rgba(255, 255, 255, 0.50) inset,
          1px 2px 1px #FFFB00 inset;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
  display: grid;
  place-items: center;
}
[data-part="cashout"] .label {
  gap: 6px;
  display: grid;
  text-align: center;
}
[data-part="cashout"] .label b {
  font-family: "Baloo 2", "Baloo-Cyrillic", "Baloo", system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans", Arial, sans-serif;
  font-weight: 800;
  z-index: 1;
  /*font-size: 19px;*/
  letter-spacing: 0;
  color: #281A01;
  font-style: normal;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 4px #FDFF79;
}
[data-part="cashout"] .label b.stroke {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
[data-part="cashout"] .label b.stroke::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 0.5px;
  -webkit-text-stroke-color: #995C00;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 60%, transparent 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
[data-part="cashout"] .label b.stroke::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #FFF200;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, #000 55%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, #000 55%, #000 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
/* helper texts preserved */
[data-part="start"] .label small.inset,
[data-part="cancel"] .label small.inset,
[data-part="cashout"] .label small.inset {
  position: relative;
  display: inline-block;
  font-family: var(--basic-font);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 11.64px;
  text-align: center;
}
/* clicks */
.start-wrap {
  pointer-events: none;
}
.start-wrap [data-part="start"],
.start-wrap [data-part="cancel"],
.start-wrap [data-part="cashout"] {
  pointer-events: auto;
  z-index: 3;
}
.start-wrap .console-cap,
.console-bg {
  pointer-events: none;
}
/* endregion */
/* endregion */
/* region BURGER MENU OVERLAY & PANEL */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: calc(env(safe-area-inset-top, 0) + 60px) max(env(safe-area-inset-right, 0), clamp(8px, 3vw, 12px)) clamp(8px, 2vh, 18px) max(env(safe-area-inset-left, 0), 8px);
  background: transparent;
  pointer-events: none;
  height: 300px;
}
.menu-panel {
  width: min(86vw, 260px);
  border-radius: 18px;
  background: radial-gradient(100% 100% at 50% 0%, #A5AFDC 0%, #434F87 67.57%, #2E3866 100%);
  box-shadow: 0 0.7px 0 0 rgba(255, 255, 255, 0.55) inset, 0 2px 2px 0 rgba(9, 33, 63, 0.50);
  backdrop-filter: blur(20px);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
/* Divider */
.menu-divider {
  width: 218px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 4.31%, rgba(255, 255, 255, 0.13) 49.04%, rgba(255, 255, 255, 0.00) 100%);
  margin-block: 8px;
  align-self: center;
}
/* List */
.menu-list1,
.menu-list2 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 16px;
  align-items: center;
}
.menu-icon {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.90));
  width: 20px;
  height: 20px;
  text-align: center;
}
.menu-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.menu-label {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.50);
  font-size: 14px;
}
button.menu-label{
  all: unset;
  display: block;
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(0,0,0,.50);
  font-size: 14px;
}
button.menu-label:focus-visible{
  outline-offset: 2px;
  border-radius: 6px;
}
/* Switch */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  border: 0.3px solid transparent;
  background: linear-gradient(90deg, rgba(44, 42, 90, 0.56) 0%, rgba(107, 116, 166, 0.56) 48.56%, rgba(44, 42, 90, 0.56) 97.93%)padding-box,
  linear-gradient(to bottom,
          rgba(87, 92, 116, 0.4) 0%,
          rgba(163, 173, 218, 0.4) 100%
  ) border-box;
  box-shadow: 0 1px 3px 0 rgba(15, 0, 37, 0.50) inset;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: background .15s ease;
}
.switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #D9E2F7 0%, #FFF 100%);
  box-shadow: 0 1px 1px 0 #FFF inset, 0 -1px 1px 0 rgba(0, 0, 0, 0.25) inset;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.50));
  transform: translateX(0);
  transition: transform .15s ease;
}
.switch input:checked + .switch-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  border: 0.3px solid transparent;
  background:
          linear-gradient(270deg, #00BF7E 53.46%, #00E13C 86.25%) padding-box,
          linear-gradient(to bottom,
          rgba(87, 92, 116, 0.4) 0%,
          rgba(163, 173, 218, 0.4) 100%
          ) border-box;

  box-shadow: 0 1px 2px 0 #04451B inset;
}
.switch input:checked+.switch-track .switch-thumb {
  transform: translateX(18px);
}
/* endregion */
/* region SOUND BUTTON */
.button-sound {
  position: relative;
  display: grid;
  place-items: center;
  pointer-events: auto;
}
#sound-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  clip-path: circle(57% at 50% 50%);
  border-radius: 999px;
}
#sound-btn .sound-icon {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}
#sound-btn .sound-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
/* default = ON */
#sound-btn .sound-icon-on {
  display: grid;
}
#sound-btn .sound-icon-off {
  display: none;
}
/* OFF state */
.button-sound.is-off #sound-btn .sound-icon-on {
  display: none;
}
.button-sound.is-off #sound-btn .sound-icon-off {
  display: grid;
}
/* optional explicit ON state */
.button-sound.is-on #sound-btn .sound-icon-on {
  display: grid;
}
.button-sound.is-on #sound-btn .sound-icon-off {
  display: none;
}
/* loading state */
.button-sound.is-loading #sound-btn {
  opacity: 0.85;
}
/* waves base */
#sound-btn .wave {
  opacity: 1;
}
/* loading animation */
.button-sound.is-loading #sound-btn .wave {
  opacity: 0;
  animation: soundWaveLoading 1.2s linear infinite;
}
.button-sound.is-loading #sound-btn .wave-2 {
  animation-delay: 0.3s;
}
@keyframes soundWaveLoading {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* endregion */
/* region INFO PLAQUE (shared) */
.info-plaque {
  --dock-chip-h: 25px;
  --dock-chip-w: 60px;
  --dock-gap: clamp(2px, 1.5vw, 4px);
  --dock-row-gap: clamp(5px, 1.5vw, 5px);
  --dock-col-gap: clamp(8px, 2vw, 10px);
  --dock-btn-s: var(--dock-chip-h);

  position: fixed;
  right: var(--console-pad-x);
  top: 65px;
  width: var(--dock-chip-w);
  border-radius: 12px;
  background: radial-gradient(100% 100% at 50% 0%, rgba(165, 175, 220, 0.50) 0%, rgba(67, 79, 135, 0.50) 67.57%, rgba(46, 56, 102, 0.50) 100%);
  /*box-shadow: 0 0.7px 0 0 rgba(255, 255, 255, 0.55) inset, 0 2px 2px 0 rgba(9, 33, 63, 0.50);*/
  /*backdrop-filter: blur(20px);*/
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  pointer-events: none;
  z-index: 11;
  overflow: visible;
  /*overflow: hidden;*/
  padding: 29px 5px 5px;
  box-shadow:
          0 0.7px 0 0 rgba(255, 255, 255, 0.55) inset,
          0 2px 2px 0 rgba(9, 33, 63, 0.50);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}
.info-plaque.open {
  width: 60vw;
  padding: 5px;

  .coeffs-dock-list {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }

  .coeffs-dock-btn {
    left: 5px;
    right: unset;
  }

  .coeffs-dock-btn .coeffs-arrow{
    transform: rotate(90deg);
  }

  .coeffs-dock-list > .history-mult:nth-child(1) {
    grid-column: span 2;
    justify-self: end;
    width: 50%;
  }
}
.coeffs-dock-list {
  display: grid;
  column-gap: var(--dock-gap);
  row-gap: var(--dock-row-gap);
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  pointer-events: auto;
  grid-template-columns: 1fr;
  /*overflow: hidden;*/
}
.info-plaque .history-mult {
  width: 100%;
  height: var(--dock-chip-h);
  aspect-ratio: auto;
  border-radius: clamp(7.5px, 4vw, 8.5px);
  font-size: clamp(9px, 4vw, 11px);
  line-height: 18px;
  padding: 0;
}
.info-plaque:not(.open) .coeffs-dock-list > :nth-child(n+6){
  display: none;
}
.info-plaque.open {
  align-items: start;
  height: auto;
  grid-template-columns: 1fr;
}
.coeffs-dock-actions .coeffs-dock-btn svg{
  width: clamp(13px, 4.6vw, 17px);
  height: clamp(13px, 4.6vw, 17px);
}
.coeffs-dock-btn {
  padding: 0;
  filter: drop-shadow(0 0.8px 0.8px rgba(0,0,0,.75));
  place-items: center;
  position: absolute;
  top: 2px;
  right: 5px;
  width: 50px;
  height: var(--dock-chip-h);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  pointer-events: auto;
}
.coeffs-dock-btn svg{
  width: clamp(14px, 5vw, 18px);
  height: clamp(14px, 5vw, 18px);
  display: block;
  overflow: visible;
}
.coeffs-dock-btn .coeffs-arrow {
  transform-origin: center;
  transition: transform .15s ease;
  transform: rotate(-90deg);
}
/* endregion */
/* region BUTTON STATES (global, safe) */
/* базові скидання для всіх кнопок */
button,
[role="button"]{
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  background: none;
  border: none
}
[data-part="start"],
#menu-btn,
#sound-btn,
[data-part="btn-minus"],
[data-part="btn-plus"],
#autoplay,
#autoplay-close,
#ap-start,
#ap-reset,
.ap-chip {
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
  transition: transform .09s ease, filter .12s ease;
  touch-action: manipulation;
}
/* (hover + pressed) */
#menu-btn,
#sound-btn,
[data-part="btn-minus"],
[data-part="btn-plus"],
#autoplay,
#autoplay-close,
#ap-start,
#ap-reset,
.ap-chip {
  transform-origin: 50% 50%;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
  will-change: transform;
  touch-action: manipulation;
}
/* Hover (desktop) */
@media (hover:hover){
  #menu-btn:hover,
  #sound-btn:hover,
  [data-part="btn-minus"]:hover,
  [data-part="btn-plus"]:hover,
  #autoplay:hover,
  #autoplay-close:hover,
  #ap-start:hover,
  #ap-reset:hover,
  .ap-chip:hover {
    transform: scale(1.03);
    filter: brightness(1.06);
  }
}
/* Pressed */
#menu-btn:active,
#sound-btn:active,
[data-part="btn-minus"]:active,
[data-part="btn-plus"]:active,
#autoplay:active,
#autoplay-close:active,
#ap-start:active,
#ap-reset:active,
.ap-chip:active {
  transform: scale(.97);
  filter: none;
}
/* Keyboard focus */
#menu-btn:focus-visible,
#sound-btn:focus-visible,
[data-part="btn-minus"]:focus-visible,
[data-part="btn-plus"]:focus-visible,
#autoplay:focus-visible,
#autoplay-close:focus-visible,
#ap-start:focus-visible,
#ap-reset:focus-visible,
.ap-chip:focus-visible {
  outline: none;
  filter: brightness(1.06);
}
/* Disabled  */
#menu-btn:disabled,
#sound-btn:disabled,
[data-part="btn-minus"]:disabled,
[data-part="btn-plus"]:disabled,
#autoplay:disabled,
#autoplay-close:disabled,
#ap-start:disabled,
#ap-reset:disabled,
.ap-chip.is-disabled {
  opacity: .55;
  pointer-events: none;
  transform: none;
  filter: none;
}
#menu-btn:active::before {
  box-shadow:
          0 0.3px 0 rgba(255,255,255,0.35) inset,
          0 1.2px 1.2px rgba(0, 0, 0, 0.26) inset,
          0 0.9px 0.9px rgba(0, 0, 0, 0.14);
}
#sound-btn:active {
  transform: scale(.97);
}
#sound-btn:active svg {
  transform: scale(.97);
}
/* press */
.start-wrap [data-part="start"]:active {
  --press-scale: .98;
}
/* hover */
.start-wrap [data-part="start"]:hover {
  filter: brightness(1.08);
}
/* endregion */
/* region BETS TOOLBAR */
.bets-toolbar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 7px;
  border-radius: 17px 17px 0 0;
  background: radial-gradient(100% 100% at 50% 0%, rgba(165, 175, 220, 0.6) 0%, rgba(67, 79, 135, 0.6) 67.57%, rgba(46, 56, 102, 0.6) 100%);
  backdrop-filter: blur(20px);
  width: calc(100vw - 16px);
  margin: 0 auto;
  max-height: 52px;
}
.bets-toolbar__filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
}
.bets-toolbar__filter-list li {
  width: 100%;
}
.bets-toolbar__filter-btn {
  width: 100%;
  min-height: 22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(165, 175, 220, 0.5) -100%, rgba(67, 79, 135, 0.5) 35.13%, rgba(46, 56, 102, 0.5) 100%);
  color: #ccd5ff7a;
  font-family: var(--basic-font);
  font-size: clamp(13px, 3vw, 16px);;
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
  position: relative;
}
.bets-toolbar::before,
.bets-toolbar__filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 17px 17px 0 0;
  pointer-events: none;
}
.bets-toolbar::before {
  border-radius: 17px 17px 0 0;
}
.bets-toolbar__filter-btn::before {
  border-radius: 12px 12px 0 0;
}
.bets-toolbar__filter-btn.is-active {
  color: #CCD5FF;
  background: linear-gradient(180deg, rgba(165, 175, 220, 0.5) -100%, rgba(67, 79, 135, 0.5) 35.13%, rgba(46, 56, 102, 0.5) 100%);
  box-shadow: 0 0.7px 0 0 rgba(255, 255, 255, 0.55) inset, 0 2px 2px 0 rgba(9, 33, 63, 0.50);
}
.bets-toolbar__summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  /*flex-wrap: wrap;*/
  gap: 12px;
}
.bets-toolbar__meta {
  margin: 0;
  font-family: var(--basic-font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  color: #dce2ff;
}
.bets-toolbar__meta span {
  color: inherit;
  transition: color 0.2s ease;
}
.bottom-tools.full .bets-toolbar__meta span {
  color: #fff;
}
.bets-toolbar__meta--total {
  margin-left: auto;
  text-align: right;
}
.bets-toolbar__progress {
  position: relative;
  min-height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #45588E 0%, #3D466E 100%);
}
.bets-toolbar__progress-value {
  display: block;
  min-height: 6px;
  border-radius: inherit;
  background: linear-gradient(270deg, #01E13C 0%, #19B06E 100%);
}
.bets-toolbar__table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
}
.bets-toolbar__table-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.bets-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 3px;
}
.bets-table thead th {
  padding: 0 15px 0;
  color: #dce2ff;
  font-family: var(--basic-font);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.bets-table thead th:not(:first-child),
.bets-table tbody td {
  text-align: center;
}
.bets-table thead {
  position: relative;
}
.bets-table thead:after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.13) 52.88%, rgba(255, 255, 255, 0) 100%);
  content: "";

}
.bets-table tbody th,
.bets-table tbody td {
  padding: 2px 3px;
  color: #fff;
  font-family: var(--basic-font);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.bets-table__player {
  text-align: left;
}
.bets-table__player-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  /*text-align: left;*/
  white-space: nowrap;
  overflow: hidden;
}
.bets-table__player-inner > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.bets-table__player-inner img {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.bets-table__player tr {
  min-height: 22px;
}
.bets-table__row.is-win > th,
.bets-table__row.is-win > td {
  background: linear-gradient(90deg, rgba(40, 88, 121, 0.85) 0%, rgba(52, 124, 143, 0.8) 100%);
  background-attachment: fixed;
  background-size: 100vw 100%;
}
.bets-table__row.is-win > th:first-child {
  border-radius: 6px 0 0 6px;
}
.bets-table__row.is-win > td:last-child {
  border-radius: 0 6px 6px 0;
}
.bets-table__row.is-win > th,
.bets-table__row.is-win > td {
  background: linear-gradient(
          90deg,
          rgba(40, 88, 121, 0.85) 0%,
          rgba(52, 124, 143, 0.8) 100%
  );
  background-attachment: fixed;
}
/* радіуси */
.bets-table__row.is-win > th:first-child {
  border-radius: 6px 0 0 6px;
}
.bets-table__row.is-win > td:last-child {
  border-radius: 0 6px 6px 0;
}
.bets-table__multiplier.is-positive {
  color: #17BA77;
  font-weight: 700;
}
.bets-table__row.is-you .bets-table__player,
.bets-table__row.is-you .is-accent,
.bets-table__you {
  color: #F2C707;
  font-weight: 900;
}
.bets-table__muted {
  color: rgba(205, 215, 249, 0.56);
}
@media (orientation: landscape) {
  .bottom-tools:not(.full) .bets-toolbar__summary .bets-toolbar__meta:first-child {
    /* 1 Bets у закритому стані */
    font-size: 12px;
    width: 8vw;
    text-align: center;
  }
  .bottom-tools:not(.full) .bets-toolbar__summary .bets-toolbar__meta--total {
    /* Total Win у закритому стані */
    font-size: 11px;
    width: 8vw;
    text-align: center;
  }
  .bottom-tools.full .bets-toolbar__summary .bets-toolbar__meta:first-child {
    /* 1 Bets у відкритому стані */
    font-size: 10px;
    /*width: 8vw;*/
    text-align: start;
  }
  .bottom-tools.full .bets-toolbar__summary .bets-toolbar__meta--total {
    /* Total Win у відкритому стані */
    font-size: 10px;
    width: 12vw;
    text-align: end;
  }
}
/* endregion */
/* region PREVIOUS TOOLBAR */
.previous-toolbar__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 10px;
}
.previous-toolbar__result-label {
  margin: 0;
  font-family: var(--basic-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #FFFFFF;
  text-align: center;
}
.previous-toolbar__result-value {
  margin: 0;
  font-family: var(--basic-font);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #09fe75;
  text-align: center;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}
.previous-toolbar__table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
}
.previous-toolbar__table-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.previous-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 3px;
}
.previous-table thead th {
  padding: 0 15px 3px;
  color: #d3dbff;
  font-family: var(--basic-font);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.previous-table thead th:not(:first-child),
.previous-table tbody td {
  text-align: center;
}
.previous-table thead {
  position: relative;
}
.previous-table thead::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
          90deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(255, 255, 255, 0.13) 52.88%,
          rgba(255, 255, 255, 0) 100%
  );
}
.previous-table tbody th,
.previous-table tbody td {
  padding: 2px 3px;
  color: #fff;
  font-family: var(--basic-font);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.previous-table__row {
  min-height: 22px;
}
.previous-table__player {
  text-align: left;
}
.previous-table__player-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  /*text-align: left;*/
  white-space: nowrap;
  overflow: hidden;
}
.previous-table__player-inner > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.previous-table__player-inner img {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.previous-table__row.is-win > th,
.previous-table__row.is-win > td {
  background: linear-gradient(
          90deg,
          rgba(40, 88, 121, 0.85) 0%,
          rgba(52, 124, 143, 0.8) 100%
  );
  background-attachment: fixed;
  background-size: 100vw 100%;
  background-clip: padding-box;
}
.previous-table__row.is-win > th:first-child {
  border-radius: 6px 0 0 6px;
}
.previous-table__row.is-win > td:last-child {
  border-radius: 0 6px 6px 0;
}
.previous-table__multiplier.is-positive {
  color: #17BA77;
  font-weight: 700;
}
.previous-table__row.is-you .previous-table__player,
.previous-table__row.is-you .is-accent,
.previous-table__you {
  color: #F2C707;
  font-weight: 900;
}
.previous-table__muted {
  color: rgba(205, 215, 249, 0.56);
}
.bottom-tools.full .bets-toolbar__panel--previous .bets-toolbar__summary,
.bottom-tools.full .bets-toolbar__panel--previous .bets-toolbar__progress {
  display: none;
}
/* endregion */
/* region TOP PANEL */
/* FILTERS */
.top-filters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.top-filters__btn:nth-child(1),
.top-filters__btn:nth-child(2) {
  grid-column: span 3;
}
.top-filters__btn:nth-child(3),
.top-filters__btn:nth-child(4),
.top-filters__btn:nth-child(5) {
  grid-column: span 2;
}
.top-filters__btn {
  padding: 4px 0;
  border: none;
  border-radius: 14px;
  background: #636d99c2;
  color: #a5afdc;
  font-family: var(--basic-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.top-filters__btn.is-active {
  background: #48517b;
  color: #fff;
}
.top-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-family: var(--basic-font);
  font-size: clamp(12px, 5vw, 16px);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 3;
}
.top-empty__title {
  margin: 0;
  font-family: var(--basic-font);
  font-size: clamp(12px, 5vw, 16px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}
/* LIST */
.top-list {
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}
.top-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}
/* VIEWS */
.top-view {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* CARD BASE */
.top-card {
  border-radius: 12px;
  padding: 8px;
  background:
          linear-gradient(214deg, #49517b 48.56%, #272a53 97.93%) padding-box,
          linear-gradient(
                  180deg,
                  rgba(87, 92, 116, 0.4) 0%,
                  rgba(163, 173, 218, 0.4) 100%
          ) border-box;
  box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.05),
          0 1px 2px rgba(5, 12, 38, 0.25);
}
/* HEADER / BODY GRID */
.top-card__header,
.top-card__body {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 132px 50px;;
  column-gap: 8px;
  align-items: center;
}
.top-card__header {
  position: relative;
  padding-bottom: 6px;
}
.top-card__header::after {
  content: "";
  position: absolute;
  top: 90%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
          90deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(255, 255, 255, 0.13) 52.88%,
          rgba(255, 255, 255, 0) 100%
  );
}
.top-card__body {
  margin-top: 8px;
}
/* AVATAR / USER */
.top-card__avatar,
.top-card__user img {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: #d3dbff;
  display: block;
}
.top-card__user-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-card__name {
  color: #fff;
  font-family: var(--basic-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.top-card__date {
  margin-top: 2px;
  color: #c0c9f6;
  font-family: var(--basic-font);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.top-card__date::before {
  content: "•";
  margin: 0 4px;
  opacity: 0.5;
}
/* ACTIONS */
.top-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 28px;
}
.top-card__fair-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.top-card__fair-icon svg,
.top-card__fair-icon img {
  width: 20px;
  height: 20px;
  display: block;
}
/* TEXT */
.top-card__label {
  color: #c0c9f6;
  font-family: var(--basic-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-align: left;
  justify-self: start;
}
.top-card__value {
  color: #fff;
  font-family: var(--basic-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
  justify-self: end;
}
.top-card--win .top-card__value.is-green {
  color: #09fe75;
}
/* SINGLE BODY VARIANT */
.top-card__body--single {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
/* HIDDEN SUMMARY IN FULL MODE */
.bottom-tools.full .bets-toolbar__panel--top .bets-toolbar__summary,
.bottom-tools.full .bets-toolbar__panel--top .bets-toolbar__progress {
  display: none;
}
/* endregion */
.bottom-tools:not(.full) .bets-toolbar {
  overflow: hidden;
}
.bottom-tools:not(.full) .bets-toolbar__panel {
  min-height: 0;
  overflow: hidden;
}
.bottom-tools:not(.full) .previous-toolbar__table-wrap,
.bottom-tools:not(.full) .top-list {
  overflow: hidden;
}

/* mobile */
@media (orientation: portrait) and (max-width: 400px) {
  :root {
    --stats-right-col-w: 110px;
    --gap: 4px;
  }
  .cell.bet.bet--wide {
    grid-template-columns: 36px 1fr 36px;
    gap: 4px;
    padding-inline: 2px;
  }
  .cell.bet.bet--wide .bet-btn {
    width: 36px;
    height: 36px;
  }
}
@media (orientation: portrait) and (max-width: 375px) {
  .top-card__header,
  .top-card__body {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 106px 50px;;
    column-gap: 8px;
    align-items: center;
  }
  .top-card__label {
    max-width: 90px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.1;
  }
  .top-card__label,
  .top-card__value {
    font-size: 12px;
  }
}
@media (orientation: portrait) and (max-width: 375px) {
  :root {
    --stats-right-col-w: 100px;
    --gap: 3px;
  }
  .cell.win,
  .cell.bet {
    padding-inline: 4px;
  }
  .cell.auto {
    padding-inline: 5px;
    gap: 6px;
  }
  .auto-cashout {
    padding-inline: 5px;
  }
  .auto-cashout .label {
    font-size: 10px;
  }
  .auto-cashout-row,
  .auto-cashout-toggle-control {
    gap: 6px;
  }
  .auto-cashout-value {
    width: 56px;
    padding-inline: 4px;
  }
  .cell.bet.bet--wide {
    grid-template-columns: 34px 1fr 34px;
    gap: 3px;
    padding-inline: 2px;
  }
  .cell.bet.bet--wide .bet-btn {
    width: 34px;
    height: 34px;
  }
  .topbar-message {
    padding: 0 8px;
    font-size: 14px;
  }
  .bottomBar {
    display: grid;
    grid-template-columns: 40% 1fr 25%;
  }
  .ping {
    margin-top: -2px;
    font-size: 8px;
  }
}
@media (orientation: landscape) {
  .console-block {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .console-block > .console-item,
  .console-block > .console-item * {
    touch-action: auto;
  }

  .console-block button,
  .console-block input,
  .console-block label {
    touch-action: manipulation;
  }
  .console-block {
    --console-scale: 1;
    --console-width: 230px;
    --console-height: 104px;
    justify-content: flex-start;
  }
  .info-plaque {
    right: max(env(safe-area-inset-right), 2%);
  }
  .info-plaque.open {
    width: min(40vw, 280px);
  }
  .info-plaque.open .coeffs-dock-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .info-plaque.open .coeffs-dock-btn {
    top: 4px;
  }
  .bottom-tools {
    left: 11vw;
    overflow: visible;
  }
  .bets-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: var(--bottomPanel-h);
    min-width: 70px;
    width: 10vw;
    border-radius: 0 11px 11px 0;
    max-height: 100%;
    justify-content: space-between;
    backdrop-filter: blur(40px);
    box-shadow: 0 0.7px 0 0 #ffffff8c inset;
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    box-shadow: 0 0.7px 0 0 #ffffff8c inset;
  }
  .bets-toolbar::before {
    border-radius: 0 11px 0 0;
  }
  .bets-toolbar__filter-btn::before {
    border-radius: 9px 9px 0 0;
  }
  .bets-toolbar__filter-list {
    flex-direction: column;
    gap: 3px;
  }
  .bets-toolbar__filter-btn {
    min-height: 18px;
    font-size: 10px;
  }
  .bets-toolbar__table-wrap,
  .previous-toolbar__result,
  .previous-toolbar__table-wrap,
  .bets-toolbar__progress,
  .top-filters,
  .top-list {
    display: none;
  }
  .bets-toolbar__table-wrap {
    padding-right: 0;
  }
  .bets-toolbar__summary {
    flex-direction: column;
    align-items: center;
  }
  .bets-toolbar__meta {
    font-size: 8px;
    width: 5vw;
    text-align: center;
  }
  .bottom-tools.full .bets-toolbar__meta {
    text-align: start;
  }
  .bets-toolbar__meta--total {
    margin-left: 0;
    text-align: center;
  }
  .bets-table thead th {
    font-size: 11px;
  }
  .bets-table thead th span,
  .previous-table thead th span {
    display: none;
  }
  .bets-table thead th {
    padding: 0 8px 0;
  }
  .previous-table thead th {
    padding: 0 8px 3px;
  }
  .bets-table tbody th,
  .bets-table tbody td {
    padding: 1px;
    font-size: 7px;
    font-weight: 400;
  }
  .bets-table__row.is-win th {
    border-radius: 3px 0 0 3px;
  }
  .bets-table__row.is-win > th:first-child {
    border-radius: 4px 0 0 4px;
  }
  .bets-table__row.is-win > th:first-child::before {
    border-radius: 4px;
  }
  .bets-table__row.is-win > td:last-child {
    border-radius: 0 4px 4px 0;
  }
  .bets-table__player-inner {
    gap: 2px;
  }
  .bets-table__player-inner img {
    width: 11px;
    height: 11px;
    min-width: 11px;
    min-height: 11px;
  }
  .bottom-tools.full {
    left: calc(min(30vw, 240px) + 5px);
  }
  .bottom-tools.full .bets-toolbar {
    width: min(30vw, 235px);
    padding-left: max(16px, env(safe-area-inset-left));
    justify-content: unset;
    max-height: unset;
  }
  .bottom-tools.full .bets-toolbar__filter-list {
    flex-direction: row;
  }
  .bottom-tools.full .bets-toolbar__progress,
  .bottom-tools.full .bets-toolbar__table-wrap,
  .bottom-tools.full .previous-toolbar__result,
  .bottom-tools.full .previous-toolbar__table-wrap {
    display: block;
  }
  .bottom-tools.full .top-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .bottom-tools.full .top-filters {
    display: grid;
  }
  .bottom-tools.full .bets-toolbar__summary {
    flex-direction: row;
  }
  .bottom-tools.full .console-block {
    max-height: unset;
  }
  .console-block {
    width: 100%;
    min-width: 0;
    max-height: unset;
    mask-image: none;
    flex-direction: row;
    padding: 2px 0;
    margin: 2px auto;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
  .console-block::-webkit-scrollbar {
    width: 100%;
    height: 3px;
  }
  .console-block:not(:has(> .console-item > .console-item-inner)) > .console-item:not(:only-child) {
    flex: 0 0 var(--console-width);
    min-width: var(--console-width);
  }
  .console-block:has(> .console-item > .console-item-inner) > .console-item:not(:only-child) {
    flex: 0 0 calc(var(--console-width) * var(--console-scale));
    width: calc(var(--console-width) * var(--console-scale));
    height: calc(var(--console-height) * var(--console-scale));
    position: relative;
  }
  /*.console-block:has(> .console-item:nth-child(2)) {*/
  /*  overflow-x: auto;*/
  /*  overflow-y: hidden;*/
  /*  .console-item:first-child{*/
  /*    margin-left: auto;*/
  /*  }*/
  /*  .console-item:last-child{*/
  /*    margin-right: auto;*/
  /*  }*/
  /*}*/
  .bottom-tools:not(.full) .console-block:has(> .console-item:nth-child(2)):not(:has(> .console-item:nth-child(3))){
    overflow-x: auto;
    overflow-y: hidden;
    transform: translateX(-30px);
    .console-item:first-child {
      margin-left: auto;
    }
    .console-item:last-child {
      margin-right: auto;
    }
  }
  .bottom-tools.full .console-block:has(> .console-item:nth-child(2)) {
    transform: translateX(0);
  }
  .console-block:not(:has(> .console-item:nth-child(2))) {
    justify-content: center;
    overflow: visible;
  }
  .cell.bet.bet--wide {
    grid-template-columns: 35px 1fr 35px;
    gap: 3px;
  }
  .cell .label {
    font-size: 9px;
    font-weight: 900;
    line-height: 1.05;
    white-space: nowrap;
  }
  .cell .value,
  .cell.bet.bet--wide .bet-center .value {
    font-size: 10px;
    font-weight: 900;
  }
  .cell.bet.bet--wide .bet-btn {
    width: 35px;
    height: 30px;
    font-size: 31px;
  }
  .bottom-tools .console-block > .console-item:only-child {
    position: relative;
    box-sizing: border-box;
    width: 85%;
    height: 52px;
    margin-inline: 0;
    padding: 8px 9px;
    border-radius: 13px;
    align-items: flex-start;
    grid-template-columns: 1fr var(--start-btn-size) 60px;
  }
  .bottom-tools .console-block > .console-item:only-child .stats {
    z-index: 3;
    grid-template-columns: 22% 35% 30% 17%;
    grid-template-rows: 1fr;
    gap: 5px;
  }
  .bottom-tools .console-block > .console-item:only-child .cell {
    grid-row: 1;
    height: 36px;
  }
  .bottom-tools .console-block > .console-item:only-child .auto-cashout-row {
    flex-direction: row-reverse;
  }
  .bottom-tools .console-block > .console-item:only-child .auto-cashout-row .auto-cashout-input {
    left: 0;
    right: auto;
  }
  .bottom-tools .console-block > .console-item:only-child .win {
    grid-column: 1;
    display: block;
    width: 100%;
    padding: 2px;
    text-align: center;
  }
  .bottom-tools .console-block > .console-item:only-child .cell.win .label,
  .bottom-tools .console-block > .console-item:only-child .cell.win .value {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.5;
  }
  .bottom-tools .console-block > .console-item:only-child .cell.win .value {
    flex: 0 0 auto;
  }
  .bottom-tools .console-block > .console-item:only-child .bet {
    grid-column: 2;
  }
  .bottom-tools .console-block > .console-item:only-child .cell.bet.bet--wide .bet-center {
    gap: 3px;
  }
  .bottom-tools .console-block > .console-item:only-child .auto-cashout {
    grid-column: 3;
  }
  .bottom-tools .console-block > .console-item:only-child .auto {
    grid-column: 4;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
  }
  .bottom-tools .console-block > .console-item:only-child .start-wrap {
    position: relative;
    top: -50px;
    left: 60%;
    box-sizing: border-box;
    width: calc(var(--start-btn-size) + 16px);
    height: calc(var(--start-btn-size) + 16px);
    border: 8px solid var(--console-bg);
    border-radius: 50%;
  }
  .bottom-tools .console-block > .console-item:only-child .start-wrap::before,
  .bottom-tools .console-block > .console-item:only-child .start-wrap::after {
    content: "";
    position: absolute;
    top: 15px;
    width: 24px;
    height: 20px;
    background: transparent;
    box-shadow: 0 10px 0 0 var(--console-bg);
    pointer-events: none;
  }
  .bottom-tools .console-block > .console-item:only-child .start-wrap::before {
    left: -27px;
    border-bottom-right-radius: 26px;
  }
  .bottom-tools .console-block > .console-item:only-child .start-wrap::after {
    right: -27px;
    border-bottom-left-radius: 26px;
  }
  .bottom-tools .console-block > .console-item:only-child .console-corner-btn {
    position: relative;
    top: unset;
    left: unset;
    right: -30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item {
    position: relative;
    min-width: var(--console-width);
    width: var(--console-width);
    padding: 5px;
    border-radius: 13px;
    grid-template-columns: minmax(0, 1fr) 62px;
    align-items: start;
  }
  .console-block:has(> .console-item:nth-child(2)):has(> .console-item > .console-item-inner) > .console-item {
    flex: 0 0 calc(var(--console-width) * var(--console-scale));
    min-width: calc(var(--console-width) * var(--console-scale));
    width: calc(var(--console-width) * var(--console-scale));
    height: calc(var(--console-height) * var(--console-scale));
    padding: 0;
    display: block;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item > .console-item-inner {
    display: grid;
    position: relative;
    box-sizing: border-box;
    width: var(--console-width);
    height: var(--console-height);
    padding: 5px;
    border-radius: 13px;
    grid-template-columns: minmax(0, 1fr) 62px;
    align-items: start;
    transform: scale(var(--console-scale));
    transform-origin: top left;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item .stats {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 16px 35px 35px;
    gap: 4px;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item .cell {
    height: 100%;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item .win {
    grid-column: 1 / 3;
    grid-row: 1;
    width: 72%;
    height: 16px;
    border-radius: 6px;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item .cell.win {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item .bet {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 72%;
    height: 35px;
    border-radius: 12px;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item .auto-cashout {
    grid-column: 1;
    grid-row: 3;
    width: 125px;
    height: 35px;
    border-radius: 12px;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item .cell.auto {
    align-items: center;
    justify-content: center;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item .auto {
    grid-column: 2;
    grid-row: 3;
    width: 89px;
    height: 35px;
    flex-direction: column;
    gap: 2px;
    border-radius: 12px;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item .start-wrap {
    position: relative;
    align-self: flex-start;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }
  .console-block:has(> .console-item:nth-child(2)) > .console-item .start-wrap button {
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    margin: 0;
  }
  /*.console-block:has(> .console-item:nth-child(2)) > .console-item .start-wrap button .label .stroke {*/
  /*  font-size: 14px;*/
  /*}*/
  .console-block:has(> .console-item:nth-child(2)) > .console-item .console-corner-btn {
    top: -4px;
    right: -8px;
    width: 24px;
    height: 24px;
  }
  .previous-table thead th {
    font-size: 11px;
  }
  .previous-toolbar__result {
    padding: 4px 0 6px;
  }
  .previous-table__player-inner img {
    width: 11px;
    height: 11px;
    min-width: 11px;
    min-height: 11px;
  }
  .previous-table tbody th,
  .previous-table tbody td {
    padding: 1px;
    font-size: 7px;
    font-weight: 400;
  }
  .previous-table__row.is-win > th:first-child {
    border-radius: 4px 0 0 4px;
  }
  .previous-table__row.is-win > td:last-child {
    border-radius: 0 4px 4px 0;
  }
  .top-filters {
    gap: 2px;
    margin-top: 2px;
    margin-bottom: 2px;
  }
  .top-filters__btn {
    font-size: 9px;
  }
  /* TOP CARD LANDSCAPE GRID */
  .top-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 67px 44px;
    grid-template-areas:
      "avatar user user user"
      "avatar empty multiplierLabel multiplierValue"
      "divider divider divider divider"
      "bet bet winLabel winValue";
    column-gap: 8px;
    row-gap: 6px;
    align-items: center;
    padding: 6px;
    border-radius: 12px;
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 1px 2px rgba(5, 12, 38, 0.25);
  }
  .top-card__header,
  .top-card__body {
    display: contents;
  }
  .top-card__header::after {
    display: none;
  }
  .top-card::after {
    content: "";
    grid-area: divider;
    height: 1px;
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.13) 52.88%,
            rgba(255, 255, 255, 0) 100%
    );
  }
  .top-card__avatar,
  .top-card__user img {
    grid-area: avatar;
    align-self: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }
  .top-card__user-info {
    grid-area: user;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, max-content) max-content;
    column-gap: 16px;
    align-items: center;
  }
  .top-card__name {
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }
  .top-card__date {
    margin-top: 0;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
  }
  .top-card__date::before {
    display: none;
    content: none;
  }
  .top-card__header .top-card__label:not(.top-card__date) {
    grid-area: multiplierLabel;
    justify-self: start;
    align-self: center;
    text-align: left;
    line-height: 1;
  }
  .top-card__header .top-card__value {
    grid-area: multiplierValue;
    justify-self: end;
    align-self: center;
    text-align: right;
    line-height: 1;
  }
  .top-card__spacer {
    display: none;
  }
  .top-card__bet-row {
    grid-area: bet;
    display: flex;
    align-items: center;
    justify-self: start;
    align-self: center;
    min-width: 0;
    height: 100%;
  }
  .top-card__bet-row .top-card__value {
    display: block;
    text-align: left;
    line-height: 1;
  }
  .top-card__body .top-card__label {
    grid-area: winLabel;
    justify-self: start;
    align-self: center;
    text-align: left;
    line-height: 1;
  }
  .top-card__body .top-card__value {
    grid-area: winValue;
    justify-self: end;
    align-self: center;
    text-align: right;
    line-height: 1;
  }
  .top-card__label {
    font-size: 8px;
  }
  .top-card__value {
    font-size: 8px;
  }
  .top-card__fair-icon svg,
  .top-card__fair-icon img {
    width: 16px;
    height: 16px;
  }
}
@media (orientation: landscape) and (max-width: 890px) {
  .bottom-tools .console-block > .console-item:only-child {
    width: 95%;
  }
}
@media (orientation: landscape) and (max-width: 800px) {
  .bottom-tools.full .console-block > .console-item:only-child {
    border-radius: 13px;
    min-width: 230px;
    width: 230px;
    padding: 5px;
    grid-template-columns: minmax(0, 1fr) 62px;
    align-items: start;
    position: relative;
    height: unset;

    .stats {
      display: grid;
      width: 100%;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 16px 35px 35px;
      gap: 4px;
    }
    .cell {
      height: 100%;
    }
    .win {
      grid-column: 1 / 3;
      grid-row: 1;
      height: 16px;
      border-radius: 6px;
      width: 72%;
    }
    .bet {
      grid-column: 1 / 3;
      grid-row: 2;
      height: 35px;
      border-radius: 12px;
      width: 72%;
    }
    .auto-cashout {
      grid-column: 1;
      grid-row: 3;
      height: 35px;
      border-radius: 12px;
      width: 125px;
    }
    .auto {
      grid-column: 2;
      grid-row: 3;
      height: 35px;
      border-radius: 12px;
      width: 89px;
      flex-direction: column;
      gap: 2px;
    }
    .start-wrap {
      min-width: 56px;
      min-height: 56px;
      width: 56px;
      height: 56px;
      align-self: flex-start;
      position: relative;
      top: 0;
      left: 0;
      border: 0;
    }
    .start-wrap:before,
    .start-wrap:after {
      content: none;
    }
    .start-wrap button{
      width: 56px;
      height: 56px;
      box-sizing: border-box;
      margin: 0;

      .label .stroke {
        font-size: 14px;
      }
    }
    .console-corner-btn {
      position: absolute;
      width: 24px;
      height: 24px;
      right: -8px;
      top: -4px;
    }
  }
  .bottom-tools.full .console-block > .console-item:only-child .cell.win {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .bottom-tools.full .console-block > .console-item:only-child .cell.win .label,
  .bottom-tools.full .console-block > .console-item:only-child .cell.win .value {
    display: block;
    width: auto;
    text-align: left;
    line-height: 1;
  }
  .bottom-tools.full .console-block > .console-item:only-child .cell.win .label {
    flex: 0 0 auto;
  }
  .bottom-tools.full .console-block > .console-item:only-child .cell.win .value {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
@media (orientation: landscape) and (min-width: 900px) {
  .bottom-tools .console-block > .console-item:only-child {
    height: 52px;
    padding: 8px 9px;
    border-radius: 13px;
    position: relative;
    align-items: flex-start;
    box-sizing: border-box;
    max-width: 700px;
    width: 70vw;
    grid-template-columns: 1fr var(--start-btn-size) 60px;
    padding-right: max(env(safe-area-inset-right), 8px);
  }
}
@media (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  .info-plaque.open .coeffs-dock-list > .history-mult:nth-child(n+20) {
    display: none;
  }
}
@media (orientation: landscape) and (max-width: 900px) and (max-height: 375px) {
  .info-plaque.open .coeffs-dock-list > .history-mult:nth-child(n+20) {
    display: none;
  }
  .info-plaque:not(.open) .coeffs-dock-list > :nth-child(n+5){
    display: none;
  }
  .bottom-tools {
    max-height: calc(100vh - var(--bottomPanel-h) - 8px);
  }
  .top-card {
    grid-template-columns: 28px minmax(0, 1fr) 45px 44px;
  }
  .bets-toolbar__filter-btn {
    font-size: 9px;
  }
  .info-plaque .history-mult {
    height: 20px;
    border-radius: 7px;
  }
}
@media (orientation: landscape) and (max-height: 320px) {
  .auto-cashout-keypad-overlay {
    padding: 8px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 50px);
  }

  .auto-cashout-keypad {
    width: min(74vw, 220px);
    border-radius: 14px;
    padding: 8px;
    gap: 6px;
  }

  .auto-cashout-keypad__top,
  .auto-cashout-keypad__keys {
    gap: 6px;
  }

  .auto-cashout-keypad__display,
  .auto-cashout-keypad__ok,
  .auto-cashout-keypad__key {
    height: 34px;
    border-radius: 10px;
  }

  .topbar-message {
    padding: 0 4px;
    font-size: 14px;

    .auto-cashout-keypad__display {
      padding-inline: 16px;
      font-size: 16px;
    }

    .auto-cashout-keypad__ok {
      font-size: 20px;
    }

    .auto-cashout-keypad__key {
      font-size: 18px;
    }

    .auto-cashout-keypad__key--backspace {
      font-size: 16px;
    }
  }
}

/* tablet portrait */
@media (min-width: 768px) and (max-width: 1200px) and (orientation: portrait) {
  :root {
    --stats-row-2-h: 50px;
  }
  .stats {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
  .cell.auto,
  .auto-cashout {
    width: 100%;
  }
  .auto-cashout-value {
    width: auto;
    max-width: 90px;
  }
  .bottom-tools {
    padding-left: 2vw;
    padding-right: 2vw;
    box-sizing: border-box;
  }
  .console-block,
  .bets-toolbar {
    width: 100%;
  }
  .console-block {
    margin: 2px 0 0;
  }
  .bets-toolbar {
    margin: 0;
  }
  .cell.win {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    padding-inline: 18px;
    text-align: left;
  }
  .cell.win .label,
  .cell.win .value {
    width: auto;
    line-height: 1;
    text-align: left;
  }
  .cell.win .label,
  .cell.win .value {
    flex: 0 0 auto;
  }
  .cell.win .label {
    font-size: 13px;
  }
  .cell.auto {
    padding-inline: 18px;
  }
  .cell .label {
    font-size: 13px;
  }
  .toggle-autobet,
  .toggle-autocashout,
  .auto-cashout-input {
    width: 56px;
    height: 24px;
  }
  .toggle-autobet .knob,
  .toggle-autocashout .knob {
    width: 18px;
    height: 18px;
    left: 3px;
  }
  .auto-bet-input:checked + .toggle-autobet .knob,
  .auto-cashout-input:checked ~ .toggle-autocashout .knob {
    left: calc(100% - 18px - 3px);
  }
  .cell.bet.bet--wide {
    padding-inline: 6px;
    grid-template-columns: 48px 1fr 48px;
    gap: 6px;
  }
  .cell.bet.bet--wide .bet-btn {
    width: 48px;
    height: 40px;
  }
  .auto-cashout-row {
    justify-content: space-between;
  }
  .auto-cashout-toggle-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .auto-cashout-input {
    top: 50%;
    right: 0;
    left: auto;
    transform: translateY(-50%);
  }
  .auto-cashout-value {
    flex: 1 1 auto;
  }
  .auto-cashout {
    padding-inline: 18px;
  }
  .auto-cashout-value {
    flex: 0 0 120px;
    width: 120px;
    min-width: 120px;
  }
  .start-wrap {
    width: 100px;
    min-width: 100px;
    height: 100px;
  }
  .start-wrap > button {
    width: 96px;
    height: 96px;
  }
  .stats {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    justify-self: start;
    row-gap: 8px;
  }
  [data-part="start"] .label b {
    font-size: 24px;
  }
  [data-part="cashout"] .label b {
    font-size: 22px;
  }
  [data-part="cancel"] .label b {
    font-size: 22px;
  }
  .bets-table thead th,
  .bets-table tbody td,
  .previous-table thead th,
  .previous-table tbody td,
  .top-card__label {
    font-size: clamp(16px, 1.2vw, 22px);
  }
  .bets-toolbar__meta,
  .previous-toolbar__result-label,
  .top-filters__btn {
    font-size: clamp(14px, 1.8vw, 22px);
  }
  .previous-toolbar__result-value {
    font-size: clamp(32px, 4vw, 42px);
  }
  .top-card__name,
  .top-card__value {
    font-size: clamp(18px, 1.8vw, 26px);
  }
  .top-card__time {
    font-size: clamp(12px, 1.8vw, 18px);
  }
  .top-card__header, .top-card__body {
    grid-template-columns: 28px minmax(0, 1fr) 186px 50px;
  }
}

/* tablet landscape */
@media (min-width: 768px) and (max-width: 1200px) and (min-height: 500px) and (orientation: landscape) {
  .bottom-tools .console-block > .console-item:only-child {
    width: 70vw;
  }
  .bets-table tbody th,
  .bets-table tbody td {
    font-size: clamp(7px, 1vw, 10px);
  }
  .bottom-tools.full .bets-toolbar {
    width: min(30vw, 300px);
  }
  .bets-table thead th,
  .previous-table thead th {
    font-size: clamp(12px, 1.2vw, 16px);
  }
  .bets-table tbody th, .bets-table tbody td,
  .previous-table tbody th, .previous-table tbody td,
  .top-card__label {
    font-size: 11px;
  }
  .bets-toolbar__meta,
  .previous-toolbar__result-label,
  .top-filters__btn {
    font-size: 11px;
  }
  .previous-toolbar__result-value {
    font-size: clamp(22px, 4vw, 32px);
  }
  .top-card__name,
  .top-card__value {
    font-size: clamp(12px, 1.2vw, 18px);
  }
  .top-card__time {
    font-size: clamp(12px, 1.8vw, 18px);
  }
  .top-card__header, .top-card__body {
    grid-template-columns: 28px minmax(0, 1fr) 186px 50px;
  }
  .bottom-tools.full .bets-toolbar__summary .bets-toolbar__meta--total{
    font-size: 12px;
    width: 15vw;
  }
  .bottom-tools.full .bets-toolbar__summary .bets-toolbar__meta:first-child {
    font-size: 12px;
  }
  .top-card {
    grid-template-columns: 28px minmax(0, 1fr) 120px 44px;
  }
  .bottom-tools.full {
    left: calc(min(30vw, 300px) + 5px);
  }
}

/* desktop */
@media (orientation: landscape) and (min-width: 1200px) {
  .bottom-tools.full {
    left: calc(min(45vw, 400px) + 5px);
  }
  .bottom-tools .console-block > .console-item:only-child {
    height: 52px;
    padding: 8px 9px;
    border-radius: 13px;
    position: relative;
    align-items: flex-start;
    box-sizing: border-box;
    width: min(70vw, 700px);
    grid-template-columns: 1fr var(--start-btn-size) 60px;
    padding-right: max(env(safe-area-inset-right), 8px);
  }
  .bottom-tools.full .bets-toolbar {
    width: min(45vw, 400px);
    padding-left: 15px;
    justify-content: unset;
    max-height: unset;
  }
  .bets-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: var(--bottomPanel-h);
    min-width: 140px;
    width: 7vw;
    border-radius: 0 11px 11px 0;
    max-height: 100%;
    justify-content: space-between;
    backdrop-filter: blur(40px);
    box-shadow: 0 0.7px 0 0 #ffffff8c inset;
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    box-shadow: 0 0.7px 0 0 #ffffff8c inset;
  }
  .console-block {
    --console-scale: 1.35;
    gap: 10px;
  }
  .top-card__name {
    font-size: 14px;
  }
  .bottom-tools.full .bets-toolbar {
    width: min(30vw, 400px);
  }
  .bets-table thead th,
  .previous-table thead th {
    font-size: clamp(12px, 1.2vw, 16px);
  }
  .bets-table tbody th, .bets-table tbody td,
  .previous-table tbody th, .previous-table tbody td,
  .top-card__label {
    font-size: 14px;
  }
  .bets-toolbar__meta,
  .previous-toolbar__result-label,
  .top-filters__btn {
    font-size: 14px;
  }
  .previous-toolbar__result-value {
    font-size: clamp(22px, 4vw, 32px);
  }
  .top-card__name,
  .top-card__value {
    font-size: clamp(12px, 1.2vw, 18px);
  }
  .top-card__time {
    font-size: clamp(12px, 1.8vw, 18px);
  }
  .top-card__header, .top-card__body {
    grid-template-columns: 28px minmax(0, 1fr) 186px 50px;
  }
  .bottom-tools.full .bets-toolbar__summary .bets-toolbar__meta--total,
  .bottom-tools.full .bets-toolbar__summary .bets-toolbar__meta:first-child {
    font-size: 14px;
    width: 15vw;
  }
  .top-card {
    grid-template-columns: 28px minmax(0, 1fr) 150px 44px;
  }
  .bets-toolbar__filter-btn {
    min-height: 22px;
    font-size: 14px;
  }
  .top-card__time {
    font-size: 12px;
  }
}
@media (orientation: landscape) and (min-width: 1241px) {
  .bottom-tools.full .console-block:not(:has(> .console-item:nth-child(2))) {
    --single-console-width: min(
            calc((100vw - min(45vw, 400px) - 16px) / var(--console-scale)),
            720px
    );
  }
}

/* region Single open console label tuning */
/*@media (orientation: landscape) {*/
/*  .bottom-tools.full .console-block > .console-item:only-child .start-wrap [data-part="start"] .label .stroke {*/
/*    font-size: calc(var(--main-btn-start-single-open-font-size-base) * var(--main-btn-start-single-open-scale));*/
/*  }*/
/*  .bottom-tools.full .console-block > .console-item:only-child .start-wrap [data-part="cancel"] .label .stroke {*/
/*    font-size: calc(var(--main-btn-cancel-single-open-font-size-base) * var(--main-btn-cancel-single-open-scale));*/
/*  }*/
/*  .bottom-tools.full .console-block > .console-item:only-child .start-wrap [data-part="cashout"] .label .stroke {*/
/*    font-size: calc(var(--main-btn-cashout-single-open-font-size-base) * var(--main-btn-cashout-single-open-scale));*/
/*  }*/
/*  .bottom-tools.full .console-block > .console-item:only-child .start-wrap [data-part="cancel"] .label [data-role="next-round-hint"] {*/
/*    font-size: calc(var(--main-btn-next-round-single-open-font-size-base) * var(--main-btn-next-round-single-open-scale));*/
/*    line-height: var(--main-btn-next-round-single-open-line-height);*/
/*  }*/
/*}*/

@media (orientation: landscape) and (max-width: 800px) {
  .bottom-tools.full .console-block > .console-item:only-child .start-wrap [data-part="start"] .label .stroke {
    font-size: calc(var(--main-btn-start-single-open-narrow-font-size-base) * var(--main-btn-start-single-open-narrow-scale));
  }
  .bottom-tools.full .console-block > .console-item:only-child .start-wrap [data-part="cancel"] .label .stroke {
    font-size: calc(var(--main-btn-cancel-single-open-narrow-font-size-base) * var(--main-btn-cancel-single-open-narrow-scale));
  }
  .bottom-tools.full .console-block > .console-item:only-child .start-wrap [data-part="cashout"] .label .stroke {
    font-size: calc(var(--main-btn-cashout-single-open-narrow-font-size-base) * var(--main-btn-cashout-single-open-narrow-scale));
  }
  .bottom-tools.full .console-block > .console-item:only-child .start-wrap [data-part="cancel"] .label [data-role="next-round-hint"] {
    font-size: calc(var(--main-btn-next-round-single-open-narrow-font-size-base) * var(--main-btn-next-round-single-open-narrow-scale));
    line-height: var(--main-btn-next-round-single-open-narrow-line-height);
  }
}
/* endregion */
