:root {
  color: #fff7cc;
  background: #020817;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

[v-cloak] {
  display: none;
}

button {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: #020817;
}

.casino-gateway {
  position: relative;
  width: min(100%, 490px);
  padding: 34px 24px 26px;
  overflow: hidden;
  border: 2px solid #ffd45a;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(255 222 93 / 18%), transparent 26%),
    linear-gradient(145deg, #7a1123 0%, #1a1022 52%, #080913 100%);
  box-shadow:
    0 26px 90px rgb(0 0 0 / 52%),
    inset 0 0 0 4px rgb(255 255 255 / 7%),
    0 0 36px rgb(255 190 55 / 42%);
}

.casino-gateway::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgb(255 244 177 / 28%);
  border-radius: 8px;
  pointer-events: none;
  content: "";
}

.casino-gateway::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 24%, rgb(255 255 255 / 14%) 36%, transparent 48%);
  transform: translateX(-130%);
  animation: cabinet-shine 2.8s ease-in-out infinite;
  pointer-events: none;
  content: "";
}

.cabinet-lights {
  position: absolute;
  inset: 10px 12px auto;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  pointer-events: none;
}

.cabinet-lights span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe473;
  box-shadow:
    0 0 7px #ffe473,
    0 0 14px rgb(255 228 115 / 68%);
  animation: bulb-flash 0.72s ease-in-out infinite alternate;
}

.cabinet-lights span:nth-child(2n) {
  background: #ff4242;
  box-shadow:
    0 0 7px #ff4242,
    0 0 14px rgb(255 66 66 / 68%);
  animation-delay: 0.24s;
}

.cabinet-lights span:nth-child(3n) {
  background: #3ce7ff;
  box-shadow:
    0 0 7px #3ce7ff,
    0 0 14px rgb(60 231 255 / 68%);
  animation-delay: 0.42s;
}

.slot-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 92px;
  min-height: 76px;
  place-items: center;
  padding: 8px;
  border: 2px solid #fff0a5;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ff3d3d 0%, #9a1226 100%);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 32%),
    0 0 24px rgb(255 61 61 / 52%);
  text-align: center;
}

.brand-mark span,
.brand-mark strong {
  display: block;
  line-height: 1;
}

.brand-mark span {
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.brand-mark strong {
  color: #fff0a5;
  font-size: 34px;
  font-weight: 950;
  text-shadow: 0 0 10px rgb(255 240 165 / 90%);
}

.jackpot-board {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  margin: 26px 0 14px;
  padding: 14px 12px;
  border: 2px solid #ffd45a;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(255 212 90 / 16%), rgb(0 0 0 / 54%)),
    #100713;
  box-shadow:
    inset 0 0 24px rgb(255 212 90 / 20%),
    0 0 24px rgb(255 212 90 / 28%);
  text-align: center;
}

.jackpot-board span {
  color: #ff4242;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgb(255 66 66 / 88%);
}

.jackpot-board strong {
  color: #fff0a5;
  font-size: 40px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 0 12px rgb(255 240 165 / 92%),
    0 0 24px rgb(255 174 50 / 70%);
}

.slot-window {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: 132px;
  margin: 0 0 16px;
  padding: 10px;
  overflow: hidden;
  border: 2px solid #fff0a5;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 8%), transparent 24%),
    #080a12;
  box-shadow:
    inset 0 0 28px rgb(0 0 0 / 80%),
    0 12px 26px rgb(0 0 0 / 34%);
}

.payline {
  position: absolute;
  top: 50%;
  right: 8px;
  left: 8px;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4242, #fff0a5, #ff4242, transparent);
  box-shadow: 0 0 12px rgb(255 66 66 / 86%);
}

.reel {
  display: grid;
  gap: 8px;
  animation: reel-spin 0.5s linear infinite;
}

.reel-fast {
  animation-duration: 0.42s;
}

.reel-slow {
  animation-duration: 0.58s;
}

.reel span {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgb(0 0 0 / 28%);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8cf 0%, #ffd45a 48%, #d9941f 100%);
  color: #3b1309;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 58%),
    0 0 12px rgb(255 212 90 / 24%);
}

.subtitle {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  color: #ffe8a3;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 0 10px rgb(255 212 90 / 48%);
}

.error-text {
  color: #ff9d9d;
}

.progress {
  position: relative;
  z-index: 1;
  height: 13px;
  margin: 16px 0 18px;
  overflow: hidden;
  border: 1px solid rgb(255 240 165 / 34%);
  border-radius: 999px;
  background: rgb(0 0 0 / 48%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 8%),
    0 0 12px rgb(255 212 90 / 16%);
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4242, #ffd45a, #3ce7ff);
  transform-origin: left;
  animation: loading 9s linear forwards;
  box-shadow: 0 0 18px rgb(255 212 90 / 76%);
}

@keyframes loading {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes reel-spin {
  from {
    transform: translateY(-62px);
  }

  to {
    transform: translateY(-2px);
  }
}

@keyframes bulb-flash {
  from {
    opacity: 0.46;
    transform: scale(0.84);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cabinet-shine {
  0%,
  42% {
    transform: translateX(-130%);
  }

  72%,
  100% {
    transform: translateX(130%);
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 16px;
  }

  .casino-gateway {
    padding: 32px 16px 22px;
  }

  .cabinet-lights {
    grid-template-columns: repeat(14, 1fr);
    gap: 4px;
  }

  .brand-mark {
    width: 74px;
    min-height: 64px;
  }

  .brand-mark span {
    font-size: 14px;
  }

  .brand-mark strong {
    font-size: 28px;
  }

  .jackpot-board strong {
    font-size: 34px;
  }

  .slot-window {
    height: 120px;
    gap: 7px;
    padding: 8px;
  }

  .reel span {
    min-height: 50px;
    font-size: 23px;
  }

}
