:root {
  --bg: #04060d;
  --bg-2: #090d1a;
  --panel: #0b0f1c;
  --panel-2: #10172a;
  --panel-border: #1a2440;
  --chrome-1: #2a3350;
  --chrome-2: #d7dde8;
  --chrome-hi: #eef2ff;
  --text: #e7edff;
  --muted: #7d8bb8;
  --blue: #1e6bff;
  --blue-deep: #0a3cc8;
  --cyan: #4cd7ff;
  --cyan-bright: #7df3ff;
  --accent: var(--blue);
  --radius: 14px;
  --shadow-glow: 0 0 22px rgba(30, 107, 255, 0.35);
  --shadow-glow-strong: 0 0 36px rgba(76, 215, 255, 0.55);
  --chrome-border: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.04) 45%, rgba(0,0,0,0.5) 100%);
}

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

html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Premium animated background ----------
   Deep black base + 3 flowing aurora ribbons + 2 particle depths + 3 streaks.
   All GPU-cheap: static filter: blur on auroras, only transform/opacity animated.
   Nothing intercepts clicks (pointer-events: none everywhere). */

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* Base: deep black + slow-drifting ambient lights */
body::before {
  z-index: -5;
  background:
    radial-gradient(900px 600px at 10% 15%, rgba(30, 107, 255, 0.26), transparent 62%),
    radial-gradient(1100px 700px at 92% 35%, rgba(76, 215, 255, 0.18), transparent 65%),
    radial-gradient(700px 500px at 50% 112%, rgba(30, 107, 255, 0.20), transparent 60%),
    linear-gradient(180deg, #05080f 0%, #04060d 55%, #02030a 100%);
  background-size: 180% 180%, 200% 200%, 160% 160%, 100% 100%;
  will-change: background-position;
  animation: bgLights 80s ease-in-out infinite alternate;
}

@keyframes bgLights {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  100% { background-position: 30% 25%, 65% 40%, 20% 65%, 0 0; }
}

/* Far particles (back depth): small, dim, slow drift */
body::after {
  z-index: -2;
  background-image:
    radial-gradient(1px 1px at 40px 60px, rgba(76, 215, 255, 0.45), transparent 2px),
    radial-gradient(1px 1px at 200px 300px, rgba(215, 221, 232, 0.30), transparent 2px),
    radial-gradient(1px 1px at 380px 140px, rgba(76, 215, 255, 0.35), transparent 2px),
    radial-gradient(1px 1px at 120px 420px, rgba(76, 215, 255, 0.30), transparent 2px);
  background-size: 480px 480px;
  background-repeat: repeat;
  opacity: 0.45;
  will-change: transform;
  animation: particlesFar 70s linear infinite;
}

@keyframes particlesFar {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(12px, -480px, 0); }
}

/* Aurora + streak stage */
.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  overflow: hidden;
}

/* Near particles (front depth): larger, brighter, faster, with slight glow */
.bg-fx::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -300px; bottom: -300px;
  background-image:
    radial-gradient(1.6px 1.6px at 30px 60px, rgba(76, 215, 255, 0.85), transparent 2.2px),
    radial-gradient(2px 2px at 180px 140px, rgba(215, 221, 232, 0.70), transparent 2.5px),
    radial-gradient(1.4px 1.4px at 280px 240px, rgba(76, 215, 255, 0.75), transparent 2.2px),
    radial-gradient(1.8px 1.8px at 90px 300px, rgba(140, 180, 255, 0.65), transparent 2.5px),
    radial-gradient(1.2px 1.2px at 220px 40px, rgba(76, 215, 255, 0.70), transparent 2px),
    radial-gradient(2.2px 2.2px at 340px 360px, rgba(255, 255, 255, 0.55), transparent 3px);
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.75;
  will-change: transform;
  animation: particlesNear 28s linear infinite;
}

@keyframes particlesNear {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-22px, -400px, 0); }
}

/* Flowing aurora ribbons — large soft ellipses with static (cheaper) blur,
   animated only via transform. Positioned on left and right so the center
   stays dark where text and cards live (no separate vignette layer needed).
   Dropped the third aurora, mix-blend-mode, and center vignette after
   cursor-lag feedback — those were the biggest per-frame composite costs.
   Alphas bumped to keep the glow strength without the screen blend. */
.bg-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  will-change: transform;
  pointer-events: none;
}

.bg-aurora.a1 {
  width: 95vw; height: 80vh;
  top: -18vh; left: -35vw;
  background: radial-gradient(ellipse 55% 45% at 50% 50%,
    rgba(30, 107, 255, 0.72) 0%,
    rgba(30, 107, 255, 0.28) 40%,
    rgba(30, 107, 255, 0) 72%);
  animation: auroraA 26s ease-in-out infinite alternate;
}

.bg-aurora.a2 {
  width: 100vw; height: 85vh;
  bottom: -22vh; right: -40vw;
  background: radial-gradient(ellipse 52% 48% at 50% 50%,
    rgba(76, 215, 255, 0.64) 0%,
    rgba(76, 215, 255, 0.22) 42%,
    rgba(76, 215, 255, 0) 72%);
  animation: auroraB 34s ease-in-out infinite alternate;
}

.bg-aurora.a3 { display: none; }

@keyframes auroraA {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 0.9; }
  50%  { opacity: 1; }
  100% { transform: translate3d(9vw, 7vh, 0) rotate(16deg) scale(1.12); opacity: 0.85; }
}

@keyframes auroraB {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 0.85; }
  50%  { opacity: 1; }
  100% { transform: translate3d(-11vw, -6vh, 0) rotate(-20deg) scale(1.14); opacity: 0.9; }
}

/* Occasional energy streaks — thin tapered luminous trails.
   Each cycle: invisible → one ~1.6s traversal → invisible for the rest. */
.bg-streak {
  position: absolute;
  width: 2px;
  height: 160px;
  background: linear-gradient(180deg,
    rgba(76, 215, 255, 0) 0%,
    rgba(76, 215, 255, 0.0) 15%,
    rgba(76, 215, 255, 0.85) 50%,
    rgba(215, 240, 255, 0.95) 55%,
    rgba(76, 215, 255, 0) 85%,
    transparent 100%);
  box-shadow: 0 0 10px rgba(76, 215, 255, 0.55);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}

.bg-streak.s1 {
  top: -200px; left: 6%;
  animation: streak1 13s ease-in infinite;
  animation-delay: 2s;
}
.bg-streak.s2 {
  top: -200px; right: 9%;
  animation: streak2 19s ease-in infinite;
  animation-delay: 8s;
}
.bg-streak.s3 {
  top: -200px; left: 82%;
  animation: streak3 24s ease-in infinite;
  animation-delay: 14s;
}

@keyframes streak1 {
  0%    { transform: translate3d(0, 0, 0) rotate(58deg); opacity: 0; }
  3%    { opacity: 0; }
  6%    { opacity: 1; }
  15%   { transform: translate3d(26vw, 112vh, 0) rotate(58deg); opacity: 0; }
  100%  { transform: translate3d(26vw, 112vh, 0) rotate(58deg); opacity: 0; }
}
@keyframes streak2 {
  0%    { transform: translate3d(0, 0, 0) rotate(-62deg); opacity: 0; }
  2%    { opacity: 0; }
  5%    { opacity: 1; }
  12%   { transform: translate3d(-24vw, 110vh, 0) rotate(-62deg); opacity: 0; }
  100%  { transform: translate3d(-24vw, 110vh, 0) rotate(-62deg); opacity: 0; }
}
@keyframes streak3 {
  0%    { transform: translate3d(0, 0, 0) rotate(66deg); opacity: 0; }
  2%    { opacity: 0; }
  5%    { opacity: 0.9; }
  11%   { transform: translate3d(22vw, 115vh, 0) rotate(66deg); opacity: 0; }
  100%  { transform: translate3d(22vw, 115vh, 0) rotate(66deg); opacity: 0; }
}


a { color: var(--cyan); text-decoration: none; }

h1, h2, h3 { font-weight: 800; letter-spacing: 0.02em; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.9), rgba(6, 9, 20, 0.75));
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(76, 215, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.brand {
  font-weight: 900;
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--chrome-hi), var(--cyan) 45%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(76, 215, 255, 0.25);
}

.header-nav {
  display: flex;
  gap: 22px;
  margin: 0 auto;
}

.header-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.header-nav a:hover { color: var(--cyan-bright); text-shadow: 0 0 12px rgba(76, 215, 255, 0.5); }

.header-balances { display: flex; gap: 12px; align-items: center; }

.balance-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, #121a30, #0a0f1e);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.balance-chip.gems { color: var(--cyan-bright); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 14px rgba(76, 215, 255, 0.25); border-color: rgba(76, 215, 255, 0.35); }
.balance-chip.pets { color: var(--chrome-hi); border-color: rgba(215, 221, 232, 0.25); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.balance-chip.bump { animation: bump 0.4s ease; }

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Layout: single column; side dock is fixed on the right edge */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px 90px 18px 18px; /* reserve space for the collapsed side dock */
  max-width: 1280px;
  margin: 0 auto;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Chrome / glass panel */
.panel {
  background:
    linear-gradient(180deg, rgba(20, 28, 54, 0.75), rgba(8, 12, 24, 0.85));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(30, 107, 255, 0.04);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(76, 215, 255, 0.07), transparent 25%);
  mix-blend-mode: screen;
}

.sidebar-right h2 { font-size: 0.95rem; color: var(--muted); margin-bottom: 10px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.section-heading h2 { font-size: 1.25rem; }
.section-sub { color: var(--muted); font-size: 0.85rem; }

/* ---------- Recent Wins: continuously scrolling carousel ---------- */
.wins-heading { align-items: center; row-gap: 8px; }
.wins-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.demo-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffd36b;
  background: linear-gradient(180deg, rgba(255, 180, 0, 0.14), rgba(255, 180, 0, 0.05));
  border: 1px solid rgba(255, 180, 0, 0.5);
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 180, 0, 0.15);
}

.feed-pause {
  margin-left: auto;
  padding: 5px 12px;
  font: 700 0.78rem/1 system-ui, sans-serif;
  color: var(--chrome-hi);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 45%), linear-gradient(180deg, #1a2440, #0b1326);
  border: 1px solid rgba(215, 221, 232, 0.35);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 10px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.feed-pause:hover, .feed-pause:focus-visible {
  outline: none;
  border-color: rgba(76, 215, 255, 0.55);
  color: var(--cyan-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 16px rgba(76, 215, 255, 0.35);
}
.feed-pause__icon { margin-right: 6px; }

.feed-viewport {
  position: relative;
  overflow: hidden;
  padding: 2px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.feed-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
  animation: feedScroll var(--feed-scroll-dur, 40s) linear infinite;
}
.feed-viewport:hover .feed-track,
.feed-viewport:focus-within .feed-track,
.feed-track.is-paused { animation-play-state: paused; }

@keyframes feedScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.win-card {
  flex: 0 0 280px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 28, 54, 0.78), rgba(8, 12, 24, 0.95));
  border: 1px solid var(--panel-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 18px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(30, 107, 255, 0.10);
  position: relative;
}
.win-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(76, 215, 255, 0.25), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.win-card__avatar {
  grid-row: 1 / span 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(180deg, #121a30, #0a0f1e);
  border: 1px solid rgba(76, 215, 255, 0.35);
  box-shadow: 0 0 12px rgba(76, 215, 255, 0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.win-card__user {
  grid-column: 2;
  grid-row: 1;
  font-weight: 800;
  color: var(--chrome-hi);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.win-card__multiplier {
  grid-column: 3;
  grid-row: 1;
  font-weight: 800;
  color: var(--cyan-bright);
  font-size: 0.95rem;
  text-shadow: 0 0 10px rgba(76, 215, 255, 0.55);
  letter-spacing: 0.02em;
}
.win-card__pet {
  grid-column: 2 / span 2;
  grid-row: 2;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.win-card__pet-thumb {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e6bff, #0a3cc8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  flex: 0 0 auto;
}
.win-card__pet-name { color: var(--text); font-weight: 600; }
.win-card__pet-qty { color: var(--muted); font-weight: 600; }
.win-card__meta {
  grid-column: 2 / span 2;
  grid-row: 3;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
.win-card__gems { color: var(--cyan-bright); font-weight: 700; }
.win-card__game { color: var(--muted); }
.win-card__time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Accessibility helper */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Far-right expandable side dock ---------- */
.side-dock {
  position: fixed;
  top: 84px;
  right: 0;
  z-index: 20;
  width: 68px;
  max-height: calc(100vh - 110px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 28, 54, 0.92), rgba(8, 12, 24, 0.95));
  border: 1px solid var(--panel-border);
  border-right: none;
  border-radius: 16px 0 0 16px;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.05),
    -10px 0 28px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(30, 107, 255, 0.10);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;
}

.side-dock:hover,
.side-dock:focus-within,
.side-dock.open { width: 220px; }

.side-dock__list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-dock__list li { margin: 0; padding: 0; }

.side-dock__list a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin: 0 6px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.side-dock__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #141b32, #0a0f1e);
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.side-dock__icon--svg { padding: 0; }
.side-dock__icon svg { display: block; }

.side-dock__label {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease 0.04s, transform 0.18s ease 0.04s, color 0.18s ease;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-dock:hover .side-dock__label,
.side-dock:focus-within .side-dock__label,
.side-dock.open .side-dock__label {
  opacity: 1;
  transform: translateX(0);
  color: var(--text);
}

.side-dock__list a:hover,
.side-dock__list a:focus-visible {
  outline: none;
  border-color: rgba(76, 215, 255, 0.45);
  background: linear-gradient(180deg, rgba(30, 107, 255, 0.12), rgba(10, 14, 28, 0.4));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(76, 215, 255, 0.30);
  color: var(--cyan-bright);
}

.side-dock__list a:hover .side-dock__icon,
.side-dock__list a:focus-visible .side-dock__icon {
  border-color: rgba(76, 215, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 14px rgba(76, 215, 255, 0.35);
}

.side-dock__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border), transparent);
  margin: 8px 14px;
  list-style: none;
}

.side-dock__toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, #141b32, #0a0f1e);
  color: var(--cyan-bright);
  font-size: 1.3rem;
  cursor: pointer;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Keep the old selector harmless if any other page still uses it */
.sidebar-right { display: none !important; }

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--cyan-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(76, 215, 255, 0.5);
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.accent-name {
  background: linear-gradient(90deg, var(--cyan-bright), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p { color: var(--muted); margin-bottom: 18px; max-width: 46ch; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.balance-card {
  background: linear-gradient(165deg, rgba(30, 107, 255, 0.18), rgba(8, 12, 24, 0.95));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(30, 107, 255, 0.12);
}

.balance-card-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.balance-card-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.balance-card-value { font-size: 1.5rem; font-weight: 800; }
.balance-card-value.gems { color: var(--cyan-bright); text-shadow: 0 0 12px rgba(76, 215, 255, 0.45); }
.balance-card-value.pets { color: var(--chrome-hi); }
.balance-card-sub { color: var(--muted); font-size: 0.85rem; }

.btn.block { display: block; text-align: center; margin-top: 6px; }

/* Games */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.game-card {
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.payout-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(180deg, rgba(76, 215, 255, 0.18), rgba(30, 107, 255, 0.10));
  border: 1px solid rgba(76, 215, 255, 0.45);
  color: var(--cyan-bright);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(76, 215, 255, 0.25);
  z-index: 1;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-bright), var(--blue), var(--cyan-bright), transparent);
  opacity: 0.9;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(76, 215, 255, 0.55);
  box-shadow: var(--shadow-glow-strong), 0 14px 32px rgba(0, 0, 0, 0.55);
}

.game-card h3 { margin-bottom: 6px; }
.game-card p { color: var(--muted); font-size: 0.9rem; }

/* Game illustration stage: fixed size so all three cards line up evenly */
.game-art {
  height: 96px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Coinflip: two-sided spinning 3D coin (preserved) ---------- */
.coin-stage {
  width: 64px;
  height: 64px;
  perspective: 420px;
  animation: coinFloat 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(76, 215, 255, 0.25));
}

.coin-spin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: coinSpin 2.6s linear infinite;
}

.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff7cc, #ffd54a 32%, #d89a1a 68%, #8a5a08 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.35),
    inset 0 0 14px rgba(0, 0, 0, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Embossed H / T letters on each coin face. Each face has its own content, so
   the letter rotates naturally with its face and is never mirrored. */
.coin-letter {
  font: 900 34px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #6b4a06;
  letter-spacing: -0.02em;
  text-shadow:
    0 1px 0 rgba(255, 240, 180, 0.65),
    0 -1px 0 rgba(0, 0, 0, 0.55),
    0 0 6px rgba(138, 90, 8, 0.4);
  user-select: none;
  pointer-events: none;
}

.coin-tails {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 32% 28%, #fff2b8, #e3b23c 32%, #a3701a 68%, #5e3c08 100%);
}

@keyframes coinSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes coinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Color Dice: three floating 3D dice (preserved) ---------- */
.dice-trio {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.die-float {
  animation: dieFloat 3.2s ease-in-out infinite;
}

.die-float-red { animation-duration: 3.1s; animation-delay: 0s; }
.die-float-yellow { animation-duration: 3.6s; animation-delay: 0.35s; }
.die-float-blue { animation-duration: 3.3s; animation-delay: 0.7s; }

@keyframes dieFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.die {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transform: perspective(260px) rotateX(16deg) rotateY(-18deg);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.5);
}

.die-red {
  background: linear-gradient(145deg, #ff8585 0%, #e11d33 55%, #7a0f1e 100%);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(225, 29, 51, 0.35);
}

.die-yellow {
  background: linear-gradient(145deg, #ffe992 0%, #f4b400 55%, #8a5a00 100%);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(244, 180, 0, 0.3);
}

.die-blue {
  background: linear-gradient(145deg, #8fd4ff 0%, #2563eb 55%, #0f2e6b 100%);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(76, 215, 255, 0.45);
}

.die-face {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  padding: 16%;
}

.pip {
  place-self: center;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #1a1a1a 75%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 1px 1px rgba(0, 0, 0, 0.4);
}

.pip.r1c1 { grid-row: 1; grid-column: 1; }
.pip.r1c3 { grid-row: 1; grid-column: 3; }
.pip.r2c1 { grid-row: 2; grid-column: 1; }
.pip.r2c2 { grid-row: 2; grid-column: 2; }
.pip.r2c3 { grid-row: 2; grid-column: 3; }
.pip.r3c1 { grid-row: 3; grid-column: 1; }
.pip.r3c3 { grid-row: 3; grid-column: 3; }

/* ---------- Lucky Jackpot: spinning wheel (restyled to chrome + blue) ---------- */
.wheel-stage {
  position: relative;
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 0 16px rgba(30, 107, 255, 0.45));
}

.wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    #4cd7ff 0deg 45deg,
    #1e6bff 45deg 90deg,
    #d7dde8 90deg 135deg,
    #4cd7ff 135deg 180deg,
    #1e6bff 180deg 225deg,
    #d7dde8 225deg 270deg,
    #4cd7ff 270deg 315deg,
    #1e6bff 315deg 360deg
  );
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(30, 107, 255, 0.5);
  animation: wheelSpin 6s linear infinite;
}

.wheel-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.4), transparent 55%);
  pointer-events: none;
}

.wheel-hub {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #cbd5f5 40%, #6b7ab8 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #0b1326;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid var(--cyan-bright);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 6px rgba(76, 215, 255, 0.7));
  z-index: 2;
}

@keyframes wheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Why Play section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.why-card {
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 107, 255, 0.07), rgba(10, 14, 28, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover { transform: translateY(-2px); border-color: rgba(76, 215, 255, 0.4); box-shadow: 0 0 20px rgba(76, 215, 255, 0.18); }

.why-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.why-card h3 { font-size: 1rem; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: 0.88rem; }

/* Buttons - chrome + electric blue */
.btn {
  position: relative;
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid rgba(76, 215, 255, 0.45);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #1e6bff 0%, #0a3cc8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 6px 16px rgba(10, 60, 200, 0.45),
    0 0 18px rgba(30, 107, 255, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(10, 60, 200, 0.6),
    0 0 28px rgba(76, 215, 255, 0.55);
}

.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 45%), linear-gradient(180deg, #1a2440, #0b1326);
  border: 1px solid rgba(215, 221, 232, 0.35);
  color: var(--chrome-hi);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.45);
}

.btn.secondary:hover {
  border-color: rgba(76, 215, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 20px rgba(76, 215, 255, 0.35);
}

/* Forms */
.form-card { max-width: 380px; margin: 40px auto; }

.form-card h1 { font-size: 1.6rem; margin-bottom: 16px; text-align: center; }

label { display: block; font-size: 0.85rem; color: var(--muted); margin: 12px 0 4px; }

input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: #05080f;
  color: var(--text);
  font-size: 1rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--cyan-bright);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(76, 215, 255, 0.18), 0 0 14px rgba(76, 215, 255, 0.35);
}

.form-card .btn { width: 100%; margin-top: 18px; }
.form-links { text-align: center; margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.form-message { margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; color: var(--cyan-bright); }

/* Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 28, 54, 0.95), rgba(8, 12, 24, 0.95));
  border: 1px solid rgba(76, 215, 255, 0.55);
  box-shadow: var(--shadow-glow), 0 10px 30px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 50;
}

.toast.show { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--panel-border);
  margin-top: 24px;
}

/* ---------- Custom cursor (v2: split outer/inner so position is instant and
   scale animations on click don't drag on tracking) ---------- */
body.pml-cursor-active,
body.pml-cursor-active * { cursor: none !important; }

.pml-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.18s ease;
  will-change: transform;
}

.pml-cursor--ready { opacity: 1; }

.pml-cursor__orb {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95) 0%, rgba(215,221,232,0.55) 24%, rgba(10,14,28,0.95) 58%),
    radial-gradient(circle at 50% 50%, #0a0f1e 0%, #04060d 100%);
  border: 1px solid rgba(215, 221, 232, 0.85);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(76, 215, 255, 0.55),
    0 0 22px rgba(30, 107, 255, 0.45);
  transition: transform 0.18s cubic-bezier(0.3, 0, 0.2, 1), box-shadow 0.22s ease;
}

.pml-cursor__orb--down {
  transform: scale(0.55);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(76, 215, 255, 0.95),
    0 0 40px rgba(30, 107, 255, 0.75);
}

@media (hover: none), (pointer: coarse) {
  .pml-cursor { display: none !important; }
  body.pml-cursor-active, body.pml-cursor-active * { cursor: auto !important; }
}

/* Responsive */
@media (max-width: 900px) {
  .layout { padding: 14px; }
  .header-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .win-card { flex-basis: 260px; }

  /* Lighter background on mobile: softer blur, sparser particles, fewer streaks. */
  .bg-aurora { filter: blur(32px); }
  .bg-fx::before { background-size: 520px 520px; opacity: 0.55; animation-duration: 36s; }
  body::after { background-size: 640px 640px; opacity: 0.3; }
  .bg-streak.s3 { display: none; }

  /* Side dock becomes a floating action-style panel; expand only on tap. */
  .side-dock {
    top: auto;
    bottom: 16px;
    right: 16px;
    width: 56px;
    max-height: 56px;
    border-radius: 14px;
    border-right: 1px solid var(--panel-border);
  }
  .side-dock:hover, .side-dock:focus-within { width: 56px; max-height: 56px; }
  .side-dock.open { width: min(260px, calc(100vw - 32px)); max-height: min(70vh, 480px); }
  .side-dock__toggle { display: grid; }
  .side-dock__list { display: none; }
  .side-dock.open .side-dock__list { display: flex; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pml-cursor { display: none !important; }
  body.pml-cursor-active, body.pml-cursor-active * { cursor: auto !important; }
  .feed-track { animation: none !important; }
}
