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

:root {
  --deep: #090014;
  --deep-2: #16002d;
  --purple: #6400d8;
  --purple-hot: #a800ff;
  --magenta: #ff22c8;
  --pink: #ff62e3;
  --cyan: #45cfff;
  --cyan-bright: #9aebff;
  --white: #fff;
  --muted: #d8cbea;
}

html {
  min-height: 100%;
  background: var(--deep);
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #090014;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

.page-shell {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  justify-content: center;
  background: #080010;
}

.game-screen {
  position: relative;
  width: min(100%, 480px);
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 52% 20%, rgba(173, 0, 255, .60) 0%, rgba(112, 0, 220, .27) 24%, transparent 46%),
    radial-gradient(circle at 22% 72%, rgba(255, 29, 203, .30), transparent 31%),
    radial-gradient(circle at 86% 48%, rgba(52, 197, 255, .28), transparent 32%),
    linear-gradient(180deg, #1b003b 0%, #28004f 34%, #16002f 72%, #0b0018 100%);
}

.game-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .38;
  background-image:
    radial-gradient(circle at 10% 8%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 78% 12%, #fff 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 32% 36%, #d8eaff 0 .8px, transparent 1.3px),
    radial-gradient(circle at 91% 62%, #fff 0 .9px, transparent 1.4px),
    radial-gradient(circle at 14% 83%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 62% 90%, #e9ddff 0 .9px, transparent 1.3px);
  background-size: 150px 150px, 210px 210px, 180px 180px, 230px 230px, 190px 190px, 260px 260px;
}

.space-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -2;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  opacity: .65;
}

.nebula-a {
  width: 72%;
  aspect-ratio: 1;
  left: -30%;
  top: 35%;
  background: radial-gradient(circle, rgba(247, 41, 217, .52), rgba(107, 0, 229, .10) 58%, transparent 74%);
}

.nebula-b {
  width: 70%;
  aspect-ratio: 1;
  right: -31%;
  top: 8%;
  background: radial-gradient(circle, rgba(64, 207, 255, .52), rgba(107, 0, 229, .10) 58%, transparent 74%);
}

.light-arc {
  position: absolute;
  width: 110%;
  height: 15%;
  border: 3px solid transparent;
  border-top-color: rgba(108, 220, 255, .55);
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(87, 216, 255, .65));
  opacity: .55;
}

.arc-a {
  left: -5%;
  top: 2%;
  transform: rotate(-8deg);
}

.arc-b {
  left: -38%;
  top: 13%;
  border-top-color: rgba(215, 103, 255, .42);
  transform: rotate(8deg);
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px #fff, 0 0 18px rgba(154, 235, 255, .8);
  opacity: .82;
}

.star-1 { left: 12%; top: 12%; }
.star-2 { left: 82%; top: 7%; }
.star-3 { left: 92%; top: 35%; }
.star-4 { left: 7%; top: 63%; }
.star-5 { left: 76%; top: 78%; }
.star-6 { left: 39%; top: 88%; }

.game-ui {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: 100%;
  padding:
    max(24px, env(safe-area-inset-top))
    clamp(14px, 3.8vw, 20px)
    max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.balance-panel {
  position: relative;
  width: min(73%, 330px);
  min-height: clamp(72px, 11.2vh, 102px);
  margin-top: clamp(38px, 7.4vh, 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: clamp(18px, 4vw, 25px);
  background: linear-gradient(180deg, #b00bfa 0%, #7e00d1 74%, #5c009e 100%);
  border: 3px solid rgba(207, 85, 255, .54);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.15),
    inset 0 -10px 22px rgba(45, 0, 87, .24),
    0 8px 0 rgba(72, 0, 114, .85),
    0 0 20px rgba(209, 31, 255, .82),
    0 0 52px rgba(190, 0, 255, .55);
}

.balance-panel::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 5px;
  height: 34%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.17), transparent);
  pointer-events: none;
}

#balance-value {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.7rem, 10.5vw, 4rem);
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(76, 0, 121, .48), 0 0 12px rgba(255,255,255,.15);
  font-variant-numeric: tabular-nums;
}

.balance-panel.balance-hit {
  animation: balanceHit .18s ease-out;
}

@keyframes balanceHit {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.035); filter: brightness(1.22); }
  100% { transform: scale(1); filter: brightness(1); }
}

.reels-frame {
  position: relative;
  width: calc(100% + 4px);
  margin-top: clamp(25px, 4vh, 40px);
  height: clamp(230px, 31vh, 330px);
  border-radius: clamp(18px, 4.3vw, 26px);
  overflow: hidden;
  padding: 5px;
  background: linear-gradient(135deg, #ffffff 0%, #d9d4ff 30%, #8ce5ff 60%, #ffffff 100%);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.34),
    0 0 24px rgba(255,255,255,.54),
    0 0 42px rgba(126, 51, 255, .76),
    0 18px 42px rgba(5, 0, 24, .46);
}

.reels-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: calc(clamp(18px, 4.3vw, 26px) - 5px);
  background:
    radial-gradient(circle at 50% 48%, rgba(30, 66, 151, .17), transparent 44%),
    linear-gradient(180deg, #071442 0%, #061137 48%, #020a28 100%);
  box-shadow: inset 0 0 32px rgba(5, 0, 52, .76);
}

.reels-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: calc(clamp(18px, 4.3vw, 26px) - 5px);
}

.reel-window {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.reel-window + .reel-window::before {
  content: "";
  position: absolute;
  top: 7%;
  bottom: 7%;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.08), transparent);
  z-index: 4;
}

.reel-strip {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 400%;
  display: grid;
  grid-template-rows: repeat(12, 1fr);
  will-change: transform;
  transform: translateY(-25%);
}

.reel-window.is-spinning .reel-strip {
  animation-name: reelRoll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  filter: blur(.65px);
}

.reel-window:nth-child(1) .reel-strip { animation-duration: .46s; }
.reel-window:nth-child(2) .reel-strip { animation-duration: .51s; }
.reel-window:nth-child(3) .reel-strip { animation-duration: .43s; }
.reel-window:nth-child(4) .reel-strip { animation-duration: .49s; }
.reel-window:nth-child(5) .reel-strip { animation-duration: .45s; }

@keyframes reelRoll {
  from { transform: translateY(-50%); }
  to { transform: translateY(0%); }
}

.reel-window.is-locking {
  animation: reelLock .30s cubic-bezier(.18,.88,.32,1.2);
}

@keyframes reelLock {
  0% { transform: translateY(-8px); filter: brightness(1.35); }
  60% { transform: translateY(5px); }
  100% { transform: translateY(0); filter: brightness(1); }
}

.slot-symbol {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  user-select: none;
}

.slot-image {
  display: block;
  width: auto;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .34));
  user-select: none;
  -webkit-user-drag: none;
}

.slot-image--r { max-width: 76%; max-height: 76%; }
.slot-image--gift { max-width: 82%; max-height: 82%; }
.slot-image--safe { max-width: 80%; max-height: 80%; }
.slot-image--globe { max-width: 80%; max-height: 80%; }
.slot-image--chest { max-width: 82%; max-height: 82%; }
.slot-image--phone { max-width: 72%; max-height: 80%; }

.slot-r {
  position: relative;
  display: inline-block;
  font-family: Arial Black, Impact, sans-serif;
  font-size: clamp(2.8rem, 13.6vw, 5rem);
  font-style: italic;
  font-weight: 1000;
  line-height: .82;
  transform: skewX(-6deg);
  background: linear-gradient(180deg, #b3f0ff 0%, #6fd1ff 32%, #7090ff 54%, #dd5bff 74%, #ff6fca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgba(192, 239, 255, .98);
  filter:
    drop-shadow(0 2px 0 rgba(95, 83, 186, .8))
    drop-shadow(0 5px 0 rgba(48, 26, 123, .82))
    drop-shadow(0 0 6px rgba(125, 217, 255, .9))
    drop-shadow(0 0 12px rgba(255, 111, 202, .45));
}

.slot-coin,
.slot-safe,
.slot-card,
.slot-pill,
.slot-chest {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.34), 0 0 10px rgba(132, 214, 255, .16);
}

.slot-coin {
  width: min(68%, 58px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: rgba(160, 103, 17, .92);
  font-size: clamp(1.15rem, 5.2vw, 2rem);
  font-weight: 1000;
  font-style: italic;
  background: radial-gradient(circle at 32% 28%, #ffe7b9 0 9%, #f2c16a 22%, #d28f3d 58%, #9f6020 100%);
  border: 2px solid #efc07c;
}

.slot-safe {
  width: min(70%, 60px);
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(145deg, #d8edff 0%, #8ea6da 30%, #768ac7 58%, #a7c6e6 100%);
  border: 2px solid rgba(227, 244, 255, .92);
}
.slot-safe::before {
  content: "";
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, #9ab4df 0%, #6b82bf 60%, #5066a7 100%);
  border: 2px solid rgba(228, 243, 255, .95);
  box-shadow: 0 0 0 2px rgba(135, 169, 214, .55) inset;
}
.slot-safe::after {
  content: "";
  position: absolute;
  width: 10%;
  height: 36%;
  border-radius: 999px;
  background: rgba(228, 243, 255, .95);
}

.slot-card {
  width: min(78%, 68px);
  aspect-ratio: 1.35;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f2448 0%, #11183f 60%, #26356b 100%);
  border: 2px solid rgba(190, 221, 255, .35);
}
.slot-card::before,
.slot-card::after {
  content: "";
  position: absolute;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  bottom: 18%;
}
.slot-card::before {
  right: 23%;
  background: #ef3340;
}
.slot-card::after {
  right: 12%;
  background: #f59a23;
  mix-blend-mode: screen;
}

.slot-pill {
  width: min(64%, 52px);
  height: min(24%, 24px);
  border-radius: 999px;
  transform: rotate(-10deg);
  background: linear-gradient(90deg, #68ddff 0%, #749bff 48%, #d84eff 100%);
  border: 2px solid rgba(214, 242, 255, .78);
  box-shadow: 0 0 10px rgba(108, 220, 255, .26), 0 0 10px rgba(216, 78, 255, .16);
}

.slot-chest {
  width: min(72%, 62px);
  aspect-ratio: 1.18;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffcc71 0 42%, #ca7d2e 43% 100%);
  border: 2px solid #f7d08b;
}
.slot-chest::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0 43%, rgba(126, 83, 33, .9) 43% 57%, transparent 57% 100%);
}
.slot-chest::after {
  content: "";
  width: 18%;
  height: 22%;
  border-radius: 4px;
  background: #fff1ba;
  box-shadow: 0 0 5px rgba(255,255,255,.4);
}

.reel-shine {
  position: absolute;
  z-index: 3;
  inset: 5px;
  pointer-events: none;
  border-radius: calc(clamp(18px, 4.3vw, 26px) - 5px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 20%, transparent 80%, rgba(19, 11, 76, .28));
}

.reels-frame.win-glow {
  animation: winGlow .72s ease-out 2;
}

@keyframes winGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,.34), 0 0 24px rgba(255,255,255,.54), 0 0 42px rgba(126, 51, 255, .76), 0 18px 42px rgba(5,0,24,.46); }
  50% { box-shadow: 0 0 0 3px rgba(255,255,255,.78), 0 0 38px rgba(255,255,255,.86), 0 0 72px rgba(255, 43, 220, .92), 0 0 96px rgba(82, 207, 255, .66); }
}

.cash-layer {
  position: absolute;
  inset: -42% -10% -20%;
  z-index: 8;
  overflow: visible;
  pointer-events: none;
}

.banknote {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(72px, 20vw, 104px);
  height: clamp(34px, 9.5vw, 50px);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #224b51;
  font-weight: 950;
  font-size: clamp(.85rem, 3.6vw, 1.15rem);
  letter-spacing: .02em;
  background:
    radial-gradient(circle at 22% 50%, rgba(255,255,255,.8) 0 8%, transparent 9%),
    linear-gradient(135deg, #d9f5dc, #a8d6c4 42%, #d6f1e0 65%, #86b8a8);
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 4px 11px rgba(0,0,0,.35), 0 0 9px rgba(203,255,240,.45);
  opacity: 0;
  transform: translate3d(-50%, -30px, 0) rotate(var(--rot));
  animation: cashFall var(--cash-duration) cubic-bezier(.2,.65,.2,1) forwards;
}

.banknote::before,
.banknote::after {
  content: "€";
  position: absolute;
  font-size: .7em;
  color: rgba(28, 91, 83, .74);
}
.banknote::before { left: 7px; top: 5px; }
.banknote::after { right: 7px; bottom: 5px; }

@keyframes cashFall {
  0% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--x0)), -40px, 0) rotate(var(--rot)) scale(.80);
    filter: blur(2px);
  }
  14% { opacity: 1; filter: blur(0); }
  55% {
    opacity: 1;
    transform: translate3d(calc(-50% + var(--x1)), 48%, 0) rotate(var(--rot-mid)) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--x2)), 155%, 0) rotate(var(--rot-end)) scale(.92);
    filter: blur(1px);
  }
}

.brand-row {
  position: relative;
  width: 100%;
  margin-top: clamp(18px, 3vh, 30px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 760;
  letter-spacing: -.06em;
  color: #fff;
  text-shadow: 0 3px 12px rgba(255,255,255,.10), 0 0 22px rgba(191, 90, 255, .18);
}

.info-dot {
  position: absolute;
  right: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .77rem;
  color: rgba(255,255,255,.76);
  border: 2px solid rgba(255,255,255,.70);
}

.start-button {
  position: relative;
  margin-top: auto;
  margin-bottom: clamp(12px, 2.6vh, 30px);
  width: min(60%, 250px);
  min-height: clamp(70px, 10.2vh, 96px);
  border-radius: clamp(20px, 4.5vw, 28px);
  color: #fff;
  cursor: pointer;
  background: linear-gradient(105deg, #7200cf 0%, #bc0afb 42%, #8a00ec 65%, #5e00bc 100%);
  background-size: 240% 240%;
  border: 3px solid rgba(210, 75, 255, .72);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.17),
    inset 0 -9px 18px rgba(53, 0, 98, .30),
    0 8px 0 rgba(76, 0, 120, .88),
    0 0 24px rgba(209, 37, 255, .78),
    0 0 58px rgba(180, 0, 255, .48);
  animation: idleButtonGradient 4.2s ease-in-out infinite, idleButtonFloat 2.6s ease-in-out infinite, idleButtonPulse 2.2s ease-in-out infinite;
  transition: transform .16s ease, filter .16s ease;
  overflow: hidden;
}

.start-button::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -45%;
  width: 32%;
  height: 160%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.46), transparent);
  animation: buttonSweep 3.2s ease-in-out infinite;
}

.start-button span {
  position: relative;
  z-index: 1;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 9vw, 3.2rem);
  letter-spacing: .03em;
  text-shadow: 0 3px 0 rgba(62, 0, 105, .56), 0 0 12px rgba(255,255,255,.24);
}

.start-button:hover { filter: brightness(1.08); }
.start-button:active { transform: translateY(4px) scale(.985); }
.start-button:disabled {
  cursor: default;
  animation: none;
  filter: brightness(.86) saturate(.9);
  transform: translateY(4px);
}
.start-button:disabled::before { display: none; }

@keyframes idleButtonGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes idleButtonFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.012); }
}

@keyframes idleButtonPulse {
  0%, 100% { box-shadow: inset 0 2px 0 rgba(255,255,255,.17), inset 0 -9px 18px rgba(53,0,98,.30), 0 8px 0 rgba(76,0,120,.88), 0 0 22px rgba(209,37,255,.70), 0 0 50px rgba(180,0,255,.42); }
  50% { box-shadow: inset 0 2px 0 rgba(255,255,255,.20), inset 0 -9px 18px rgba(53,0,98,.26), 0 8px 0 rgba(76,0,120,.88), 0 0 34px rgba(238,52,255,.92), 0 0 72px rgba(91,198,255,.38); }
}

@keyframes buttonSweep {
  0%, 20% { left: -45%; opacity: 0; }
  32% { opacity: .95; }
  48% { left: 116%; opacity: 0; }
  100% { left: 116%; opacity: 0; }
}

.bonus-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .30s ease, visibility .30s ease;
}

.bonus-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 0, 18, .76);
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
}

.bonus-card {
  position: relative;
  width: min(100%, 390px);
  overflow: hidden;
  padding: 32px 22px 24px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 55, 214, .28), transparent 35%),
    radial-gradient(circle at 95% 35%, rgba(74, 204, 255, .22), transparent 34%),
    linear-gradient(160deg, rgba(80, 14, 151, .96), rgba(22, 4, 57, .98) 54%, rgba(11, 4, 31, .99));
  border: 1px solid rgba(239, 178, 255, .40);
  box-shadow: 0 28px 90px rgba(0,0,0,.60), 0 0 55px rgba(195, 39, 255, .40), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateY(20px) scale(.90);
  opacity: 0;
}

.bonus-modal.is-open .bonus-card {
  animation: modalPop .58s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes modalPop {
  0% { transform: translateY(22px) scale(.88); opacity: 0; }
  65% { transform: translateY(-4px) scale(1.025); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.popup-rays {
  position: absolute;
  width: 320px;
  height: 320px;
  left: 50%;
  top: -180px;
  transform: translateX(-50%);
  background: conic-gradient(from 0deg, transparent 0 10deg, rgba(255,255,255,.10) 10deg 17deg, transparent 17deg 40deg);
  animation: raySpin 14s linear infinite;
  opacity: .65;
}

@keyframes raySpin { to { transform: translateX(-50%) rotate(360deg); } }

.popup-stars span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 12px white;
  animation: popupTwinkle 1.7s ease-in-out infinite alternate;
}
.popup-stars span:nth-child(1) { left: 13%; top: 18%; }
.popup-stars span:nth-child(2) { right: 14%; top: 24%; animation-delay: .35s; }
.popup-stars span:nth-child(3) { left: 24%; bottom: 24%; animation-delay: .7s; }
.popup-stars span:nth-child(4) { right: 20%; bottom: 19%; animation-delay: 1s; }
@keyframes popupTwinkle { from { opacity:.25; transform:scale(.7); } to { opacity:1; transform:scale(1.4); } }

.bonus-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 17px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f6dcff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.popup-congrats {
  position: relative;
  z-index: 1;
  margin: 2px 0 12px;
  font-size: clamp(1rem, 4.6vw, 1.16rem);
  font-weight: 880;
  letter-spacing: .01em;
  color: #ffe9ff;
  text-shadow: 0 0 12px rgba(255, 109, 223, .32);
}

.bonus-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.45rem, 6.5vw, 2rem);
  line-height: 1.28;
  font-weight: 780;
  color: #f7efff;
}

.bonus-title strong {
  display: block;
  margin-top: 8px;
  font-size: 1.28em;
  font-weight: 950;
  letter-spacing: -.03em;
  background: linear-gradient(90deg, #ff8ceb, #ffffff 42%, #8ce7ff 76%, #ff79e8);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(255,72,218,.34));
  animation: popupGradient 3.2s ease-in-out infinite;
}

@keyframes popupGradient { 0%,100% {background-position:0% 50%} 50% {background-position:100% 50%} }

.get-bonus-button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 62px;
  margin-top: 24px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: .02em;
  background: linear-gradient(105deg, #ff38d0 0%, #9b45ff 45%, #4fd9ff 100%);
  background-size: 220% 220%;
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 16px 40px rgba(115,38,255,.40), 0 0 30px rgba(255,54,209,.23);
  animation: getBonusFlow 4s ease-in-out infinite, getBonusPulse 2.4s ease-in-out infinite;
}

.get-bonus-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -38%;
  width: 28%;
  height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: getBonusShine 3s ease-in-out infinite;
}

@keyframes getBonusFlow { 0%,100%{background-position:0 50%} 50%{background-position:100% 50%} }
@keyframes getBonusPulse { 0%,100%{transform:scale(1);box-shadow:0 16px 40px rgba(115,38,255,.40),0 0 30px rgba(255,54,209,.23)} 50%{transform:scale(1.018);box-shadow:0 20px 50px rgba(115,38,255,.50),0 0 42px rgba(79,217,255,.25)} }
@keyframes getBonusShine { 0%,18%{left:-38%;opacity:0} 32%{opacity:1} 49%{left:112%;opacity:0} 100%{left:112%;opacity:0} }

.footer-spacer {
  min-height: 330vh;
  background: linear-gradient(180deg, #090014, #130026 55%, #090014);
}

.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 16px 34px;
  background: #090014;
}

.footer-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  border-radius: 24px;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(52, 13, 91, .86), rgba(17, 5, 37, .96));
  border: 1px solid rgba(220, 171, 255, .18);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
}

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #f3ebff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.footer-item-full { grid-column: 1 / -1; }
.footer-label {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #d5c8f5;
  margin-bottom: 7px;
}
.footer-item p,
.footer-item a {
  color: #fff;
  font-size: .95rem;
  line-height: 1.65;
  word-break: break-word;
}
.footer-item a { text-decoration: none; }
.footer-item a:hover,
.footer-item a:focus-visible { text-decoration: underline; }

@media (min-width: 481px) {
  .game-screen {
    box-shadow: 0 0 80px rgba(114, 0, 211, .34);
  }
}

@media (max-width: 390px) {
  .game-ui {
    padding-left: 12px;
    padding-right: 12px;
  }
  .balance-panel { margin-top: clamp(24px, 5.5vh, 50px); }
  .reels-frame { margin-top: clamp(20px, 3.2vh, 28px); }
  .start-button { width: 62%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-item-full { grid-column: auto; }
}

@media (max-height: 720px) {
  .balance-panel {
    margin-top: 14px;
    min-height: 62px;
  }
  .reels-frame {
    margin-top: 18px;
    height: 228px;
  }
  .brand-row {
    margin-top: 12px;
    min-height: 42px;
  }
  .start-button {
    min-height: 66px;
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-button,
  .start-button::before,
  .get-bonus-button,
  .get-bonus-button::after,
  .popup-rays,
  .popup-stars span {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
