/* ─────────────────────────────────────────────────────────────
   Funcoded — custom styles layered on top of Tailwind utilities.
   Keep effects (gradient, glitch, bubbles, GPS pulse) in here
   so the index.html stays declarative.
   ───────────────────────────────────────────────────────────── */

:root {
  --neon-green: #00ff88;
  --neon-cyan: #00e6ff;
  --neon-red: #ff4757;
  --neon-magenta: #ff3fb5;
  --neon-gold: #ffd700;
  --ink-950: #06060b;
  --ink-900: #0a0a14;
  --ink-800: #0f0f1f;
  --ink-700: #161629;
}

html, body { background: var(--ink-950); }

/* ── Animated background ─────────────────────────────────────── */
.bg-fx {
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(0, 230, 255, 0.18), transparent 60%),
    radial-gradient(1100px 700px at 110% 5%,  rgba(255, 63, 181, 0.14), transparent 60%),
    radial-gradient(900px 600px  at 50% 110%, rgba(0, 255, 136, 0.18), transparent 60%),
    var(--ink-950);
  animation: hueShift 28s ease-in-out infinite alternate;
}
.bg-fx-radial {
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 230, 255, 0.16), transparent 55%);
}
@keyframes hueShift { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(40deg); } }

.grid-fx {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 70%);
}

/* ── Hero floating orbs ──────────────────────────────────────── */
.hero-orbs { overflow: hidden; }
.orb {
  position: absolute;
  width: 38vw; height: 38vw;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
}
.orb-green   { background: var(--neon-green);   top: -10%; left: -10%; animation: floatA 18s ease-in-out infinite alternate; }
.orb-cyan    { background: var(--neon-cyan);    bottom: -15%; right: -12%; animation: floatB 22s ease-in-out infinite alternate; }
.orb-magenta { background: var(--neon-magenta); top: 30%; left: 40%; opacity: 0.35; animation: floatC 26s ease-in-out infinite alternate; }
@keyframes floatA { from { transform: translate(0,0)     scale(1);    } to { transform: translate(8vw, 6vh)   scale(1.15); } }
@keyframes floatB { from { transform: translate(0,0)     scale(1.1);  } to { transform: translate(-6vw, -4vh) scale(0.95); } }
@keyframes floatC { from { transform: translate(-4vw,0)  scale(0.9);  } to { transform: translate(4vw, -6vh)  scale(1.1);  } }

/* ── Game cards ──────────────────────────────────────────────── */
.game-card {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-900));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, box-shadow 0.35s;
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.16); }
.game-card[data-accent="cyan"]:hover  { box-shadow: 0 12px 40px -10px rgba(0,230,255,0.4); }
.game-card[data-accent="red"]:hover   { box-shadow: 0 12px 40px -10px rgba(255,71,87,0.4); }
.game-card[data-accent="green"]:hover { box-shadow: 0 12px 40px -10px rgba(0,255,136,0.4); }

.card-art {
  position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
}
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.dev-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--neon-green);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.status-pill {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}
.status-pill--shipped   { color: var(--neon-cyan);  border-color: rgba(0,230,255,0.4);  background: rgba(0,230,255,0.08);  }
.status-pill--live      { color: var(--neon-green); border-color: rgba(0,255,136,0.5);  background: rgba(0,255,136,0.08);  }
.status-pill--prototype { color: var(--neon-gold);  border-color: rgba(255,215,0,0.4);  background: rgba(255,215,0,0.08);  }

.card-title {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: white;
}

.card-tech { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-tech li {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  padding-left: 14px;
  position: relative;
}
.card-tech li::before {
  content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px;
  background: var(--neon-green); border-radius: 50%; box-shadow: 0 0 6px rgba(0,255,136,0.6);
}
.card-tech li span {
  display: inline-block; min-width: 78px; color: white; margin-right: 8px;
  font-weight: 600; letter-spacing: 0.04em;
}

.card-cta {
  margin-top: auto; padding-top: 1.5rem;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--neon-green);
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content; transition: color 0.2s, transform 0.2s;
}
.card-cta:hover { color: white; transform: translateX(2px); }
.card-cta--soon { color: rgba(255,255,255,0.4); pointer-events: none; }

/* ── Card art: BUBBLE FLUBBLE ───────────────────────────────── */
.card-art--flubble {
  background: radial-gradient(circle at 50% 70%, rgba(0,230,255,0.25), transparent 70%), var(--ink-800);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.card-art--flubble::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--ink-700) 100%);
  pointer-events: none;
}
/* JS-driven drifting bubble container — same physics as the standalone page */
.card-bubble-field {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.deco-bubble {
  position: absolute;
  will-change: transform, opacity;
  pointer-events: none;
  user-select: none;
}

/* ── Card art: BUSTED WHEEL ─────────────────────────────────── */
.card-art--busted {
  background: radial-gradient(circle at 50% 50%, rgba(255,71,87,0.22), transparent 65%), var(--ink-800);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.card-art--busted::before {
  /* subtle scan-line vignette to keep the busted/glitch vibe */
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,71,87,0.04) 0 2px, transparent 2px 4px);
  mix-blend-mode: screen; pointer-events: none;
}

/* ── Brand-logo card art (Bubble Flubble + Busted Wheel) ───── */
.card-logo {
  position: relative; z-index: 2;
  max-width: 78%;
  max-height: 78%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.55));
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.45s;
}
.game-card:hover .card-logo {
  transform: scale(1.04);
}
.card-logo--busted {
  filter: drop-shadow(0 0 18px rgba(255,71,87,0.35)) drop-shadow(0 8px 24px rgba(0,0,0,0.55));
}
.game-card:hover .card-logo--busted {
  filter: drop-shadow(0 0 24px rgba(255,71,87,0.6)) drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

/* ── Card art: GPS HUNT ─────────────────────────────────────── */
.card-art--gps {
  background:
    repeating-linear-gradient(0deg,   rgba(0,255,136,0.05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg,  rgba(0,255,136,0.05) 0 1px, transparent 1px 32px),
    radial-gradient(circle at 30% 70%, rgba(0,255,136,0.15), transparent 60%),
    var(--ink-800);
  position: relative;
}
.gps-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
}
.gps-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid var(--neon-green);
  box-shadow: 0 0 24px rgba(0,255,136,0.4);
  animation: gpsPulse 2.6s ease-out infinite;
}
.gps-ring::before, .gps-ring::after {
  content: ''; position: absolute; inset: -10px;
  border: 1px solid var(--neon-green); border-radius: 50%; opacity: 0.4;
  animation: gpsPulse 2.6s ease-out infinite;
}
.gps-ring::before { animation-delay: 0.3s; }
.gps-ring::after  { animation-delay: 0.6s; }
@keyframes gpsPulse {
  0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}
.gps-pin {
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 18px var(--neon-green);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.gps-coords {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}

/* ── Leaderboard panels ─────────────────────────────────────── */
.leaderboard-panel {
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-900));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 1.25rem 1rem;
  position: relative; overflow: hidden;
}
.leaderboard-panel[data-accent="red"]::before  { background: var(--neon-red); }
.leaderboard-panel[data-accent="cyan"]::before { background: var(--neon-cyan); }
.leaderboard-panel::before {
  content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 60px;
  box-shadow: 0 0 10px currentColor;
}
.lb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lb-table td {
  padding: 12px 0; font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lb-table tr:last-child td { border-bottom: none; }
.lb-table .rank {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: rgba(255,255,255,0.4); width: 36px;
}
.lb-table .rank.gold   { color: var(--neon-gold); }
.lb-table .rank.silver { color: #cfd8e3; }
.lb-table .rank.bronze { color: #d49266; }
.lb-table .name { font-weight: 600; }
.lb-table .score {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--neon-green); font-weight: 600; text-align: right;
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
