/* ============================================================         DESIGN SYSTEM — CSS Custom Properties      ============================================================ */
:root {
  /* Colors */
  --color-bg: #0a0a0f;
  --color-surface: #13131c;
  --color-surface-2: #1c1c2b;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-text: #e8e8f0;
  --color-muted: #6b6b88;
  --color-accent: #7c6dfa;
  --color-accent-glow: rgba(124, 109, 250, 0.25);
  --color-accent-2: #fa6d9a;
  --color-badge-retro: #f59e42;
  --color-badge-mobile: #42d4f5;
  --color-badge-niche: #7c6dfa;
  --color-badge-ios: #007aff;
  --color-badge-emu: #a855f7;
  --color-danger: #f56d6d;
  --color-success: #42f5a1; /* Typography */
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono:
    "JetBrains Mono", "Cascadia Code", "Fira Code", monospace; /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 5rem; /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px; /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-accent: 0 0 32px var(--color-accent-glow);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.7); /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-med: 280ms;
  --dur-slow: 480ms; /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
} /* ============================================================         RESET & BASE      ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden; /* Safe area for notched phones */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
} /* ============================================================         BACKGROUND ATMOSPHERE      ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 20% -10%,
      rgba(124, 109, 250, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 80% 110%,
      rgba(250, 109, 154, 0.09) 0%,
      transparent 55%
    );
  pointer-events: none;
  z-index: 0;
} /* ============================================================         HEADER / NAV      ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--color-border);
}
nav {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
}
.nav-logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.logo-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-logo-container:hover .logo-svg {
  transform: scale(1.08) rotate(-3deg);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo-sub {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--color-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-left: 8px;
  -webkit-text-fill-color: var(--color-muted);
  display: none;
}
@media (min-width: 500px) {
  .nav-logo-sub {
    display: inline-block;
  }
}
.nav-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover {
  color: var(--color-text);
} /* ============================================================         HERO      ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-10) var(--space-5) var(--space-8);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(124, 109, 250, 0.3);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-5);
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-2)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto var(--space-6);
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.7;
} /* ============================================================         MAIN CONTENT      ============================================================ */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-10);
} /* ============================================================         SECTION HEADERS      ============================================================ */
.showcase-section {
  margin-bottom: var(--space-10);
}
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.section-count {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
} /* ============================================================         GAME GRID — Mobile-first      ============================================================ */
.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
} /* ============================================================         GAME CARD      ============================================================ */
article.game-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
}
article.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-accent);
  border-color: rgba(124, 109, 250, 0.25);
} /* Cover placeholder */
.card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(
    135deg,
    var(--color-surface-2) 0%,
    var(--color-bg) 100%
  );
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
} /* Dark overlay to make labels legible over box art */
.card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.5);
  z-index: 1;
  pointer-events: none;
} /* Subtle dashed inner border */
.card-cover::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  pointer-events: none;
  z-index: 3;
}
.card-cover-icon {
  font-size: 1.75rem;
  opacity: 0.25;
  position: relative;
  z-index: 2;
}
.card-cover-label {
  display: none; /* Hidden visually, but keeps structure */
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.9;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
} /* Card body */
.card-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
} /* Platform badge */
.badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.badge-retro {
  background: rgba(245, 158, 66, 0.15);
  color: var(--color-badge-retro);
  border: 1px solid rgba(245, 158, 66, 0.25);
}
.badge-mobile {
  background: rgba(66, 212, 245, 0.12);
  color: var(--color-badge-mobile);
  border: 1px solid rgba(66, 212, 245, 0.22);
}
.badge-niche {
  background: rgba(124, 109, 250, 0.15);
  color: var(--color-badge-niche);
  border: 1px solid rgba(124, 109, 250, 0.3);
}
.badge-ios {
  background: rgba(0, 122, 255, 0.12);
  color: var(--color-badge-ios);
  border: 1px solid rgba(0, 122, 255, 0.25);
}
.badge-emu {
  background: rgba(168, 85, 247, 0.12);
  color: var(--color-badge-emu);
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.card-description {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin-top: calc(-1 * var(--space-1));
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
} /* Download/Play button */
.btn-play {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: #a855f7; /* Purple */
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
  background: #b970ff;
}
.btn-play:active {
  transform: translateY(0);
}
.btn-play-icon {
  font-size: 1.1rem;
}
.card-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.btn-wishlist,
.btn-share {
  flex: 1;
  padding: var(--space-2);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  transition: opacity var(--dur-fast);
}
.btn-wishlist:hover,
.btn-share:hover {
  background: rgba(255, 255, 255, 0.15);
}
.btn-wishlist {
  background: rgba(255, 255, 255, 0.1);
}
.btn-share {
  background: #3b82f6;
}
.online-status {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.online-dot {
  width: 8px;
  height: 8px;
  background: #42f5a1;
  border-radius: 50%;
  box-shadow: 0 0 8px #42f5a1;
}
.card-dev {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
  margin-top: calc(-1 * var(--space-2));
} /* ============================================================         FOOTER      ============================================================ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-5);
  padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom));
  text-align: center;
}
footer p {
  font-size: 0.8rem;
  color: var(--color-muted);
}
footer strong {
  color: var(--color-text);
} /* ============================================================         MODAL OVERLAY      ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  padding-top: calc(var(--space-5) + env(safe-area-inset-top));
  padding-bottom: calc(
    var(--space-5) + env(safe-area-inset-bottom)
  ); /* Animation */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-med) var(--ease-out),
    visibility var(--dur-med) var(--ease-out);
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
} /* ============================================================         MODAL PANEL      ============================================================ */
.modal {
  position: relative;
  width: 100%;
  max-width: min(520px, 95vw);
  max-height: 90dvh;
  overflow-y: auto;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: var(--space-6); /* Animation */
  transform: translateY(24px) scale(0.97);
  transition: transform var(--dur-med) var(--ease-out);
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
} /* Modal close button */
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--dur-fast),
    color var(--dur-fast);
  line-height: 1;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
} /* Modal icon */
.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
} /* Modal headings & text */
.modal h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: var(--space-5);
}
.modal-game-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
} /* Info notice */
.modal-notice {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}
.modal-notice strong {
  color: var(--color-text);
} /* Form controls */
.config-group {
  margin-bottom: var(--space-4);
}
.config-label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.config-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  cursor: pointer;
}
.server-option {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: all var(--dur-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.server-option:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
.server-option.selected {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.25);
}
.server-info h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.server-info p {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}
.server-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.status-free {
  background: rgba(66, 245, 161, 0.1);
  color: var(--color-success);
}
.status-full {
  background: rgba(245, 109, 109, 0.1);
  color: var(--color-danger);
}
.status-locked {
  background: rgba(245, 158, 66, 0.15);
  color: #f59e42;
}
.server-option.locked {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}
.server-option.locked * {
  pointer-events: none;
} /* Modal action buttons */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.btn-launch {
  width: 100%;
  padding: var(--space-4);
  background: #a855f7;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
  transition:
    opacity var(--dur-fast),
    transform var(--dur-fast);
  margin-top: var(--space-4);
}
.btn-launch:hover {
  transform: scale(1.02);
  background: #b970ff;
}
.btn-launch:active {
  transform: scale(0.98);
}
.btn-proceed {
  width: 100%;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: not-allowed;
  pointer-events: none;
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
} /* Secondary active state (used after verification) */
.btn-proceed.is-active {
  background: rgba(66, 245, 161, 0.15);
  color: var(--color-success);
  border-color: rgba(66, 245, 161, 0.4);
  cursor: pointer;
  pointer-events: auto;
}
.btn-proceed.is-active:hover {
  background: rgba(66, 245, 161, 0.25);
  border-color: var(--color-success);
} /* ============================================================             IFRAME MODAL          ============================================================ */
.modal-iframe {
  max-width: 95vw;
  height: 90dvh;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.modal-iframe iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.modal-iframe .modal-close {
  background: rgba(10, 10, 15, 0.6);
  color: #fff;
  border: none;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.modal-iframe .modal-close:hover {
  background: rgba(10, 10, 15, 0.9);
}
.iframe-status-text {
  position: absolute;
  top: 20px;
  right: 64px;
  background: rgba(10, 10, 15, 0.75);
  color: #fff;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: opacity var(--dur-med) var(--ease-out);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
} /* ============================================================         SCROLL LOCK (applied to <body>)      ============================================================ */
body.modal-open {
  overflow: hidden;
} /* ============================================================         UTILITY      ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
} /* ============================================================         ANIMATION — stagger card fade-in on load      ============================================================ */
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
article.game-card {
  animation: cardIn var(--dur-slow) var(--ease-out) both;
} /* Stagger by index using sibling count */
article.game-card:nth-child(1) {
  animation-delay: 0ms;
}
article.game-card:nth-child(2) {
  animation-delay: 60ms;
}
article.game-card:nth-child(3) {
  animation-delay: 120ms;
} /* ============================================================             DARK/LIGHT MODE          ============================================================ */
body.light-theme {
  --color-bg: #f4f4f8;
  --color-surface: #ffffff;
  --color-surface-2: #e8e8f0;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-text: #1a1a24;
  --color-muted: #5a5a70;
  --color-accent: #6b5aed;
  --color-accent-glow: rgba(107, 90, 237, 0.2);
}
body.light-theme .hero h1,
body.light-theme .section-header h2,
body.light-theme .card-title,
body.light-theme .modal h2,
body.light-theme .server-info h4 {
  color: #1a1a24;
} /* Modal panels adapt to light theme */
body.light-theme .modal {
  background: var(--color-surface);
  border-color: var(--color-border);
}
body.light-theme .btn-download,
body.light-theme .btn-direct {
  background: rgba(107, 90, 237, 0.12);
  color: var(--color-accent);
  border-color: rgba(107, 90, 237, 0.3);
}
body.light-theme .card-cover::before {
  background: rgba(255, 255, 255, 0.1);
} /* Config dropdowns (FPS, resolution) */
body.light-theme .config-select {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--color-text);
} /* Server option cards */
body.light-theme .server-option {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}
body.light-theme .server-option:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.2);
}
body.light-theme .server-option.selected {
  background: rgba(107, 90, 237, 0.08);
  border-color: rgba(107, 90, 237, 0.4);
} /* Wishlist button */
body.light-theme .btn-wishlist {
  background: rgba(0, 0, 0, 0.07);
  color: var(--color-text);
}
body.light-theme .btn-wishlist:hover,
body.light-theme .btn-share:hover {
  background: rgba(0, 0, 0, 0.12);
} /* Online status strip */
body.light-theme .online-status {
  background: rgba(0, 0, 0, 0.04);
}
.btn-theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-muted);
  transition:
    transform var(--dur-fast),
    color var(--dur-fast);
  padding: 0 var(--space-2);
}
.btn-theme-toggle:hover {
  color: var(--color-text);
  transform: scale(1.15);
} /* ============================================================             NEW BADGE & DIRECT LINK          ============================================================ */
.badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f56d6d, #fa6d9a);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(245, 109, 109, 0.4);
  animation: pulse-new 2s infinite;
}
@keyframes pulse-new {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(245, 109, 109, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(245, 109, 109, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(245, 109, 109, 0.4);
  }
}
.btn-direct {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(124, 109, 250, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(124, 109, 250, 0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.btn-direct:hover {
  background: rgba(124, 109, 250, 0.22);
  border-color: var(--color-accent);
  color: #fff;
  transform: scale(1.01);
}
body.light-theme .btn-direct:hover {
  background: var(--color-accent);
  color: #fff;
} /* ============================================================             FLOATING BACKGROUND PARTICLES          ============================================================ */
#bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-glyph {
  position: absolute;
  bottom: -60px;
  color: var(--color-accent);
  opacity: 0;
  font-size: 1.4rem;
  line-height: 1;
  animation: floatUp linear forwards;
  will-change: transform, opacity;
}
body.light-theme .bg-glyph {
  color: var(--color-accent);
}
@media (min-width: 768px) {
  .bg-glyph {
    filter: blur(0.4px);
  }
  body.light-theme .bg-glyph {
    filter: blur(0.3px);
  }
}
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  8% {
    opacity: var(--glyph-peak-opacity, 0.12);
  }
  80% {
    opacity: var(--glyph-peak-opacity, 0.12);
  }
  100% {
    opacity: 0;
    transform: translateY(calc(-100vh - 80px))
      rotate(var(--glyph-rotation, 120deg)) scale(var(--glyph-end-scale, 0.6));
  }
} /* Welcome/First-visit Modal styles */
.welcome-info-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: left;
  transition:
    border-color var(--dur-fast),
    transform var(--dur-fast);
}
.welcome-info-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
body.light-theme .welcome-info-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .welcome-info-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}
.welcome-info-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}
body.light-theme .welcome-info-icon {
  background: rgba(0, 0, 0, 0.05);
}
.welcome-info-content {
  flex: 1;
}
.welcome-info-content h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-family: var(--font-body);
}
body.light-theme .welcome-info-content h4 {
  color: #1a1a24;
}
.welcome-info-content p {
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.45;
} /* ============================================================             WISHLIST BUTTON STATES          ============================================================ */
.btn-wishlist.is-wishlisted {
  background: rgba(250, 109, 154, 0.18);
  color: #fa6d9a;
  border: 1px solid rgba(250, 109, 154, 0.35);
}
.btn-wishlist.is-wishlisted:hover {
  background: rgba(250, 109, 154, 0.28);
}
body.light-theme .btn-wishlist.is-wishlisted {
  background: rgba(250, 109, 154, 0.12);
  color: #d63e7a;
  border-color: rgba(250, 109, 154, 0.3);
} /* ============================================================             TOAST NOTIFICATION          ============================================================ */
#tgr-toast {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1c1c2b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8e8f0;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
#tgr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
body.light-theme #tgr-toast {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1a1a24;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
} /* Custom Queue Styles */
.queue-header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.queue-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: queue-pulse 1.8s infinite ease-in-out;
}
@keyframes queue-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}
.queue-stats-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.queue-stats-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-2)
  );
}
.queue-stat-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.queue-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}
.queue-stat-value.wait-time {
  color: var(--color-accent-2);
} /* Live Console Log */
.queue-console {
  background: #07070a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: left;
  height: 110px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  color: #72f29b;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}
.queue-console-title {
  font-size: 0.65rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-align: left;
  display: flex;
  justify-content: space-between;
}
.console-line {
  margin-bottom: 2px;
  opacity: 0.85;
  animation: console-fade 0.3s ease-out forwards;
}
@keyframes console-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
} /* Progress Bar */
.queue-progress-wrapper {
  margin-bottom: 1.75rem;
}
.queue-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.queue-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.queue-progress-bar-fill {
  height: 100%;
  width: 3.8%;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-2)
  );
  border-radius: var(--radius-full);
  transition: width 1s ease;
} /* Bypass section */
.queue-bypass-card {
  background: radial-gradient(
    circle at top right,
    rgba(124, 109, 250, 0.12),
    rgba(17, 17, 17, 0.9)
  );
  border: 1px dashed rgba(124, 109, 250, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
  text-align: center;
  position: relative;
}
.bypass-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e42, #fa6d9a);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(250, 109, 154, 0.3);
}
.bypass-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  margin-top: 4px;
}
.bypass-desc {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.bypass-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  color: var(--color-text);
}
.bypass-benefit-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bypass-benefit-item span.icon {
  color: #42f5a1;
}
.btn-skip-pulse {
  width: 100%;
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-accent), #a855f7);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 109, 250, 0.4);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  animation: skip-glow 2s infinite alternate;
}
.btn-skip-pulse:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(124, 109, 250, 0.6);
}
@keyframes skip-glow {
  0% {
    box-shadow: 0 0 8px rgba(124, 109, 250, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.7);
  }
} /* Light mode adjustments */
body.light-theme .queue-stats-container {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--color-border);
}
body.light-theme .queue-stat-value {
  color: var(--color-text);
}
body.light-theme .queue-stat-value.wait-time {
  color: var(--color-accent);
}
body.light-theme .queue-console {
  background: #fdfdfd;
  border-color: var(--color-border);
  color: #1b6329;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
}
body.light-theme .queue-bypass-card {
  background: radial-gradient(
    circle at top right,
    rgba(124, 109, 250, 0.08),
    rgba(255, 255, 255, 0.95)
  );
  border-color: rgba(124, 109, 250, 0.25);
}
body.light-theme .bypass-title {
  color: var(--color-text);
} /* ============================================================    PREMIUM CARD HOVER AFFORDANCE - clickable to detail page ============================================================ */
.showcase-section[aria-labelledby="modern-games-heading"] .game-card {
  cursor: pointer;
  position: relative;
  border-color: rgba(124, 109, 250, 0.15);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(124, 109, 250, 0.08);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.showcase-section[aria-labelledby="modern-games-heading"] .game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-2)
  );
  z-index: 1;
}
.showcase-section[aria-labelledby="modern-games-heading"] .game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 109, 250, 0.25);
  border-color: rgba(168, 85, 247, 0.45);
}

/* ============================================================
    PWA / ADD TO HOME SCREEN PROMPT FOR IOS & GENERAL
============================================================ */
.tgr-install-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  background: rgba(18, 18, 29, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body);
  color: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.tgr-install-prompt.is-visible {
  transform: translateY(0);
}
.tgr-install-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.tgr-install-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tgr-install-app-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 109, 250, 0.3);
}
.tgr-install-app-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.tgr-install-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #fff;
  font-family: var(--font-display);
}
.tgr-install-text p {
  font-size: 0.8rem;
  color: var(--color-muted);
}
.tgr-install-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background var(--dur-fast);
}
.tgr-install-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.tgr-install-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 1.1rem;
}
.tgr-install-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: #e2e2e9;
  line-height: 1.4;
}
.tgr-install-step-num {
  width: 24px;
  height: 24px;
  background: rgba(124, 109, 250, 0.15);
  border: 1px solid rgba(124, 109, 250, 0.3);
  color: var(--color-accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tgr-install-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 6px;
  font-weight: 600;
  color: #fff;
}
.tgr-install-step-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
body.light-theme .tgr-install-prompt {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
  color: #1a1a24;
}
body.light-theme .tgr-install-text h3 {
  color: #1a1a24;
}
body.light-theme .tgr-install-close {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a24;
}
body.light-theme .tgr-install-close:hover {
  background: rgba(0, 0, 0, 0.1);
}
body.light-theme .tgr-install-steps {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}
body.light-theme .tgr-install-step {
  color: #2e2e3a;
}
body.light-theme .tgr-install-step-num {
  background: rgba(124, 109, 250, 0.08);
  border-color: rgba(124, 109, 250, 0.2);
}
body.light-theme .tgr-install-step-icon {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a24;
}

/* ============================================================
    FAQ SECTION
============================================================ */
.faq-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 109, 250, 0.04) 40%, transparent 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-10) var(--space-5);
}
.faq-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-4);
}
.faq-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-3);
  line-height: 1.15;
}
.faq-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.faq-subtitle {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.faq-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-fast);
}
.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color var(--dur-fast);
}
.faq-question:hover {
  color: var(--color-accent-2);
}
.faq-question[aria-expanded="true"] {
  color: var(--color-accent-2);
}
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(124, 109, 250, 0.1);
  border: 1px solid rgba(124, 109, 250, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-accent);
  transition:
    transform 0.3s var(--ease-out),
    background var(--dur-fast),
    color var(--dur-fast);
  line-height: 1;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--color-accent-2);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer.is-open {
  max-height: 400px;
}
.faq-answer p {
  padding-bottom: var(--space-5);
  color: var(--color-muted);
  font-size: 0.93rem;
  line-height: 1.75;
}
.faq-answer p a {
  color: var(--color-accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-answer p strong {
  color: var(--color-text);
  font-weight: 600;
}
/* Light theme FAQ */
body.light-theme .faq-section {
  background: linear-gradient(180deg, transparent 0%, rgba(124, 109, 250, 0.03) 40%, transparent 100%);
  border-color: var(--color-border);
}
body.light-theme .faq-title {
  color: var(--color-text);
}
body.light-theme .faq-question {
  color: var(--color-text);
}
body.light-theme .faq-question:hover,
body.light-theme .faq-question[aria-expanded="true"] {
  color: var(--color-accent);
}

/* ============================================================
    iOS ADD TO HOME SCREEN — Button & Modal
============================================================ */
.btn-add-ios {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn-add-ios:hover {
  background: rgba(124, 109, 250, 0.15);
  border-color: rgba(124, 109, 250, 0.4);
  color: var(--color-accent-2);
  transform: translateY(-1px);
}
body.light-theme .btn-add-ios {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--color-muted);
}
body.light-theme .btn-add-ios:hover {
  background: rgba(124, 109, 250, 0.1);
  border-color: rgba(124, 109, 250, 0.35);
  color: var(--color-accent);
}

/* ATH Modal */
.ath-modal {
  max-width: 420px;
  text-align: center;
  padding-top: 0;
  overflow: hidden;
}
.ath-cover-wrap {
  position: relative;
  height: 160px;
  margin: 0 -1.75rem 1.25rem;
  overflow: hidden;
}
.ath-cover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.55) blur(1px);
  transform: scale(1.04);
}
.ath-cover-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, var(--color-surface));
}
.ath-game-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 6px;
  margin-top: -4px;
}
.ath-heading {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}
body.light-theme .ath-heading { color: var(--color-text); }
.ath-sub {
  font-size: 0.83rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Steps */
.ath-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
body.light-theme .ath-steps { background: rgba(0, 0, 0, 0.02); }
.ath-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.45;
}
.ath-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(124, 109, 250, 0.15);
  border: 1px solid rgba(124, 109, 250, 0.3);
  color: var(--color-accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ath-step-text { flex: 1; }
.ath-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 3px 5px;
  margin: 0 2px;
  vertical-align: middle;
}
.ath-share-icon svg { width: 13px; height: 13px; fill: #fff; }
body.light-theme .ath-share-icon svg { fill: #333; }
body.light-theme .ath-share-icon { background: rgba(0, 0, 0, 0.07); }
.ath-plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 2px 7px;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 2px;
  vertical-align: middle;
  color: #fff;
}
body.light-theme .ath-plus-icon { background: rgba(0, 0, 0, 0.07); color: #333; }

/* Home screen preview */
.ath-preview-label {
  font-size: 0.72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}
.ath-home-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.ath-home-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-color: #2a2a3a;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: ath-icon-pop 0.5s var(--ease-out) both;
}
@keyframes ath-icon-pop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.ath-home-icon-label {
  font-size: 0.72rem;
  color: var(--color-text);
  font-weight: 500;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.ath-done-btn {
  width: 100%;
  margin-top: 0;
  background: linear-gradient(135deg, var(--color-accent), #a855f7) !important;
}

/* ============================================================
   MOBILE PERFORMANCE OVERRIDES
   Reduce GPU/CPU pressure on small screens
============================================================ */
@media (max-width: 767px) {
  /* Reduce expensive backdrop-filter blurs on mobile */
  header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Disable will-change on cards — avoids creating a GPU layer for every card at once */
  .game-card,
  .card-cover,
  .card-overlay {
    will-change: auto;
  }

  /* Simplify card hover transforms on mobile (tap devices) */
  .game-card:hover {
    transform: none;
  }

  /* Reduce hero section animation weight */
  .hero-badge,
  .hero-title,
  .hero-description {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   REDUCED MOTION OVERRIDES
   Respect the OS-level "reduce motion" setting
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bg-glyph {
    display: none;
  }
}

/* ============================================================
   SEARCH BAR
============================================================ */
.search-container {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--color-muted);
  pointer-events: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.search-input-wrap:focus-within .search-icon {
  color: var(--color-accent);
}
.search-input {
  width: 100%;
  padding: 14px 100px 14px 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color var(--dur-med) var(--ease-out),
    background var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}
.search-input::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}
.search-input:focus {
  border-color: rgba(124, 109, 250, 0.5);
  background: rgba(124, 109, 250, 0.06);
  box-shadow: 0 0 0 4px rgba(124, 109, 250, 0.12), 0 4px 24px rgba(0, 0, 0, 0.2);
}
/* Remove default search X in WebKit */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.search-kbd {
  position: absolute;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-muted);
  pointer-events: none;
  transition: opacity var(--dur-fast);
  line-height: 1.4;
}
.search-input:focus ~ .search-kbd,
.search-input:not(:placeholder-shown) ~ .search-kbd {
  opacity: 0;
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast);
}
.search-clear:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-text);
  transform: scale(1.1);
}
.search-results-count {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.search-results-count .search-highlight {
  color: var(--color-accent);
  font-weight: 700;
}

/* Search filtering — hide/show cards and sections */
.game-card.search-hidden {
  display: none !important;
}
.showcase-section.search-section-hidden {
  display: none !important;
}

/* No results empty state */
.search-no-results {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  color: var(--color-muted);
}
.search-no-results-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}
.search-no-results h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.search-no-results p {
  font-size: 0.9rem;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Light theme overrides for search */
body.light-theme .search-input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #1a1a2e;
}
body.light-theme .search-input:focus {
  background: rgba(124, 109, 250, 0.06);
  border-color: rgba(124, 109, 250, 0.4);
  box-shadow: 0 0 0 4px rgba(124, 109, 250, 0.1), 0 4px 24px rgba(0, 0, 0, 0.08);
}
body.light-theme .search-input::placeholder {
  color: #888;
}
body.light-theme .search-kbd {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.04);
  color: #888;
}
body.light-theme .search-clear {
  background: rgba(0, 0, 0, 0.06);
  color: #888;
}
body.light-theme .search-clear:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #333;
}

/* ============================================================
    LIVE ACTIVITY POPUP
============================================================ */
.live-activity-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(20, 20, 35, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(120%) scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  pointer-events: none;
  max-width: 320px;
}

.live-activity-popup.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.live-activity-thumbnail {
  width: 44px;
  height: 44px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.live-activity-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.live-activity-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #42f5a1;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-activity-badge .live-dot {
  width: 6px;
  height: 6px;
  background: #42f5a1;
  border-radius: 50%;
  box-shadow: 0 0 8px #42f5a1;
  animation: live-pulse-dot 1.5s infinite;
}

@keyframes live-pulse-dot {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.live-activity-text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #e2e2e9;
  margin: 0;
  line-height: 1.35;
}

.live-activity-text strong {
  color: #fff;
  font-weight: 700;
}

.live-activity-text span {
  color: var(--color-accent-2, #a855f7);
  font-weight: 600;
}

/* Light theme adjustments */
body.light-theme .live-activity-popup {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.light-theme .live-activity-text {
  color: #2e2e3a;
}

body.light-theme .live-activity-text strong {
  color: #1a1a24;
}

body.light-theme .live-activity-badge {
  color: #1b6329;
}

body.light-theme .live-activity-badge .live-dot {
  background: #1b6329;
  box-shadow: 0 0 6px #1b6329;
}

/* ============================================================
   ANNOUNCEMENT BANNER
============================================================ */
.announcement-banner {
  background: linear-gradient(90deg, rgba(124, 109, 250, 0.15), rgba(250, 109, 154, 0.15));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 101; /* Above sticky header */
  font-size: 0.85rem;
  font-family: var(--font-body);
  gap: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: max-height 0.3s var(--ease-out), padding 0.3s var(--ease-out), opacity 0.3s var(--ease-out), border-bottom-color 0.3s var(--ease-out);
  max-height: 80px;
  overflow: hidden;
}

.announcement-banner.dismissed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-color: transparent;
  pointer-events: none;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.announcement-badge {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(124, 109, 250, 0.3);
}

.announcement-text {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.announcement-text strong {
  color: #fff;
  font-weight: 700;
}

.announcement-close {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--dur-fast) var(--ease-out);
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-close:hover {
  color: var(--color-text);
}

/* Light theme adjustments */
body.light-theme .announcement-banner {
  background: linear-gradient(90deg, rgba(124, 109, 250, 0.08), rgba(250, 109, 154, 0.08));
  border-bottom-color: rgba(0, 0, 0, 0.08);
  color: #1a1a24;
}

body.light-theme .announcement-text strong {
  color: #000;
}

body.light-theme .announcement-close {
  color: #6b6b88;
}

body.light-theme .announcement-close:hover {
  color: #1a1a24;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .announcement-banner {
    padding-right: 44px; /* Room for absolute positioned close button */
  }
  .announcement-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
}


