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

:root {
  --deep: #061226;
  --deep-2: #0b1c37;
  --navy: #10264a;
  --blue: #2b7dff;
  --blue-2: #3ab5ff;
  --cyan: #6ce7ff;
  --cyan-bright: #d7fbff;
  --silver: #e8f4ff;
  --white: #fff;
  --muted: #dce9ff;
}


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% 16%, rgba(78, 179, 255, .33) 0%, rgba(48, 136, 255, .14) 24%, transparent 46%),
    radial-gradient(circle at 18% 72%, rgba(91, 239, 255, .18), transparent 30%),
    radial-gradient(circle at 86% 42%, rgba(22, 123, 255, .26), transparent 33%),
    linear-gradient(180deg, #0e203f 0%, #11274b 38%, #0a1730 74%, #07111f 100%);
}


.game-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .34;
  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%, #d8f4ff 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%, #e9f7ff 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(86, 214, 255, .40), rgba(59, 127, 255, .06) 58%, transparent 74%);
}


.nebula-b {
  width: 70%;
  aspect-ratio: 1;
  right: -31%;
  top: 8%;
  background: radial-gradient(circle, rgba(31, 124, 255, .36), rgba(57, 135, 255, .08) 58%, transparent 74%);
}


.light-arc {
  position: absolute;
  width: 110%;
  height: 15%;
  border: 3px solid transparent;
  border-top-color: rgba(118, 233, 255, .45);
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(103, 208, 255, .42));
  opacity: .5;
}


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

.arc-b {
  left: -38%;
  top: 13%;
  border-top-color: rgba(103, 157, 255, .34);
  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, #3fd0ff 0%, #2e9bff 34%, #1f5eff 72%, #1444ce 100%);
  border: 3px solid rgba(199, 241, 255, .68);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.26),
    inset 0 -10px 22px rgba(8, 41, 121, .25),
    0 8px 0 rgba(17, 54, 147, .86),
    0 0 20px rgba(79, 213, 255, .45),
    0 0 52px rgba(29, 131, 255, .32);
}


.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(13, 64, 170, .52), 0 0 12px rgba(255,255,255,.18);
  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%, #daf2ff 28%, #6fe1ff 58%, #ffffff 100%);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.46),
    0 0 24px rgba(177,236,255,.38),
    0 0 42px rgba(52, 140, 255, .48),
    0 18px 42px rgba(5, 18, 40, .42);
}


.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(56, 128, 255, .14), transparent 44%),
    linear-gradient(180deg, #06193d 0%, #071b42 48%, #04122f 100%);
  box-shadow: inset 0 0 32px rgba(4, 32, 83, .72);
}


.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--seven { max-width: 75%; max-height: 75%; }
.slot-image--horseshoe { max-width: 77%; max-height: 77%; }
.slot-image--grapes { max-width: 76%; max-height: 76%; }
.slot-image--dice { max-width: 74%; max-height: 74%; }
.slot-image--diamond { max-width: 74%; max-height: 70%; filter: drop-shadow(0 0 12px rgba(121, 238, 255, .45)) drop-shadow(0 4px 10px rgba(0, 0, 0, .34)); }
.slot-image--coins { max-width: 78%; max-height: 80%; }
.slot-image--clover { max-width: 76%; max-height: 76%; }
.slot-image--cherries { max-width: 82%; max-height: 82%; }
.slot-image--strawberry { max-width: 70%; max-height: 86%; }
.slot-image--bell { max-width: 76%; max-height: 76%; }
.slot-image--bar { max-width: 84%; max-height: 56%; }


.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,.46), 0 0 24px rgba(177,236,255,.38), 0 0 42px rgba(52,140,255,.48), 0 18px 42px rgba(5,18,40,.42); }
  50% { box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 42px rgba(191,247,255,.92), 0 0 78px rgba(72,186,255,.86), 0 0 106px rgba(54,110,255,.44); }
}


.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: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.brand-name {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 820;
  letter-spacing: -.045em;
  color: #f8fdff;
  text-shadow: 0 3px 12px rgba(255,255,255,.10), 0 0 22px rgba(106, 225, 255, .20);
}



.brand-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: clamp(48px, 13vw, 60px);
  height: clamp(48px, 13vw, 60px);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(13, 32, 76, .34), 0 0 18px rgba(104, 229, 255, .18);
}

.bonus-app-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 28px rgba(8, 27, 69, .42), 0 0 24px rgba(94, 226, 255, .22);
}

.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,.82);
  border: 2px solid rgba(173, 230, 255, .72);
  background: rgba(13, 39, 88, .22);
}


.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, #2196ff 0%, #38c6ff 42%, #2da8ff 65%, #2365ff 100%);
  background-size: 240% 240%;
  border: 3px solid rgba(188, 241, 255, .78);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.22),
    inset 0 -9px 18px rgba(12, 53, 145, .30),
    0 8px 0 rgba(20, 73, 174, .88),
    0 0 24px rgba(52, 196, 255, .50),
    0 0 58px rgba(51, 118, 255, .32);
  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(11, 65, 169, .50), 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,.22), inset 0 -9px 18px rgba(12,53,145,.30), 0 8px 0 rgba(20,73,174,.88), 0 0 22px rgba(52,196,255,.46), 0 0 50px rgba(51,118,255,.28); }
  50% { box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -9px 18px rgba(12,53,145,.26), 0 8px 0 rgba(20,73,174,.88), 0 0 34px rgba(122,231,255,.76), 0 0 72px rgba(72,127,255,.34); }
}


@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;
  z-index: 1;
  background: rgba(4, 14, 36, .74);
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.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(102, 236, 255, .22), transparent 35%),
    radial-gradient(circle at 95% 35%, rgba(74, 204, 255, .16), transparent 34%),
    linear-gradient(160deg, rgba(23, 72, 184, .97), rgba(10, 32, 90, .98) 54%, rgba(7, 22, 53, .99));
  border: 1px solid rgba(205, 245, 255, .42);
  box-shadow: 0 28px 90px rgba(0,0,0,.58), 0 0 55px rgba(68, 186, 255, .26), inset 0 1px 0 rgba(255,255,255,.14);
  transform: translateY(20px) scale(.90);
  opacity: 0;
}


.bonus-modal.is-open .bonus-card {
  z-index: 2;
  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: #ecfbff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(214, 246, 255, .18);
}


.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: #f2fdff;
  text-shadow: 0 0 12px rgba(121, 236, 255, .28);
}


.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, #9fefff, #ffffff 42%, #57c6ff 76%, #d4f9ff);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(88, 197, 255, .30));
  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, #1d93ff 0%, #55d9ff 48%, #246bff 100%);
  background-size: 220% 220%;
  border: 1px solid rgba(232, 249, 255, .36);
  box-shadow: 0 16px 40px rgba(26,99,255,.28), 0 0 30px rgba(68, 214, 255, .22);
  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(26,99,255,.28),0 0 30px rgba(68,214,255,.22)} 50%{transform:scale(1.018);box-shadow:0 20px 50px rgba(26,99,255,.38),0 0 42px rgba(130,234,255,.28)} }



.footer-spacer {
  min-height: 24px;
  background: transparent;
}

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


.footer-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  border-radius: 24px;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(16, 41, 90, .90), rgba(8, 22, 47, .96));
  border: 1px solid rgba(176, 229, 255, .18);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
}


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


.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: #cae7ff;
  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 {
  position: relative;
  width: min(100%, 480px);
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 52% 16%, rgba(78, 179, 255, .33) 0%, rgba(48, 136, 255, .14) 24%, transparent 46%),
    radial-gradient(circle at 18% 72%, rgba(91, 239, 255, .18), transparent 30%),
    radial-gradient(circle at 86% 42%, rgba(22, 123, 255, .26), transparent 33%),
    linear-gradient(180deg, #0e203f 0%, #11274b 38%, #0a1730 74%, #07111f 100%);
}


@media (max-width: 390px) {
  .game-ui {
    padding-left: 12px;
    padding-right: 12px;
  }
  .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, #3fd0ff 0%, #2e9bff 34%, #1f5eff 72%, #1444ce 100%);
  border: 3px solid rgba(199, 241, 255, .68);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.26),
    inset 0 -10px 22px rgba(8, 41, 121, .25),
    0 8px 0 rgba(17, 54, 147, .86),
    0 0 20px rgba(79, 213, 255, .45),
    0 0 52px rgba(29, 131, 255, .32);
}


@media (max-height: 720px) {
  .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, #3fd0ff 0%, #2e9bff 34%, #1f5eff 72%, #1444ce 100%);
  border: 3px solid rgba(199, 241, 255, .68);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.26),
    inset 0 -10px 22px rgba(8, 41, 121, .25),
    0 8px 0 rgba(17, 54, 147, .86),
    0 0 20px rgba(79, 213, 255, .45),
    0 0 52px rgba(29, 131, 255, .32);
}


@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;
  }
}
