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

:root {
  --u: min(calc(100vw / 390), calc(450 / 390 * 1px));

  --bg-a: #321686;
  --bg-b: #7015c0;
  --nav-bg: #0e0e34;
  --card-dark: #190d3d;
  --cyan: #2affff;
  --cyan-border: rgba(42, 255, 255, 0.18);
  --white: #ffffff;

  --cta: linear-gradient(90deg, #9d00ff 0%, #f000b8 100%);
  --cta-shadow: 0 calc(4 * var(--u)) calc(15 * var(--u)) #c145ff;

  --font-heading:
    "Druk Wide Cyr", "Archivo Black", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

html,
body {
  width: 100%;
  margin: 0;
  background: #0d0025;
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--white);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  position: relative;
  width: calc(390 * var(--u));
  min-height: calc(1931 * var(--u));
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 100%);
  overflow: hidden;
}

.nav-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(56 * var(--u));
  background: var(--nav-bg);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(15 * var(--u));
}
.nav-top .logo {
  width: calc(120 * var(--u));
  height: calc(32 * var(--u));
  display: block;
}
.nav-top .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sound-btn {
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  border: none;
  background: transparent;
  color: var(--white);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  outline: none;
  transition: transform 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.sound-btn:hover  { background: rgba(255, 255, 255, 0.08); }
.sound-btn:active { transform: scale(0.9); }
.sound-btn svg {
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  display: block;
}
.sound-btn__slash {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.25s ease;
}
.sound-btn.is-muted .sound-btn__slash {
  stroke-dashoffset: 0;
}
.sound-btn.is-muted {
  color: rgba(255, 255, 255, 0.55);
}

.bono-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(56 * var(--u));
  height: calc(42 * var(--u));
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
}
.bono-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/shadow.png") center/cover no-repeat;
  pointer-events: none;
}
.bono-bar .gift {
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
  object-fit: contain;
  transform-origin: 50% 20%;
  animation: giftShake 3s ease-in-out infinite;
  will-change: transform;
}
@keyframes giftShake {
  0%, 82%, 100% { transform: rotate(0deg); }
  85%  { transform: rotate(-14deg); }
  88%  { transform: rotate(12deg); }
  91%  { transform: rotate(-10deg); }
  94%  { transform: rotate(8deg); }
  97%  { transform: rotate(-4deg); }
}
.bono-bar .text {
  font-size: calc(14 * var(--u));
  color: var(--white);
  font-weight: 400;
  white-space: nowrap;
}
.bono-bar .chevron {
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
  object-fit: contain;
  opacity: 0.9;
}

.hero {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(108 * var(--u));
  padding: 0 calc(15 * var(--u));
  z-index: 5;
}
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(8 * var(--u));
  margin-bottom: calc(10 * var(--u));
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(38 * var(--u));
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: calc(257 * var(--u));
  background: linear-gradient(180deg,
    #b8fbff 0%,
    #2affff 50%,
    #14a8bb 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  filter:
    drop-shadow(0 0 calc(2 * var(--u)) rgba(42, 255, 255, 0.25))
    drop-shadow(0 calc(1 * var(--u)) 0 rgba(0, 40, 60, 0.35));
}
.hero-title .accent {
  background: linear-gradient(180deg,
    #ffe58a 0%,
    #ffc633 50%,
    #e88a00 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  filter:
    drop-shadow(0 0 calc(2 * var(--u)) rgba(255, 165, 0, 0.3))
    drop-shadow(0 calc(1 * var(--u)) 0 rgba(90, 30, 0, 0.35));
  padding: 0 calc(1 * var(--u));
}
.hero-chips {
  width: calc(140 * var(--u));
  height: calc(155 * var(--u));
  flex-shrink: 0;
  margin-top: calc(-8 * var(--u));
  margin-right: calc(-32 * var(--u));
  object-fit: contain;
  transform-origin: 60% 60%;
  animation: chipsRightSway 5.8s ease-in-out infinite;
  will-change: transform;
}
.hero-chips-left {
  position: absolute;
  left: -60px;
  top: calc(555 * var(--u));
  width: calc(160 * var(--u));
  height: calc(175 * var(--u));
  object-fit: contain;
  z-index: 6;
  pointer-events: none;
  transform-origin: 30% 70%;
  animation: chipsLeftFloat 4.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes chipsLeftFloat {
  0%   { transform: translateY(0)      rotate(0deg); }
  50%  { transform: translateY(calc(-14 * var(--u))) rotate(-4deg); }
  100% { transform: translateY(0)      rotate(0deg); }
}
@keyframes chipsRightSway {
  0%   { transform: translateY(0)      rotate(0deg); }
  50%  { transform: translateY(calc(-10 * var(--u))) rotate(5deg); }
  100% { transform: translateY(0)      rotate(0deg); }
}

.slot {
  display: flex;
  gap: calc(6 * var(--u));
  justify-content: center;
  margin-top: calc(10 * var(--u));
}
.reel {
  position: relative;
  width: calc(116 * var(--u));
  height: calc(300 * var(--u));
  background-image: url("../img/reel-frame.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: calc(15 * var(--u)) calc(13 * var(--u));
  box-sizing: border-box;
  overflow: hidden;
}
.reel-strip {
  position: absolute;
  top: calc(15 * var(--u));
  left: calc(13 * var(--u));
  right: calc(13 * var(--u));
  transform: translate3d(0, 0, 0);
  transition: transform var(--spin-dur, 0ms) cubic-bezier(0.4, 0.15, 0.3, 1);
  will-change: transform;
  z-index: 1;
}
.reel-strip .sym {
  width: 100%;
  height: calc(90 * var(--u));
  margin-bottom: calc(3 * var(--u));
  background-size: 82% auto;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.35));
}
.reel-cell {
  position: absolute;
  left: calc(13 * var(--u));
  right: calc(13 * var(--u));
  height: calc(90 * var(--u));
  pointer-events: none;
  z-index: 2;
}
.reel-cell[data-row="0"] { top: calc(15 * var(--u)); }
.reel-cell[data-row="1"] { top: calc(108 * var(--u)); }
.reel-cell[data-row="2"] { top: calc(201 * var(--u)); }
.sym[data-symbol="jester-pink"] { background-image: url("../img/symbol-jester-pink.png"); }
.sym[data-symbol="ruby"]        { background-image: url("../img/symbol-ruby.png"); }
.sym[data-symbol="gem-cyan"]    { background-image: url("../img/symbol-gem-cyan.png"); }
.sym[data-symbol="orb-blue"]    { background-image: url("../img/symbol-orb-blue.png"); }
.sym[data-symbol="bonus"]       { background-image: url("../img/symbol-bonus.png"); }
.sym[data-symbol="coin"]        { background-image: url("../img/symbol-coin.png"); background-size: 96% auto; }
.sym[data-symbol="jester"]      { background-image: url("../img/symbol-jester.png"); }
.sym[data-symbol="lute"]        { background-image: url("../img/symbol-lute.png"); }
.sym[data-symbol="bottles"]     { background-image: url("../img/symbol-bottles.png"); }
.sym[data-symbol="win"]         { background-image: url("../img/win.png"); background-size: 88% auto; }

.cell-glow {
  position: absolute;
  left: calc(13 * var(--u));
  right: calc(13 * var(--u));
  height: calc(90 * var(--u));
  background-image: url("../img/cell-glow.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.28s ease;
}
.cell-glow[data-row="0"] { top: calc(15 * var(--u)); }
.cell-glow[data-row="1"] { top: calc(108 * var(--u)); }
.cell-glow[data-row="2"] { top: calc(201 * var(--u)); }
.cell-glow.is-active {
  opacity: 1;
  animation: cellGlowBreathe 1.2s ease-in-out infinite;
}
@keyframes cellGlowBreathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

.reel-cell.is-winner {
  z-index: 3;
}
.reel-cell.is-winner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: calc(6 * var(--u));
  pointer-events: none;
  animation: cellWinPulse 0.9s ease-out infinite;
  z-index: 4;
}
@keyframes cellWinPulse {
  0%, 100% {
    box-shadow:
      inset 0 0 0 0 rgba(42, 255, 255, 0),
      0 0 0 0 rgba(42, 255, 255, 0);
  }
  50% {
    box-shadow:
      inset 0 0 calc(18 * var(--u)) calc(3 * var(--u)) rgba(42, 255, 255, 0.75),
      0 0 calc(24 * var(--u)) calc(4 * var(--u)) rgba(42, 255, 255, 0.5);
  }
}
.reel-cell.is-winner .sym {
  animation: symWinPulse 0.9s ease-out infinite;
}
@keyframes symWinPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.35));
  }
  50% {
    transform: scale(1.12);
    filter:
      drop-shadow(0 0 calc(10 * var(--u)) rgba(42, 255, 255, 0.9))
      drop-shadow(0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.35));
  }
}

.cta:disabled {
  cursor: default;
  opacity: 0.65;
}
.cta.is-spinning {
  pointer-events: none;
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20 * var(--u)) calc(50 * var(--u));
  border: calc(2 * var(--u)) solid rgba(255, 255, 255, 0.3);
  border-radius: calc(56 * var(--u));
  background: linear-gradient(90deg, #9d00ff 0%, #f000b8 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(15 * var(--u));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 calc(4 * var(--u)) calc(15 * var(--u)) rgba(193, 69, 255, 0.75);
  cursor: pointer;
  outline: none;
  margin: calc(20 * var(--u)) auto 0;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.25s ease,
    filter 0.15s ease;
  animation: ctaGlow 2.6s ease-in-out infinite;
  will-change: box-shadow;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, 0)    0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0)    100%);
  filter: blur(calc(3 * var(--u)));
  transform: translateX(-250%) skewX(-18deg);
  animation: ctaShimmer 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes ctaGlow {
  0%, 100% {
    box-shadow:
      0 calc(4 * var(--u)) calc(15 * var(--u)) rgba(193, 69, 255, 0.75),
      0 0 0                                     rgba(255, 64, 204, 0);
  }
  50% {
    box-shadow:
      0 calc(4 * var(--u)) calc(28 * var(--u)) rgba(240, 0, 184, 0.9),
      0 0 calc(22 * var(--u))                  rgba(255, 64, 204, 0.55);
  }
}
@keyframes ctaShimmer {
  0%, 25%  { transform: translateX(-250%) skewX(-18deg); opacity: 0; }
  30%      { opacity: 1; }
  70%      { transform: translateX(500%)  skewX(-18deg); opacity: 0; }
  100%     { transform: translateX(500%)  skewX(-18deg); opacity: 0; }
}
.cta:hover {
  filter: brightness(1.1);
}
.cta:active {
  transform: scale(0.96);
}

.cta-row {
  position: relative;
  display: flex;
  justify-content: center;
}

.cta-tap-hand {
  position: absolute;
  left: 60%;
  top: 60%;
  width: calc(56 * var(--u));
  height: auto;
  pointer-events: none;
  z-index: 5;
  transform-origin: 35% 10%;
  filter: drop-shadow(0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.55));
  animation: cta-tap 1.15s ease-in-out infinite;
  will-change: transform, opacity;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cta-tap-hand.is-hidden {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
@keyframes cta-tap {
  0%, 100% { transform: scale(1)    translate(0, 0)     rotate(-4deg); }
  30%      { transform: scale(0.82) translate(-4px, -10px) rotate(-10deg); }
  55%      { transform: scale(1.08) translate(2px, 3px)   rotate(-2deg); }
  75%      { transform: scale(1)    translate(0, 0)     rotate(-4deg); }
}

.live-card {
  position: absolute;
  left: calc(15 * var(--u));
  top: calc(726 * var(--u));
  width: calc(360 * var(--u));
  height: calc(162 * var(--u));
  background: var(--card-dark);
  border: calc(1 * var(--u)) solid var(--cyan-border);
  border-radius: calc(22 * var(--u));
  overflow: hidden;
  z-index: 5;
}
.live-card .shadow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  pointer-events: none;
}
.live-card .slot-deco {
  position: absolute;
  bottom: calc(-1 * var(--u));
  left: calc(-1 * var(--u));
  width: calc(82 * var(--u));
  height: calc(142 * var(--u));
  object-fit: cover;
  object-position: left bottom;
  z-index: 2;
}
.live-card {
  perspective: calc(700 * var(--u));
}
.live-card .jester-deco {
  position: absolute;
  right: calc(10 * var(--u));
  top: 50%;
  transform: translateY(-50%);
  width: calc(67 * var(--u));
  height: calc(86 * var(--u));
  border: calc(1 * var(--u)) solid var(--cyan-border);
  border-radius: calc(8 * var(--u));
  object-fit: cover;
  z-index: 2;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.live-card .jester-deco.flip {
  animation: iconFlip 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes iconFlip {
  0% {
    transform: translateY(-50%) rotateY(0deg);
  }
  50% {
    transform: translateY(-50%) rotateY(90deg);
  }
  50.01% {
    transform: translateY(-50%) rotateY(-90deg);
  }
  100% {
    transform: translateY(-50%) rotateY(0deg);
  }
}

.live-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
}
.live-card.flash::after {
  animation: cardGlow 0.75s ease-out;
}
@keyframes cardGlow {
  0% {
    opacity: 1;
    box-shadow: inset 0 0 calc(40 * var(--u)) calc(6 * var(--u))
      rgba(42, 255, 255, 0.55);
  }
  100% {
    opacity: 0;
    box-shadow: inset 0 0 0 0 rgba(42, 255, 255, 0);
  }
}

.winner-name {
  will-change: transform, filter;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}
.winner-name.shake {
  animation: nameShake 0.55s ease-out;
}
@keyframes nameShake {
  0% {
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  30% {
    transform: translateY(calc(-3 * var(--u))) scale(1.06);
    filter: blur(calc(1 * var(--u)));
  }
  100% {
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.winner-amount {
  will-change: transform, box-shadow;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.winner-amount.pulse {
  animation: amountPulse 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes amountPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(42, 255, 255, 0);
  }
  20% {
    transform: scale(1.08);
    box-shadow: 0 0 calc(20 * var(--u)) calc(4 * var(--u))
      rgba(42, 255, 255, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(42, 255, 255, 0);
  }
}
.live-card .center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(10 * var(--u));
  z-index: 3;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--u));
  padding: calc(6 * var(--u)) calc(12 * var(--u));
  background: rgba(255, 255, 255, 0.2);
  border: calc(1 * var(--u)) solid var(--cyan-border);
  border-radius: calc(50 * var(--u));
  font-size: calc(14 * var(--u));
  font-weight: 400;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
}
.live-badge .dot {
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
}
.live-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(7 * var(--u));
}
.winner-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: calc(28 * var(--u));
  color: var(--white);
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  letter-spacing: 0.01em;
  max-width: calc(210 * var(--u));
}
.winner-amount {
  display: inline-block;
  padding: calc(6 * var(--u)) calc(12 * var(--u));
  background: rgba(255, 255, 255, 0.2);
  border: calc(1 * var(--u)) solid var(--cyan-border);
  border-radius: calc(50 * var(--u));
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: calc(16 * var(--u));
  color: var(--cyan);
  text-transform: uppercase;
  min-width: calc(142 * var(--u));
  text-align: center;
}

.testimonial {
  position: absolute;
  left: calc(15 * var(--u));
  top: calc(938 * var(--u));
  width: calc(360 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--u));
  z-index: 5;
}
.testimonial-row {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  width: 100%;
  min-height: calc(141 * var(--u));
  perspective: calc(900 * var(--u));
}
.testimonial-photo {
  position: relative;
  transform-style: preserve-3d;
}
.testimonial-photo img,
.testimonial-quote,
.testimonial-name {
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.28s ease,
    filter 0.28s ease;
  will-change: transform, opacity, filter;
}
.testimonial-row.is-out .testimonial-photo img {
  transform: rotateY(90deg) scale(0.92);
}
.testimonial-row.is-out .testimonial-quote,
.testimonial-row.is-out .testimonial-name {
  transform: translateY(calc(-14 * var(--u)));
  opacity: 0;
  filter: blur(calc(4 * var(--u)));
}
.testimonial-row.is-in .testimonial-photo img {
  transform: rotateY(-90deg) scale(0.92);
}
.testimonial-row.is-in .testimonial-quote,
.testimonial-row.is-in .testimonial-name {
  transform: translateY(calc(14 * var(--u)));
  opacity: 0;
  filter: blur(calc(4 * var(--u)));
}
.testimonial-row.no-transition .testimonial-photo img,
.testimonial-row.no-transition .testimonial-quote,
.testimonial-row.no-transition .testimonial-name {
  transition: none !important;
}

.testimonial-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 0 rgba(42, 255, 255, 0);
  z-index: 2;
}
.testimonial-photo.flash::after {
  animation: photoGlow 0.7s ease-out;
}
@keyframes photoGlow {
  0% {
    opacity: 1;
    box-shadow:
      0 0 calc(8 * var(--u)) calc(2 * var(--u)) rgba(42, 255, 255, 0.9),
      inset 0 0 calc(20 * var(--u)) rgba(42, 255, 255, 0.5);
  }
  100% {
    opacity: 0;
    box-shadow:
      0 0 calc(50 * var(--u)) calc(18 * var(--u)) rgba(42, 255, 255, 0),
      inset 0 0 0 rgba(42, 255, 255, 0);
  }
}
.testimonial-photo {
  width: calc(134 * var(--u));
  height: calc(134 * var(--u));
  border-radius: calc(20 * var(--u));
  overflow: hidden;
  flex-shrink: 0;
  background: #2a1b4d;
}
.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.testimonial-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--u));
}
.testimonial-icon {
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
}
.testimonial-quote {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: calc(14 * var(--u));
  line-height: 1.35;
  color: var(--white);
  word-break: break-word;
}
.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(13 * var(--u));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
}
.lucky-banner {
  position: relative;
  width: 100%;
  height: calc(162 * var(--u));
  border-radius: calc(22 * var(--u));
  background: var(--card-dark);
  overflow: hidden;
}
.lucky-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.joker-block {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(1311 * var(--u));
  width: calc(360 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(15 * var(--u));
  z-index: 5;
}
.joker-img {
  width: calc(306 * var(--u));
  height: calc(316 * var(--u));
  object-fit: cover;
  transform-origin: 50% 90%;
  animation: jokerBreathe 6.4s ease-in-out infinite;
  will-change: transform;
}
@keyframes jokerBreathe {
  0%   { transform: translateY(0)      scale(1)     rotate(0deg); }
  50%  { transform: translateY(calc(-12 * var(--u))) scale(1.025) rotate(-1.5deg); }
  100% { transform: translateY(0)      scale(1)     rotate(0deg); }
}
.joker-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(24 * var(--u));
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
}

.payments {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(1823 * var(--u));
  height: calc(52 * var(--u));
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--u));
  z-index: 10;
}
.payments::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/shadow.png") center/cover no-repeat;
  pointer-events: none;
}
.pay-item {
  position: relative;
  z-index: 1;
  height: calc(32 * var(--u));
  width: calc(66 * var(--u));
  background: var(--white);
  border-radius: calc(4 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pay-item img {
  max-width: 88%;
  max-height: 65%;
  object-fit: contain;
}

.nav-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(56 * var(--u));
  background: var(--nav-bg);
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 0 calc(15 * var(--u));
}
.nav-bottom .logo {
  width: calc(120 * var(--u));
  height: calc(32 * var(--u));
}
.nav-bottom .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 480px) {
  body {
    background: radial-gradient(circle at 50% 30%, #201050 0%, #08001c 100%);
    padding: 20px 0;
    min-height: 100vh;
  }
  .page {
  }
}

.win-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.win-modal.is-visible { display: block; }

.win-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  animation: winModalBackdropIn 0.35s ease-out;
}
@keyframes winModalBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.win-modal__stage {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 450px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 100%);
  animation: winModalStageIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes winModalStageIn {
  from { opacity: 0; transform: translateX(-50%) scale(0.92); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

.win-modal__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.win-modal__screen.is-active {
  opacity: 1;
  pointer-events: auto;
}

.win-modal__header {
  height: calc(56 * var(--u));
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  padding: 0 calc(15 * var(--u));
  flex-shrink: 0;
}
.win-modal__header img {
  width: calc(120 * var(--u));
  height: calc(32 * var(--u));
  object-fit: contain;
}
.win-modal__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(20 * var(--u)) calc(20 * var(--u));
  gap: calc(18 * var(--u));
}
.win-modal__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(38 * var(--u));
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 0 calc(6 * var(--u)) rgba(42, 255, 255, 0.35));
}
.win-modal__chest-img {
  width: calc(280 * var(--u));
  max-width: 88%;
  height: auto;
  filter: drop-shadow(0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 calc(30 * var(--u)) rgba(193, 69, 255, 0.55));
  animation: chestFloat 3.2s ease-in-out infinite;
  will-change: transform;
}
@keyframes chestFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(calc(-10 * var(--u))) scale(1.03); }
}
.win-modal__amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(40 * var(--u));
  color: var(--cyan);
  letter-spacing: 0.02em;
  filter: drop-shadow(0 0 calc(6 * var(--u)) rgba(42, 255, 255, 0.4));
}
.win-modal__cta {
  margin-top: calc(6 * var(--u));
}
.win-modal__timer-bar {
  height: calc(56 * var(--u));
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  padding: 0 calc(20 * var(--u));
  gap: calc(15 * var(--u));
  flex-shrink: 0;
}
.win-modal__timer {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(18 * var(--u));
  color: var(--cyan);
  min-width: calc(52 * var(--u));
}
.win-modal__timer-text {
  font-family: 'Montserrat', sans-serif;
  font-size: calc(13 * var(--u));
  color: var(--white);
  opacity: 0.9;
  line-height: 1.25;
}

.win-modal__screen--partner {
  cursor: pointer;
}
.win-modal__partner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(40 * var(--u)) calc(30 * var(--u));
  gap: calc(40 * var(--u));
}
.win-modal__ml-logo {
  width: calc(220 * var(--u));
  height: auto;
  object-fit: contain;
  animation: partnerLogoPulse 2.4s ease-in-out infinite;
}
@keyframes partnerLogoPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(255, 255, 255, 0.15)); }
  50%      { transform: scale(1.03); filter: drop-shadow(0 0 calc(14 * var(--u)) rgba(255, 255, 255, 0.35)); }
}
.win-modal__partner-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(30 * var(--u));
  color: var(--cyan);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  filter: drop-shadow(0 0 calc(6 * var(--u)) rgba(42, 255, 255, 0.35));
}
.win-modal__ls-logo {
  width: calc(240 * var(--u));
  height: auto;
  object-fit: contain;
  animation: partnerLogoPulse 2.4s ease-in-out infinite 0.8s;
}
.win-modal__redirect-link {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
