*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font: Montserrat, system-ui, sans-serif;
  --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --glass-dodge:
    inset 1.172px 1.17px 0 -0.586px #333,
    inset -1.172px -1.172px 0 -0.586px #262626;
  --glass-overlay:
    inset 0 0 3.517px 0 rgba(255, 255, 255, 0.5),
    inset -1.172px -1.172px 0.586px -1.172px #fff,
    inset 1.172px 1.172px 0.586px -1.172px #fff;
  --glass-flat:
    inset 1.172px 1.17px 0 -0.586px rgba(255, 255, 255, 0.28),
    inset -1.172px -1.172px 0 -0.586px rgba(255, 255, 255, 0.21),
    inset 0 0 6px 0 rgba(255, 255, 255, 0.11);
  --glass-flat-inner:
    inset 0 0 0 0.25px rgba(255, 255, 255, 0.08),
    inset 0 0 2px 0 rgba(255, 255, 255, 0.09);
  --glass-backdrop: blur(3.517px) brightness(0.55);
  --glass-backdrop-active: blur(3.517px) brightness(0.3);
  --background_default: radial-gradient(182% 85% at 50% 50%, #4a505a, #0c0d0e 100%);
  --tab-active: #fe0000;
  --tab-inactive: rgba(255, 255, 255, 0.33);
  --tg-safe-top: 0px;
  --tg-safe-bottom: 0px;
  --tg-content-safe-top: 0px;
  --tg-content-safe-bottom: 0px;
  --tg-viewport-height: 100dvh;
  --tabbar-height: 64px;
  --tabbar-space: calc(76px + var(--tg-safe-bottom) + var(--tg-content-safe-bottom));
  --app-wide-max-w: 480px;
  --app-gutter: 16px;
  --app-top-gap: 8px;
  --app-header-h: calc(
    var(--tg-safe-top) + max(16px, var(--tg-content-safe-top)) + var(--app-top-gap) + 36px + 25px
  );
}

html,
body {
  height: var(--tg-viewport-height, 100dvh);
  min-height: var(--tg-viewport-height, 100dvh);
  background-color: #141414;
  background-image: none;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #fff;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #000;
}

.splash__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.splash__loader {
  position: absolute;
  left: 50%;
  bottom: calc(48px + var(--tg-safe-bottom));
  width: 32px;
  height: 32px;
  margin-left: -16px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: splash-spin 0.7s linear infinite;
}

.splash.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@keyframes splash-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-scroll {
  width: 100%;
  max-width: var(--app-wide-max-w);
  margin: 0 auto;
  height: var(--tg-viewport-height, 100dvh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.app-scroll:has(#screen-home:not([hidden])) {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

#screen-home {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #141414;
  overflow: visible;
}

#screen-home[hidden] {
  display: none;
}

#screen-home > .app {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 25px var(--app-gutter) calc(25px + var(--tabbar-space));
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: var(--font);
}

.app {
  min-height: calc(var(--tg-viewport-height, 100dvh) - var(--app-header-h));
  padding:
    25px
    var(--app-gutter)
    calc(24px + var(--tabbar-height) + var(--tg-safe-bottom) + var(--tg-content-safe-bottom));
}

.mines-heading,
.roulette-heading,
.live-heading,
.slots-heading,
.upgrade-heading,
.case-heading {
  margin: 0;
  color: #fff;
  font-family: var(--font);
  font-size: 30px;
  font-weight: 600;
  line-height: 37px;
  text-align: center;
}

.app-topbar {
  padding:
    calc(var(--tg-safe-top) + max(16px, var(--tg-content-safe-top)) + var(--app-top-gap))
    var(--app-gutter)
    0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-topbar[hidden] {
  display: none;
}

.home-header {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.home-header__logo {
  width: 38px;
  height: 36.417px;
  flex-shrink: 0;
  display: block;
}

.home-header__title {
  font-family: var(--font-sf);
  font-size: 16.411px;
  font-weight: 900;
  letter-spacing: -0.0938px;
  color: #fff;
  line-height: normal;
  white-space: nowrap;
}

.home-header__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.home-header__plus {
  appearance: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
  background: #1f1f1f;
}

.home-header__plus,
.home-header__balance.balance-card {
  position: relative;
  isolation: isolate;
}

.home-header__plus::before,
.home-header__plus::after,
.home-header__balance.balance-card::before,
.home-header__balance.balance-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.home-header__plus::before,
.home-header__balance.balance-card::before {
  box-shadow: var(--glass-dodge);
  mix-blend-mode: plus-lighter;
}

.home-header__plus::after,
.home-header__balance.balance-card::after {
  box-shadow: var(--glass-overlay);
  mix-blend-mode: overlay;
}

.home-header__plus img {
  display: block;
  width: 10px;
  height: 10px;
}

.home-header__plus:active img {
  opacity: 0.7;
}

.balance-card[hidden] {
  display: none;
}

.home-header__balance.balance-card {
  width: auto;
  flex-shrink: 0;
  height: 36px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px 0 16px;
  border-radius: 1000px;
  border: none;
  background: linear-gradient(124.757deg, #4c3d1f 39.413%, #b27f20 108.37%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-header__star {
  width: 19px;
  height: 17px;
  flex-shrink: 0;
  display: block;
}

.home-header__balance p {
  margin: 0;
  font-family: var(--font-sf);
  font-size: 16.411px;
  font-weight: 590;
  letter-spacing: -0.0938px;
  color: #fff;
  line-height: normal;
  white-space: nowrap;
}

.balance-card.is-demo {
  outline: 1px solid #ffd54a88;
}

.balance-card__demo-badge {
  display: none;
  position: absolute;
  z-index: 2;
  top: -8px;
  right: -4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1300;
  background: #ffd54a;
  border-radius: 999px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.balance-card.is-demo .balance-card__demo-badge {
  display: inline-block;
}

.demo-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #ffffff26;
  background: #ffffff12;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.demo-toggle.is-on {
  background: #ffd54a;
  border-color: #ffd54a;
  color: #1a1300;
}

.BalanceItem--container {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  width: max-content;
  background: #ffffff1a;
  color: #fff;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.BalanceItem--size-md {
  border-radius: 24px;
  gap: 4px;
  height: 42px;
  padding: 0 12px 0 14px;
}

.BalanceItem--size-md img {
  height: 20px;
  width: 20px;
  display: block;
  flex-shrink: 0;
}

.BalanceItem__value {
  display: flex;
  align-items: center;
  gap: 12px;
}

.BalanceItem--size-md p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0 var(--app-gutter) calc(14px + var(--tg-safe-bottom) + var(--tg-content-safe-bottom));
  background: transparent;
  pointer-events: none;
}

.tabbar__content {
  pointer-events: auto;
  touch-action: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, calc(var(--app-wide-max-w) - 2 * var(--app-gutter)));
  margin: 0 auto;
  padding: 0 1px;
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: var(--font-sf);
}

.tabbar__main {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  width: 208px;
  height: 62px;
  padding: 4px 6px;
  border-radius: 39.854px;
  overflow: hidden;
  isolation: isolate;
}

.tabbar__glass {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: var(--glass-backdrop);
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-flat);
  pointer-events: none;
}

.tab {
  appearance: none;
  border: none;
  background: transparent;
  flex: 0 0 102px;
  width: 102px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 8px 7px;
  cursor: pointer;
  color: var(--tab-inactive);
  font: inherit;
  position: relative;
  z-index: 1;
  border-radius: 100px;
  transition: color 0.25s ease;
}

.tab__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: inherit;
}

.tab__icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.tabbar__main .tab + .tab {
  margin-left: -8px;
}

.tab__label {
  font-size: 10px;
  font-weight: 590;
  line-height: 12px;
  letter-spacing: -0.1px;
  white-space: nowrap;
  color: inherit;
}

.tab.is-active {
  color: var(--tab-active);
}

.tab.is-active .tab__icon {
  color: var(--tab-active);
}

.tab--profile {
  position: relative;
  flex: 0 0 66px;
  width: 66px;
  height: 62px;
  padding: 0 0 1px;
  border-radius: 39.854px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.tab--profile.is-active .tabbar__glass {
  -webkit-backdrop-filter: var(--glass-backdrop-active);
  backdrop-filter: var(--glass-backdrop-active);
}

.tab__avatar,
.tab__avatar-initial {
  grid-area: 1 / 1;
  display: block;
  width: 43px;
  height: 43px;
  border-radius: 50%;
}

.tab__avatar {
  object-fit: cover;
}

.tab__avatar:not([src]),
.tab__avatar[hidden] {
  display: none;
}

.tab__avatar-initial {
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #5a3cff, #c13cff);
}

.tab__avatar-initial[hidden] {
  display: none;
}

.tabbar__thumb {
  position: absolute;
  top: 4px;
  left: 0;
  height: 54px;
  margin-left: -2px;
  padding: 0 2px;
  box-sizing: content-box;
  border-radius: 100px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    rgba(0, 0, 0, 0.7);
  box-shadow: var(--glass-flat-inner);
  transition:
    left 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.tab:active .tab__icon,
.tab:active .tab__label,
.tab:active .tab__avatar,
.tab:active .tab__avatar-initial {
  opacity: 0.7;
}

.free-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-top: calc(16px + var(--tg-safe-top) + var(--tg-content-safe-top));
  padding-bottom: calc(16px + var(--tg-safe-bottom) + var(--tg-content-safe-bottom));
}

.free-modal[hidden] {
  display: none !important;
}

.free-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.free-modal__sheet {
  position: relative;
  width: min(100%, 420px);
  background: #1c1c1e;
  border-radius: 24px;
  padding: 18px 16px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.free-modal__close {
  appearance: none;
  border: none;
  background: transparent;
  color: #8e8e93;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
}

.free-modal__close:active {
  background: #ffffff12;
}

#free-modal.free-modal--pick {
  padding: 16px;
  background: transparent;
}

#free-modal.free-modal--pick .free-modal__backdrop {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

#free-modal.free-modal--pick .free-modal__sheet {
  position: relative;
  width: 358px;
  height: 222px;
  max-width: calc(100% - 8px);
  padding: 0;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  background: rgba(40, 40, 40, 0.78);
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.067),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
}

#free-modal.free-modal--pick .free-modal__sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.19);
  filter: blur(1px);
  pointer-events: none;
  z-index: 5;
}

#free-modal.free-modal--pick .free-modal__close {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  position: absolute;
  left: 313px;
  top: 12px;
  width: 33px;
  height: 33px;
  right: auto;
  transform: none;
  z-index: 3;
  border-radius: 50%;
}

#free-modal.free-modal--pick .free-modal__close img {
  display: block;
  width: 33px;
  height: 33px;
  pointer-events: none;
}

#free-modal.free-modal--pick .pick-item {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: absolute;
  z-index: 2;
  display: block;
  text-align: left;
}

#free-modal.free-modal--pick .pick-item:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

#free-modal.free-modal--pick .pick-item__glass {
  position: absolute;
  left: 0;
  top: 0;
  width: 125px;
  height: 125px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(101, 101, 101, 0.2);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.38),
    inset 0 1px 3px rgba(0, 0, 0, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.09),
    inset -1px 0 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}

#free-modal.free-modal--pick .pick-item__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(315deg, transparent 55%, rgba(255, 255, 255, 0.07) 100%);
}

#free-modal.free-modal--pick .pick-item__img {
  position: absolute;
  width: 120px;
  height: 120px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  display: block;
}

#free-modal.free-modal--pick .pick-item__name {
  position: absolute;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}

#free-modal.free-modal--pick .pick-item--case {
  left: 31px;
  top: 48px;
  width: 125px;
  height: 150px;
}

#free-modal.free-modal--pick .pick-item--case .pick-item__img {
  left: 3px;
  top: 3px;
}

#free-modal.free-modal--pick .pick-item--case .pick-item__name {
  left: 43px;
  top: 132px;
}

#free-modal.free-modal--pick .pick-item--wheel {
  left: 202px;
  top: 48px;
  width: 171px;
  height: 146px;
}

#free-modal.free-modal--pick .pick-item--wheel .pick-item__img {
  left: 3px;
  top: 3px;
}

#free-modal.free-modal--pick .pick-item--wheel .pick-item__name {
  left: -14px;
  top: 128px;
}

#live-modal.free-modal--live {
  padding: 16px;
  background: transparent;
}

#live-modal.free-modal--live .free-modal__backdrop {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

#live-modal.free-modal--live .free-modal__sheet {
  position: relative;
  width: 358px;
  height: 560px;
  max-width: calc(100% - 8px);
  padding: 0;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  background: rgba(40, 40, 40, 0.78);
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.067),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
}

#live-modal.free-modal--live .free-modal__sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.19);
  filter: blur(1px);
  pointer-events: none;
  z-index: 5;
}

#live-modal.free-modal--live .live-pick-shine {
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

#live-modal.free-modal--live .live-pick-shine--tile {
  inset: 0;
  background: linear-gradient(315deg, transparent 55%, rgba(255, 255, 255, 0.07) 100%);
}

#live-modal.free-modal--live .free-modal__close {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  position: absolute;
  left: 313px;
  top: 12px;
  width: 33px;
  height: 33px;
  right: auto;
  transform: none;
  z-index: 3;
  color: inherit;
  border-radius: 50%;
}

#live-modal.free-modal--live .free-modal__close img {
  display: block;
  width: 33px;
  height: 33px;
  pointer-events: none;
}

#live-modal.free-modal--live .free-modal__close:active {
  filter: brightness(1.12);
}

#live-modal.free-modal--live .live-pick {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: absolute;
  z-index: 2;
  display: block;
  text-align: left;
}

#live-modal.free-modal--live .live-pick:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

#live-modal.free-modal--live .live-pick__tile {
  position: absolute;
  left: 0;
  top: 0;
  width: 125px;
  height: 125px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(101, 101, 101, 0.2);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.38),
    inset 0 1px 3px rgba(0, 0, 0, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.09),
    inset -1px 0 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  isolation: isolate;
}

#live-modal.free-modal--live .live-pick__img {
  position: absolute;
  width: 124px;
  height: 124px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  display: block;
}

#live-modal.free-modal--live .live-pick__name {
  position: absolute;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}

#live-modal.free-modal--live .live-pick__amount {
  position: absolute;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  color: #ffbf32;
  text-align: right;
  white-space: nowrap;
}

#live-modal.free-modal--live .live-pick--foot {
  left: 36px;
  top: 54px;
  width: 125px;
  height: 150px;
}

#live-modal.free-modal--live .live-pick--foot .live-pick__img--foot {
  left: 1px;
  top: 14px;
}

#live-modal.free-modal--live .live-pick--foot .live-pick__name {
  left: 1px;
  top: 134px;
}

#live-modal.free-modal--live .live-pick--foot .live-pick__amount {
  left: 81px;
  top: 128px;
}

#live-modal.free-modal--live .live-pick--basket {
  left: 205px;
  top: 54px;
  width: 125px;
  height: 150px;
}

#live-modal.free-modal--live .live-pick--basket .live-pick__img--basket {
  left: 2px;
  top: 1px;
}

#live-modal.free-modal--live .live-pick--basket .live-pick__name {
  left: 0;
  top: 134px;
}

#live-modal.free-modal--live .live-pick--basket .live-pick__amount {
  left: 82px;
  top: 128px;
}

#live-modal.free-modal--live .live-pick--dice {
  left: 36px;
  top: 199px;
  width: 125px;
  height: 177px;
}

#live-modal.free-modal--live .live-pick--dice .live-pick__tile {
  top: 18px;
}

#live-modal.free-modal--live .live-pick--dice .live-pick__img--dice {
  left: 1px;
  top: 0;
}

#live-modal.free-modal--live .live-pick--dice .live-pick__name {
  left: 1px;
  top: 150px;
}

#live-modal.free-modal--live .live-pick--dice .live-pick__amount {
  left: 82px;
  top: 145px;
}

#live-modal.free-modal--live .live-pick--dart {
  left: 205px;
  top: 217px;
  width: 125px;
  height: 162px;
}

#live-modal.free-modal--live .live-pick--dart .live-pick__img--dart {
  left: 2px;
  top: 0;
}

#live-modal.free-modal--live .live-pick--dart .live-pick__name {
  left: 0;
  top: 132px;
}

#live-modal.free-modal--live .live-pick--dart .live-pick__amount {
  left: 80px;
  top: 130px;
}

#live-modal.free-modal--live .live-pick--bowling {
  left: 36px;
  top: 380px;
  width: 125px;
  height: 164px;
}

#live-modal.free-modal--live .live-pick--bowling .live-pick__img--bowling {
  left: 1px;
  top: 3px;
}

#live-modal.free-modal--live .live-pick--bowling .live-pick__name {
  left: 0;
  top: 134px;
}

#live-modal.free-modal--live .live-pick--bowling .live-pick__amount {
  left: 82px;
  top: 132px;
}

@media (max-width: 390px) {
  #live-modal.free-modal--live .free-modal__sheet {
    transform: scale(calc((100vw - 32px) / 358));
    transform-origin: center center;
  }
}

#cases-modal.free-modal--cases {
  padding: 16px;
  background: transparent;
}

#cases-modal.free-modal--cases .free-modal__backdrop {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

#cases-modal.free-modal--cases .free-modal__sheet {
  position: relative;
  width: 358px;
  height: 386px;
  max-width: calc(100% - 8px);
  padding: 0;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  background: rgba(40, 40, 40, 0.78);
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.067),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
}

#cases-modal.free-modal--cases .free-modal__sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.19);
  filter: blur(1px);
  pointer-events: none;
  z-index: 5;
}

#cases-modal.free-modal--cases .free-modal__close {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  position: absolute;
  left: 313px;
  top: 11px;
  width: 33px;
  height: 33px;
  right: auto;
  transform: none;
  z-index: 3;
  border-radius: 50%;
}

#cases-modal.free-modal--cases .free-modal__close img {
  display: block;
  width: 33px;
  height: 33px;
  pointer-events: none;
}

#cases-modal.free-modal--cases .pick-item {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: absolute;
  z-index: 2;
  display: block;
  text-align: left;
}

#cases-modal.free-modal--cases .pick-item:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

#cases-modal.free-modal--cases .pick-item__tile,
#cases-modal.free-modal--cases .pick-item__glass {
  position: absolute;
  left: 0;
  top: 0;
  width: 125px;
  height: 125px;
}

#cases-modal.free-modal--cases .pick-item__glass {
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(101, 101, 101, 0.2);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.38),
    inset 0 1px 3px rgba(0, 0, 0, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.09),
    inset -1px 0 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  isolation: isolate;
}

#cases-modal.free-modal--cases .pick-item__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(315deg, transparent 55%, rgba(255, 255, 255, 0.07) 100%);
}

#cases-modal.free-modal--cases .pick-item__img {
  position: absolute;
  width: 120px;
  height: 120px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  display: block;
}

#cases-modal.free-modal--cases .pick-item__name {
  position: absolute;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}

#cases-modal.free-modal--cases .pick-item__name--promo {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  white-space: pre;
}

#cases-modal.free-modal--cases .pick-item__price {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #ffbf32;
}

#cases-modal.free-modal--cases .pick-item__price img {
  width: 13px;
  height: 13px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

#cases-modal.free-modal--cases .pick-item__promo {
  position: absolute;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  color: #ffbf32;
  white-space: nowrap;
}

#cases-modal.free-modal--cases .pick-item--star {
  left: 36px;
  top: 53px;
  width: 125px;
  height: 154px;
}

#cases-modal.free-modal--cases .pick-item--star .pick-item__img {
  left: 2px;
  top: 3px;
}

#cases-modal.free-modal--cases .pick-item--star .pick-item__name {
  left: 0;
  top: 134px;
}

#cases-modal.free-modal--cases .pick-item--star .pick-item__price {
  left: 97px;
  top: 134px;
}

#cases-modal.free-modal--cases .pick-item--drop {
  left: 205px;
  top: 53px;
  width: 125px;
  height: 154px;
}

#cases-modal.free-modal--cases .pick-item--drop .pick-item__img {
  left: 2px;
  top: 3px;
}

#cases-modal.free-modal--cases .pick-item--drop .pick-item__name {
  left: 0;
  top: 134px;
}

#cases-modal.free-modal--cases .pick-item--drop .pick-item__price {
  left: 94px;
  top: 134px;
}

#cases-modal.free-modal--cases .pick-item--bigdrop {
  left: 36px;
  top: 216px;
  width: 129px;
  height: 154px;
}

#cases-modal.free-modal--cases .pick-item--bigdrop .pick-item__img {
  left: 2px;
  top: 3px;
}

#cases-modal.free-modal--cases .pick-item--bigdrop .pick-item__name {
  left: 0;
  top: 134px;
}

#cases-modal.free-modal--cases .pick-item--bigdrop .pick-item__price {
  left: 94px;
  top: 134px;
}

#cases-modal.free-modal--cases .pick-item--promo {
  left: 205px;
  top: 216px;
  width: 126px;
  height: 163px;
}

#cases-modal.free-modal--cases .pick-item--promo .pick-item__img {
  left: 2px;
  top: 3px;
}

#cases-modal.free-modal--cases .pick-item--promo .pick-item__name--promo {
  left: 0;
  top: 127px;
}

#cases-modal.free-modal--cases .pick-item--promo .pick-item__promo {
  left: 55px;
  top: 137px;
}

#slots-modal.free-modal--slots {
  padding: 16px;
  background: transparent;
}

#slots-modal.free-modal--slots .free-modal__backdrop {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

#slots-modal.free-modal--slots .free-modal__sheet {
  position: relative;
  width: 358px;
  height: 222px;
  max-width: calc(100% - 8px);
  padding: 0;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  background: rgba(40, 40, 40, 0.78);
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.067),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
}

#slots-modal.free-modal--slots .free-modal__sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.19);
  filter: blur(1px);
  pointer-events: none;
  z-index: 5;
}

#slots-modal.free-modal--slots .free-modal__close {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  position: absolute;
  left: 313px;
  top: 12px;
  width: 33px;
  height: 33px;
  right: auto;
  transform: none;
  z-index: 3;
  border-radius: 50%;
}

#slots-modal.free-modal--slots .free-modal__close img {
  display: block;
  width: 33px;
  height: 33px;
  pointer-events: none;
}

#slots-modal.free-modal--slots .pick-item {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: absolute;
  z-index: 2;
  display: block;
  text-align: left;
}

#slots-modal.free-modal--slots .pick-item:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

#slots-modal.free-modal--slots .pick-item__glass {
  position: absolute;
  left: 0;
  top: 0;
  width: 125px;
  height: 125px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(101, 101, 101, 0.2);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.38),
    inset 0 1px 3px rgba(0, 0, 0, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.09),
    inset -1px 0 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}

#slots-modal.free-modal--slots .pick-item__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(315deg, transparent 55%, rgba(255, 255, 255, 0.07) 100%);
}

#slots-modal.free-modal--slots .pick-item__img {
  position: absolute;
  width: 120px;
  height: 120px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  display: block;
}

#slots-modal.free-modal--slots .pick-item__name {
  position: absolute;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}

#slots-modal.free-modal--slots .pick-item__price {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #ffbf32;
}

#slots-modal.free-modal--slots .pick-item__price img {
  width: 13px;
  height: 13px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

#slots-modal.free-modal--slots .pick-item--slots-classic {
  left: 31px;
  top: 48px;
  width: 125px;
  height: 157px;
}

#slots-modal.free-modal--slots .pick-item--slots-classic .pick-item__img {
  left: 2px;
  top: 3px;
}

#slots-modal.free-modal--slots .pick-item--slots-classic .pick-item__name {
  left: 0;
  top: 133px;
}

#slots-modal.free-modal--slots .pick-item--slots-classic .pick-item__price {
  left: 97px;
  top: 136px;
}

#slots-modal.free-modal--slots .pick-item--slots-bonus {
  left: 202px;
  top: 48px;
  width: 125px;
  height: 157px;
}

#slots-modal.free-modal--slots .pick-item--slots-bonus .pick-item__img {
  left: 3px;
  top: 3px;
}

#slots-modal.free-modal--slots .pick-item--slots-bonus .pick-item__name {
  left: 0;
  top: 133px;
}

#slots-modal.free-modal--slots .pick-item--slots-bonus .pick-item__price {
  left: 103px;
  top: 136px;
}

.topup-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding: 16px;
  padding-top: calc(16px + var(--tg-safe-top) + var(--tg-content-safe-top));
  padding-bottom: calc(16px + var(--tg-safe-bottom) + var(--tg-content-safe-bottom));
}

.topup-modal[hidden] {
  display: none !important;
}

.topup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.topup-modal__sheet {
  position: relative;
  width: min(100%, 360px);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: rgba(20, 20, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 18px 16px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}

.topup-modal__sheet::-webkit-scrollbar {
  display: none;
}

.topup-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.topup-modal__banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1376 / 768;
  margin: 0 0 12px;
  border-radius: 16px;
  object-fit: cover;
  background: #0c0c0e;
  user-select: none;
  -webkit-user-drag: none;
}

.topup-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.topup-modal__close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.topup-modal__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #ffffff88;
  line-height: 1.35;
}

.topup-modal__presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.topup-preset {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  height: 36px;
  cursor: pointer;
}

.topup-preset:active {
  transform: scale(0.97);
}

.topup-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff77;
}

.topup-modal__field input {
  appearance: none;
  -moz-appearance: textfield;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  padding: 11px 14px;
  outline: none;
}

.topup-modal__field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.topup-modal__field input::-webkit-outer-spin-button,
.topup-modal__field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.topup-modal__field input:focus,
.topup-promo__input:focus {
  border-color: rgba(255, 255, 255, 0.55);
}

.topup-modal__ton-preview,
.topup-modal__credit-preview {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.star-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-left: 1px;
  display: inline-block;
}

.topup-modal__hint .star-icon,
.topup-modal__credit-preview .star-icon,
.topup-modal__ton-preview .star-icon,
.topup-promo__active .star-icon {
  width: 13px;
  height: 13px;
}

.topup-promo {
  margin-bottom: 12px;
}

.topup-promo__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff77;
}

.topup-promo__row {
  display: flex;
  gap: 8px;
}

.topup-promo__input {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 12px;
  outline: none;
}

.topup-promo__input::placeholder {
  color: #ffffff4d;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.topup-promo__input:focus {
  border-color: rgba(255, 255, 255, 0.55);
}

.topup-promo__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.topup-promo__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.topup-promo__btn:active:not(:disabled) {
  opacity: 0.85;
  transform: scale(0.98);
}

.topup-promo__active {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
}

.topup-promo__active[hidden] {
  display: none !important;
}

.topup-modal__actions {
  display: grid;
  gap: 8px;
}

.topup-modal__actions .mines-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #fff;
}

.topup-modal__actions .mines-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%);
}

.topup-modal__actions .mines-btn:disabled {
  opacity: 0.55;
}

.topup-modal__status {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff99;
}

.is-nft-gift {
  border-radius: 22%;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.is-nft-gift canvas,
.is-nft-gift svg,
.is-nft-gift img {
  border-radius: inherit;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  background: transparent;
}

.mines-ladder__lottie.is-nft-gift,
.slots-cell__lottie.is-nft-gift {
  border-radius: 0;
  overflow: visible;
  background: transparent !important;
}

.mines-ladder__lottie.is-nft-gift img,
.mines-ladder__lottie.is-nft-gift canvas,
.slots-cell__lottie.is-nft-gift img,
.slots-cell__lottie.is-nft-gift canvas {
  border-radius: 0;
  object-fit: contain;
}

.profile-inv__art.is-nft-gift,
.slots-modal__lottie.is-nft-gift,
.mines-modal__lottie.is-nft-gift {
  border-radius: 16px;
  background: transparent !important;
}

.subscribe-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(16px + var(--tg-safe-top) + var(--tg-content-safe-top))
    16px
    calc(16px + var(--tg-safe-bottom) + var(--tg-content-safe-bottom));
  background: #000;
}

.subscribe-gate[hidden] {
  display: none !important;
}

.subscribe-gate__card {
  width: min(100%, 360px);
  padding: 28px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.35) 0%, rgba(24, 10, 36, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  text-align: center;
}

.subscribe-gate__logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  object-fit: cover;
}

.subscribe-gate__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.subscribe-gate__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.subscribe-gate__text strong {
  color: #fff;
  font-weight: 700;
}

.subscribe-gate__btn {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.subscribe-gate__btn:last-of-type {
  margin-bottom: 0;
}

.subscribe-gate__btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
}

.subscribe-gate__btn--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.subscribe-gate__btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.subscribe-gate__status {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

