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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.5;
  background: #0a101c;
}

.slot-page {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 100vh;
  padding: 1rem;
  background: linear-gradient(to bottom, #001f43, #0a101c);
  color: #ffffff;
  text-align: center;
}

@media (min-width: 768px) {
  .slot-page {
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    padding-top: 1rem;
  }
}
.tab-under-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  width: 100%;
  height: 100%;
}

.tab-under-overlay.is-visible {
  display: block;
}

.full-page-click {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 22;
  width: 100%;
  height: 100%;
}

.slot-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1rem;
}

.slot-header-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
}

@media (min-width: 768px) {
  .slot-header {
    gap: 1.25rem;
  }
  .slot-header-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}
.slot-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.slot-timer-value {
  width: 120px;
  margin-left: 0.5rem;
  color: #ef4444;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: center;
}

.start-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 94;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  backdrop-filter: blur(5px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.9));
}

.start-modal.is-visible {
  display: flex;
}

.start-modal-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 384px;
  max-height: 100vh;
  margin: 0 auto;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #ffffff;
  overflow-y: auto;
  text-align: center;
}

.start-modal-title {
  margin-bottom: 0.75rem;
  color: #6f4a00;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.start-modal-description {
  color: #a87c1a;
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
}

.start-modal-button {
  width: 100%;
  margin-top: 2rem;
  padding: 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  background-image: linear-gradient(to right, #c74300, #e36f00, #c74300);
  background-size: 200% 100%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

@media (min-width: 325px) {
  .start-modal-description {
    font-size: 1.125rem;
  }
}
@media (min-width: 768px) {
  .start-modal-description {
    font-size: 1.25rem;
  }
}
.slot-machine {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom, #ef6539, #ca9960);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .slot-machine {
    max-width: 346px;
    padding: 0.75rem;
    padding-top: 1rem;
  }
}
.spins-left {
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 2rem;
  text-align: center;
}

@media (min-width: 480px) {
  .spins-left {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}
.reels {
  display: grid;
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 0.75rem;
}

@media (min-width: 480px) {
  .reels {
    gap: 0.5rem;
  }
}
@media (min-width: 768px) {
  .reels {
    margin-top: 1.25rem;
  }
}
.reel {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 18px;
  background: linear-gradient(to bottom, #143c8e, #0d2b77);
  overflow: hidden;
}

@media (min-width: 768px) {
  .reel {
    height: 360px;
  }
}
.reel-track {
  position: relative;
  z-index: 10;
  padding: 0 0.5rem;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.1, 0.75, 0.15, 1);
  will-change: transform;
}

.reel-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
}

.reel-cell-inner {
  display: grid;
  position: relative;
  place-items: center;
  width: 100%;
  height: calc(120px * 2 / 3);
  border: 1px solid #4867a8;
  border-radius: 9999px;
  background: linear-gradient(to bottom, #374665, #000000);
  box-shadow: inset 0 12px 24px rgba(255, 255, 255, 0.06), inset 0 -10px 24px rgba(0, 0, 0, 0.4);
}

.reel-cell-prize .reel-cell-inner {
  border-color: #ffd685;
  background: linear-gradient(to bottom, #ffca63, #ff660f);
}

.reel-cell-content {
  display: flex;
  position: absolute;
  justify-content: center;
  font-size: 1.875rem;
  line-height: 2.25rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.reel-cell-image {
  max-width: 80%;
}

@media (min-width: 768px) {
  .reel-cell-content {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}
.reel-highlight {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 7rem;
  transform: translateY(-50%);
  background: rgba(67, 116, 240, 0.4196078431);
}

.reel-shadow-top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.reel-shadow-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  height: 5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.reels-payline {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.reels-payline-marker-left {
  position: absolute;
  top: 50%;
  left: -3px;
  transform: translateY(-38%);
}

.reels-payline-marker-right {
  position: absolute;
  top: 50%;
  right: -3px;
  transform: translateY(-38%);
}

.spin-modal {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 21;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
}

.spin-modal.is-visible {
  display: flex;
}

.spin-modal-window {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom, #1d51c0, #0a101c);
}

.spin-modal-retry,
.spin-modal-final {
  display: none;
  flex-direction: column;
  align-items: center;
}

.spin-modal.show-retry .spin-modal-retry,
.spin-modal.show-final .spin-modal-final {
  display: flex;
}

.spin-modal-texts {
  display: none;
  flex-direction: column;
  align-items: center;
}

.spin-modal.show-first-texts .spin-modal-texts-first,
.spin-modal.show-second-texts .spin-modal-texts-second {
  display: flex;
}

.spin-modal-title {
  max-width: 220px;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
}

.spin-modal-description {
  margin-bottom: 25px;
  color: #ffffff;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
}

.spin-modal-counter {
  position: relative;
  margin-bottom: 44px;
  padding: 11px 39px 11px 97px;
  border-radius: 35px;
  background: linear-gradient(to right, #ef6539, #000000);
}

.spin-modal-counter-icon {
  position: absolute;
  bottom: -10px;
  left: 18px;
  width: 68px;
  height: 91px;
}

.spin-modal-counter-value,
.spin-modal-counter-suffix {
  color: #ffffff;
  font-weight: 600;
  font-size: 22px;
}

.spin-modal-prize {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 152px;
  height: 143px;
  border-radius: 100px;
  background: linear-gradient(to right, #ef6539, #000000);
}

.spin-modal-prize-image {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.spin-modal-final-title {
  margin-top: 20px;
  margin-bottom: 7px;
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
}

.spin-modal-final-description {
  margin-bottom: 25px;
  color: #ffffff;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
}

@media (min-width: 480px) {
  .spin-modal-final-title {
    font-size: 24px;
  }
}
.spin-button-wrapper {
  display: flex;
  position: relative;
  z-index: 50;
  justify-content: center;
  margin-top: 1.5rem;
}

.spin-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 9999px;
  background-image: linear-gradient(to right, #ff660f, #ffca63, #ff660f);
  background-size: 200% 100%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-transform: uppercase;
  transition: all 300ms;
  cursor: pointer;
}

.spin-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.spin-button:active {
  transform: scale(0.95);
}

.spin-button:disabled {
  opacity: 0.6;
}

.spin-button-icon {
  font-size: 1.5rem;
  line-height: 2rem;
}

.spin-button-label-continue {
  display: none;
}

.spin-button.is-final .spin-button-label-spin {
  display: none;
}

.spin-button.is-final .spin-button-label-continue {
  display: inline;
}

@media (min-width: 768px) {
  .spin-button {
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
  }
}
@keyframes spin-button-gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes spin-button-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.spin-button.is-idle {
  animation: spin-button-gradient 2s ease-in-out infinite, spin-button-pulse 1.5s ease-in-out infinite;
}