.warp {
  --ray: 142vmax;
  position: fixed;
  inset: 0;
  z-index: 900;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (orientation: portrait) and (max-aspect-ratio: 3/4) {
  .warp {
    --ray: 128vmax;
  }
}

.warp > * {
  position: absolute;
}

.warp__iris {
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--d, 300vmax);
  height: var(--d, 300vmax);
  margin: calc(var(--d, 300vmax) / -2) 0 0 calc(var(--d, 300vmax) / -2);
  border-radius: 50%;
  transform: scale(0);
  will-change: transform;
}

.warp__skip {
  left: 0;
  right: 0;
  bottom: calc(18px + var(--safe-bottom, 0px));
  z-index: 20;
  text-align: center;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: fade-in 0.4s ease 0.9s forwards;
}

.page,
.sky {
  transition: transform 0.8s var(--ease-soft), opacity 0.7s ease;
}

html.is-warping .page {
  transform: scale(0.94);
  transform-origin: 50% var(--warp-oy, 50vh);
  opacity: 0.3;
}

html.is-warping .sky {
  transform: scale(1.08);
}

html.is-warping .nav {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.warp--slots .warp__iris {
  background: #05030b;
  box-shadow: 0 0 0 3px rgba(255, 212, 74, 0.95), 0 0 70px 14px rgba(255, 190, 60, 0.45);
}

.ws-bg {
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(120, 60, 200, 0.35), transparent 70%),
    radial-gradient(40% 40% at 50% 60%, rgba(255, 180, 60, 0.12), transparent 70%),
    #05030b;
  opacity: 0;
}

.ws-rays {
  left: 50%;
  top: 50%;
  width: var(--ray);
  height: var(--ray);
  margin: calc(var(--ray) / -2) 0 0 calc(var(--ray) / -2);
  background: repeating-conic-gradient(from 0deg, rgba(255, 212, 74, 0.18) 0 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 8%, transparent 70%);
  mask: radial-gradient(closest-side, #000 8%, transparent 70%);
  opacity: 0;
  animation: spin 14s linear infinite;
}

.ws-stage {
  inset: 0;
  display: grid;
  place-items: center;
}

.ws-machine {
  --s: min(25vw, 19vh, 168px);
  position: relative;
  display: flex;
  gap: calc(var(--s) * 0.08);
  padding: calc(var(--s) * 0.14);
  border-radius: calc(var(--s) * 0.24);
  background: linear-gradient(180deg, #ffe9a3 0%, #f0a91d 28%, #a86a06 70%, #ffd666 100%);
  box-shadow: 0 0 0 3px #4a2a00, 0 40px 90px -20px rgba(0, 0, 0, 0.9), 0 0 90px -10px rgba(255, 190, 60, 0.6);
  opacity: 0;
}

.ws-reel {
  position: relative;
  width: var(--s);
  height: calc(var(--s) * 3);
  overflow: hidden;
  border-radius: calc(var(--s) * 0.12);
  background: linear-gradient(180deg, #d4c6a8 0%, #fffaf0 22%, #fffdf8 50%, #fffaf0 78%, #d4c6a8 100%);
  box-shadow: inset 0 0 0 3px #2a1500;
}

.ws-reel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 20, 0, 0.45), transparent 26%, transparent 74%, rgba(40, 20, 0, 0.45));
  pointer-events: none;
}

.ws-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

.ws-strip.is-blur {
  filter: blur(2.5px);
}

.ws-cell {
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
}

.ws-cell .sp {
  font-size: calc(var(--s) * 0.84);
}

.ws-cell.is-hit .sp {
  animation: ws-hit 0.42s ease-in-out 3;
}

@keyframes ws-hit {
  50% {
    scale: 1.14;
  }
}

.ws-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: #ff3d6e;
  box-shadow: 0 0 18px 4px rgba(255, 61, 110, 0.8);
  opacity: 0;
}

.ws-jackpot {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: calc(var(--s) * 0.16);
  white-space: nowrap;
  font-family: var(--font-slots);
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1;
  color: #ffd44a;
  -webkit-text-stroke: 3px #4a2a00;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 #4a2a00, 0 0 40px rgba(255, 200, 80, 0.8);
  translate: -50% 0;
  opacity: 0;
}

.ws-coin {
  left: 50%;
  top: 50%;
  font-size: var(--cs, 46px);
  margin: calc(var(--cs, 46px) / -2) 0 0 calc(var(--cs, 46px) / -2);
  will-change: transform;
}

.ws-end {
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  color: #fff8ea;
  opacity: 0;
  -webkit-font-smoothing: antialiased;
}

.ws-end__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  margin: -300px 0 0 -260px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 212, 74, 0), rgba(255, 212, 74, 0.35), rgba(178, 139, 255, 0.3), rgba(93, 233, 255, 0.25), rgba(255, 212, 74, 0));
  -webkit-mask-image: radial-gradient(circle, transparent 38%, #000 40%, #000 43%, transparent 60%);
  mask-image: radial-gradient(circle, transparent 38%, #000 40%, #000 43%, transparent 60%);
  animation: spin 3.2s linear infinite;
  filter: blur(2px);
}

.ws-end__logo {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 0 22px rgba(93, 233, 255, 0.45));
}

.ws-end__title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  color: #ffd44a;
  text-shadow: 0 0 18px rgba(255, 190, 60, 0.55);
}

.ws-end__bar {
  position: relative;
  width: min(280px, 70vw);
  height: 10px;
  margin-top: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 228, 160, 0.25);
}

.ws-end__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  transform: scaleX(0.02);
  transform-origin: 0 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0a91d, #ffe07a 60%, #fff6d0);
  box-shadow: 0 0 16px rgba(255, 200, 80, 0.7);
}

.ws-end__status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 244, 222, 0.66);
  min-height: 1.2em;
}

.warp--mm .warp__iris {
  background: radial-gradient(closest-side, #ffb3dc 0%, #ff5fb5 46%, #b8338f 82%, #7a0f53 100%);
  box-shadow: 0 0 0 4px #fff, 0 0 60px 12px rgba(255, 150, 210, 0.6);
}

.wm-bg {
  inset: 0;
  background: radial-gradient(120% 90% at 50% 20%, #ff7ac6 0%, #b8338f 30%, #4a0f6e 70%, #1b0533 100%);
  opacity: 0;
}

.wm-swirl {
  left: 50%;
  top: 50%;
  width: var(--ray);
  height: var(--ray);
  margin: calc(var(--ray) / -2) 0 0 calc(var(--ray) / -2);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.14) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 70%);
  mask: radial-gradient(closest-side, #000 10%, transparent 70%);
  opacity: 0;
  animation: spin 22s linear infinite;
}

.wm-board {
  inset: 0;
}

.wm-fruit {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--c);
  height: var(--c);
  will-change: transform;
}

.wm-fruit .sp {
  font-size: calc(var(--c) * 0.9);
  filter: drop-shadow(0 5px 6px rgba(60, 0, 60, 0.35));
}

:root[data-lite='true'] .wm-fruit .sp {
  filter: none;
}

.wm-word {
  left: 0;
  right: 0;
  top: 40%;
  z-index: 4;
  text-align: center;
  font-family: var(--font-candy);
  font-size: clamp(60px, 12vw, 150px);
  line-height: 1;
  color: #ffe45c;
  -webkit-text-stroke: 4px var(--berry);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--berry), 0 20px 40px rgba(40, 0, 40, 0.55);
  opacity: 0;
}

.wm-end {
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
}

.wm-end__glow {
  position: absolute;
  width: 90vmin;
  height: 90vmin;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0.18) 25%, rgba(255, 255, 255, 0) 37%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.18) 75%, rgba(255, 255, 255, 0) 87%);
  animation: spin 14s linear infinite;
  pointer-events: none;
}

.wm-end__candies {
  position: relative;
  width: 180px;
  height: 70px;
}

.wm-end__candies i {
  position: absolute;
  top: 14px;
  left: calc(var(--k, 0) * 30px);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, var(--c) 45%, var(--d) 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  animation: wm-bounce 0.9s ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * -0.14s);
}

.wm-end__candies i:nth-child(1) { --k: 0; --c: #ff3d5e; --d: #8a0018; }
.wm-end__candies i:nth-child(2) { --k: 1; --c: #ff9b1f; --d: #a44100; }
.wm-end__candies i:nth-child(3) { --k: 2; --c: #ffd21f; --d: #b07f00; }
.wm-end__candies i:nth-child(4) { --k: 3; --c: #35c93a; --d: #0f6e17; }
.wm-end__candies i:nth-child(5) { --k: 4; --c: #1b8cff; --d: #083c9a; }
.wm-end__candies i:nth-child(6) { --k: 5; --c: #ae3bff; --d: #4f0c94; }

@keyframes wm-bounce {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -22px;
  }
}

.wm-end__title {
  display: grid;
  justify-items: center;
  font-family: var(--font-candy);
  font-weight: 400;
  line-height: 0.9;
  visibility: hidden;
}

.wm-end__title span:first-child {
  font-size: clamp(46px, 14vw, 78px);
}

.wm-end__title span:last-child {
  font-size: clamp(54px, 17vw, 96px);
}

.wm-end__bar {
  position: relative;
  width: min(280px, 70vw);
  height: 20px;
  border-radius: 99px;
  background: rgba(40, 0, 50, 0.55);
  border: 3px solid #fff;
  box-shadow: 0 5px 0 #7a0f53;
  overflow: hidden;
}

.wm-end__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8%;
  border-radius: 99px;
  background: repeating-linear-gradient(-45deg, #ffe45c 0 10px, #ffb21f 10px 20px);
  background-size: 28px 28px;
}

.wm-end__status {
  font-size: 15px;
  visibility: hidden;
}
