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

* {
  box-sizing: border-box;
}

:root {
  --bg0: #200002;
  --bg1: #4a0006;
  --bg2: #1a0002;
  --panel: rgba(93, 6, 14, 0.56);
  --panel-strong: rgba(54, 3, 8, 0.8);
  --line: rgba(255, 70, 70, 0.46);
  --line-soft: rgba(255, 78, 78, 0.3);
  --text-main: #fff5f5;
  --text-soft: #ffb8b8;
  --gold: #ffd173;
  --gold-deep: #ff9f42;
  --accent: #ff4141;
  --accent-soft: #ff8f8f;
  --glass-white: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 18px 34px rgba(42, 0, 0, 0.54);
  --ui-scale: 1;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 72, 72, 0.26), transparent 33%),
    radial-gradient(circle at 12% 88%, rgba(255, 192, 116, 0.16), transparent 28%),
    radial-gradient(circle at 40% 0%, rgba(255, 122, 122, 0.14), transparent 40%),
    linear-gradient(155deg, var(--bg0) 0%, var(--bg1) 48%, var(--bg2) 100%);
  overflow-x: hidden;
}

.home-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 95, 95, 0.16), transparent 36%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  mask-image: radial-gradient(circle at 52% 20%, black, transparent 76%);
  animation: ambientFloat 16s ease-in-out infinite;
}

.home-navbar,
.home-shell,
.footer,
.scale-controls {
  position: relative;
  z-index: 1;
}

.home-navbar {
  width: min(1200px, calc(100% - 18px));
  margin: 8px auto 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(130deg, rgba(255, 146, 146, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, rgba(196, 0, 0, 0.78), rgba(118, 0, 0, 0.84));
  backdrop-filter: blur(16px) saturate(130%);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  box-shadow: var(--glass-shadow);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 170px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.42));
}

.verified-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(120, 0, 0, 0.52);
  border: 1px solid rgba(255, 137, 137, 0.45);
  color: #fff0f4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.status-wrap {
  text-align: right;
}

.status-label {
  margin: 0 0 4px;
  font-size: 10px;
  color: #ffd0d0;
}

.system-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 176, 0.32);
  background: rgba(64, 0, 0, 0.68);
  color: #ffe3e3;
  font-size: 11px;
  font-weight: 700;
}

.home-shell {
  width: min(1200px, calc(100% - 18px));
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.hero,
.trust-section,
.live-activity,
.provider-section,
#homeStats .home-stats-grid {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(255, 140, 140, 0.12), rgba(255, 255, 255, 0.02) 48%, transparent),
    linear-gradient(145deg, var(--panel), var(--panel-strong));
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(125%);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}

.hero-inline-jackpot {
  margin-top: 12px;
}

.hero-kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #ffb7b7;
  font-weight: 800;
}

.hero h1 {
  margin: 8px 0;
  font-family: "Cinzel", serif;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.08;
}

.hero-desc {
  margin: 0;
  max-width: 620px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.hero-pills {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 104, 104, 0.4);
  background: rgba(138, 0, 0, 0.46);
  color: #fff1f5;
  font-size: 10px;
  font-weight: 700;
}

.btn-primary {
  display: flex;
  width: fit-content;
  margin: 18px auto 0;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #2f0500;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 10px 18px rgba(255, 151, 82, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(255, 151, 82, 0.4);
  filter: saturate(1.05);
}

.hero-right {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(140deg, rgba(255, 143, 143, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(150deg, rgba(100, 6, 20, 0.5), rgba(58, 4, 12, 0.62));
  backdrop-filter: blur(10px);
}

.jackpot-label {
  margin: 0;
  font-size: 11px;
  color: #ffcdcd;
  text-align: center;
}

.jackpot {
  margin: 8px 0 10px;
  font-family: "Cinzel", serif;
  font-size: clamp(34px, 4.8vw, 56px);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 192, 77, 0.4);
  text-align: center;
}

.risk-note {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 108, 108, 0.3);
  background: rgba(78, 2, 10, 0.62);
  font-size: 12px;
  color: #d7e5ff;
  line-height: 1.55;
}

.risk-note strong {
  display: block;
  margin-bottom: 6px;
  color: #fff1f1;
}

.risk-note p {
  margin: 0;
}

.risk-note p + p {
  margin-top: 5px;
}

#homeStats {
  margin-top: -2px;
}

.home-stats-grid {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-stat-card {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 97, 97, 0.28);
  background:
    linear-gradient(160deg, rgba(255, 136, 136, 0.12), transparent 55%),
    linear-gradient(160deg, rgba(96, 5, 15, 0.44), rgba(56, 3, 9, 0.34));
}

.home-stat-label {
  display: block;
  font-size: 10px;
  color: #ffcdcd;
  margin-bottom: 4px;
}

.home-stat-value {
  font-size: 14px;
  color: var(--gold);
}

.trust-section,
.live-activity,
.provider-section {
  padding: 14px;
}

.trust-section h2,
.live-activity h2,
.provider-section h2 {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: clamp(20px, 2.5vw, 30px);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.trust-card {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 98, 98, 0.28);
  background:
    linear-gradient(160deg, rgba(255, 134, 134, 0.11), transparent 50%),
    linear-gradient(160deg, rgba(92, 6, 16, 0.44), rgba(54, 3, 10, 0.34));
}

.trust-card span {
  display: block;
  font-size: 10px;
  color: #ffc6c6;
}

.trust-card b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  color: #fff4f4;
}

.trust-card p {
  margin: 6px 0 0;
  font-size: 11px;
  color: #ffb7b7;
}

.activity-box {
  border-radius: 12px;
  border: 1px solid rgba(255, 160, 160, 0.22);
  background: linear-gradient(160deg, rgba(86, 9, 30, 0.38), rgba(44, 7, 20, 0.28));
  padding: 8px 10px;
}

#activityList {
  list-style: none;
  margin: 0;
  padding: 0;
}

#activityList.ticker-animate {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(calc(var(--ticker-shift, 0px) * -1));
}

#activityList .activity-item {
  display: grid;
  grid-template-columns: minmax(78px, auto) minmax(120px, auto) 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#activityList .activity-item.show {
  opacity: 1;
  transform: translateY(0);
}

#activityList .winner-name {
  color: #ffe6e6;
}

#activityList .winner-amount {
  font-weight: 800;
}

#activityList .winner-amount.tier-gold {
  color: #ffd166;
}

#activityList .winner-amount.tier-silver {
  color: #e5e7eb;
}

#activityList .winner-amount.tier-bronze {
  color: #f59e0b;
}

#activityList .winner-game {
  color: #ffcece;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#activityList .winner-time {
  display: none !important;
}

.lab-list {
  margin: 0;
  padding-left: 18px;
  color: #ffd6d6;
  font-size: 12px;
  line-height: 1.6;
}

.lab-list li + li {
  margin-top: 6px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.provider-card {
  position: relative;
  overflow: hidden;
  min-height: 94px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  color: #fff1f5;
  border-radius: 12px;
  border: 1px solid rgba(255, 62, 62, 0.58);
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 106, 106, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(98, 2, 10, 0.7), rgba(58, 1, 6, 0.58));
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.provider-card img {
  width: auto;
  height: 56px;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.provider-card span {
  margin-left: auto;
  z-index: 1;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.4px;
}

.provider-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.provider-card.elite {
  color: #fff0f0;
  border-color: rgba(255, 164, 164, 0.24);
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(92, 13, 32, 0.62), rgba(46, 8, 20, 0.44));
}

.provider-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 92, 92, 0.92);
  box-shadow: 0 14px 26px rgba(42, 8, 19, 0.48);
}

.feed-status {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 160, 160, 0.3);
  background: rgba(64, 0, 0, 0.66);
}

.feed-status.real {
  color: #ffdcdc;
}

.feed-status.sim {
  color: var(--gold);
}

.footer {
  width: min(1200px, calc(100% - 18px));
  margin: 10px auto 16px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(140deg, rgba(255, 132, 132, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(74, 3, 11, 0.76);
  text-align: center;
  padding: 10px;
  color: #ffd8d8;
  font-size: 11px;
}

.scale-controls {
  position: fixed;
  top: 10px;
  right: 12px;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 189, 205, 0.3);
  background: linear-gradient(145deg, rgba(80, 18, 35, 0.84), rgba(44, 11, 22, 0.84));
  backdrop-filter: blur(10px);
}

.scale-controls button {
  border: 1px solid rgba(255, 189, 205, 0.4);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff1f5;
  background: rgba(255, 125, 151, 0.2);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.scale-controls button:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, rgba(255, 220, 230, 0.98), rgba(255, 182, 198, 0.98));
  color: #470f1f;
  border-color: transparent;
}

@keyframes ambientFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@media (min-width: 769px) {
  body {
    zoom: var(--ui-scale);
  }
}

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

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-card img {
    height: 48px;
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  .scale-controls {
    display: none;
  }

  body {
    zoom: 1;
  }

  .home-navbar,
  .home-shell,
  .footer {
    width: calc(100% - 8px);
  }

  .home-navbar {
    margin-top: 4px;
    padding: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo {
    width: 132px;
  }

  .verified-badge {
    font-size: 9px;
    padding: 5px 8px;
  }

  .status-wrap {
    width: 100%;
    text-align: left;
  }

  .hero,
  .trust-section,
  .live-activity,
  .provider-section,
  #homeStats .home-stats-grid {
    border-radius: 10px;
  }

  .hero {
    padding: 10px;
  }

  .hero h1 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .hero-desc {
    font-size: 11px;
  }

  .hero-pills {
    gap: 6px;
    margin-top: 10px;
  }

  .hero-pill {
    font-size: 9px;
    padding: 4px 8px;
  }

  .btn-primary {
    width: fit-content;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 11px;
  }

  .jackpot {
    font-size: clamp(28px, 9vw, 38px);
  }

  .home-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .home-stat-card {
    padding: 8px;
  }

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

  #activityList .activity-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #activityList .winner-game {
    white-space: normal;
  }

  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-card {
    min-height: 74px;
    padding: 6px 8px;
    gap: 7px;
  }

  .provider-card img {
    height: 38px;
    max-width: 78px;
  }
}

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

  .home-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
