/* Base styles loaded on all pages */
@import url('/css/header.css');
@import url('/css/toasts.css');

:root {
  --p1: #8b5cf6;
  --p2: #c084fc;
  --bg-color: #0d0221;
  --surface-color: #1a093b;
  --border-color: #302060;
  --accent-color: #4b0082;
  --accent-hover: #6a0dad;
  --text-color: #e0e0ff;
  --font-family: 'Inter', sans-serif;
}

body {
  background:radial-gradient(1100px 500px at 10% 0%, rgba(139, 92, 246, .18), transparent 65%), radial-gradient(900px 450px at 90% 15%, rgba(192, 132, 252, .16), transparent 70%), linear-gradient(180deg, #0b0a12, #090812);
  overflow-x:hidden;
  color: var(--text-color);
  font-family: var(--font-family);
}
.rainbow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      90deg,
      rgb(255, 0, 51) 0%,
      orange 16.66%,
      rgb(255, 230, 0) 33.33%,
      rgb(0, 255, 0) 50%,
      rgb(0, 128, 255) 66.66%,
      rgb(104, 0, 104) 83.33%,
      rgb(255, 0, 51) 100%
    );
    background-size: 200% 100%;
    animation: rainbowMove 2.8s linear infinite;
    z-index: 0;
    mask-size: cover;
    opacity: 30%;
    pointer-events: none;
}

@keyframes rainbowMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.shiny {
  position: absolute;
  inset: 0;
  pointer-events: none;

  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;

  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;

  overflow: hidden;
}

.shiny::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    120deg,
    transparent 0%,
    transparent 38%,
    rgba(255,255,255,0.88) 50%,
    transparent 62%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shinyMove 2.5s linear infinite;
}

@keyframes shinyMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}

.live-announcement {
  margin: 0 0 0 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-16px) scale(0.975);
  transform-origin: top center;
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height .34s cubic-bezier(.2,.8,.25,1),
    opacity .24s ease,
    transform .34s cubic-bezier(.2,.8,.25,1),
    margin-bottom .34s cubic-bezier(.2,.8,.25,1);
}

.live-announcement.is-visible {
  max-height: 140px;
  margin-bottom: 14px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.live-announcement-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(177, 135, 255, 0.55);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(155, 99, 255, 0.34), rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, rgba(28, 23, 46, 0.98), rgba(15, 12, 28, 0.98));
  color: #eee8ff;
  box-shadow:
    0 20px 40px rgba(5, 5, 13, 0.68),
    0 0 28px rgba(139, 92, 246, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.live-announcement-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-announcement-icon {
  font-size: 1.15rem;
  color: #d8c4ff;
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.55);
  flex: 0 0 auto;
  animation: announcementPulse 1.8s ease-in-out infinite;
}

#liveAnnouncementText {
  font-size: .98rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #f8f4ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.live-announcement-sender {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(222, 212, 255, 0.86);
}

.live-announcement-sender.is-hidden {
  display: none;
}

@keyframes announcementPulse {
  0%, 100% { transform: scale(1); opacity: .95; }
  50% { transform: scale(1.12); opacity: 1; }
}


@media (max-width: 768px) {
  .live-announcement.is-visible {
    margin-bottom: 12px;
    max-height: 180px;
  }

  .live-announcement-inner {
    border-radius: 12px;
    padding: 10px 12px;
  }

  #liveAnnouncementText {
    font-size: .92rem;
  }

  .live-announcement-sender {
    font-size: .72rem;
  }
}

.live-announcement.is-visible + .coinflip {
  height: calc(92dvh - 74px);
}

.live-announcement.is-visible + .dice {
  height: calc(92dvh - 74px);
}

.live-announcement.is-visible + .jackpot {
  --jackpot-vh: calc(92dvh - 74px);
}

@media (max-height: 1070px) {
  .live-announcement.is-visible + .coinflip {
    height: calc(90dvh - 74px);
  }

  .live-announcement.is-visible + .dice {
    height: calc(90dvh - 74px);
  }

  .live-announcement.is-visible + .jackpot {
    --jackpot-vh: calc(90dvh - 74px);
  }
}

@media (max-height: 740px) {
  .live-announcement.is-visible + .coinflip {
    height: calc(88.4dvh - 74px);
  }

  .live-announcement.is-visible + .dice {
    height: calc(88.4dvh - 74px);
  }

  .live-announcement.is-visible + .jackpot {
    --jackpot-vh: calc(88.4dvh - 74px);
  }
}

@media (max-width: 767.98px) {
  .live-announcement.is-visible + .coinflip {
    height: auto;
    min-height: 93vh;
    min-height: 93dvh;
  }

  .live-announcement.is-visible + .dice {
    height: auto;
    min-height: 93vh;
    min-height: 93dvh;
  }

  .live-announcement.is-visible + .jackpot {
    --jackpot-vh: 93dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-announcement,
  .live-announcement-icon,
  .live-announcement-inner::after {
    transition: none !important;
    animation: none !important;
  }
}

