:root {
  --bg-1: #03132f;
  --bg-2: #052657;
  --card: rgba(9, 36, 82, 0.72);
  --text: #e8f5ff;
  --muted: #acd7ff;
  --accent: #39b4ff;
  --accent-2: #7ed3ff;
  --line: rgba(140, 212, 255, 0.28);
  --shadow: 0 18px 48px rgba(15, 136, 255, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 10%, #0f63bf 0%, var(--bg-1) 32%, #020b1f 100%);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.14;
  z-index: -3;
  animation: gridMove 22s linear infinite;
}

.bg-orb,
.bg-orb-2,
.bg-orb-3 {
  position: fixed;
  border-radius: 50%;
  filter: blur(28px);
  z-index: -2;
}

.bg-orb {
  width: 460px;
  height: 460px;
  background: rgba(64, 183, 255, 0.22);
  top: -160px;
  right: -120px;
  animation: floatOrb 15s ease-in-out infinite;
}

.bg-orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(31, 121, 255, 0.25);
  left: -100px;
  top: 45%;
  animation: floatOrb 18s ease-in-out infinite reverse;
}

.bg-orb-3 {
  width: 260px;
  height: 260px;
  background: rgba(144, 225, 255, 0.2);
  right: 14%;
  bottom: -80px;
  animation: floatOrb 16s ease-in-out infinite;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.ref-banner {
  position: relative;
  z-index: 130;
  border-bottom: 1px solid rgba(137, 216, 255, 0.26);
  background: linear-gradient(135deg, rgba(5, 42, 92, 0.94), rgba(4, 24, 62, 0.96));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ref-banner-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.ref-banner-text {
  margin: 0;
  color: #d4efff;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

#ref-countdown {
  color: #8fe2ff;
  font-weight: 800;
}

.btn-ref-now {
  white-space: nowrap;
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(2, 12, 34, 0.65);
  border-bottom: 1px solid rgba(111, 198, 255, 0.26);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(96, 191, 255, 0.5);
}

.brand strong {
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a,
.btn {
  text-decoration: none;
  color: var(--text);
  padding: 10px 16px;
  border: 1px solid rgba(133, 216, 255, 0.4);
  border-radius: 999px;
  transition: 0.25s ease;
  background: rgba(9, 58, 116, 0.36);
}

.nav-links a:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 236, 255, 0.85);
  box-shadow: 0 8px 20px rgba(42, 161, 255, 0.28);
}

.btn-primary {
  background: linear-gradient(135deg, #20a3ff, #5fd7ff);
  color: #03152e;
  border: none;
  font-weight: 700;
  animation: pulse 1.8s infinite;
}

.hero {
  padding: 78px 0 42px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.hero p {
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.7;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel {
  background: linear-gradient(155deg, rgba(15, 62, 126, 0.9), rgba(11, 24, 60, 0.85));
  border: 1px solid rgba(143, 220, 255, 0.28);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: panelHover 5s ease-in-out infinite;
}

.stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  background: rgba(10, 47, 102, 0.58);
  border: 1px solid rgba(145, 216, 255, 0.25);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.stat .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #8ed8ff;
}

.ticker {
  margin: 18px 0 42px;
  border-top: 1px solid rgba(129, 211, 255, 0.26);
  border-bottom: 1px solid rgba(129, 211, 255, 0.26);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  background: rgba(4, 22, 56, 0.6);
}

.ticker-track {
  display: inline-block;
  animation: marquee 34s linear infinite;
  min-width: 100%;
}

.ticker span {
  margin-right: 34px;
  color: #a8dbff;
}

section {
  margin: 0 0 56px;
}

.card {
  background: linear-gradient(170deg, rgba(10, 39, 93, 0.8), rgba(7, 26, 63, 0.85));
  border: 1px solid rgba(131, 213, 255, 0.23);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.section-title {
  margin-top: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.lead {
  color: var(--muted);
  line-height: 1.8;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.game-link {
  text-decoration: none;
  color: inherit;
}

.game-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(139, 215, 255, 0.3);
  background: rgba(6, 33, 78, 0.75);
  transition: 0.35s ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(193, 237, 255, 0.9);
  box-shadow: 0 20px 36px rgba(29, 132, 220, 0.34);
}

.game-card img {
  width: 100%;
  height: 146px;
  object-fit: cover;
  display: block;
}

.game-card h3 {
  margin: 12px 12px 8px;
  font-size: 1.02rem;
}

.game-card p {
  margin: 0 12px 14px;
  color: #b9e5ff;
  font-size: 0.93rem;
  line-height: 1.45;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(134, 211, 255, 0.36);
  padding: 8px 12px;
  border-radius: 999px;
  color: #c6ebff;
  text-decoration: none;
  background: rgba(8, 42, 96, 0.6);
  transition: 0.2s ease;
  font-size: 0.9rem;
}

.chip:hover {
  border-color: rgba(196, 236, 255, 0.92);
  transform: translateY(-1px);
}

.content p {
  line-height: 1.85;
  color: #d9efff;
  margin: 0 0 14px;
}

.content h2,
.content h3 {
  margin: 24px 0 10px;
}

.faq details {
  border: 1px solid rgba(129, 209, 255, 0.28);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(8, 41, 93, 0.62);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #d8f2ff;
}

.faq p {
  margin: 10px 0 0;
  color: #bde5ff;
  line-height: 1.75;
}

footer {
  margin-top: 28px;
  padding: 24px 0 54px;
  color: #9fcff0;
  border-top: 1px solid rgba(125, 199, 255, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to { transform: translateY(42px); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(82, 200, 255, 0.62); }
  70% { box-shadow: 0 0 0 14px rgba(82, 200, 255, 0); }
}

@keyframes panelHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 30px, 0); }
}

@media (max-width: 900px) {
  .ref-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
