/* ============================================================
   GAMES4TITANS — Design System
   Dark gaming aesthetic | Skewed buttons | Fluid typography
   Inspired by maincard.io + CryptoClub v8
   ============================================================ */

/* --- IMPORTS (must be before any rules) --- */
/* Fonts loaded via <link> in header.php for preconnect performance */

.grecaptcha-badge { visibility: hidden !important; }

/* --- CUSTOM PROPERTIES (Design Tokens) --- */
:root {
  /* Colors — Maincard-inspired magenta + blue palette */
  --bg-deep: #08061a;
  --bg-body: #0d0a1f;
  --bg-surface: #141028;
  --bg-card: #1a1432;
  --bg-card-hover: #221a40;
  --bg-elevated: #2a1f4a;

  --magenta: #F21686;
  --magenta-dim: #c91270;
  --magenta-glow: rgba(242, 22, 134, 0.35);
  --blue: #3D48F9;
  --blue-dim: #2d36c9;
  --blue-glow: rgba(61, 72, 249, 0.35);
  --gradient: linear-gradient(135deg, #F21686 0%, #3D48F9 100%);
  --gradient-hover: linear-gradient(135deg, #ff2a9a 0%, #5560ff 100%);
  --gradient-glow: 0 4px 25px rgba(242, 22, 134, 0.3), 0 4px 25px rgba(61, 72, 249, 0.2);

  /* Aliases for backward compat */
  --cyan: #F21686;
  --cyan-dim: #c91270;
  --cyan-glow: rgba(242, 22, 134, 0.35);
  --orange: #3D48F9;
  --orange-glow: rgba(61, 72, 249, 0.35);
  --gold: #ffd700;
  --green: #00ff88;
  --red: #ff3b5c;
  --purple: #a855f7;

  --text-primary: #e8e0f0;
  --text-secondary: #9484b0;
  --text-muted: #6b5a82;
  --text-heading: #ffffff;

  --border: rgba(242, 22, 134, 0.08);
  --border-hover: rgba(242, 22, 134, 0.3);
  --glass: rgba(13, 10, 31, 0.85);

  /* Typography — fluid with clamp() */
  --fs-hero: clamp(2.5rem, 5vw + 1rem, 5rem);
  /* Typescale — recalibrated for Rajdhani (condensed needs ~15% larger)
     Viewport range: 375px (mobile) → 1440px (desktop)
     Formula: clamp(min, slope×100vw + intercept, max) */
  --fs-h1: clamp(2.25rem, 3vw + 1rem, 4rem);       /* 36px → 64px */
  --fs-h2: clamp(1.75rem, 2.5vw + 0.75rem, 3rem);   /* 28px → 48px */
  --fs-h3: clamp(1.4rem, 1.5vw + 0.7rem, 2.1rem);   /* 22px → 34px */
  --fs-h4: clamp(1.15rem, 1vw + 0.6rem, 1.6rem);    /* 18px → 26px */
  --fs-body: clamp(1rem, 0.5vw + 0.75rem, 1.15rem);  /* 16px → 18px */
  --fs-small: clamp(0.875rem, 0.4vw + 0.65rem, 1rem); /* 14px → 16px */
  --fs-xs: clamp(0.8rem, 0.3vw + 0.6rem, 0.9rem);    /* 13px → 14px */

  /* Spacing — fluid */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 1rem);
  --space-md: clamp(1rem, 2vw, 2rem);
  --space-lg: clamp(1.5rem, 3vw, 3rem);
  --space-xl: clamp(2rem, 5vw, 5rem);
  --space-2xl: clamp(3rem, 7vw, 7rem);
  --space-section: clamp(4rem, 10vw, 10rem);

  /* Layout */
  --max-width: 1400px;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Skew */
  --skew: -12deg;
  --skew-reverse: 12deg;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Chakra Petch', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--fs-body);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--text-heading); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Russo One', sans-serif;
  color: var(--text-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-glow {
  text-shadow: 0 0 20px var(--cyan-glow), 0 0 40px rgba(242, 22, 134, 0.1);
}

/* --- LAYOUT --- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section {
  padding: var(--space-section) 0;
}
.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section__eyebrow {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: var(--space-sm);
  display: block;
}
.section__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}
/* Playzia-style outline heading — big empty letters with gradient stroke */
.section__title--outline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: transparent;
  -webkit-text-stroke: 1.5px #E01686;
  background: transparent;
  -webkit-background-clip: unset;
  background-clip: unset;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  position: relative;
}
/* Filled text overlaid for readability — smaller, sits inside the outline */
.section__title--outline span {
  display: block;
  font-size: 0.35em;
  color: #fff;
  -webkit-text-stroke: 0;
  background: none;
  -webkit-background-clip: unset;
  letter-spacing: 0.15em;
  margin-top: 0.3em;
  margin-bottom: -0.5em;
}
.section__desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- BUTTONS (SCI-FI SYNOT-INSPIRED) --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9em 2.2em;
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  transform: skew(var(--skew));
  transition: filter var(--duration-normal), transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
  overflow: visible;
  white-space: nowrap;
}
.btn span {
  display: inline-block;
  transform: skew(var(--skew-reverse));
  position: relative;
  z-index: 2;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity var(--duration-normal);
}
/* Arrow-expand button corners — obtuse angle matching button parallelogram */
.btn .corner-tl, .btn .corner-br {
  position: absolute;
  width: 8px;
  height: 8px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.4;
  transform: skew(0deg);
  transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease, top 0.35s ease, left 0.35s ease, bottom 0.35s ease, right 0.35s ease, border-color 0.35s ease;
}
.btn .corner-tl {
  top: 3px; left: 3px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}
.btn .corner-br {
  bottom: 3px; right: 3px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
}
.btn:hover .corner-tl {
  top: -6px; left: -6px;
  width: 18px;
  height: 18px;
  border-color: #3F47F7;
  opacity: 1;
}
.btn:hover .corner-br {
  bottom: -6px; right: -6px;
  width: 18px;
  height: 18px;
  border-color: var(--cyan);
  opacity: 1;
}

/* Primary — Magenta→Blue gradient */
.btn--primary {
  background: var(--gradient);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    var(--gradient-glow);
}
.btn--primary:hover {
  background: var(--gradient-hover);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.2),
    0 6px 35px rgba(242, 22, 134, 0.45),
    0 6px 35px rgba(61, 72, 249, 0.3);
  transform: skew(var(--skew)) translateY(-2px);
  color: #fff;
}
.btn--primary::before {
  background: var(--gradient-hover);
  opacity: 0;
}
.btn--primary:hover::before { opacity: 1; }

/* Secondary — Blue→Magenta gradient (reversed) */
.btn--fire {
  background: linear-gradient(135deg, #3D48F9 0%, #F21686 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1),
    0 4px 20px rgba(61, 72, 249, 0.3);
}
.btn--fire:hover {
  background: linear-gradient(135deg, #5560ff 0%, #ff2a9a 100%);
  box-shadow:
    0 6px 35px rgba(61, 72, 249, 0.4),
    0 6px 35px rgba(242, 22, 134, 0.3);
  transform: skew(var(--skew)) translateY(-2px);
  color: #fff;
}

/* Ghost — Gradient border effect */
.btn--ghost {
  background: transparent;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-body), var(--bg-body)), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: none;
}
.btn--ghost:hover {
  background-image: linear-gradient(rgba(242, 22, 134, 0.1), rgba(61, 72, 249, 0.1)), var(--gradient-hover);
  box-shadow: 0 0 20px rgba(242, 22, 134, 0.2), 0 0 20px rgba(61, 72, 249, 0.15);
  transform: skew(var(--skew)) translateY(-2px);
  color: #fff;
}

/* Small variant */
.btn--sm {
  padding: 0.6em 1.5em;
  font-size: var(--fs-xs);
}

/* Icon inside button */
.btn__icon {
  margin-right: 0.5em;
  font-size: 1.1em;
}

/* --- NAVBAR --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(6, 9, 17, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-normal), padding var(--duration-normal);
}
.nav.scrolled {
  background: rgba(6, 9, 17, 0.95);
  padding: 0.5rem 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Russo One', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.4rem);
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav__logo img {
  height: clamp(28px, 3vw, 42px);
  width: auto;
}
.nav__logo-mark {
  color: var(--cyan);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.nav__link {
  position: relative;
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: color var(--duration-fast), text-shadow var(--duration-normal);
  padding: 0.5em 0;
}
.nav__link:hover {
  /* letter-spacing expansion removed — line animation is enough */
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  transition: width 0.35s var(--ease-out);
  box-shadow: 0 0 6px var(--magenta);
}
.nav__link:hover::after, .nav__link.active::after {
  width: 100%;
}
.nav__link:hover, .nav__link.active {
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
}

/* Nav dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav__dropdown-menu li { list-style: none; }
.nav__dropdown-menu a {
  display: block;
  padding: 0.6em 1.2em;
  font-size: var(--fs-xs);
  font-family: 'Chakra Petch', sans-serif;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav__dropdown-menu a:hover {
  color: var(--cyan);
  background: rgba(242, 22, 134, 0.06);
}
/* Rich dropdown with heading + description */
.nav__dropdown-menu--rich { min-width: 280px; }
.nav__dropdown-menu--rich a { white-space: normal; padding: 0.7em 1.2em; }
.nav__dropdown-menu--rich strong {
  display: block;
  color: #fff;
  font-size: var(--fs-xs);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.nav__dropdown-menu--rich small {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.3;
}
.nav__dropdown-menu--rich a:hover strong { color: var(--cyan); }

@media (max-width: 900px) {
  .nav__dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav__cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.nav__cart:hover {
  border-color: var(--magenta);
  background: rgba(242, 22, 134, 0.08);
}
.nav__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--orange);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  position: relative;
  z-index: 1001;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal), opacity var(--duration-fast);
}
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__actions .btn { display: none; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    height: 100dvh;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    padding-bottom: env(safe-area-inset-bottom, 2rem);
    gap: 1.5rem;
    border-left: 1px solid var(--border);
    transition: right var(--duration-slow) var(--ease-out);
    z-index: 999;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav__links.open { right: 0; }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: min(100vh, 700px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 73px;
  padding-bottom: 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video {
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,6,26,0.7) 0%, rgba(8,6,26,0.3) 40%, rgba(8,6,26,0.85) 100%),
    linear-gradient(90deg, rgba(8,6,26,0.9) 0%, transparent 50%);
}
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
/* Golden Ratio grid: content (φ) : showcase (1) = 1.618 : 1 */
.hero__grid {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.hero__content {
  position: relative;
  z-index: 3;
  flex: 1.618;
  min-width: 0;
}
.hero__eyebrow {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cyan);
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--gradient);
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}
.hero__title .highlight {
  -webkit-text-stroke: 2px var(--magenta);
  color: transparent;
  filter: drop-shadow(0 0 15px rgba(242, 22, 134, 0.4)) drop-shadow(0 0 30px rgba(61, 72, 249, 0.2));
}
.hero__desc {
  font-size: clamp(1rem, 1.2vw + 0.4rem, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 550px;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,.7), 0 0 20px rgba(0,0,0,.5);
}
.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.hero__stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.hero__stat-num {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--cyan);
}
.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2em;
}

/* Showcase — Golden Ratio right column */
/* --- 3D ORBITAL SHOWCASE --- */
.hero__showcase {
  flex: 1;
  z-index: 2;
  position: relative;
  height: 400px;
  perspective: 1000px;
  perspective-origin: 50% 45%;
  overflow: visible;
  margin-top: -100px;
}
.hero__showcase-mobile { display: none; }

.showcase__orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(var(--orbit-angle, 0deg));
}

.showcase__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 282px;
  margin-left: -95px;
  margin-top: -141px;
  transform-style: preserve-3d;
  --angle: calc(360deg / var(--total) * var(--i));
  --counter: calc(-1 * var(--angle));
  transform: rotateY(var(--angle)) translateZ(260px) rotateY(var(--counter));
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
  text-decoration: none;
  animation: cardEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.15s * var(--i));
}

/* Depth-based styling */
.showcase__card[data-depth="back"] { opacity: 0.35; pointer-events: none; }
.showcase__card[data-depth="mid"] { opacity: 0.65; }
.showcase__card[data-depth="front"] { opacity: 1; }

/* Card inner */
.showcase__card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 22, 134, 0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  background: var(--bg-card);
  transition: box-shadow 0.3s ease;
}
.scard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.scard-back {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: none;
}
.showcase__card.show-back .scard-front { opacity: 0; }
.showcase__card.show-back .scard-back  { opacity: 1; }

/* Specular shine — follows mouse */
.showcase__card-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--shine-x, 50%) var(--shine-y, 30%), rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.08) 20%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: overlay;
}
.showcase__card[data-depth="front"] .showcase__card-shine { opacity: 1; }

/* Holographic edge glow */
@property --edge-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.showcase__card-edge {
  position: absolute;
  inset: -2px;
  z-index: 4;
  pointer-events: none;
  background: conic-gradient(from var(--edge-angle), transparent 0%, rgba(242,22,134,0.6) 10%, rgba(61,72,249,0.6) 20%, transparent 30%, transparent 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: edgeSpin 4s linear infinite;
}
@keyframes edgeSpin { to { --edge-angle: 360deg; } }
.showcase__card[data-depth="front"] .showcase__card-edge { opacity: 1; }

/* Card name overlay */
.showcase__card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2em 0.8em 0.8em;
  background: linear-gradient(to top, rgba(8,6,26,0.9) 0%, transparent 100%);
  z-index: 2;
}
.showcase__card-name {
  font-family: 'Chakra Petch', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floor reflection */
.showcase__card-reflection {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  transform: scaleY(-1);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, transparent 50%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, transparent 50%);
  pointer-events: none;
  filter: blur(2px);
}
.showcase__card-reflection img { width: 100%; height: auto; object-fit: cover; }

/* Hover lift for front card */
.showcase__card.card-lifted .showcase__card-inner {
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 40px rgba(242,22,134,0.3), 0 0 80px rgba(61,72,249,0.2), inset 0 0 0 1px rgba(242,22,134,0.4);
  border-color: rgba(242,22,134,0.5);
}
.showcase__card.card-lifted .scard-front { transform: scale(1.06); }
.showcase__card.card-lifted .showcase__card-shine { opacity: 1; }
.showcase__card.card-lifted .showcase__card-edge { opacity: 1; }

/* Ambient glow pool */
.showcase__glow {
  position: absolute;
  bottom: -15%;
  left: 10%;
  right: 10%;
  height: 35%;
  background: radial-gradient(ellipse at center, rgba(242,22,134,0.12) 0%, rgba(61,72,249,0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse { 0% { opacity: 0.6; } 100% { opacity: 1; } }

/* Entrance animation */
@keyframes cardEntrance {
  0% { opacity: 0; transform: rotateY(var(--angle)) translateZ(550px) rotateY(var(--counter)) rotateX(20deg) scale(0.3); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotateY(var(--angle)) translateZ(260px) rotateY(var(--counter)) rotateX(0) scale(1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .showcase__card { animation: none !important; }
  .showcase__card-edge { animation: none !important; }
  .showcase__glow { animation: none !important; }
}

/* --- RESPONSIVE: HERO --- */
@media (max-width: 1100px) {
  .hero__grid { flex-direction: column; gap: var(--space-lg); }
  .hero__showcase { display: none; }
  .hero__showcase-mobile {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: var(--space-sm);
    position: relative;
    z-index: 2;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-sm);
  }
  .hero__showcase-mobile::-webkit-scrollbar { display: none; }
  .showcase-mobile__track {
    display: flex;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    width: max-content;
  }
  .showcase-mobile__card {
    flex: 0 0 120px;
    overflow: hidden;
    border: 1px solid rgba(242,22,134,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-decoration: none;
    display: block;
    scroll-snap-align: start;
  }
  .showcase-mobile__card img { width: 100%; height: auto; object-fit: cover; display: block; }
  .showcase-mobile__name {
    display: block;
    padding: 0.5em;
    font-family: 'Chakra Petch', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-heading);
    background: var(--bg-card);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: var(--space-md); }
}
@media (max-width: 768px) {
  .hero { padding-top: 80px; padding-bottom: var(--space-sm); align-items: flex-end; }
  .hero__showcase-mobile { margin-top: var(--space-xs); }
  .hero__title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; text-align: center; }
  .features-grid { grid-template-columns: 1fr !important; }
  .stats-bar__inner { flex-wrap: wrap; justify-content: center; gap: var(--space-md); }
}
@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .game-grid--featured { grid-template-columns: repeat(2, 1fr); }
}

/* --- GAME CARDS (TALL / PORTRAIT) --- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}
.game-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal),
    border-color var(--duration-normal);
  cursor: pointer;
  group: game;
}
.game-card:hover {
  border-color: var(--magenta);
  box-shadow:
    0 20px 60px rgba(242, 22, 134, 0.2),
    0 10px 40px rgba(61, 72, 249, 0.15),
    inset 0 0 0 1px rgba(61, 72, 249, 0.3);
}
.game-card__img-wrap {
  position: relative;
  aspect-ratio: 539 / 800;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1040 0%, #0d0a1f 50%, #1a0828 100%);
}
.game-card__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5em;
  text-align: center;
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-small);
  color: rgba(242, 22, 134, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  word-break: break-word;
}
.game-card__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.game-card:hover .game-card__img {
  transform: none;
}
/* 3D card rotation on hover — Eclipse Gaming style */
.game-grid--3d .game-card {
  perspective: 800px;
}
.game-grid--3d .game-card:hover {
  /* disabled — was causing bounce/elastic effect */
}
@keyframes cardFlip3d {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(15deg) scale(1.02); }
  100% { transform: rotateY(0deg); }
}
.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,9,17,0.95) 0%, rgba(6,9,17,0.3) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
}
.game-card:hover .game-card__overlay {
  opacity: 1;
  pointer-events: auto;
}
.game-card__play {
  width: 28%;
  aspect-ratio: 1;
  max-width: 90px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--duration-normal) var(--ease-spring);
  box-shadow: 0 0 30px rgba(242, 22, 134, 0.4), 0 0 30px rgba(61, 72, 249, 0.3);
}
.game-card:hover .game-card__play {
  transform: translate(-50%, -50%) scale(1);
}
.game-card__play svg {
  width: 38%;
  height: 38%;
  fill: #ffffff;
  margin-left: 8%;
}

.game-card__info {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.game-card__name {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3em;
}
.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}
.game-card__category {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--duration-fast);
}
.game-card:hover .game-card__category {
  color: #ffffff;
}
.game-card__tier {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 2px;
  line-height: 1;
}
.game-card__tier--v1 { background: rgba(180,180,180,0.15); color: #b4b4b4; }
.game-card__tier--v2 { background: rgba(192,192,192,0.15); color: #c0c0c0; }
.game-card__tier--v3 { background: rgba(255,215,0,0.15); color: #ffd700; }
.game-card__tier--v4 { background: rgba(180,140,255,0.15); color: #b48cff; }
.game-card__tier--v5 { background: rgba(0,200,255,0.15); color: #00c8ff; }
.game-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.game-card__price {
  font-family: 'Russo One', sans-serif;
  font-size: 0.75rem;
  color: var(--cyan);
  text-shadow: 0 0 4px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.5);
}
.game-card__rent {
  font-family: 'Russo One', sans-serif;
  font-size: 0.7rem;
  color: #b48cff;
  text-shadow: 0 0 4px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.5);
  letter-spacing: 0.06em;
}
/* Game detail pricing box */
.game-detail__pricing {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  /* extra top room so the absolutely-positioned tier badge (DIAMOND etc.)
     doesn't crowd the "Make an Offer" row below it */
  padding-top: 1.9rem;
  margin-bottom: var(--space-md);
}
.game-detail__pricing-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
}
.game-detail__pricing-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.game-detail__pricing-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.game-detail__pricing-sep {
  color: var(--text-muted);
  opacity: 0.4;
}
@media (max-width: 480px) {
  .game-detail__pricing-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .game-detail__pricing-sep {
    display: none;
  }
}
.game-detail__pricing-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.game-detail__pricing-value {
  font-family: 'Russo One', sans-serif;
  font-size: 1rem;
  color: var(--cyan);
}
.game-detail__pricing-link {
  font-size: var(--fs-xs);
  color: #b48cff;
  text-decoration: none;
  display: block;
  margin-top: 4px;
}
.game-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 5;
  font-family: 'Russo One', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3em 0.8em;
  transform: skew(var(--skew));
  color: #fff;
}
.game-card__badge span {
  display: inline-block;
  transform: skew(var(--skew-reverse));
}
.game-card__badge--new { background: var(--green); color: var(--bg-deep); }
.game-card__badge--hot { background: var(--orange); }
.game-card__badge--exclusive { background: var(--purple); }

/* Card image area clickable */
.game-card__img-wrap {
  cursor: pointer;
}

/* Wishlist star */
.game-card__wish {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--duration-fast), transform var(--duration-fast);
  opacity: 0;
}
.game-card:hover .game-card__wish { opacity: 1; }
.game-card__wish:hover {
  background: var(--red);
  transform: scale(1.15);
  border-color: var(--red);
}
.game-card__wish.active {
  opacity: 1;
  background: var(--red);
  border-color: var(--red);
}
.game-card__wish svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}
.game-card__wish.active svg {
  fill: #fff;
}

/* --- PROVIDERS / STATS BAR --- */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}
.stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.stats-bar__item {
  text-align: center;
}
.stats-bar__num {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--text-heading);
}
.stats-bar__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3em;
}

/* --- FEATURES / USP SECTION --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color var(--duration-normal), transform var(--duration-normal);
}
.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.feature-card__header {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: var(--space-sm);
}
.feature-card__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-secondary);
  stroke-width: 1.5;
  fill: none;
}
.feature-card__title {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-h4);
  font-weight: 400;
  margin: 0;
}
.feature-card__desc {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* --- CTA BAND --- */
.cta-band {
  background:
    linear-gradient(135deg, rgba(242, 22, 134, 0.08) 0%, rgba(61, 72, 249, 0.08) 100%);
  border-top: 1px solid rgba(242, 22, 134, 0.12);
  border-bottom: 1px solid rgba(61, 72, 249, 0.12);
  padding: var(--space-xl) 0;
  text-align: center;
}
.cta-band__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}
.cta-band__desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-inline: auto;
}

/* --- GAME FILTERS (Games page) --- */
.filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
/* Game search input — inline with filter buttons */
.game-search {
  position: relative;
}
.game-search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}
.game-search__input {
  width: 160px;
  padding: 0.6em 30px 0.6em 30px;
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), width var(--duration-fast);
}
.game-search__input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}
.game-search__input:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 20px rgba(242, 22, 134, 0.2), 0 0 20px rgba(61, 72, 249, 0.15);
  width: 220px;
}
.game-search__clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--duration-fast);
  padding: 2px 6px;
}
.game-search__clear.visible {
  opacity: 1;
}
@media (max-width: 768px) {
  .game-search {
    margin-left: 0;
    width: 100%;
    flex-basis: 100%;
  }
  .game-search__input {
    width: 100%;
  }
  .game-search__input:focus {
    width: 100%;
  }
}

.filter-btn {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6em 1.2em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--duration-fast);
  transform: skew(var(--skew));
}
.filter-btn span {
  display: inline-block;
  transform: skew(var(--skew-reverse));
}
.filter-btn:hover, .filter-btn.active {
  border-color: transparent;
  color: #fff;
  background-image: linear-gradient(var(--bg-body), var(--bg-body)), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 20px rgba(242, 22, 134, 0.2), 0 0 20px rgba(61, 72, 249, 0.15);
}

/* --- GAME DETAIL PAGE --- */
.game-detail {
  padding-top: 70px;
}
/* Games page hero video — full width */
.games-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
}
.games-hero__video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.games-hero__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  max-height: 65%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(242, 22, 134, 0.6)) drop-shadow(0 0 80px rgba(61, 72, 249, 0.4));
  pointer-events: none;
  transition: none;
}
.games-hero__logo.visible {
  animation: logoAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards, logoPulse 3s ease-in-out 1.4s infinite;
}
@keyframes logoAppear {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); filter: drop-shadow(0 4px 12px rgba(0,0,0,0.9)) drop-shadow(0 0 60px rgba(242, 22, 134, 1)) drop-shadow(0 0 100px rgba(61, 72, 249, 0.8)); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7)) drop-shadow(0 0 20px rgba(242, 22, 134, 0.5)) drop-shadow(0 0 40px rgba(61, 72, 249, 0.3)); }
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7)) drop-shadow(0 0 25px rgba(242, 22, 134, 0.6)) drop-shadow(0 0 50px rgba(61, 72, 249, 0.4)); }
  50%      { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7)) drop-shadow(0 0 50px rgba(242, 22, 134, 1)) drop-shadow(0 0 80px rgba(61, 72, 249, 0.8)); }
}

/* Full-width hero — breaks out of .wrap container */
.game-detail__hero {
  position: relative;
  height: clamp(300px, 45vh, 550px);
  overflow: hidden;
  border-radius: 0;
  margin-bottom: var(--space-xl);
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}
.game-detail__hero-logo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}
.game-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg-body) 0%, rgba(13,10,31,0.4) 50%, rgba(13,10,31,0.2) 100%),
    linear-gradient(90deg, rgba(13,10,31,0.5) 0%, transparent 40%, transparent 60%, rgba(13,10,31,0.5) 100%);
}
/* Two-column: Info LEFT, Screenshots RIGHT */
.game-detail__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-xl);
}
.game-detail__main > * {
  min-width: 0;
  overflow: hidden;
}
.game-detail__info h1 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}
.game-detail__tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.tag {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.3em 0.8em;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag--cyan { border-color: var(--cyan); color: var(--cyan); }
.tag--gli { background: #5342EB; border-color: transparent; color: #fff; }
.tag--gradient {
  background: #DA1D95;
  border-color: transparent;
  color: #fff;
}
.game-detail__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: 0.5em;
  overflow: visible;
}
.game-detail__buttons .btn { padding: 0.9em 1.5em; overflow: visible; }
.game-detail__media {
  position: sticky;
  top: 80px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.game-detail__poster img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* Stats bar (horizontal, below main content) */
.game-detail__stats {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.game-detail__stat {
  text-align: center;
  flex: 1;
  min-width: 100px;
  border-right: 1px solid var(--border);
  padding: 0 var(--space-sm);
}
.game-detail__stat:last-child {
  border-right: none;
}
.game-detail__stat-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3em;
}
.stat-tooltip {
  display: inline-block;
  cursor: help;
  color: var(--magenta);
  font-size: 0.85em;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  position: relative;
}
.stat-tooltip:hover::after,
.stat-tooltip.show::after {
  content: attr(title);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card, #1a1e3a);
  color: var(--text-secondary);
  padding: 0.6em 0.9em;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
  width: 220px;
  text-align: center;
  border: 1px solid var(--magenta);
  z-index: 10;
  pointer-events: none;
}
.game-detail__stat-value {
  display: block;
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-h4);
  color: var(--text-heading);
}

/* Top Wins */
.game-detail__topwins {
  margin-bottom: var(--space-xl);
}
.topwins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.topwins-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.6em 1em;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.topwins-row--first {
  border-color: var(--magenta);
  background: rgba(242, 22, 134, 0.08);
}
.topwins-rank {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  min-width: 28px;
}
.topwins-row--first .topwins-rank {
  color: var(--magenta);
}
.topwins-user {
  flex: 1;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}
.topwins-mult {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-small);
  color: var(--cyan);
  font-weight: 700;
}
.topwins-row--first .topwins-mult {
  color: var(--magenta);
  font-size: var(--fs-body);
}
@media (max-width: 900px) {
  .topwins-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .topwins-grid { grid-template-columns: 1fr; }
}

/* Features + Poster + Radar (3 columns — poster always dead center) */
.game-detail__features-section {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
}
.game-detail__features-col {
  flex: 1;
  min-width: 0;
}
.game-detail__poster-col {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.game-detail__poster-col img {
  width: 240px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
}
.game-detail__features-section .radar-chart {
  flex: 1;
  display: flex;
  justify-content: center;
}

@media (max-width: 1100px) {
  .game-detail__features-section { grid-template-columns: 1fr 280px; }
  .game-detail__poster-col { display: none; }
}
@media (max-width: 900px) {
  .game-detail__main { grid-template-columns: 1fr; }
  .game-detail__media { position: static; }
  .game-detail__stats { flex-wrap: wrap; }
  .game-detail__stat { min-width: 80px; }
  .game-detail__features-section { grid-template-columns: 1fr; }
  .game-detail__poster-col { display: none; }
}
/* --- GAME CTA SECTION --- */
.game-detail__cta {
  position: relative;
  text-align: center;
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) var(--space-lg);
  border-radius: 0;
  border: 1px solid rgba(242, 22, 134, .15);
  background: linear-gradient(160deg, rgba(242,22,134,.04) 0%, rgba(61,72,249,.04) 100%);
  overflow: hidden;
}
.game-detail__cta-glow {
  position: absolute;
  width: 400px; height: 200px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(242,22,134,.08) 0%, transparent 70%);
  pointer-events: none;
}
/* --- GAME MOBILE PREVIEW --- */
.game-detail__mobile-preview {
  margin-top: var(--space-xl);
}
/* --- GAME SCREENSHOT SLIDER --- */
.game-screenshots {
  position: relative;
}
.game-screenshots__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.game-screenshots__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
}
.game-screenshots__slide.active { opacity: 1; }
.game-screenshots__slide img {
  width: 100%; height: 100%; object-fit: contain; background: var(--bg-deep);
}
.game-screenshots__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(8,6,26,0.7); border: 1px solid var(--border); color: #fff; cursor: pointer;
  transition: background 0.2s;
}
.game-screenshots__arrow:hover { background: rgba(242,22,134,0.3); border-color: var(--magenta); }
.game-screenshots__arrow--prev { left: -22px; }
.game-screenshots__arrow--next { right: -22px; }
.game-screenshots__thumbs {
  display: flex; gap: 6px; margin-top: 6px; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: var(--magenta) var(--bg-card);
}
.game-screenshots__thumb {
  flex: 0 0 calc(25% - 5px); border: 2px solid var(--border);
  cursor: pointer; padding: 0; background: var(--bg-card); transition: border-color 0.2s;
  overflow: hidden; display: flex; flex-direction: column; text-align: center;
}
.game-screenshots__thumb img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.game-screenshots__thumb span {
  display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); padding: 3px 2px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-family: 'Chakra Petch', sans-serif;
}
.game-screenshots__thumb.active { border-color: var(--magenta); }
.game-screenshots__thumb.active span { color: var(--magenta); }
.game-screenshots__thumb:hover { border-color: rgba(242,22,134,0.5); }
@media (max-width: 768px) {
  .game-screenshots { aspect-ratio: 4/3; max-height: 300px; }
}

/* Features row: list + radar chart side by side */
.game-detail__features-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.radar-chart {
  flex: 0 0 280px;
  height: 280px;
}
.radar-chart svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 768px) {
  .game-detail__features-row { flex-direction: column; }
  .radar-chart { flex: none; width: 100%; max-width: 300px; margin: 0 auto; }
}

.game-detail__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (max-width: 900px) {
  .game-detail__sidebar {
    position: static;
  }
}

/* --- CONTACT FORM --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9em 1.2em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-body);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(242, 22, 134, 0.2), 0 0 0 6px rgba(61, 72, 249, 0.1);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer__brand-desc {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-top: var(--space-sm);
  line-height: 1.7;
}
.footer__title {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-heading);
  margin-bottom: var(--space-md);
}
.footer__links li { margin-bottom: 0.6em; }
.footer__links a {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  transition: color var(--duration-fast);
}
.footer__links a:hover { color: var(--cyan); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --- WISHLIST SIDEBAR / CART --- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 2000;
  transition: right var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.cart-drawer__title {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-h4);
  font-weight: 700;
}
.cart-drawer__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast);
}
.cart-drawer__close:hover { border-color: var(--cyan); }
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}
.cart-drawer__footer {
  padding: var(--space-md);
  border-top: 1px solid var(--border);
}
.cart-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}
.cart-item__img {
  width: 60px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item__info { flex: 1; }
.cart-item__name {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: 0.3em;
}
.cart-item__remove {
  font-size: var(--fs-xs);
  color: var(--red);
  cursor: pointer;
}
.cart-item__remove:hover { text-decoration: underline; }

/* Backdrop overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}
.overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] {
  transform: translateX(-30px);
}
[data-reveal="left"].revealed {
  transform: translateX(0);
}
[data-reveal="right"] {
  transform: translateX(30px);
}
[data-reveal="right"].revealed {
  transform: translateX(0);
}
[data-reveal="scale"] {
  transform: scale(0.95);
}
[data-reveal="scale"].revealed {
  transform: scale(1);
}

/* --- PARTICLES CANVAS --- */
.particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-muted); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* ============================================================
   VISUAL EFFECTS — Gradient blobs, shine, tilt, noise, marquee
   ============================================================ */

/* --- ANIMATED GRADIENT BLOBS (Background atmosphere) --- */
.blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: blobFloat 20s ease-in-out infinite;
}
.blob--magenta {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: radial-gradient(circle, #F21686 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation-duration: 22s;
}
.blob--blue {
  width: clamp(250px, 35vw, 500px);
  height: clamp(250px, 35vw, 500px);
  background: radial-gradient(circle, #3D48F9 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation-duration: 18s;
  animation-delay: -8s;
}
.blob--purple {
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  background: radial-gradient(circle, #7b2ff2 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation-duration: 25s;
  animation-delay: -12s;
  opacity: 0.08;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.05); }
}

/* --- NOISE GRAIN TEXTURE --- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- SHINE SWEEP (Poster hover effect) --- */
.game-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 60%
  );
  transform: translateX(-150%);
  transition: none;
  pointer-events: none;
}
.game-card:hover .game-card__img-wrap::after {
  transform: translateX(150%);
  transition: transform 0.7s ease;
}

/* --- 3D TILT (JS adds inline transform) --- */
.game-card {
  transform-style: preserve-3d;
  perspective: 800px;
}
.game-card.tilting {
  transition: none !important;
}

/* --- STAGGERED CARD REVEAL --- */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-reveal-stagger].revealed > *:nth-child(1)  { transition-delay: 0.0s; }
[data-reveal-stagger].revealed > *:nth-child(2)  { transition-delay: 0.06s; }
[data-reveal-stagger].revealed > *:nth-child(3)  { transition-delay: 0.12s; }
[data-reveal-stagger].revealed > *:nth-child(4)  { transition-delay: 0.18s; }
[data-reveal-stagger].revealed > *:nth-child(5)  { transition-delay: 0.24s; }
[data-reveal-stagger].revealed > *:nth-child(6)  { transition-delay: 0.30s; }
[data-reveal-stagger].revealed > *:nth-child(7)  { transition-delay: 0.36s; }
[data-reveal-stagger].revealed > *:nth-child(8)  { transition-delay: 0.42s; }
[data-reveal-stagger].revealed > *:nth-child(9)  { transition-delay: 0.48s; }
[data-reveal-stagger].revealed > *:nth-child(10) { transition-delay: 0.54s; }
[data-reveal-stagger].revealed > *:nth-child(n+11) { transition-delay: 0.6s; }
[data-reveal-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- ANIMATED GRADIENT BORDER (on hover, rotates) --- */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 135deg;
  inherits: false;
}
.game-card:hover {
  --border-angle: 135deg;
  animation: borderRotate 3s linear infinite;
  border-color: transparent;
  background: var(--bg-card);
  box-shadow:
    0 20px 60px rgba(242, 22, 134, 0.2),
    0 10px 40px rgba(61, 72, 249, 0.15);
  outline: 2px solid transparent;
  outline-offset: -2px;
}
@supports (background: conic-gradient(red, blue)) {
  .game-card {
    position: relative;
  }
  .game-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--border-angle), #F21686, #3D48F9, #7b2ff2, #F21686);
    opacity: 0;
    transition: opacity var(--duration-normal);
    pointer-events: none;
  }
  .game-card:hover::before {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
  }
}
@keyframes borderRotate {
  to { --border-angle: 495deg; }
}

/* --- GLASSMORPHISM FEATURE CARDS --- */
.feature-card {
  background: rgba(26, 20, 50, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(242, 22, 134, 0.08);
}
.feature-card:hover {
  background: rgba(34, 26, 64, 0.6);
  border-color: rgba(242, 22, 134, 0.2);
  box-shadow:
    0 8px 32px rgba(242, 22, 134, 0.1),
    0 8px 32px rgba(61, 72, 249, 0.08);
}

/* --- MARQUEE STRIP --- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
  background: rgba(242, 22, 134, 0.02);
}
.marquee__track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.marquee__item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- HERO TITLE GLOW PULSE --- */
.hero__title .highlight {
  animation: glowPulse 3s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { filter: drop-shadow(0 0 10px rgba(242, 22, 134, 0.3)) drop-shadow(0 0 25px rgba(61, 72, 249, 0.15)); }
  100% { filter: drop-shadow(0 0 20px rgba(242, 22, 134, 0.5)) drop-shadow(0 0 40px rgba(61, 72, 249, 0.3)); }
}

/* --- SLIDER (Related games) --- */
.slider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.slider__arrows {
  display: flex;
  gap: 0.5rem;
}
.slider__arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  background: var(--bg-card);
}
.slider__arrow:hover {
  border-color: var(--magenta);
  color: #fff;
  background: rgba(242, 22, 134, 0.1);
  box-shadow: 0 0 15px rgba(242, 22, 134, 0.2);
}
.slider {
  overflow: hidden;
  position: relative;
}
.slider__track {
  display: flex;
  gap: var(--space-md);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: grab;
}
.slider__track:active {
  cursor: grabbing;
}
.slider__slide {
  flex: 0 0 calc(25% - var(--space-md) * 3 / 4);
  min-width: 200px;
}
@media (max-width: 1100px) {
  .slider__slide { flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3); }
}
@media (max-width: 768px) {
  .slider__slide { flex: 0 0 calc(50% - var(--space-md) / 2); }
}
@media (max-width: 480px) {
  .slider__slide { flex: 0 0 calc(100% - var(--space-md)); }
}

/* --- RUSSO ONE + CHAKRA PETCH TUNING --- */
.hero__title {
  font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.section__eyebrow, .hero__eyebrow {
  font-family: 'Chakra Petch', sans-serif;
  letter-spacing: 0.25em;
  font-weight: 600;
}
.nav__logo {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.nav__link {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 500;
}
.btn {
  font-family: 'Chakra Petch', sans-serif;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.game-card__name {
  font-family: 'Chakra Petch', sans-serif;
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.game-card__category {
  font-family: 'Chakra Petch', sans-serif;
}
.stats-bar__num {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.stats-bar__label {
  font-family: 'Chakra Petch', sans-serif;
}
.tag {
  font-family: 'Chakra Petch', sans-serif;
}
.filter-btn {
  font-family: 'Chakra Petch', sans-serif;
}
.footer__title {
  font-weight: 400;
}
.feature-card__title {
  font-weight: 400;
}
.cart-drawer__title {
  font-weight: 400;
}
.form-group label {
  font-family: 'Chakra Petch', sans-serif;
}
.slider__arrow {
  font-family: 'Chakra Petch', sans-serif;
}
.marquee__item {
  font-family: 'Chakra Petch', sans-serif;
}

/* --- ACCESSIBILITY: Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .blob { display: none; }
  .particles-canvas { display: none; }
  .marquee__track { animation: none; }
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .preloader { display: none !important; }
  .game-card__img-wrap::after { display: none; }
  html { scroll-behavior: auto; }
}

/* --- 4K / ULTRA-WIDE --- */
@media (min-width: 2560px) {
  :root { --max-width: 1920px; }
  .hero__grid { gap: var(--space-2xl); }
  .hero__content { flex: 1; max-width: 800px; }
  .hero__showcase { flex: 0 0 500px; }
  .hero__title { font-size: 6rem; }
  .hero__desc { font-size: 1.4rem; max-width: 700px; }
  .hero__eyebrow { font-size: 1rem; }
  .hero__showcase-card { box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
}
@media (min-width: 3840px) {
  :root { --max-width: 2200px; }
  .hero__content { max-width: 950px; }
  .hero__showcase { flex: 0 0 650px; }
  .hero__title { font-size: 7rem; }
  .hero__desc { max-width: 850px; }
}

/* --- LEGAL PAGES --- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-primary);
}
.legal-content h2 {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-h3);
  color: var(--text-heading);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}
.legal-content h3 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text-heading);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
  list-style: none;
}
.legal-content ul li {
  position: relative;
  padding-left: var(--space-sm);
  margin-bottom: var(--space-xs);
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: calc(var(--space-sm) * -1);
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--gradient);
  border-radius: 50%;
}
.legal-content a {
  color: var(--magenta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.legal-content a:hover {
  border-bottom-color: var(--magenta);
}
.legal-content strong {
  color: var(--text-heading);
  font-weight: 600;
}
.legal-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--bg-surface);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--magenta);
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
  font-size: var(--fs-small);
}
.legal-content table th,
.legal-content table td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
}
.legal-content table th {
  background: var(--bg-surface);
  color: var(--text-heading);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
}
.legal-content table td {
  background: var(--bg-card);
  color: var(--text-primary);
}
.legal-content table tr:hover td {
  background: var(--bg-card-hover);
}
@media (max-width: 768px) {
  .legal-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .legal-content h2 { margin-top: var(--space-lg); }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9001;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: var(--space-sm) 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.cookie-banner__inner p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin: 0;
}
.cookie-banner__inner a {
  color: var(--cyan);
}
@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- WISHLIST BUTTONS (game detail) --- */
/* Shared SVG style for both hero + inline */
.hero-wish svg, .btn--wishlist-detail svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  transition: fill 0.2s, stroke 0.2s;
}
/* Hero corner icon */
.hero-wish {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.hero-wish:hover { background: var(--magenta); transform: scale(1.1); border-color: var(--magenta); }
.hero-wish.active { background: var(--magenta); border-color: var(--magenta); }
.hero-wish.active svg { fill: #fff; }
/* Inline icon-only button next to Get This Game */
.btn--wishlist-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 0.75em;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transform: skew(var(--skew));
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
}
.btn--wishlist-detail svg { transform: skew(var(--skew-reverse)); }
.btn--wishlist-detail:hover { border-color: var(--magenta); background: rgba(242,22,134,0.1); }
.btn--wishlist-detail.active { border-color: var(--magenta); background: rgba(242,22,134,0.15); }
.btn--wishlist-detail.active svg { fill: var(--magenta); stroke: var(--magenta); }

/* --- RTP VERSIONS MODAL --- */
.rtp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.rtp-modal.active { display: flex; }
.rtp-modal__panel {
  width: 90vw;
  max-width: 520px;
  background: var(--bg-card, #1a1e3a);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.rtp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 1.2em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rtp-modal__header h3 {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-small);
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.rtp-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.rtp-modal__close:hover { color: var(--magenta); }
.rtp-modal__body { padding: 1.2em; }
.rtp-modal__tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6em 0.8em;
  margin-bottom: 0.4em;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--magenta);
}
.rtp-modal__tier-label {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-heading);
  min-width: 90px;
}
.rtp-modal__tier-values {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}
@media (max-width: 480px) {
  .rtp-modal__tier {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3em;
  }
  .rtp-modal__tier-values span { margin-left: 0 !important; }
}

/* --- DEMO POPUP (colorbox-style iframe overlay) --- */
.demo-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.demo-popup.active { display: flex; }
.demo-popup__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90vw;
  max-width: 1440px;
  padding: 0.6em 1em;
  background: var(--bg-card, #1a1e3a);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.demo-popup__title {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-small);
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.demo-popup__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.demo-popup__close:hover { color: var(--magenta); }
.demo-popup__frame {
  width: 90vw;
  max-width: 1440px;
  height: 80vh;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #000;
}
@media (max-width: 768px) {
  .demo-popup__frame { width: 100vw; max-width: 100vw; height: 85vh; border-radius: 0; }
  .demo-popup__bar { width: 100vw; max-width: 100vw; border-radius: 0; }
}

/* --- BLOG CARDS --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.blog-card:hover {
  border-color: var(--magenta);
  transform: translateY(-4px);
}
.blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a0e2e;
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-card:hover .blog-card__img img {
  transform: scale(1.05);
}
.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0e2e 0%, #0d0a1f 50%, #160828 100%);
}
.blog-card__body {
  padding: var(--space-md);
}
.blog-card__date {
  display: block;
  color: var(--magenta);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5em;
  font-family: 'Chakra Petch', sans-serif;
}
.blog-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}
.blog-card__desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.6;
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* --- GAME CARD HOVER BUTTONS (TRY DEMO + MORE INFO) --- */
.game-card__hover-buttons {
  position: absolute;
  bottom: var(--space-md);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-normal), transform var(--duration-normal);
  pointer-events: none;
}
.game-card:hover .game-card__hover-buttons {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.game-card__hover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  font-family: 'Russo One', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-fast);
  min-width: 140px;
}
.game-card__hover-btn--demo {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(242, 22, 134, 0.35);
}
.game-card__hover-btn--demo:hover {
  box-shadow: 0 6px 28px rgba(242, 22, 134, 0.5);
  transform: scale(1.04);
}
.game-card__hover-btn--info {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}
.game-card__hover-btn--info:hover {
  background: #180F26;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
/* Hide big play circle when buttons are showing */
.game-card:hover .game-card__play {
  transform: translate(-50%, -50%) scale(0);
}
/* Image swap to mobile portrait on hover */
.game-card__img--mobile {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
}
.game-card:hover .game-card__img--mobile {
  opacity: 1;
}
@media (max-width: 768px) {
  .game-card__hover-buttons { display: none; }
  .game-card:hover .game-card__play {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* --- FEATURE CARDS (Mascot-style, game detail) --- */
.game-detail__feature-cards {
  margin-bottom: var(--space-xl);
}
.game-detail__feature-cards h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-md);
  text-align: center;
}
.feature-cards-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-sm) 0;
}
.feature-cards-row::-webkit-scrollbar {
  height: 4px;
}
.feature-cards-row::-webkit-scrollbar-track {
  background: var(--bg-card);
}
.feature-cards-row::-webkit-scrollbar-thumb {
  background: var(--magenta);
  border-radius: 2px;
}
.feature-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-md);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-card:hover {
  border-color: var(--magenta);
  box-shadow: 0 4px 20px rgba(242, 22, 134, 0.12);
}
.feature-card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(242, 22, 134, 0.12), rgba(61, 72, 249, 0.12));
  border-radius: 8px;
  flex-shrink: 0;
}
.feature-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--magenta);
  fill: none;
  stroke-width: 2;
}
.feature-card__title {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-small);
  color: var(--text-heading);
}
.feature-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .feature-card { flex: 0 0 160px; }
}

/* --- FOOTER CONTACT BUTTON --- */
.footer__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient);
  color: #fff;
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: box-shadow var(--duration-fast), transform var(--duration-fast);
  box-shadow: 0 4px 20px rgba(242, 22, 134, 0.25);
  margin-top: var(--space-sm);
}
.footer__contact-btn:hover {
  box-shadow: 0 6px 30px rgba(242, 22, 134, 0.4);
  transform: translateY(-2px);
}

/* --- FOOTER CERTIFICATION BADGES --- */
.footer__badges {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.footer__badge-link {
  display: block;
  opacity: 0.7;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}
.footer__badge-link:hover {
  opacity: 1;
  transform: scale(1.05);
}
.footer__badge-link img {
  height: 40px;
  width: auto;
  filter: brightness(0.6) sepia(1) hue-rotate(230deg) saturate(3);
  transition: filter var(--duration-fast);
}
.footer__badge-link:hover img {
  filter: brightness(0.8) sepia(1) hue-rotate(230deg) saturate(3.5);
}

/* --- VOLATILITY BAR CHART ICON --- */
.vol-chart {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}
.vol-chart__bar {
  width: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.15);
  transition: background var(--duration-fast);
}
.vol-chart__bar--active {
  background: var(--orange, #F5A623);
}
/* Bar heights: 5 bars from short to tall */
.vol-chart__bar:nth-child(1) { height: 20%; }
.vol-chart__bar:nth-child(2) { height: 40%; }
.vol-chart__bar:nth-child(3) { height: 60%; }
.vol-chart__bar:nth-child(4) { height: 80%; }
.vol-chart__bar:nth-child(5) { height: 100%; }
/* Stat bar version (bigger) */
.game-detail__stat .vol-chart {
  height: 24px;
  gap: 3px;
  margin-right: 6px;
}
.game-detail__stat .vol-chart__bar {
  width: 5px;
  border-radius: 1.5px;
}
/* Card version (smaller) */
.game-card__vol .vol-chart {
  height: 12px;
  gap: 1.5px;
}
.game-card__vol .vol-chart__bar {
  width: 3px;
}

/* --- DEVICE AVAILABILITY ICONS --- */
.device-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-sm);
}
.device-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}
.device-icon:hover {
  opacity: 1;
}
.device-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.device-icon__label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-weight: 700;
}

/* --- SITE PRELOADER --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-deep, #0d0a1f);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.preloader__logo {
  width: 80px;
  height: 80px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(242, 22, 134, 0.3)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 25px rgba(242, 22, 134, 0.6)) drop-shadow(0 0 50px rgba(61, 72, 249, 0.3)); }
}
.preloader__brand {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  margin-top: var(--space-md);
  letter-spacing: 0.075em;
  word-spacing: 0.1em;
}
.preloader__brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  vertical-align: baseline;
}
.preloader__bar {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: var(--space-lg);
  overflow: hidden;
  border-radius: 2px;
}
.preloader__progress {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.preloader__fact {
  margin-top: var(--space-lg);
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
  min-height: 3em;
  opacity: 0;
  animation: factFadeIn 0.5s ease forwards;
}
@keyframes factFadeIn {
  to { opacity: 1; }
}

/* --- IPHONE FRAME FOR MOBILE PREVIEW --- */
.phone-frame {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}
.phone-frame__bezel {
  position: relative;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 14px 10px;
  box-shadow:
    0 0 0 2px #333,
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone-frame__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #0a0a0a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-frame__screen {
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}
.phone-frame__screen img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  background: #000;
}
.phone-frame__label {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* Landscape frame */
.phone-frame--landscape {
  width: auto;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
}
.phone-frame--landscape .phone-frame__bezel {
  padding: 10px 14px;
  border-radius: 28px;
  z-index: 1;
  isolation: isolate;
}
.phone-frame--landscape .phone-frame__notch {
  display: none;
}
.phone-frame--landscape .phone-frame__screen {
  border-radius: 18px;
  aspect-ratio: auto;
  overflow: hidden;
  position: relative;
  z-index: 0;
}
.phone-frame--landscape .phone-frame__screen img {
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .phone-frame { width: 160px; }
  .phone-frame--landscape { max-width: 300px; }
}

/* --- ENHANCED SCROLL REVEALS --- */
[data-reveal="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal="fade-up"].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade-left"] {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal="fade-left"].revealed {
  opacity: 1;
  transform: translateX(0);
}
[data-reveal="fade-right"] {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal="fade-right"].revealed {
  opacity: 1;
  transform: translateX(0);
}
[data-reveal="zoom-in"] {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal="zoom-in"].revealed {
  opacity: 1;
  transform: scale(1);
}
[data-reveal="warp"] {
  opacity: 0;
  transform: perspective(600px) rotateX(8deg) translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal="warp"].revealed {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg) translateY(0);
}
[data-reveal="blur-in"] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), filter 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal="blur-in"].revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* --- PARALLAX --- */
.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  pointer-events: none;
}

/* --- TYPEWRITER EFFECT --- */
.typewriter {
  display: inline;
  border-right: 2px solid var(--magenta);
  animation: typeCursor 0.7s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}
.typewriter--done {
  border-right-color: transparent;
  animation: none;
}
@keyframes typeCursor {
  0%, 100% { border-right-color: var(--magenta); }
  50% { border-right-color: transparent; }
}

/* --- DEMO POPUP DEVICE TOGGLE --- */
.demo-popup__devices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: var(--space-md);
}
.demo-popup__device-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--duration-fast);
  background: transparent;
}
.demo-popup__device-btn:hover {
  border-color: var(--cyan);
}
.demo-popup__device-btn.active {
  background: rgba(8, 243, 255, 0.12);
  border-color: var(--cyan);
}
.demo-popup__device-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.5;
}
.demo-popup__device-btn.active svg {
  stroke: var(--cyan);
}
.demo-popup__device-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 700;
}
.demo-popup__device-btn.active .demo-popup__device-label {
  color: var(--cyan);
}
.demo-popup__device-btn {
  flex-direction: column;
}
/* Mobile iframe sizing */
.demo-popup__frame--mobile {
  max-width: 390px !important;
  margin: 0 auto;
  height: 80vh;
  border-radius: 8px;
}

/* --- API SECTION (Homepage) --- */
.api-section {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}
.api-section__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}
.api-section__content {
  flex: 1;
  min-width: 0;
}
.api-section__eyebrow {
  display: inline-block;
  font-family: 'Russo One', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--magenta);
  margin-bottom: var(--space-sm);
}
.api-section__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}
.api-section__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 520px;
}
.api-section__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.api-section__feat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}
.api-section__feat svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.api-section__visual {
  flex: 0 0 420px;
  position: relative;
}
.api-section__visual img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
@media (max-width: 900px) {
  .api-section__inner { flex-direction: column-reverse; }
  .api-section__visual { flex: none; width: 100%; max-width: 400px; }
}

/* --- TOP GAMES SHOWCASE (Split layout) --- */
.showcase-split {
  display: flex;
  gap: var(--space-lg);
  min-height: 480px;
}
.showcase-split__main {
  flex: 1;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}
.showcase-split__poster {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.showcase-split__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-split__poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,10,31,0.95) 0%, rgba(13,10,31,0.3) 40%, transparent 70%);
}
.showcase-split__details {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: var(--space-lg);
  z-index: 2;
  pointer-events: none;
  max-width: 60%;
}
.showcase-split__details > * {
  pointer-events: auto;
}
.showcase-split__name {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}
.showcase-split__meta {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}
.showcase-split__tag {
  font-size: var(--fs-xs);
  color: #fff;
  background: rgba(8, 243, 255, 0.2);
  padding: 4px 10px;
  border: 1px solid rgba(8, 243, 255, 0.35);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}
.showcase-split__features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.showcase-split__actions {
  display: flex;
  gap: var(--space-sm);
}
.showcase-split__list {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  align-self: stretch;
}
.showcase-split__list::-webkit-scrollbar { width: 3px; }
.showcase-split__list::-webkit-scrollbar-track { background: var(--bg-card); }
.showcase-split__list::-webkit-scrollbar-thumb { background: var(--magenta); border-radius: 2px; }
.showcase-split__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
  text-align: left;
}
.showcase-split__item:hover {
  border-color: var(--magenta);
}
.showcase-split__item.active {
  border-color: var(--magenta);
  background: rgba(242, 22, 134, 0.06);
}
.showcase-split__item img {
  width: 50px;
  height: 66px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.showcase-split__item-name {
  font-family: 'Russo One', sans-serif;
  font-size: 11px;
  color: var(--text-heading);
  line-height: 1.3;
}
@media (max-width: 768px) {
  .showcase-split { flex-direction: column; }
  .showcase-split__list { flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; flex: none; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .showcase-split__list::after { content: ''; flex: 0 0 1px; } /* prevent trailing gap */
  .showcase-split__item { flex: 0 0 140px; flex-direction: column; text-align: center; scroll-snap-align: start; }
  .showcase-split__item img { width: 100%; height: auto; aspect-ratio: 3/4; }
}

/* --- HERO BACKGROUND SLOW ZOOM --- */
.game-detail__hero .parallax-bg {
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* --- FEATURE CARDS AUTO-SLIDE (JS-driven scroll) --- */
.feature-cards-row--auto {
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.feature-cards-row--auto::-webkit-scrollbar { display: none; }

/* --- LOGO 4↔FOR ANIMATION (auto-cycles every 5s) --- */
.nav__logo-mark {
  display: inline-block;
  position: relative;
  overflow: hidden;
  min-width: 1.1em;
  text-align: center;
  vertical-align: baseline;
  height: 1.8em;
  margin-bottom: -0.4em;
}
.nav__logo-4 {
  display: inline-block;
  transition: transform 0.4s ease, opacity 0.4s ease;
  line-height: 1.2;
  position: relative;
  top: 6px;
}
.nav__logo-for {
  position: absolute;
  left: 50%;
  top: calc(50% + 2px);
  transform: translate(-50%, 120%);
  font-size: 0.35em;
  letter-spacing: 0;
  line-height: 0.65;
  writing-mode: vertical-lr;
  text-orientation: upright;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  text-align: center;
}
.nav__logo-mark.show-for .nav__logo-4,
.nav__logo:hover .nav__logo-mark .nav__logo-4 {
  transform: translateY(-120%);
  opacity: 0;
}
.nav__logo-mark.show-for .nav__logo-for,
.nav__logo:hover .nav__logo-mark .nav__logo-for {
  transform: translate(-50%, calc(-50% + 2px));
  opacity: 1;
}

/* --- SOCIAL MEDIA ICONS --- */
.footer__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast);
}
.footer__social-link:hover {
  border-color: var(--magenta);
  background: rgba(242, 22, 134, 0.1);
  transform: translateY(-2px);
}
.footer__social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
  transition: fill var(--duration-fast);
}
.footer__social-link:hover svg {
  fill: var(--magenta);
}

/* --- FOOTER CONTACT INFO --- */
.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-sm);
}
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color var(--duration-fast);
}
.footer__contact-item:hover {
  color: var(--cyan);
}
.footer__contact-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  transition: stroke var(--duration-fast);
}
.footer__contact-item:hover svg {
  stroke: var(--cyan);
}
.footer__contact-reveal {
  display: none;
  margin-left: 4px;
  color: var(--cyan);
}
.footer__contact-item--reveal:hover .footer__contact-reveal {
  display: inline;
}
.footer__contact-item--reveal:hover span:first-of-type {
  display: none;
}

/* ============================================================
   LIGHT-LEAK GRADIENTS — 2026-05-26
   Atmospheric magenta/blue glow on section backgrounds
   ============================================================ */
#featured { background: radial-gradient(ellipse at 85% 20%, rgba(242,22,134,0.08) 0%, transparent 55%); }
.api-section { background: radial-gradient(ellipse at 10% 50%, rgba(61,72,249,0.1) 0%, transparent 50%); }
.section:nth-of-type(even) { background: radial-gradient(ellipse at 90% 80%, rgba(242,22,134,0.05) 0%, transparent 60%); }
.page-hero { background: radial-gradient(ellipse at 50% 100%, rgba(61,72,249,0.08) 0%, transparent 50%); padding-top: calc(73px + var(--space-xl)); }

/* ============================================================
   MOBILE FIXES — 2026-05-26
   Issues from ref_mobile_fixes_urgent.md + visual audit
   ============================================================ */

/* --- 1. LOGO "4" position fix on mobile --- */
@media (max-width: 768px) {
  .nav__logo-4 {
    top: 3px;
  }
  .nav__logo img {
    height: 26px;
  }
}

/* --- 2. TOP GAMES: hide RTP/type/feature tags on mobile --- */
@media (max-width: 768px) {
  .showcase-split__meta,
  .showcase-split__features {
    display: none;
  }
}

/* --- 3. TOP GAMES: TRY DEMO + MORE INFO buttons 50% size on mobile --- */
@media (max-width: 768px) {
  .showcase-split__actions .btn {
    padding: 0.5em 1em;
    font-size: 0.75rem;
  }
}

/* --- 4. Reduce empty space under FEATURED outline heading --- */
@media (max-width: 768px) {
  .section__title--outline {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: var(--space-sm);
  }
  .section__title--outline span {
    font-size: 0.7rem;
    margin-top: var(--space-xs);
  }
}

/* --- 5. API section: center buttons on mobile --- */
@media (max-width: 768px) {
  .api-section__content > div:last-child {
    justify-content: center;
  }
}

/* --- 6. Game detail: much larger logo on mobile (90% width) + taller hero --- */
@media (max-width: 768px) {
  .game-detail__hero {
    height: clamp(320px, 55vh, 500px);
  }
  .game-detail__hero-logo {
    max-width: 90%;
    max-height: 80%;
    width: 90%;
    height: auto;
  }
}

/* --- 7. Game detail: wishlist button same row as action buttons --- */
@media (max-width: 768px) {
  .game-detail__buttons {
    align-items: center;
  }
  .game-detail__buttons .btn {
    padding: 0.7em 1em;
    font-size: 0.8rem;
  }
  .game-detail__buttons .btn--wishlist-detail {
    padding: 0.7em;
    margin-left: auto;
  }
}

/* --- 8. Footer mobile: centered, symmetric, better spacing --- */
@media (max-width: 480px) {
  .footer__grid {
    text-align: center;
    gap: var(--space-lg);
  }
  .footer__links {
    list-style: none;
    padding: 0;
  }
  .footer__title {
    margin-bottom: var(--space-sm);
  }
  .footer__brand-desc {
    text-align: center;
  }
  .footer__socials {
    justify-content: center;
  }
  .footer__contact-info {
    align-items: center;
  }
  .footer__contact-btn {
    margin: 0 auto;
  }
  .footer__badges {
    justify-content: center;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

/* --- 9. Pricing comparison table: horizontal scroll with sticky first col --- */
@media (max-width: 768px) {
  .pr-compare {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pr-compare table {
    min-width: 500px;
    font-size: 0.8rem;
  }
  .pr-compare th,
  .pr-compare td {
    padding: 0.5em 0.6em;
    white-space: nowrap;
  }
  .pr-compare th:first-child,
  .pr-compare td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 1;
    white-space: normal;
  }
}
