/* ============================================================
   NEXUS-MODE — Custom Styles
   Палитра: deep black + electric blue + neon cyan + purple + red
   ============================================================ */

:root {
  --nx-bg:        #06070d;
  --nx-bg2:       #0a0b14;
  --nx-panel:     #0e1020;
  --nx-panel-2:   #11142a;
  --nx-border:    rgba(120, 140, 200, 0.10);
  --nx-border-2:  rgba(120, 140, 200, 0.18);
  --nx-blue:      #2b6bff;
  --nx-cyan:      #00e5ff;
  --nx-purple:    #a855f7;
  --nx-red:       #ff3b5c;
  --nx-text:      #e6ecff;
  --nx-mute:      #8b93b8;
  --glow-cyan:    0 0 30px rgba(0, 229, 255, 0.45);
  --glow-blue:    0 0 30px rgba(43, 107, 255, 0.45);
  --glow-purple:  0 0 30px rgba(168, 85, 247, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(43,107,255,0.10), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(168,85,247,0.08), transparent 60%),
    radial-gradient(800px 600px at 110% 80%, rgba(0,229,255,0.06), transparent 60%),
    var(--nx-bg);
  color: var(--nx-text);
  cursor: none;
  /* Disable text selection site-wide — only the archive password is selectable */
  -webkit-user-select: none;
     -moz-user-select: none;
       -ms-user-select: none;
          user-select: none;
  -webkit-touch-callout: none;
}

/* Form inputs in admin panel still need to be editable */
input, textarea, select {
  -webkit-user-select: text;
     -moz-user-select: text;
       -ms-user-select: text;
          user-select: text;
}

/* The archive password is the only thing on public pages users can copy */
.password-chip-value {
  -webkit-user-select: all;
     -moz-user-select: all;
       -ms-user-select: all;
          user-select: all;
  cursor: text;
}

/* Selection */
::selection { background: rgba(0,229,255,0.35); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--nx-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--nx-blue), var(--nx-cyan));
  border-radius: 999px;
}

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  /* No transform-transition — JS controls position every frame */
  transition: opacity 0.2s ease, width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  mix-blend-mode: screen;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--nx-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--nx-cyan);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(0, 229, 255, 0.6);
  border-radius: 50%;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: rgba(0, 229, 255, 0.9);
  background: radial-gradient(circle, rgba(0,229,255,0.12), transparent 70%);
}
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ------------------------------------------------------------
 * Admin pages: use the NATIVE OS cursor.
 * The fancy neon cursor is great on the public site, but inside the
 * admin panel real users need a real cursor to operate inputs,
 * dropdowns, the password chip, etc.  This block:
 *   • hides the custom cursor dot/ring entirely;
 *   • resets every `cursor: none` declaration we set elsewhere;
 *   • restores sensible defaults for inputs, buttons, links.
 * ------------------------------------------------------------ */
body[data-admin] { cursor: auto; }
body[data-admin] .cursor-dot,
body[data-admin] .cursor-ring { display: none !important; }
body[data-admin] *,
body[data-admin] *::before,
body[data-admin] *::after { cursor: revert; }
body[data-admin] a,
body[data-admin] button,
body[data-admin] [role="button"],
body[data-admin] .admin-tab,
body[data-admin] .filter-chip,
body[data-admin] summary,
body[data-admin] .copy-pass-btn { cursor: pointer; }
body[data-admin] input,
body[data-admin] textarea { cursor: text; }
body[data-admin] select { cursor: pointer; }
body[data-admin] button:disabled,
body[data-admin] .admin-submit:disabled { cursor: not-allowed; }

/* ============================================================
   Ambient background
   ============================================================ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.grid-overlay {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.95), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.95), transparent 75%);
}
.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
.aurora-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(43,107,255,0.5), transparent 70%);
  top: -10%; left: -10%;
}
.aurora-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.4), transparent 70%);
  top: 40%; right: -10%;
  animation-delay: -6s;
}
.aurora-3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,229,255,0.3), transparent 70%);
  bottom: -20%; left: 30%;
  animation-delay: -12s;
}
@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -40px) scale(1.1); }
  100% { transform: translate(-40px, 30px) scale(0.95); }
}

.particles {
  position: absolute;
  inset: 0;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--nx-cyan);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
  box-shadow: 0 0 8px currentColor;
}
.particle.p-blue { background: var(--nx-blue); color: var(--nx-blue); }
.particle.p-purple { background: var(--nx-purple); color: var(--nx-purple); }
@keyframes particle-float {
  0%   { transform: translateY(110vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(60px); opacity: 0; }
}

/* ============================================================
   Header
   ============================================================ */
#site-header {
  background: rgba(6, 7, 13, 0.35);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}
#site-header.scrolled {
  background: rgba(6, 7, 13, 0.78);
  border-bottom: 1px solid var(--nx-border);
  box-shadow:
    0 1px 0 rgba(0, 229, 255, 0.12),
    0 8px 30px rgba(0, 0, 0, 0.4);
}
.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: none;
  position: relative;
}
.logo-icon {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(43,107,255,0.12));
  border: 1px solid var(--nx-border-2);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-wrap:hover .logo-icon {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.5);
}
.logo-text {
  background: linear-gradient(90deg, #fff 0%, #c9e9ff 70%, #6cd6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.logo-text::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(8px);
  opacity: 0.35;
  z-index: -1;
}

/* Nav links */
.nav-link {
  position: relative;
  color: var(--nx-text);
  opacity: 0.78;
  cursor: none;
  transition: all 0.25s ease;
  padding: 4px 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, var(--nx-cyan), var(--nx-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--nx-border);
  color: var(--nx-mute);
  background: rgba(255,255,255,0.02);
  cursor: none;
  transition: all 0.25s ease;
}
.icon-btn:hover {
  color: var(--nx-cyan);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}
.icon-btn.muted .sound-wave { opacity: 0.2; }

.login-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(43,107,255,0.22), rgba(0,229,255,0.18));
  border: 1px solid rgba(0, 229, 255, 0.3);
  cursor: none;
  overflow: hidden;
  transition: all 0.25s ease;
}
.login-btn:hover {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}
.login-btn-arrow { transition: transform 0.25s ease; }
.login-btn:hover .login-btn-arrow { transform: translateX(4px); }

/* Burger */
.burger {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--nx-border);
  background: rgba(255,255,255,0.02);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: none;
  padding: 0;
}
.burger span {
  width: 16px; height: 1.5px;
  background: var(--nx-text);
  display: block;
  transition: all 0.3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(6,7,13,0.95);
  backdrop-filter: blur(24px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-link {
  color: var(--nx-text);
  opacity: 0.85;
  transition: all 0.25s ease;
  cursor: none;
}
.mobile-link:hover {
  color: var(--nx-cyan);
  text-shadow: 0 0 18px rgba(0,229,255,0.6);
  letter-spacing: 0.05em;
}

/* ============================================================
   Hero
   ============================================================ */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 30%, rgba(43,107,255,0.18), transparent 65%),
    radial-gradient(700px 400px at 30% 60%, rgba(0,229,255,0.12), transparent 60%);
  pointer-events: none;
}
.scanline {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 3px,
      transparent 4px
    );
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.35;
}
.scanline::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(0,229,255,0.06), transparent);
  animation: scanline-move 8s linear infinite;
}
@keyframes scanline-move {
  0%   { top: -80px; }
  100% { top: 100%; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--nx-border-2);
  background: rgba(0, 229, 255, 0.04);
  backdrop-filter: blur(8px);
}
.dot-pulse {
  width: 8px; height: 8px;
  background: var(--nx-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--nx-cyan);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.hero-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(48px, 9vw, 130px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
}
.text-glow {
  text-shadow:
    0 0 30px rgba(0, 229, 255, 0.35),
    0 0 60px rgba(43, 107, 255, 0.25);
}
.grad-text {
  background: linear-gradient(90deg, #00e5ff 0%, #2b6bff 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.35));
  background-size: 200% 100%;
  animation: grad-shift 8s ease infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.6;
  max-width: 680px;
  color: var(--nx-text);
}

/* Buttons */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2b6bff 0%, #00e5ff 100%);
  border-radius: 10px;
  overflow: hidden;
  cursor: none;
  box-shadow:
    0 8px 30px rgba(43, 107, 255, 0.35),
    0 0 0 1px rgba(0, 229, 255, 0.45) inset;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(43, 107, 255, 0.55),
    0 0 0 1px rgba(0, 229, 255, 0.7) inset,
    0 0 40px rgba(0, 229, 255, 0.4);
}
.btn-arrow {
  position: relative; z-index: 1;
  transition: transform 0.3s ease;
}
.btn-primary:hover .btn-arrow { transform: translateX(5px); }
.btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover .btn-shine { left: 130%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--nx-text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--nx-border-2);
  border-radius: 10px;
  cursor: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: rgba(0, 229, 255, 0.6);
  color: #fff;
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}

/* Hero stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
  padding: 22px 28px;
  border-radius: 14px;
  border: 1px solid var(--nx-border);
  background: rgba(14, 16, 32, 0.5);
  backdrop-filter: blur(12px);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--nx-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 6px;
}
.stat-divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--nx-border-2), transparent);
}

/* Holo card */
.holo-card {
  position: absolute;
  right: 6%;
  top: 22%;
  width: 260px;
  animation: holo-float 6s ease-in-out infinite;
}
@keyframes holo-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(0deg); }
}
.holo-card-inner {
  position: relative;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,16,32,0.9), rgba(14,16,32,0.5));
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 229, 255, 0.12) inset,
    0 0 40px rgba(0, 229, 255, 0.2);
  overflow: hidden;
}
.holo-line {
  position: absolute;
  top: 12px; right: 12px;
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--nx-cyan));
  border-radius: 999px;
}
.holo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.4;
}
.holo-text {
  position: relative;
  z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.holo-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(120, 140, 200, 0.15);
}
.holo-row:last-child { border-bottom: none; }
.holo-key { color: var(--nx-mute); letter-spacing: 0.1em; }
.holo-val { color: #fff; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(0, 229, 255, 0.5);
  border-radius: 12px;
  cursor: none;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--nx-cyan);
  border-radius: 2px;
  animation: scroll-cue 1.6s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 12px); opacity: 0.3; }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee-section {
  position: relative;
  padding: 16px 0;
  background: rgba(14, 16, 32, 0.6);
  border-top: 1px solid var(--nx-border);
  border-bottom: 1px solid var(--nx-border);
  backdrop-filter: blur(6px);
  overflow: hidden;
  z-index: 2;
}
.marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.m-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #fff;
}
.m-item em {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--nx-mute);
  text-transform: uppercase;
}
.m-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nx-cyan);
  box-shadow: 0 0 10px var(--nx-cyan);
}

/* ============================================================
   Section heads
   ============================================================ */
.section-head {
  margin-bottom: 64px;
  position: relative;
}
.kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--nx-cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px dashed rgba(0, 229, 255, 0.25);
  border-radius: 999px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.section-sub {
  margin-top: 18px;
  max-width: 640px;
  color: var(--nx-mute);
  font-size: 16px;
  line-height: 1.7;
}

/* ============================================================
   Games grid
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 1fr;        /* every row gets the same height */
  gap: 22px;
  align-items: stretch;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14,16,32,0.7), rgba(8,9,18,0.85));
  border: 1px solid var(--nx-border);
  cursor: none;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--nx-cyan) 50%, var(--nx-blue) 70%, transparent 90%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 229, 255, 0.18);
}
.game-card:hover::before { opacity: 1; }

.game-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: 0 0 auto;
}
.game-cover-grad {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.game-card:hover .game-cover-grad { transform: scale(1.08); }
.game-cover-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.4) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.game-cover-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.7s ease;
  pointer-events: none;
}
.game-card:hover .game-cover-shine { left: 130%; }

.game-icon-overlay {
  position: absolute;
  right: -10px; bottom: -20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 160px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

.game-tag {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(6, 7, 13, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.game-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
/* Push the action button to the bottom even when cards have different content */
.game-card .game-features { margin-bottom: 0; }
.game-card .game-actions  { margin-top: auto; }
.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.game-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-family: 'JetBrains Mono', monospace;
}
.game-status-soon { color: var(--nx-mute); }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: dot-pulse 2s ease-in-out infinite;
}
.status-dot-soon {
  background: var(--nx-mute);
  box-shadow: none;
  animation: none;
}
.game-update {
  color: var(--nx-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}

.game-title {
  margin-top: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.25;
  /* Clamp to exactly 2 lines so every card uses identical title height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.game-features {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--nx-mute);
  /* Reserve room for exactly 2 rows of features so cards align */
  min-height: 56px;
}
.game-features li {
  position: relative;
  padding-left: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: linear-gradient(135deg, var(--nx-cyan), var(--nx-blue));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.game-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--nx-border-2);
}
.game-actions .btn-mini {
  width: 100%;
}

.btn-mini {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.btn-mini-ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--nx-border-2);
  color: var(--nx-text);
}
.game-card:hover .btn-mini-ghost {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.05);
}
.btn-mini-primary {
  background: linear-gradient(135deg, #2b6bff, #00e5ff);
  color: #fff;
  box-shadow: 0 6px 20px rgba(43, 107, 255, 0.35);
}
.game-card:hover .btn-mini-primary {
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.45);
}

.game-card-soon {
  cursor: none;
  border-style: dashed;
}
.game-card-soon:hover {
  transform: none;
  box-shadow: none;
}
.game-card-soon::before { display: none; }

/* ============================================================
   Steps
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.step-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14,16,32,0.7), rgba(8,9,18,0.85));
  border: 1px solid var(--nx-border);
  overflow: hidden;
  transition: all 0.4s ease;
}
.step-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 229, 255, 0.15);
}
.step-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 229, 255, 0.3);
  letter-spacing: -0.05em;
}
.step-icon {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43,107,255,0.18), rgba(0,229,255,0.12));
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--nx-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  margin-bottom: 22px;
}
.step-icon svg { width: 24px; height: 24px; }
.step-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.step-card p {
  color: var(--nx-mute);
  font-size: 14.5px;
  line-height: 1.6;
}
.step-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nx-cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}
.step-card:hover .step-line { transform: scaleX(1); }

/* ============================================================
   Features
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  padding: 28px 26px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14,16,32,0.6), rgba(8,9,18,0.85));
  border: 1px solid var(--nx-border);
  transition: all 0.4s ease;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--nx-cyan), var(--nx-blue), var(--nx-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon-wrap {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(43,107,255,0.15));
  border: 1px solid var(--nx-border-2);
  color: var(--nx-cyan);
  margin-bottom: 18px;
  transition: all 0.35s ease;
}
.feature-icon-wrap svg { width: 22px; height: 22px; }
.feature-card:hover .feature-icon-wrap {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.3);
  transform: scale(1.08) rotate(-4deg);
}
.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--nx-mute);
  font-size: 14px;
  line-height: 1.65;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.testimonial {
  padding: 26px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14,16,32,0.6), rgba(8,9,18,0.85));
  border: 1px solid var(--nx-border);
  transition: all 0.35s ease;
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.3);
}
.t-stars {
  letter-spacing: 0.18em;
  color: #ffd86b;
  text-shadow: 0 0 10px rgba(255,216,107,0.5);
  font-size: 14px;
  margin-bottom: 14px;
}
.testimonial p {
  color: var(--nx-text);
  font-size: 14.5px;
  line-height: 1.7;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--nx-border-2);
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--nx-blue), var(--nx-purple));
  box-shadow: 0 6px 16px rgba(43, 107, 255, 0.3);
}
.t-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}
.t-role {
  color: var(--nx-mute);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: linear-gradient(180deg, rgba(14,16,32,0.6), rgba(8,9,18,0.85));
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item[open] {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.1);
}
.faq-item summary {
  list-style: none;
  cursor: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: #fff;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--nx-cyan);
  transition: transform 0.3s ease;
  flex: 0 0 auto;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 22px 20px;
  color: var(--nx-mute);
  font-size: 14.5px;
  line-height: 1.7;
  animation: faq-open 0.35s ease;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CTA card
   ============================================================ */
.cta-card {
  position: relative;
  padding: 56px 48px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(43,107,255,0.18), rgba(168,85,247,0.12));
  border: 1px solid rgba(0, 229, 255, 0.25);
  overflow: hidden;
  text-align: left;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 70%);
  pointer-events: none;
}
.cta-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,0.3), transparent 70%);
  right: -200px; top: -200px;
  filter: blur(80px);
  pointer-events: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  border-top: 1px solid var(--nx-border);
  background: rgba(6, 7, 13, 0.6);
  backdrop-filter: blur(12px);
  z-index: 2;
}
.footer-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nx-cyan);
  margin-bottom: 18px;
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-list a {
  color: var(--nx-mute);
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}
.footer-list a:hover {
  color: var(--nx-cyan);
  transform: translateX(3px);
}
.social-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--nx-border-2);
  background: rgba(255,255,255,0.02);
  color: var(--nx-mute);
  transition: all 0.25s ease;
}
.social-btn:hover {
  color: var(--nx-cyan);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--nx-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal, .fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view, .fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Avoid flash for hero, run immediately */
.fade-up { transition-delay: 0ms; }

/* ============================================================
   Sections z-index/relative
   ============================================================ */
section, header, footer { position: relative; z-index: 2; }

/* ============================================================
   Game detail page styles
   ============================================================ */
.detail-hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.detail-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.detail-cover-bg {
  position: absolute;
  inset: 0;
}
.detail-cover-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,13,0.4) 0%, rgba(6,7,13,0.85) 60%, var(--nx-bg) 100%);
}
.detail-cover-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.4) 1px, transparent 1px);
  background-size: 36px 36px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-mute);
  padding: 8px 14px;
  border: 1px solid var(--nx-border);
  border-radius: 999px;
  background: rgba(14,16,32,0.5);
  backdrop-filter: blur(6px);
  cursor: none;
  transition: all 0.25s ease;
}
.back-link:hover {
  color: var(--nx-cyan);
  border-color: rgba(0,229,255,0.4);
  transform: translateX(-3px);
}

.detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  margin-top: 24px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--nx-border-2);
  background: rgba(6,7,13,0.6);
  color: var(--nx-text);
  backdrop-filter: blur(6px);
}
.detail-meta-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.detail-desc {
  margin-top: 28px;
  max-width: 720px;
  color: var(--nx-text);
  font-size: 17px;
  line-height: 1.65;
}

.detail-section {
  padding: 70px 0;
}
.detail-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.detail-section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.detail-section-head .num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--nx-cyan);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feat-card {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--nx-border);
  background: linear-gradient(180deg, rgba(14,16,32,0.6), rgba(8,9,18,0.85));
  transition: all 0.3s ease;
}
.feat-card:hover {
  border-color: rgba(0,229,255,0.35);
  transform: translateY(-3px);
}
.feat-icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(43,107,255,0.18), rgba(0,229,255,0.12));
  border: 1px solid var(--nx-border-2);
  color: var(--nx-cyan);
  margin-bottom: 14px;
}
.feat-icon svg { width: 20px; height: 20px; }
.feat-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
}
.feat-card p {
  color: var(--nx-mute);
  font-size: 13.5px;
  line-height: 1.6;
}

.sys-req {
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--nx-border);
  background: linear-gradient(180deg, rgba(14,16,32,0.6), rgba(8,9,18,0.85));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.req-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.req-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-mute);
}
.req-val {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
}

.changes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.change-item {
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid var(--nx-border);
  background: linear-gradient(180deg, rgba(14,16,32,0.6), rgba(8,9,18,0.85));
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}
.change-item:hover {
  border-color: rgba(0,229,255,0.3);
  transform: translateX(4px);
}
.change-ver {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--nx-cyan);
  padding: 4px 10px;
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 999px;
  background: rgba(0,229,255,0.05);
}
.change-body p { color: var(--nx-text); font-size: 14.5px; line-height: 1.6; }
.change-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--nx-mute);
  text-transform: uppercase;
  margin-top: 4px;
}

.download-block {
  padding: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(43,107,255,0.16), rgba(168,85,247,0.10));
  border: 1px solid rgba(0,229,255,0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 70%);
  pointer-events: none;
}
.download-block h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.download-block p {
  color: var(--nx-mute);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.6;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2b6bff, #00e5ff);
  border-radius: 12px;
  cursor: none;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(43, 107, 255, 0.4),
    0 0 0 1px rgba(0, 229, 255, 0.5) inset;
  transition: all 0.3s ease;
}
.btn-download:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 50px rgba(43, 107, 255, 0.55),
    0 0 0 1px rgba(0, 229, 255, 0.8) inset,
    0 0 50px rgba(0, 229, 255, 0.4);
}

/* ============================================================
   Top Download Bar (game detail pages)
   ============================================================ */
.top-download {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(43,107,255,0.18), rgba(0,229,255,0.10));
  border: 1px solid rgba(0, 229, 255, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  position: relative;
  /* overflow stays visible so the OS dropdown menu isn't clipped */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 229, 255, 0.12);
}
.top-download::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(0,229,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.top-download-info {
  flex: 1 1 auto;
  min-width: 220px;
  position: relative;
  z-index: 1;
}
.top-download-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-cyan);
  margin-bottom: 6px;
}
.top-download-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.top-download-hint {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--nx-mute);
}
.password-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(6, 7, 13, 0.7);
  border: 1px dashed rgba(0, 229, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
  backdrop-filter: blur(6px);
}
.password-chip-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nx-mute);
}
.password-chip-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  user-select: all;
  letter-spacing: 0.04em;
}
.copy-pass-btn {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--nx-border-2);
  background: rgba(255,255,255,0.04);
  color: var(--nx-mute);
  cursor: none;
  transition: all 0.25s ease;
}
.copy-pass-btn:hover {
  color: var(--nx-cyan);
  border-color: rgba(0,229,255,0.5);
  box-shadow: 0 0 14px rgba(0,229,255,0.3);
}
.copy-pass-btn.copied {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.5);
}
.btn-download-top {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2b6bff, #00e5ff);
  border-radius: 10px;
  cursor: none;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(43, 107, 255, 0.4),
    0 0 0 1px rgba(0, 229, 255, 0.5) inset;
  transition: all 0.3s ease;
}
.btn-download-top:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(43, 107, 255, 0.55),
    0 0 0 1px rgba(0, 229, 255, 0.8) inset,
    0 0 30px rgba(0, 229, 255, 0.35);
}

/* ============================================================
   Admin Panel
   ============================================================ */
.admin-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  position: relative;
  z-index: 2;
}
.admin-card {
  width: 100%;
  max-width: 460px;
  padding: 40px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14,16,32,0.85), rgba(8,9,18,0.95));
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.admin-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.7), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.7), transparent 70%);
  pointer-events: none;
}
.admin-dash {
  width: 100%;
  max-width: 720px;
  position: relative;
  z-index: 2;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
.admin-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--nx-cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}
.admin-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.admin-sub {
  margin-top: 8px;
  color: var(--nx-mute);
  font-size: 13.5px;
  line-height: 1.6;
}
.admin-card .admin-title,
.admin-card .admin-sub,
.admin-card form,
.admin-card .admin-foot {
  position: relative;
  z-index: 1;
}
.admin-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-mute);
}
.admin-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(6, 7, 13, 0.6);
  border: 1px solid var(--nx-border-2);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  transition: all 0.25s ease;
  cursor: none;
}
.admin-input:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
  background: rgba(6, 7, 13, 0.85);
}
.admin-input::placeholder { color: rgba(139, 147, 184, 0.6); }
.admin-submit {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2b6bff, #00e5ff);
  border: none;
  border-radius: 10px;
  cursor: none;
  transition: all 0.25s ease;
  box-shadow:
    0 8px 24px rgba(43, 107, 255, 0.3),
    0 0 0 1px rgba(0, 229, 255, 0.4) inset;
}
.admin-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(43, 107, 255, 0.5),
    0 0 0 1px rgba(0, 229, 255, 0.7) inset,
    0 0 24px rgba(0, 229, 255, 0.3);
}
.admin-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.admin-message {
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
}
.admin-message.is-error {
  display: block;
  background: rgba(255, 59, 92, 0.08);
  border: 1px solid rgba(255, 59, 92, 0.35);
  color: #ff8aa0;
}
.admin-message.is-ok {
  display: block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.admin-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--nx-border-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-mute);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-foot a { color: var(--nx-cyan); }

.admin-card-wide {
  width: 100%;
  max-width: 720px;
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14,16,32,0.7), rgba(8,9,18,0.9));
  border: 1px solid var(--nx-border);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.admin-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}
.admin-section-sub {
  color: var(--nx-mute);
  font-size: 13px;
  margin-bottom: 18px;
}
.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.admin-btn-secondary {
  padding: 10px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nx-border-2);
  border-radius: 8px;
  cursor: none;
  transition: all 0.25s ease;
}
.admin-btn-secondary:hover {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.06);
  color: #fff;
}
.admin-btn-danger {
  padding: 10px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb4c0;
  background: rgba(255, 59, 92, 0.08);
  border: 1px solid rgba(255, 59, 92, 0.35);
  border-radius: 8px;
  cursor: none;
  transition: all 0.25s ease;
}
.admin-btn-danger:hover {
  background: rgba(255, 59, 92, 0.16);
  color: #fff;
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #6ee7b7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.admin-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.admin-divider {
  height: 1px;
  background: var(--nx-border-2);
  margin: 22px 0;
}

/* ============================================================
   OS Dropdown (custom listbox on game detail pages)
   ============================================================ */
.os-dropdown {
  position: relative;
  display: inline-block;
  z-index: 20;
}
.os-dropdown.is-open { z-index: 40; }
.os-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 175px;
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  background: rgba(6, 7, 13, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.30);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.os-dropdown-trigger:hover,
.os-dropdown-trigger:focus-visible {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.20);
  outline: none;
}
.os-dropdown.is-open .os-dropdown-trigger {
  border-color: rgba(0, 229, 255, 0.75);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}
.os-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-cyan);
  flex: 0 0 auto;
}
.os-dropdown-icon .os-icon { width: 16px; height: 16px; }
.os-dropdown-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}
.os-dropdown-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-mute);
  transition: transform 0.25s ease, color 0.25s ease;
  flex: 0 0 auto;
}
.os-dropdown-chevron svg { width: 14px; height: 14px; }
.os-dropdown.is-open .os-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--nx-cyan);
}

.os-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 14px;
  background: rgba(6, 7, 13, 0.96);
  border: 1px solid rgba(0, 229, 255, 0.30);
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(0, 229, 255, 0.18);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.os-dropdown.is-open .os-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.os-dropdown-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  cursor: none;
  color: var(--nx-mute);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
  outline: none;
}
.os-dropdown-option:hover,
.os-dropdown-option:focus-visible {
  color: #fff;
  background: rgba(0, 229, 255, 0.08);
}
.os-dropdown-option.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(43,107,255,0.22), rgba(0,229,255,0.14));
}
.os-dropdown-option .os-dropdown-icon { color: var(--nx-cyan); }
.os-dropdown-option .os-dropdown-label {
  flex: 1;
  text-align: left;
}
.os-dropdown-check {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-cyan);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.os-dropdown-check svg { width: 14px; height: 14px; }
.os-dropdown-option.is-active .os-dropdown-check { opacity: 1; }
.os-dropdown-option.is-empty .os-dropdown-label { opacity: 0.55; }
.os-dropdown-option.is-empty::before {
  content: 'N/A';
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--nx-red);
  opacity: 0.75;
  padding: 2px 6px;
  border: 1px solid rgba(255, 59, 92, 0.3);
  border-radius: 999px;
  margin-left: auto;
  order: 3;
}
.os-dropdown-option.is-empty .os-dropdown-check { display: none; }

@media (max-width: 720px) {
  .os-dropdown-trigger { min-width: 0; padding: 12px 14px; }
}

/* Disabled download state */
.btn-download-top.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.35);
  box-shadow: none;
}
.btn-download-top.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Stack the top-download elements on small screens */
@media (max-width: 720px) {
  .top-download { gap: 14px; }
  .top-download-info { width: 100%; }
}

/* ============================================================
   Catalog page
   ============================================================ */
.catalog-hero {
  position: relative;
  padding: 140px 0 40px;
}
.catalog-hero-inner { max-width: 980px; }
.catalog-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 12px 0 0;
}
.catalog-sub {
  margin: 16px 0 32px;
  max-width: 640px;
  color: var(--nx-mute);
  font-size: 16px;
  line-height: 1.65;
}

/* --- Search bar --- */
.catalog-search-wrap {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.catalog-search {
  position: relative;
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 18px;
  background: rgba(14, 16, 32, 0.75);
  border: 1px solid var(--nx-border-2);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.catalog-search:hover { border-color: rgba(0, 229, 255, 0.35); }
.catalog-search:focus-within {
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.catalog-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-mute);
  flex: 0 0 auto;
  transition: color 0.25s ease;
}
.catalog-search-icon svg { width: 18px; height: 18px; }
.catalog-search:focus-within .catalog-search-icon { color: var(--nx-cyan); }
.catalog-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
  cursor: text;
}
.catalog-search-input::placeholder { color: rgba(139, 147, 184, 0.55); }
.catalog-search-clear {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  color: var(--nx-mute);
  cursor: none;
  flex: 0 0 auto;
  transition: all 0.2s ease;
}
.catalog-search-clear svg { width: 12px; height: 12px; }
.catalog-search-clear:hover {
  background: rgba(255, 59, 92, 0.12);
  color: #ff8aa0;
}
.catalog-search-kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--nx-mute);
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nx-border-2);
  flex: 0 0 auto;
}
.catalog-search-kbd span { color: var(--nx-cyan); }
@media (max-width: 640px) {
  .catalog-search-kbd { display: none; }
}

/* --- Result counter --- */
.catalog-result {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--nx-border-2);
  background: rgba(14, 16, 32, 0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-mute);
  transition: all 0.25s ease;
}
.catalog-result-count {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  color: #fff;
}
.catalog-result.is-filtered {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.06);
}
.catalog-result.is-filtered .catalog-result-count { color: var(--nx-cyan); }
.catalog-result.is-empty {
  border-color: rgba(255, 59, 92, 0.45);
  background: rgba(255, 59, 92, 0.06);
}
.catalog-result.is-empty .catalog-result-count { color: #ff8aa0; }

/* --- Filter chips --- */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(14, 16, 32, 0.5);
  border: 1px solid var(--nx-border-2);
  color: var(--nx-mute);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: none;
  transition: all 0.25s ease;
}
.filter-chip:hover {
  color: var(--nx-text);
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.04);
}
.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(43,107,255,0.25), rgba(0,229,255,0.18));
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.22);
}
.filter-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  opacity: 0.65;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.filter-chip.is-active .filter-count {
  opacity: 1;
  background: rgba(0, 229, 255, 0.15);
  color: var(--nx-cyan);
}

/* --- Catalog wrapper as a real grid item (was display:contents) --- */
.catalog-card-wrap { display: flex; }
.catalog-card-wrap > .game-card { flex: 1 1 auto; }
.catalog-grid.is-empty { min-height: 240px; }

/* --- Empty state --- */
.catalog-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--nx-mute);
}
.catalog-empty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(14, 16, 32, 0.6);
  border: 1px dashed var(--nx-border-2);
  color: var(--nx-cyan);
}
.catalog-empty-icon svg { width: 28px; height: 28px; }
.catalog-empty h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.catalog-empty p { font-size: 14.5px; }

/* ============================================================
   "View Full Catalog" card — highlighted with a rotating
   conic-gradient border + soft pulse + accented CTA.
   Layout mirrors a regular game-card so heights line up.
   ============================================================ */
@property --nx-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.game-card-catalog {
  position: relative;
  border-color: rgba(0, 229, 255, 0.50);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.10) inset,
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 229, 255, 0.18);
  animation: catalog-card-pulse 4s ease-in-out infinite;
}
@keyframes catalog-card-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 229, 255, 0.10) inset,
      0 24px 60px rgba(0, 0, 0, 0.45),
      0 0 40px rgba(0, 229, 255, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 229, 255, 0.20) inset,
      0 24px 60px rgba(0, 0, 0, 0.45),
      0 0 60px rgba(0, 229, 255, 0.30),
      0 0 90px rgba(168, 85, 247, 0.18);
  }
}
/* Rotating conic gradient border via ::before */
.game-card-catalog::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--nx-angle),
    #00e5ff 0deg, #2b6bff 90deg, #a855f7 180deg, #ff3b5c 270deg, #00e5ff 360deg
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 1;                                    /* always visible */
  animation: catalog-border-spin 5s linear infinite;
}
@keyframes catalog-border-spin {
  to { --nx-angle: 360deg; }
}
/* Hover: stronger lift */
.game-card-catalog:hover {
  border-color: rgba(0, 229, 255, 0.70);
}

/* Tag pill in cyan */
.catalog-card-tag {
  color: #00e5ff !important;
  border-color: rgba(0, 229, 255, 0.55) !important;
  background: rgba(0, 229, 255, 0.08) !important;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

/* Big animated grid backdrop */
.catalog-card-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 70%);
  animation: catalog-grid-shift 12s linear infinite;
}
@keyframes catalog-grid-shift {
  to { background-position: 22px 22px; }
}

/* Orbital rings */
.catalog-card-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.catalog-card-orbits span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.22);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-pulse 6s ease-in-out infinite;
}
.catalog-card-orbits span:nth-child(1) { width: 60px;  height: 60px;  }
.catalog-card-orbits span:nth-child(2) { width: 120px; height: 120px; animation-delay: -1.5s; }
.catalog-card-orbits span:nth-child(3) { width: 180px; height: 180px; animation-delay: -3s; }
.catalog-card-orbits span:nth-child(4) { width: 240px; height: 240px; animation-delay: -4.5s; }
@keyframes orbit-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.04); }
}

/* Center glow pulse */
.catalog-card-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.55), transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(20px);
  animation: catalog-center-pulse 3s ease-in-out infinite;
}
@keyframes catalog-center-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.25); }
}

/* Big emblem in the cover */
.catalog-card-emblem {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(168,85,247,0.18));
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--nx-cyan);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.4);
  backdrop-filter: blur(6px);
}
.catalog-card-emblem svg { width: 24px; height: 24px; }

/* Title and CTA accents */
.catalog-card-title { color: #fff; }
.catalog-card-cta {
  background: linear-gradient(135deg, #00e5ff 0%, #a855f7 100%) !important;
  position: relative;
  overflow: hidden;
}
.catalog-card-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.game-card-catalog:hover .catalog-card-cta::after { left: 130%; }

/* ============================================================
   Admin: two-column grid for OS download URL inputs
   ============================================================ */
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .admin-grid-2 { grid-template-columns: 1fr; }
}
.admin-hint {
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  color: var(--nx-mute);
}
.admin-os-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nx-cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}
.admin-os-tag svg { width: 12px; height: 12px; }

/* ============================================================
   Admin: tabs (Overview / Settings / Credentials)
   ============================================================ */
.admin-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 18px 0 26px;
  border-radius: 14px;
  background: rgba(6, 7, 13, 0.7);
  border: 1px solid var(--nx-border-2);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: var(--nx-mute);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.22s ease;
}
.admin-tab svg { width: 16px; height: 16px; flex: 0 0 auto; }
.admin-tab:hover { color: var(--nx-text); }
.admin-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(43,107,255,0.30), rgba(0,229,255,0.20));
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25), 0 0 0 1px rgba(0,229,255,0.45) inset;
}

.admin-tab-panel { display: none; animation: tab-fade-in 0.25s ease; }
.admin-tab-panel.is-active { display: block; }
@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Admin: stat cards (Today / 7d / 30d / All Time)
   ============================================================ */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.admin-stat-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14,16,32,0.75), rgba(8,9,18,0.92));
  border: 1px solid var(--nx-border);
  transition: border-color 0.25s ease;
}
.admin-stat-card:hover { border-color: rgba(0, 229, 255, 0.35); }
.admin-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--nx-cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.admin-stat-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}
.admin-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.admin-stat-num.admin-stat-accent {
  background: linear-gradient(135deg, #00e5ff, #2b6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.admin-stat-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--nx-mute);
  text-transform: uppercase;
  margin-top: 4px;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.admin-legend {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-mute);
}
.admin-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.legend-dot-visits  { background: linear-gradient(180deg, #2b6bff, #1e40af); }
.legend-dot-uniques { background: linear-gradient(180deg, #00e5ff, #0891b2); }

/* ============================================================
   Admin: daily traffic chart
   ============================================================ */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 200px;
  padding: 6px 0 0;
  border-bottom: 1px dashed var(--nx-border-2);
  margin-bottom: 8px;
}
.chart-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.chart-stack {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.chart-bar {
  width: 100%;
  max-width: 14px;
  border-radius: 3px 3px 0 0;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.chart-bar-visits {
  background: linear-gradient(180deg, rgba(43,107,255,0.95), rgba(43,107,255,0.55));
}
.chart-bar-uniques {
  background: linear-gradient(180deg, rgba(0,229,255,0.95), rgba(0,229,255,0.55));
}
.chart-col:hover .chart-bar { filter: brightness(1.4); }
.chart-x {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--nx-mute);
  white-space: nowrap;
}

/* Hourly chart */
.hour-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 6px 0 0;
  border-bottom: 1px dashed var(--nx-border-2);
  margin-bottom: 8px;
}
.hour-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hour-bar {
  width: 100%;
  max-width: 16px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(168,85,247,0.9), rgba(168,85,247,0.4));
  transition: filter 0.2s ease;
}
.hour-col:hover .hour-bar { filter: brightness(1.4); }
.hour-x {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--nx-mute);
}

/* ============================================================
   Admin: two-column layout for analytics sub-cards
   ============================================================ */
.admin-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.admin-two-col .admin-card-wide { margin-bottom: 0; }

/* ============================================================
   Admin: horizontal-bar Top lists
   ============================================================ */
.admin-bar-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.admin-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  gap: 12px;
  align-items: center;
}
.admin-bar-label {
  font-size: 13.5px;
  color: var(--nx-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.admin-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2b6bff, #00e5ff);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(.2,.7,.2,1);
}
.admin-bar-fill-purple {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}
.admin-bar-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #fff;
  text-align: right;
  white-space: nowrap;
}
.admin-bar-value span {
  color: var(--nx-mute);
  font-size: 10.5px;
  margin-left: 4px;
}

/* ============================================================
   Admin: tables (searches, referrers, top pages, recent events)
   ============================================================ */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-mute);
  padding: 8px 10px;
  border-bottom: 1px dashed var(--nx-border-2);
}
.admin-table tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--nx-text);
  vertical-align: middle;
}
.admin-table tbody tr:hover td { background: rgba(0, 229, 255, 0.03); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table-num {
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
  color: #fff;
  white-space: nowrap;
}
.admin-table-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-table-mute { color: var(--nx-mute); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }

/* Event pills (recent events column) */
.admin-event-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--nx-border-2);
  background: rgba(255, 255, 255, 0.04);
}
.admin-event-download {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.35);
}
.admin-event-page_view {
  color: var(--nx-cyan);
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.30);
}
.admin-event-card_home,
.admin-event-card_catalog {
  color: #c4b5fd;
  background: rgba(168, 85, 247, 0.10);
  border-color: rgba(168, 85, 247, 0.30);
}

.admin-empty {
  padding: 24px;
  text-align: center;
  color: var(--nx-mute);
  font-size: 13px;
  border: 1px dashed var(--nx-border-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.admin-input[type="url"],
.admin-input[type="text"],
.admin-input[type="password"],
select.admin-input {
  font-family: 'JetBrains Mono', monospace;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-stats { gap: 18px; padding: 18px 22px; }
  .stat-num { font-size: 24px; }
  .section-head { margin-bottom: 44px; }
  .cta-card { padding: 36px 24px; }
  .download-block { padding: 32px 22px; }
  .detail-hero { padding: 110px 0 60px; }
  .detail-section { padding: 50px 0; }
}
