.app-scroll.is-slots {
  background: radial-gradient(163% 82% at 50% 50%, #e11d2e, #1a0408 100%);
}

.screen-game.is-slots {
  padding:
    16px
    16px
    calc(20px + var(--tg-safe-bottom) + var(--tg-content-safe-bottom));
}

.slots-screen {
  width: min(100%, 420px);
  margin: 0 auto;
}

.slots-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.slots-heading {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.slots-hint {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffffcc;
}

.slots-machines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.slots-machines[data-count="2"],
.slots-machines[data-count="3"],
.slots-machines[data-count="4"],
.slots-machines[data-count="5"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.slots-machines[data-count="3"] .slots-machine:last-child,
.slots-machines[data-count="5"] .slots-machine:last-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: calc((100% - 8px) / 2);
  justify-self: center;
}

.slots-machine {
  position: relative;
  background: #00000055;
  border: 1px solid #ffffff22;
  border-radius: 22px;
  padding: 18px 14px;
}

.slots-machine.is-compact {
  padding: 10px 8px;
  border-radius: 16px;
}

.slots-machine.is-compact .slots-reel {
  border-radius: 12px;
}

.slots-machine.is-compact .slots-reel__window {
  height: 64px;
}

.slots-machine.is-compact .slots-sym {
  flex-basis: 64px;
  height: 64px;
}

.slots-machine.is-compact .slots-sym img {
  width: 36px;
  height: 36px;
}

.slots-machine.is-compact .slots-sym.is-bar img {
  width: 42px;
  height: 20px;
}

.slots-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slots-reel {
  position: relative;
  border-radius: 16px;
  background: #00000066;
  border: 1px solid #ffffff18;
  overflow: hidden;
}

.slots-reel::before,
.slots-reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 28%;
  pointer-events: none;
}

.slots-reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.slots-reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.slots-reel__window {
  position: relative;
  height: 96px;
  overflow: hidden;
}

.slots-reel__strip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.slots-reel__strip.is-spinning {
  animation: slots-reel-scroll 0.28s linear infinite;
}

.slots-reel__strip.is-landing {
  filter: blur(0.35px);
}

.slots-reel__strip.is-idle {
  filter: none;
}

@keyframes slots-reel-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -50%, 0);
  }
}

.slots-sym {
  flex: 0 0 96px;
  height: 96px;
  display: grid;
  place-items: center;
}

.slots-sym img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

.slots-sym.is-bar img {
  width: 58px;
  height: 28px;
}

.slots-result {
  min-height: 24px;
  margin: 0 0 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffffee;
}

.slots-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  align-items: stretch;
}

.slots-actions [data-slots-spin] {
  flex: 1;
  margin: 0;
}

.slots-count {
  position: relative;
  flex: 0 0 auto;
}

.slots-count__btn {
  appearance: none;
  border: none;
  height: 100%;
  min-width: 108px;
  padding: 0 14px;
  border-radius: 14px;
  background: #00000088;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid #ffffff22;
}

.slots-count__btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.slots-count__chevron {
  font-size: 12px;
  opacity: 0.8;
  transform: translateY(-1px);
}

.slots-count__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #121212;
  border: 1px solid #ffffff18;
  border-radius: 14px;
  overflow: hidden;
  z-index: 30;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.slots-count__opt {
  appearance: none;
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 11px 0;
  cursor: pointer;
}

.slots-count__opt + .slots-count__opt {
  border-top: 1px solid #ffffff12;
}

.slots-count__opt:active,
.slots-count__opt.is-active {
  background: #ffffff14;
}

.slots-result__combo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: -3px;
}

.slots-result__combo .slots-prize__combo-icon {
  width: 16px;
  height: 16px;
}

.slots-spin__star {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.slots-bonus {
  margin: 0 0 14px;
}

.slots-bonus__title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.slots-cell {
  appearance: none;
  aspect-ratio: 1;
  border: 1px solid #ffffff22;
  border-radius: 10px;
  background: #00000044;
  color: #ffffffaa;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 4px;
  overflow: hidden;
}

.slots-cell:active:not(:disabled) {
  transform: scale(0.96);
}

.slots-cell.is-open {
  background: #ffffff18;
  color: #fff;
  font-size: 13px;
}

.slots-cell.is-picked {
  box-shadow: 0 0 0 2px #ffd76a;
  background: #ffd76a33;
}

.slots-cell__lottie {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.slots-cell__lottie canvas,
.slots-cell__lottie svg,
.slots-cell__lottie img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain;
  background: transparent;
}

.slots-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.slots-modal[hidden] {
  display: none !important;
}

.slots-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.slots-modal__card {
  position: relative;
  width: min(100%, 340px);
  background: #1a1d22;
  border-radius: 24px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.slots-modal__lottie {
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
}

.slots-modal__lottie canvas,
.slots-modal__lottie svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.slots-modal__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.slots-modal__sub {
  margin: 0 0 16px;
  font-size: 14px;
  color: #ffffff99;
}

.slots-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0 10px;
}

.slots-tab {
  appearance: none;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  background: #ffffff0c;
  color: #ffffff88;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 6px;
  cursor: pointer;
  line-height: 1.2;
}

.slots-tab.is-active {
  background: #ffffff1f;
  border-color: #ffffff33;
  color: #fff;
}

.slots-tab:active {
  transform: scale(0.97);
}

.slots-panel {
  min-height: 80px;
}

.slots-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slots-feed__empty {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff66;
}

.slots-feed__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #00000044;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  padding: 10px;
}

.slots-feed__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff18;
  flex-shrink: 0;
}

.slots-feed__body {
  flex: 1;
  min-width: 0;
}

.slots-feed__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.slots-feed__name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slots-feed__time {
  font-size: 10px;
  color: #ffffff55;
  flex-shrink: 0;
}

.slots-feed__combo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

.slots-feed__combo .slots-prize__combo-icon {
  width: 14px;
  height: 14px;
}

.slots-feed__prize {
  color: #ffd76a;
}

.slots-feed__miss {
  color: #ffffff55;
}

.slots-feed__lottie {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: hidden;
}

.slots-feed__lottie canvas,
.slots-feed__lottie svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.slots-feed__game {
  font-size: 11px;
  color: #ffffff55;
  margin-top: 2px;
}

.slots-feed__check {
  flex-shrink: 0;
  appearance: none;
  text-decoration: none;
  border: 1px solid #ffffff22;
  border-radius: 12px;
  background: #ffffff12;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  white-space: nowrap;
}

.slots-feed__check:active {
  transform: scale(0.97);
}

.slots-feed__demo {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1300;
  background: #ffd54a;
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

.slots-prizes {
  margin-top: 0;
}

.slots-prizes__head {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff80;
}

.slots-prizes__note {
  margin: 0 0 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff70;
  line-height: 1.35;
}

.slots-prizes__note img,
.slots-prize__combo-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.slots-prizes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.slots-prize-card {
  background: #00000044;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.slots-prize-card__art {
  width: 56px;
  height: 56px;
  margin-bottom: 2px;
  overflow: hidden;
}

.slots-prize-card__art canvas,
.slots-prize-card__art svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.slots-prize-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slots-prize-card__name {
  font-size: 13px;
  font-weight: 800;
}

.slots-prize-card__meta {
  font-size: 12px;
  font-weight: 700;
  color: #ffd76a;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.slots-prize-card__how {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  min-height: 16px;
}

.slots-prize-card__or {
  font-size: 10px;
  color: #ffffff55;
}

