.chip-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  pointer-events: none;
  contain: strict;
}
.chip-rain[hidden],
.motion-off .chip-rain {
  display: none;
}
.chip-fountain-preview {
  position: fixed;
  z-index: 80;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 18px;
  border: 1px solid #dcc46b55;
  border-radius: 100px;
  background: #11160ff2;
  box-shadow: 0 8px 32px #0007;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.chip-fountain-preview span {
  color: #d2d6c7;
  font-size: 11px;
}
.chip-fountain-preview button {
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 100px;
  color: #141709;
  background: #c3fa4c;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.chip-fountain-preview button:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (max-width: 600px) {
  .chip-fountain-preview {
    bottom: calc(78px + env(safe-area-inset-bottom));
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chip-rain {
    display: none;
  }
}

/* A small prize launched by the fountain. Only the ribbon and close control
   receive clicks; the page stays clear, scrollable and interactive. */
.signup-bonus {
  position: fixed;
  z-index: 75;
  left: 50%;
  top: 50%;
  width: 264px;
  max-width: calc(100vw - 48px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  isolation: isolate;
}
.signup-bonus[hidden] {
  display: none;
}
.signup-bonus:not([hidden]) {
  animation: prize-launch 1.15s cubic-bezier(0.16, 0.75, 0.28, 1) both;
}
.bonus-prize {
  position: relative;
  animation: prize-hover 4.8s 1.2s ease-in-out infinite;
}
.bonus-coins {
  display: block;
  width: 240px;
  height: 150px;
  margin: 0 auto -28px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 9px 9px #0007);
}
.bonus-ribbon {
  position: relative;
  padding: 28px 18px 12px;
  border: 1px solid #e1bb536b;
  border-radius: 20px;
  background: linear-gradient(145deg, #25301b, #11180e);
  box-shadow:
    0 12px 36px #0007,
    inset 0 1px #ffe4a33b;
  pointer-events: auto;
  text-align: center;
}
.bonus-kicker {
  display: block;
  font-size: 8px;
  letter-spacing: 2.4px;
  font-weight: 750;
  color: #e1c978;
}
.bonus-ribbon h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin: 8px 0 14px;
  color: #faf6e8;
  white-space: nowrap;
}
.bonus-ribbon h2 span {
  color: #f4d47a;
}
.bonus-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #332307;
  background: linear-gradient(115deg, #fff1ae, #e6b63c);
  box-shadow:
    0 3px 0 #8f6418,
    inset 0 1px #fff8d8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.bonus-action:hover {
  background: linear-gradient(115deg, #fff8d8, #ffcc57);
}
.bonus-action span {
  font-size: 20px;
  line-height: 1;
}
.bonus-ribbon small {
  display: block;
  color: #b9bfaa;
  font-size: 9px;
  margin-top: 9px;
}
.bonus-close {
  position: absolute;
  right: -8px;
  top: 32px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #182016;
  color: #ede6cc;
  border: 1px solid #b99b454f;
  pointer-events: auto;
  cursor: pointer;
  font-size: 25px;
  box-shadow: 0 4px 15px #0005;
}
.bonus-glint {
  position: absolute;
  z-index: 3;
  color: #fff3ae;
  filter: drop-shadow(0 0 7px #ffd765);
  animation: prize-glint 2.8s ease-in-out infinite;
}
.glint-one {
  left: 24px;
  top: 53px;
  font-size: 25px;
}
.glint-two {
  right: 43px;
  top: 15px;
  font-size: 19px;
  animation-delay: 1.3s;
}
@keyframes prize-launch {
  0% {
    opacity: 0;
    transform: translate(-50%, 70dvh) scale(0.32) rotate(-18deg);
  }
  48% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 30px)) scale(1.05) rotate(4deg);
  }
  70% {
    transform: translate(-50%, calc(-50% + 12px)) scale(0.98) rotate(-2deg);
  }
  86% {
    transform: translate(-50%, calc(-50% - 5px)) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
}
@keyframes prize-hover {
  50% {
    transform: translateY(-5px) rotate(0.7deg);
  }
}
@keyframes prize-glint {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.7) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(40deg);
  }
}
@media (max-width: 600px) {
  .signup-bonus {
    width: 244px;
  }
  .bonus-coins {
    width: 220px;
    height: 138px;
  }
  .bonus-ribbon {
    padding: 26px 14px 11px;
  }
  .bonus-ribbon h2 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .signup-bonus:not([hidden]),
  .bonus-prize,
  .bonus-glint {
    animation: none;
  }
}
.motion-off .signup-bonus,
.motion-off .bonus-prize,
.motion-off .bonus-glint {
  animation: none;
}
.page-hidden .bonus-prize,
.page-hidden .bonus-glint {
  animation-play-state: paused;
}
