@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800;900&display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  background: #030303;
  color: #fff;
  overflow-x: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 50% 32%,
      rgba(255, 36, 36, 0.26),
      transparent 36%
    ),
    radial-gradient(
      circle at 25% 72%,
      rgba(255, 255, 255, 0.1),
      transparent 20%
    ),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #050505;
  background-size:
    auto,
    auto,
    72px 72px,
    72px 72px;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #020202 0%,
      transparent 18%,
      transparent 82%,
      #020202 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 45%, #050505 100%);
}

.navbar {
  width: min(1180px, calc(100% - 48px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-nav__logo {
  width: 48px;
  height: 48px;
  background-image: var(--site-logo-url);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 18px rgba(255, 35, 35, 0.85));
}

.brand span span {
  color: #ff2d32;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.navbar nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  transition: 0.2s ease;
}

.navbar nav a:hover {
  color: #fff;
}

.vip-btn {
  padding: 15px 25px;
  border-radius: 999px;
  color: #fff;
  background: #ff2a2f;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 35px rgba(255, 38, 43, 0.5);
}

.leaderboards-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.leaderboards-hero {
  text-align: center;
  padding: 30px 0 55px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.72);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
}

.live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2a2f;
  box-shadow: 0 0 14px #ff2a2f;
}

.leaderboards-hero h1 {
  margin-top: 28px;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -4px;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.45);
}

.leaderboards-hero h1 strong {
  color: #ff282d;
  text-shadow: 0 0 30px rgba(255, 38, 43, 0.6);
}

.leaderboards-hero p {
  width: min(680px, 100%);
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.6;
}

.leaderboards-panel {
  padding: 28px;
  border: 1px solid rgba(255, 55, 65, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 35, 40, 0.08),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(8, 6, 10, 0.68);
  box-shadow:
    inset 0 0 40px rgba(255, 35, 35, 0.04),
    0 25px 80px rgba(0, 0, 0, 0.35);
}

.panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.panel-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ff2a2f;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
}

.panel-header h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -2px;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.site-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.site-card {
  position: relative;
  overflow: hidden;
  min-height: 185px;
  padding: 24px;
  border: 1px solid rgba(255, 55, 65, 0.48);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 42, 47, 0.18), transparent 48%),
    rgba(6, 5, 8, 0.8);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.site-card:hover,
.site-card-link:hover .site-card {
  transform: translateY(-4px);
  border-color: rgba(255, 55, 65, 0.9);
  box-shadow: 0 0 35px rgba(255, 38, 43, 0.24);
}

.site-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% -30%;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 42, 47, 0.28), transparent 65%);
  pointer-events: none;
}

.site-card img {
  max-width: 135px;
  max-height: 56px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.12));
}

.site-card h3 {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.site-card p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.55;
}

.site-card .btn,
.site-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #ff282d;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(255, 38, 43, 0.35);
  cursor: pointer;
}

.ticker {
  height: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.ticker-track {
  height: 100%;
  min-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 44px;
  animation: moveTicker 28s linear infinite;
}

.ticker span {
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
  white-space: nowrap;
}

.ticker b {
  margin-left: 12px;
  color: #fff;
  font-size: 20px;
  letter-spacing: 0;
}

.ticker span::after {
  content: "•";
  margin-left: 18px;
  color: #ff2a2f;
}

@keyframes moveTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-260px);
  }
}

@media (max-width: 620px) {
  .site-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .navbar {
    height: auto;
    padding: 22px 0;
    gap: 18px;
    flex-wrap: wrap;
  }

  .navbar nav {
    width: 100%;
    order: 3;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .leaderboards-page {
    padding-top: 45px;
  }
}

@media (max-width: 620px) {
  .navbar,
  .leaderboards-page {
    width: min(100% - 28px, 1180px);
  }

  .leaderboards-hero h1 {
    letter-spacing: -2px;
  }

  .site-grid {
    grid-template-columns: 1fr;
  }

  .leaderboards-panel {
    padding: 18px;
  }

  .vip-btn {
    padding: 13px 18px;
  }
}
/* FOOTER SOCIALS + KICK STATUS */
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ff2a2f;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
}

.site-footer strong {
  display: block;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 55, 65, 0.42);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.7);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  transition: 0.2s ease;
}

.footer-social:hover {
  color: #fff;
  border-color: rgba(255, 55, 65, 0.95);
  background: rgba(255, 42, 47, 0.18);
  box-shadow: 0 0 24px rgba(255, 38, 43, 0.22);
  transform: translateY(-2px);
}

.footer-social__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.footer-social__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.kick-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.78);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.kick-status--floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
}

.kick-status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 14px #facc15;
}

.kick-status--live .kick-status__dot {
  background: #22c55e;
  box-shadow: 0 0 16px #22c55e;
}

.kick-status--offline .kick-status__dot {
  background: #ff2a2f;
  box-shadow: 0 0 16px #ff2a2f;
}

@media (max-width: 760px) {
  .site-footer {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .kick-status--floating {
    left: 14px;
    right: 14px;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .site-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-card__prize strong {
    white-space: normal;
    font-size: clamp(24px, 8vw, 34px);
  }
}

/* FIXED FOOTER SOCIALS + KICK STATUS */
.footer-social__icon img,
.social-pill__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
.kick-status--loading .kick-status__dot {
  background: #facc15;
  box-shadow: 0 0 14px #facc15;
  animation: kickPulse 1.1s infinite ease-in-out;
}
.kick-status--live .kick-status__dot {
  background: #22c55e;
  box-shadow: 0 0 16px #22c55e;
}
.kick-status--offline .kick-status__dot {
  background: #ff2a2f;
  box-shadow: 0 0 16px #ff2a2f;
}
@keyframes kickPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

/* LEADERBOARDS PAGE: prize-only cards + animated total */
.total-prize-counter {
  width: min(620px, 100%);
  margin: 34px auto 0;
  padding: 26px 28px;
  border: 1px solid rgba(255, 55, 65, 0.46);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 42, 47, 0.28), transparent 58%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(8, 6, 10, 0.78);
  box-shadow:
    0 0 45px rgba(255, 38, 43, 0.2),
    inset 0 0 35px rgba(255, 255, 255, 0.035);
}

.total-prize-counter__label,
.total-prize-counter__note {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.6px;
}

.total-prize-counter strong {
  display: block;
  margin: 8px 0 7px;
  color: #fff;
  font-size: clamp(48px, 8vw, 82px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -4px;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.28),
    0 0 34px rgba(255, 38, 43, 0.38);
}

.site-grid {
  align-items: stretch;
}

.site-card.leaderboard-card {
  min-height: 310px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border-color: rgba(255, 55, 65, 0.38);
  box-shadow: 0 0 28px var(--card-glow, rgba(255, 42, 47, 0.28));
}

.site-card.leaderboard-card:hover,
.site-card-link:hover .site-card.leaderboard-card {
  box-shadow:
    0 0 42px var(--card-glow, rgba(255, 42, 47, 0.32)),
    0 22px 70px rgba(0, 0, 0, 0.34);
}

.leaderboard-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.leaderboard-card__logo-wrap {
  width: 146px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.leaderboard-card__logo-img {
  max-width: 146px !important;
  max-height: 58px !important;
  margin: 0 !important;
  object-fit: contain;
}

.leaderboard-card__logo-text {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.leaderboard-card__status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(34, 197, 94, 0.42);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.leaderboard-card__name {
  margin-top: auto;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1.4px;
}

.leaderboard-card__prize {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.leaderboard-card__prize span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.leaderboard-card__prize strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1.3px;
  white-space: nowrap;
}

.leaderboard-card__btn {
  width: 100%;
  min-height: 48px;
  margin-top: 0 !important;
}

@media (max-width: 620px) {
  .total-prize-counter {
    padding: 22px 18px;
  }

  .total-prize-counter strong {
    letter-spacing: -2px;
  }

  .site-card.leaderboard-card {
    min-height: 280px;
  }
}

/* RAFFLES */
.raffles-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 90px;
}
.raffles-hero {
  text-align: center;
  padding: 30px 0 55px;
}
.raffles-hero h1 {
  margin-top: 28px;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -4px;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.45);
}
.raffles-hero h1 strong {
  color: #ff282d;
  text-shadow: 0 0 30px rgba(255, 38, 43, 0.6);
}
.raffles-hero p {
  width: min(680px, 100%);
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.6;
}
.raffles-panel {
  padding: 28px;
  border: 1px solid rgba(255, 55, 65, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 35, 40, 0.08),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(8, 6, 10, 0.68);
  box-shadow:
    inset 0 0 40px rgba(255, 35, 35, 0.04),
    0 25px 80px rgba(0, 0, 0, 0.35);
}
.raffles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.raffle-card {
  overflow: hidden;
  border: 1px solid rgba(255, 55, 65, 0.42);
  border-radius: 20px;
  background: rgba(6, 5, 8, 0.88);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.raffle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 55, 65, 0.9);
  box-shadow: 0 0 35px rgba(255, 38, 43, 0.22);
}
.raffle-card__image {
  height: 210px;
  background: #111;
  overflow: hidden;
}
.raffle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.raffle-card:hover .raffle-card__image img {
  transform: scale(1.035);
}
.raffle-card__image--fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 42, 47, 0.48),
      transparent 50%
    ),
    #080608;
}
.raffle-card__image--fallback span {
  font-size: 92px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 35px #ff282d;
}
.raffle-card__content {
  padding: 24px;
}
.raffle-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.raffle-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}
.raffle-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2a2f;
  box-shadow: 0 0 12px #ff2a2f;
}
.raffle-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
}
.raffle-card h3 {
  font-size: 27px;
  line-height: 1.05;
  margin-bottom: 18px;
}
.raffle-prize {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.raffle-prize span {
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}
.raffle-prize strong {
  color: #ff3035;
  font-size: 28px;
  text-shadow: 0 0 18px rgba(255, 42, 47, 0.35);
}
.raffle-card p {
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  white-space: pre-line;
}
.raffle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: #ff2a2f;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 25px rgba(255, 38, 43, 0.28);
}
.raffle-btn--disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.raffles-state {
  grid-column: 1 / -1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.raffles-state strong {
  color: #fff;
  font-size: 22px;
}
.raffles-state--error strong {
  color: #ff5559;
}
@media (max-width: 900px) {
  .navbar {
    height: auto;
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 16px;
  }
  .navbar nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 4px;
  }
  .raffles-page {
    padding-top: 32px;
  }
}
@media (max-width: 600px) {
  .raffles-page {
    width: min(100% - 28px, 1180px);
  }
  .raffles-panel {
    padding: 18px;
  }
  .raffles-grid {
    grid-template-columns: 1fr;
  }
  .raffles-hero h1 {
    letter-spacing: -2px;
  }
  .raffle-card__top {
    align-items: flex-start;
    flex-direction: column;
  }
  .vip-btn {
    display: none;
  }
}

/* Raffle points and ticket purchasing */
.raffles-balance {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(83, 252, 24, 0.2);
  border-radius: 14px;
  background: rgba(83, 252, 24, 0.045);
}

.raffles-balance span {
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.raffles-balance strong {
  color: #53fc18;
  font-size: 18px;
  text-shadow: 0 0 16px rgba(83, 252, 24, 0.25);
}

.raffle-status--ended {
  color: rgba(255, 255, 255, 0.48);
}

.raffle-status--ended i {
  background: #777;
  box-shadow: none;
}

.raffle-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.raffle-metric {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.raffle-metric span,
.raffle-entry-cost span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.46);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.raffle-metric strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.raffle-entry-form {
  display: grid;
  gap: 12px;
}

.raffle-entry-form__row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(140px, 1fr);
  gap: 10px;
}

.raffle-entry-form label,
.raffle-entry-cost {
  display: flex;
  min-width: 0;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.1px;
}

.raffle-entry-form input {
  width: 100%;
  margin-top: 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  appearance: textfield;
}

.raffle-entry-form input::-webkit-inner-spin-button,
.raffle-entry-form input::-webkit-outer-spin-button {
  appearance: none;
}

.raffle-entry-cost strong {
  color: #ff3035;
  font-size: 16px;
}

button.raffle-btn {
  border: 0;
  cursor: pointer;
}

button.raffle-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.raffle-card__message {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.raffle-card__message--error {
  color: #ff6a6f;
}

.raffle-card__message--success {
  color: #53fc18;
}

@media (max-width: 520px) {
  .raffle-metrics-grid,
  .raffle-entry-form__row {
    grid-template-columns: 1fr;
  }

  .raffles-balance {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Raffle card layout improvements */
.raffles-grid {
  align-items: stretch;
}

.raffle-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.raffle-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 42, 47, 0.1), transparent 62%),
    #0b090c;
}

.raffle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.raffle-card__content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.raffle-card h3 {
  min-height: 58px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.raffle-card__description {
  position: relative;
  min-height: 79px;
  margin: 18px 0 22px;
  outline: none;
}

.raffle-card__description > p {
  min-height: 79px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.raffle-card__description-tooltip {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: calc(100% + 12px);
  max-height: 240px;
  overflow-y: auto;
  padding: 15px 16px;
  border: 1px solid rgba(255, 58, 64, 0.55);
  border-radius: 13px;
  background: rgba(12, 9, 14, 0.98);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(255, 42, 47, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.raffle-card__description-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 28px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(255, 58, 64, 0.55);
  border-bottom: 1px solid rgba(255, 58, 64, 0.55);
  background: rgba(12, 9, 14, 0.98);
  transform: translateY(-6px) rotate(45deg);
}

.raffle-card__description.is-truncated:hover .raffle-card__description-tooltip,
.raffle-card__description.is-truncated:focus .raffle-card__description-tooltip,
.raffle-card__description.is-truncated:focus-within .raffle-card__description-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.raffle-card__description.is-truncated:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255, 48, 53, 0.45);
}

.raffle-card__description-tooltip[hidden] {
  display: none !important;
}

.raffle-card__description.is-truncated {
  cursor: help;
}

.raffle-card__description-tooltip::-webkit-scrollbar {
  width: 7px;
}

.raffle-card__description-tooltip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.raffle-card__description-tooltip::-webkit-scrollbar-thumb {
  background: rgba(255, 48, 53, 0.72);
  border-radius: 999px;
}

.raffle-card__actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.raffle-btn--secondary {
  border: 1px solid rgba(255, 48, 53, 0.45);
  background: rgba(255, 48, 53, 0.07);
  box-shadow: none;
}

.raffle-btn--secondary:hover {
  border-color: #ff3035;
  background: rgba(255, 48, 53, 0.14);
}

.raffle-card__actions .raffle-entry-form {
  margin: 0;
}


/* Full raffle description tooltip: visible, interactive and scrollable */
.raffle-card {
  position: relative;
  overflow: visible;
}

.raffle-card:hover,
.raffle-card:focus-within {
  z-index: 40;
}

.raffle-card__image {
  overflow: hidden;
  border-radius: 19px 19px 0 0;
}

.raffle-card__content {
  border-radius: 0 0 19px 19px;
}

.raffle-card__description-tooltip {
  z-index: 100;
  display: block;
  max-height: min(320px, 55vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #f6f6f7;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 48, 53, 0.82) rgba(255, 255, 255, 0.06);
}

.raffle-card__description-tooltip[hidden] {
  display: none !important;
}

.raffle-card__description.is-truncated:hover .raffle-card__description-tooltip,
.raffle-card__description.is-truncated:focus .raffle-card__description-tooltip,
.raffle-card__description.is-truncated:focus-within .raffle-card__description-tooltip,
.raffle-card__description-tooltip:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.raffle-card__description-tooltip::-webkit-scrollbar {
  width: 9px;
}

.raffle-card__description-tooltip::-webkit-scrollbar-track {
  margin: 8px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.raffle-card__description-tooltip::-webkit-scrollbar-thumb {
  border: 2px solid rgba(12, 9, 14, 0.98);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff454b, #b9181e);
}

.raffle-card__description-tooltip::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff666b, #e1262d);
}

@media (max-width: 700px) {
  .raffle-card__description-tooltip {
    left: -6px;
    right: -6px;
    bottom: calc(100% + 8px);
    max-height: min(280px, 50vh);
  }
}

/* Previous raffles */
.raffles-panel--previous {
  margin-top: 34px;
}

.raffles-panel[hidden] {
  display: none !important;
}

.raffle-card--previous .raffle-card__content {
  display: flex;
  flex-direction: column;
}

.raffle-previous-winner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(83, 252, 24, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(83, 252, 24, 0.08), transparent),
    rgba(255, 255, 255, 0.025);
}

.raffle-previous-winner--pending {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.raffle-previous-winner__avatar {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid rgba(83, 252, 24, 0.5);
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(83, 252, 24, 0.16);
}

.raffle-previous-winner__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.raffle-previous-winner span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.46);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.raffle-previous-winner strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.raffle-metrics-grid--previous {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.raffle-card--previous .raffle-card__actions {
  margin-top: auto;
  padding-top: 18px;
}
