:root {
  --gold:          #f5c518;
  --gold-light:    #ffe066;
  --gold-dark:     #c9930a;
  --green:         #22c55e;
  --blue:          #2d7aee;
  --blue-light:    #60a5fa;
  --page-bg:       #080808;
  --slots-border:  rgba(245, 197, 24, 0.35);
  --sports-border: rgba(45, 122, 238, 0.35);
}

/* reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--page-bg);
  min-height: 100vh;
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* canvas background */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* cursor */
.cursor-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, background 0.3s;
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 197, 24, 0.5);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease, background 0.4s;
}

/*layout*/
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*header*/
.header {
  text-align: center;
  margin-bottom: 52px;
}

.header-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.eyebrow-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.eyebrow-line.right {
  background: linear-gradient(to left, transparent, var(--gold));
}

.eyebrow-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--gold);
}

.header-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
}

.header-title .accent {
  color: var(--gold);
  text-shadow: 0 0 32px rgba(245, 197, 24, 0.55);
}

.header-sub {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/*card grid*/
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
}

/*card base*/
.card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

/*slots card*/
.card-slots {
  border: 1px solid var(--slots-border);
  background: radial-gradient(ellipse at 60% 0%, #2a1800 0%, #120900 55%, #0d0600 100%);
  animation: breathe-slots 4.5s ease-in-out infinite;
}

@keyframes breathe-slots {
  0%, 100% {
    box-shadow:
      0 0 40px rgba(245, 197, 24, 0.08),
      0 20px 60px rgba(0,0,0,0.6),
      inset 0 0 80px rgba(245, 197, 24, 0.04);
  }
  50% {
    box-shadow:
      0 0 70px rgba(245, 197, 24, 0.22),
      0 20px 60px rgba(0,0,0,0.6),
      inset 0 0 100px rgba(245, 197, 24, 0.1);
  }
}

/*sports card*/
.card-sports {
  border: 1px solid var(--sports-border);
  background: radial-gradient(ellipse at 40% 0%, #001430 0%, #000e22 55%, #00081a 100%);
  animation: breathe-sports 4.5s ease-in-out infinite 0.8s;
}

@keyframes breathe-sports {
  0%, 100% {
    box-shadow:
      0 0 40px rgba(45, 122, 238, 0.08),
      0 20px 60px rgba(0,0,0,0.6),
      inset 0 0 80px rgba(45, 122, 238, 0.04);
  }
  50% {
    box-shadow:
      0 0 70px rgba(45, 122, 238, 0.22),
      0 20px 60px rgba(0,0,0,0.6),
      inset 0 0 100px rgba(45, 122, 238, 0.1);
  }
}

/* card image — height/aspect set per-page below */
.card-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}


/* overley */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
}

.card-slots  .hero-fade { background: linear-gradient(to top, #0d0600, transparent); }
.card-sports .hero-fade { background: linear-gradient(to top, #00081a, transparent); }


/* cards body*/
.card-body {
  padding: 6px 24px 28px;
}

.game-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 6px;
}

.card-slots  .game-title { color: var(--gold);  text-shadow: 0 0 24px rgba(245,197,24,0.45); }
.card-sports .game-title { color: #4ade80;       text-shadow: 0 0 24px rgba(74,222,128,0.45); }

.game-desc {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 9px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.btn:hover::before  { background: rgba(255,255,255,0.08); }
.btn:active         { transform: scale(0.97) !important; }

/* main — slots (gold) */
.btn-slots-main {
  background: linear-gradient(135deg, #f5c518 0%, #d4a017 60%, #b8860b 100%);
  color: #1a0f00;
  box-shadow: 0 4px 22px rgba(245,197,24,0.38);
}
.btn-slots-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,197,24,0.55);
  filter: brightness(1.08);
}

/* main — sports (green) */
.btn-sports-main {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 60%, #15803d 100%);
  color: #fff;
  box-shadow: 0 4px 22px rgba(34,197,94,0.38);
}
.btn-sports-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,197,94,0.55);
  filter: brightness(1.08);
}

/* backup button */
.btn-backup {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}

.card-slots  .btn-backup { color: rgba(245,197,24,0.8);  border-color: rgba(245,197,24,0.18); }
.card-sports .btn-backup { color: rgba(96,165,250,0.9);  border-color: rgba(45,122,238,0.22); }

.card-slots  .btn-backup:hover { background: rgba(245,197,24,0.08); border-color: rgba(245,197,24,0.35); transform: translateY(-1px); }
.card-sports .btn-backup:hover { background: rgba(45,122,238,0.08); border-color: rgba(45,122,238,0.35); transform: translateY(-1px); }

/* main button - verified */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  opacity: 0.9;
  white-space: nowrap;
}

.verified svg { width: 13px; height: 13px; flex-shrink: 0; }

/* chain ion */
.icon-chain { opacity: 0.75; flex-shrink: 0; }

/* wave effect*/
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.55s linear;
  background: rgba(255,255,255,0.18);
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* platform selection (index.html)*/
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.platform-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/9;
  text-decoration: none;
  cursor: pointer;
}

.platform-slots {
  border: 1px solid var(--slots-border);
  background: #0d0600;
  animation: breathe-slots 4.5s ease-in-out infinite;
}

.platform-sports {
  border: 1px solid var(--sports-border);
  background: #00081a;
  animation: breathe-sports 4.5s ease-in-out infinite 0.8s;
}

.platform-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  border: 2px solid transparent;
  transition: border-color 0.25s ease;
  pointer-events: none;
}

.platform-slots:hover::after  { border-color: rgba(245,197,24,0.6); }
.platform-sports:hover::after { border-color: rgba(45,122,238,0.6); }

.platform-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.platform-card:hover .platform-img { transform: scale(1.04); }

.platform-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 28px;
  gap: 8px;
}

.slots-overlay  { background: linear-gradient(to top, rgba(10,5,0,0.82) 0%, rgba(0,0,0,0) 55%); }
.sports-overlay { background: linear-gradient(to top, rgba(0,8,26,0.82) 0%, rgba(0,0,0,0) 55%); }

.platform-label {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-slots  .platform-label { color: var(--gold);       text-shadow: 0 0 20px rgba(245,197,24,0.7); }
.platform-sports .platform-label { color: var(--blue-light); text-shadow: 0 0 20px rgba(96,165,250,0.7); }

.platform-hint {
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s, opacity 0.2s;
}

.platform-card:hover .platform-hint { color: rgba(255,255,255,0.9); }

/* link page(links.html) */
.back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 28px;
  padding: 6px 0;
  transition: color 0.2s;
}

.back-btn:hover { color: var(--gold); }

.link-card-wrap {
  width: 100%;
  max-width: 480px;
}

/* card hero — use aspect-ratio so image never clips on mobile */
.card-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-hero img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* mobile respo */
@media (max-width: 768px) {
  body { cursor: auto; }

  .cursor-dot,
  .cursor-ring,
  .cursor-glow { display: none; }

  .page-wrap { padding: 28px 14px 48px; }

  .header { margin-bottom: 32px; }

  .platform-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .platform-card { aspect-ratio: 4/3; }

  .platform-label { font-size: 1.5rem; }

  .card-body { padding: 4px 18px 22px; }

  .game-title { font-size: 1.7rem; }
}
