/**
 * Arcade hub landing styles — matches terminal / keyboard-arcade reference.
 * Sitewide arcade shell (body.page-arcade). Not used on page-game.
 */

body.page-arcade {
  --arcade-bg: #0a0612;
  --arcade-surface: #161022;
  --arcade-surface-2: #1c162c;
  --arcade-pink: #ff3cac;
  --arcade-pink-dim: rgba(255, 60, 172, 0.55);
  --arcade-text: #f5f2fa;
  --arcade-muted: rgba(210, 200, 230, 0.62);
  --arcade-dim: rgba(170, 160, 195, 0.42);
  --arcade-border: rgba(255, 255, 255, 0.08);
  --arcade-radius: 14px;
  --font-arcade: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;

  font-family: var(--font-arcade);
  background: var(--arcade-bg);
  color: var(--arcade-text);
}

body.page-arcade::before {
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(120, 40, 140, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(80, 20, 100, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #0c0716 0%, #0a0612 50%, #080410 100%);
  animation: none;
  filter: none;
  transform: none;
}

body.page-arcade::after {
  opacity: 0.22;
  animation: none;
}

/* Hub header + tabs */
body.page-arcade #header.hub-header,
body.page-arcade #header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(10, 6, 18, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  backdrop-filter: blur(14px);
  grid-template-columns: none;
}

body.page-arcade #portalRoot {
  padding-top: 64px;
  animation: arcade-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes arcade-fade-up {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.page-arcade #siteNameLink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 1002;
}

body.page-arcade #siteName {
  font-family: var(--font-arcade);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--arcade-text);
}

body.page-arcade .site-logo {
  height: 50px;
}

body.page-arcade #siteName .logo-z {
  color: var(--arcade-pink);
}

body.page-arcade .hub-tabs,
body.page-arcade #siteNav.hub-tabs {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
  position: static;
  width: auto;
  height: auto;
  transform: none;
  background: transparent;
  border: none;
  padding: 0;
  overflow: visible;
}

body.page-arcade .hub-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.page-arcade .hub-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 16px -2px rgba(236, 72, 153, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

body.page-arcade .hub-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.65), 0 8px 20px -6px rgba(168, 85, 247, 0.5);
  filter: brightness(1.1);
}

body.page-arcade .hub-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--arcade-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

body.page-arcade .hub-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.page-arcade .hub-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.2));
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.45), 0 0 12px -2px rgba(236, 72, 153, 0.3);
}

body.page-arcade .hub-menu-toggle,
body.page-arcade #header .menu-toggle {
  display: none;
  z-index: 1002;
}

body.page-arcade #headerBtns {
  display: none !important;
}

@media (max-width: 767px) {
  body.page-arcade .hub-tabs,
  body.page-arcade #siteNav.hub-tabs {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    width: min(300px, 86vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    margin-left: 0;
    padding: calc(64px + 16px) 16px 24px;
    background: #120c1c;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.page-arcade.nav-open .hub-tabs,
  body.page-arcade.nav-open #siteNav.hub-tabs {
    transform: translateX(0);
  }

  body.page-arcade .hub-tab {
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1rem;
  }

  body.page-arcade .hub-menu-toggle,
  body.page-arcade #header .menu-toggle {
    display: inline-flex;
  }
}
body.page-arcade .site-container {
  max-width: min(100%, calc(100vw - 32px));
  padding: 24px clamp(16px, 2.5vw, 28px) 64px;
}

body.page-arcade .site-layout {
  max-width: none;
  display: block;
}

/* ==========================================================================
   Hero — Next-Gen Cyber Arcade Header
   ========================================================================== */
body.page-arcade .arcade-hero {
  text-align: center;
  padding: clamp(48px, 8vh, 96px) 0 clamp(36px, 5vh, 60px);
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Badge Cluster */
body.page-arcade .hero-badge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  min-height: 38px;
}

body.page-arcade .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

body.page-arcade .pill-live {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 16px -4px rgba(34, 197, 94, 0.3);
}

body.page-arcade .pill-live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: liveDotPulse 2s infinite ease-in-out;
}

body.page-arcade .pill-meta {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.page-arcade .arcade-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arcade-pink);
  margin-bottom: 14px;
  height: 22px;
  min-height: 22px;
  line-height: 22px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-arcade .arcade-hero.is-visible .arcade-eyebrow {
  opacity: 1;
  transform: translateY(0);
}

body.page-arcade .arcade-hero h1 {
  font-family: var(--font-arcade);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
  color: var(--arcade-text);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em 0.35em;
}

body.page-arcade .arcade-hero .hero-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-arcade .arcade-hero.is-visible .hero-line:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

body.page-arcade .arcade-hero.is-visible .hero-line:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

body.page-arcade .arcade-hero .hero-line.accent {
  background: linear-gradient(105deg, #ff3cac 0%, #ff8fd6 38%, #c084fc 75%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 60, 172, 0.35));
}

body.page-arcade .arcade-lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  color: rgba(220, 210, 240, 0.78);
  max-width: 36rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-arcade .arcade-hero.is-visible .arcade-lead {
  opacity: 1;
  transform: translateY(0);
}

body.page-arcade .arcade-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--arcade-pink);
  border-radius: 1px;
  box-shadow: 0 0 10px var(--arcade-pink);
  animation: arcade-blink 1.05s step-end infinite;
}

@keyframes arcade-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero Action CTAs */
body.page-arcade .hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-arcade .arcade-hero.is-visible .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

body.page-arcade .hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-arcade);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

body.page-arcade .hero-cta-btn.primary {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px -6px rgba(236, 72, 153, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.page-arcade .hero-cta-btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px -6px rgba(236, 72, 153, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.1);
}

body.page-arcade .hero-cta-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f2fa;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

body.page-arcade .hero-cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px -8px rgba(168, 85, 247, 0.4);
}

body.page-arcade .hero-cta-btn.tertiary {
  background: rgba(120, 50, 180, 0.15);
  color: #e9d5ff;
  border: 1px solid rgba(192, 132, 252, 0.25);
}

body.page-arcade .hero-cta-btn.tertiary:hover {
  background: rgba(120, 50, 180, 0.3);
  border-color: rgba(192, 132, 252, 0.5);
  transform: translateY(-3px);
}

/* Metrics Bar */
body.page-arcade .hero-metrics-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 14px 28px;
  margin-top: 36px;
  background: rgba(18, 12, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-arcade .arcade-hero.is-visible .hero-metrics-bar {
  opacity: 1;
  transform: translateY(0);
}

body.page-arcade .metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

body.page-arcade .metric-val {
  font-family: var(--font-arcade);
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.page-arcade .metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--arcade-dim);
}

body.page-arcade .metric-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 680px) {
  body.page-arcade .hero-metrics-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 14px;
    width: 100%;
  }
  body.page-arcade .metric-sep {
    display: none;
  }
}

/* Collection grid — sized for multiple games */
body.page-arcade .arcade-games {
  margin: 0 0 56px;
  max-width: 100%;
  width: 100%;
}

body.page-arcade .section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arcade-dim);
  margin-bottom: 14px;
  opacity: 0;
  animation: arcade-fade-up 0.5s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-arcade .game-grid-hub,
body.page-arcade #gameGrid.arcade-grid, body.page-arcade #gameLibrary.arcade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 22px;
}

@media (min-width: 640px) {
  body.page-arcade #gameGrid.arcade-grid, body.page-arcade #gameLibrary.arcade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  body.page-arcade #gameGrid.arcade-grid, body.page-arcade #gameLibrary.arcade-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

/* When only one card, keep collection card size (not full-width giant) */
body.page-arcade #gameGrid.arcade-grid:has(.arcade-card:only-child),
body.page-arcade #gameLibrary.arcade-grid:has(.arcade-card:only-child) {
  max-width: 340px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  body.page-arcade #gameGrid.arcade-grid:has(.arcade-card:only-child),
body.page-arcade #gameLibrary.arcade-grid:has(.arcade-card:only-child) {
    max-width: 360px;
  }
}

body.page-arcade .arcade-card {
  --card-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(180deg, #1a1428 0%, #12101c 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.35s var(--card-ease), border-color 0.3s ease, box-shadow 0.35s ease;
  opacity: 0;
  animation: arcade-fade-up 0.55s 0.5s var(--card-ease) forwards;
}

body.page-arcade .arcade-card:nth-child(2) {
  animation-delay: 0.58s;
}
body.page-arcade .arcade-card:nth-child(3) {
  animation-delay: 0.66s;
}

body.page-arcade .arcade-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(255, 60, 172, 0.55);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 60, 172, 0.2),
    0 0 36px rgba(255, 60, 172, 0.18);
}

body.page-arcade .arcade-card:active {
  transform: translateY(-3px) scale(1.005);
}

body.page-arcade .arcade-card.is-soon {
  filter: saturate(0.75);
}

body.page-arcade .arcade-card.is-soon:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

body.page-arcade .arcade-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  outline: none;
}

body.page-arcade .arcade-card-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--arcade-pink);
}

body.page-arcade .arcade-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c0814;
}

body.page-arcade .arcade-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 16, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

body.page-arcade .arcade-card:hover .arcade-thumb-overlay {
  opacity: 1;
  background: rgba(8, 4, 16, 0.45);
}

body.page-arcade .arcade-thumb-cta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--arcade-pink);
  box-shadow: 0 8px 24px rgba(255, 60, 172, 0.4);
  transform: translateY(8px) scale(0.96);
  transition: transform 0.3s var(--card-ease);
}

body.page-arcade .arcade-card:hover .arcade-thumb-cta {
  transform: translateY(0) scale(1);
}

body.page-arcade .arcade-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 6, 18, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

body.page-arcade .arcade-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--card-ease), filter 0.35s ease;
}

body.page-arcade .arcade-card:hover .arcade-thumb img {
  transform: scale(1.08);
  filter: brightness(1.08) saturate(1.1);
}

body.page-arcade .arcade-card-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

body.page-arcade .arcade-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

body.page-arcade .arcade-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 60, 172, 0.14);
  border: 1px solid rgba(255, 60, 172, 0.3);
  color: var(--arcade-pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

body.page-arcade .arcade-live {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 8px;
  border-radius: 999px;
}

body.page-arcade .arcade-soon-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arcade-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 999px;
}

body.page-arcade .arcade-card h3 {
  font-family: var(--font-arcade);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--arcade-text);
  margin: 0 0 6px;
  transition: color 0.2s ease;
}

body.page-arcade .arcade-card:hover h3 {
  color: #fff;
}

body.page-arcade .arcade-tagline {
  font-size: 0.82rem !important;
  color: var(--arcade-pink) !important;
  margin: 0 0 8px !important;
  font-weight: 560;
  line-height: 1.35 !important;
}

body.page-arcade .arcade-desc,
body.page-arcade .arcade-card p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--arcade-muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-arcade .arcade-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-arcade .arcade-meta {
  font-size: 0.7rem;
  color: var(--arcade-dim);
  letter-spacing: 0.02em;
}

body.page-arcade .arcade-play {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arcade-pink);
  white-space: nowrap;
  transition: transform 0.25s var(--card-ease), letter-spacing 0.25s ease, color 0.2s ease;
}

body.page-arcade .arcade-card-link:hover .arcade-play {
  transform: translateX(4px);
  letter-spacing: 0.12em;
  color: #ff7ad1;
}

body.page-arcade .arcade-play.is-disabled {
  color: var(--arcade-dim);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* Ad slot â dashed reserved box */
body.page-arcade .ad-content.ad-infeed,
body.page-arcade #adContent {
  max-width: 728px;
  min-height: 90px;
  margin: 8px auto 56px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  animation: none;
  padding: 12px;
}

body.page-arcade #adContent.ad-pending::before,
body.page-arcade #adContent.ad-loading::before {
  content: "ADVERTISEMENT";
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--arcade-dim);
}

body.page-arcade #adContent.ad-pending::after,
body.page-arcade #adContent.ad-loading::after {
  content: "Your ad could load here\A Reserved 728x90 placement - loads below the fold, never over gameplay.";
  white-space: pre-line;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--arcade-dim);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 12px;
  pointer-events: none;
}

body.page-arcade #adContent.ad-filled::after,
body.page-arcade #adContent.ad-filled::before {
  display: none;
}

body.page-arcade #adContent.is-empty {
  display: flex;
  min-height: 90px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: transparent;
}

body.page-arcade #adContent.is-empty::before {
  content: "ADVERTISEMENT";
  display: block;
}

body.page-arcade #adContent.is-empty::after {
  content: "Your ad could load here\A Reserved 728x90 placement - loads below the fold, never over gameplay.";
  white-space: pre-line;
}

/* Hide long SEO sections on hub â€” keep DOM for SEO via visually-hidden optional; we keep collapsed strip */
body.page-arcade .hub-trust,
body.page-arcade .hub-guides,
body.page-arcade .section-head {
  display: none;
}

/* Arcade Footer — rich, visible, accessible */
body.page-arcade #footer {
  margin-top: auto;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(10, 14, 22, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px clamp(20px, 4vw, 48px) 24px;
}

body.page-arcade .footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

body.page-arcade .footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 860px) {
  body.page-arcade .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

body.page-arcade .footer-brand {
  display: block;
  max-width: 360px;
}

body.page-arcade .footer-logo {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: #f1f3f8;
  text-decoration: none;
  letter-spacing: -0.02em;
}

body.page-arcade .footer-tagline {
  display: block;
  font-size: 0.875rem;
  color: rgba(160, 170, 195, 0.7);
  margin-top: 8px;
  line-height: 1.5;
}

body.page-arcade .footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px 36px;
}

@media (min-width: 768px) {
  body.page-arcade .footer-columns {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 32px 48px;
  }
}

body.page-arcade .footer-col h4,
body.page-arcade .footer-col .footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 12px;
}

body.page-arcade .footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-arcade .footer-col a {
  color: rgba(210, 215, 230, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

body.page-arcade .footer-col a:hover {
  color: #00f0ff;
  transform: translateX(2px);
}

body.page-arcade .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-arcade .arcade-footer-note {
  font-size: 0.8rem;
  color: rgba(160, 170, 195, 0.6);
  margin: 0;
}

body.page-arcade .footer-copy {
  font-size: 0.8rem;
  color: rgba(160, 170, 195, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  body.page-arcade #portalRoot,
  body.page-arcade .arcade-card,
  body.page-arcade .section-label {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body.page-arcade .arcade-eyebrow,
  body.page-arcade .arcade-hero .hero-line,
  body.page-arcade .arcade-lead {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  body.page-arcade .arcade-cursor {
    animation: none;
  }
  body.page-arcade .arcade-card:hover {
    transform: none;
  }
  body.page-arcade .arcade-card:hover .arcade-thumb img {
    transform: none;
  }
}

/*  Content pages (Guides / FAQ / About / etc.) in arcade shell  */
body.page-arcade .ad-top {
  display: none;
}

body.page-arcade .site-layout {
  display: block;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

body.page-arcade .reading-column,
body.page-arcade .content-centre:not(.layout-wide) {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 28px) 48px;
}

body.page-arcade .content-centre.layout-wide {
  max-width: 100%;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 28px) 48px;
  width: 100%;
}

body.page-arcade .breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--arcade-dim);
  margin: 0 0 18px;
}

body.page-arcade .breadcrumbs a {
  color: var(--arcade-muted);
  text-decoration: none;
}

body.page-arcade .breadcrumbs a:hover {
  color: var(--arcade-pink);
}

body.page-arcade .breadcrumbs span[aria-current] {
  color: var(--arcade-text);
}

body.page-arcade .page-hero {
  margin: 0 0 28px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

body.page-arcade .page-hero h1,
body.page-arcade .content-block h2,
body.page-arcade .content-block h3 {
  font-family: var(--font-arcade);
  color: var(--arcade-text);
  letter-spacing: -0.02em;
}

body.page-arcade .page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
}

body.page-arcade .page-summary,
body.page-arcade .page-hero .lead {
  color: var(--arcade-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0;
}

body.page-arcade .content-block {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  color: var(--arcade-muted);
}

body.page-arcade .content-block h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--arcade-border);
}

body.page-arcade .content-block h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

body.page-arcade .content-block h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.4rem 0 0.5rem;
  color: var(--arcade-text);
}

body.page-arcade .content-block p,
body.page-arcade .content-block li {
  color: var(--arcade-muted);
  line-height: 1.65;
}

body.page-arcade .content-block a {
  color: var(--arcade-pink);
  text-decoration: none;
}

body.page-arcade .content-block a:hover {
  text-decoration: underline;
}

body.page-arcade .content-block strong {
  color: var(--arcade-text);
  font-weight: 600;
}

body.page-arcade .guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 10px;
}

body.page-arcade .guide-list li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--arcade-border);
  border-radius: var(--arcade-radius);
  background: rgba(22, 16, 34, 0.65);
  color: var(--arcade-muted);
  line-height: 1.5;
}

body.page-arcade .guide-list a {
  color: var(--arcade-text);
  font-weight: 600;
}

body.page-arcade .guide-list a:hover {
  color: var(--arcade-pink);
}

body.page-arcade .ad-content.ad-infeed,
body.page-arcade #adContent {
  margin: 20px 0 28px;
}

body.page-arcade .page-hero + .ad-content,
body.page-arcade .page-hero + #adContent {
  margin-top: 8px;
}

/* ==========================================================================
   Main Collection Landing Page Components
   ========================================================================== */

/* Section Headers */
body.page-arcade .section-head-hub {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-arcade .section-head-hub.center {
  text-align: center;
  align-items: center;
  max-width: 800px;
  margin-inline: auto;
}

body.page-arcade .section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arcade-pink);
}

body.page-arcade .section-title-hub {
  font-family: var(--font-arcade);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0;
}

body.page-arcade .section-subtitle-hub {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--arcade-muted);
  max-width: 600px;
  margin: 0;
}

/* 1. Training Pillars Grid */
body.page-arcade .hub-pillars-section {
  margin: 88px auto 56px;
  max-width: 100%;
  width: 100%;
}

body.page-arcade .hub-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  body.page-arcade .hub-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.page-arcade .hub-pillars-grid {
    grid-template-columns: 1fr;
  }
}

body.page-arcade .pillar-card {
  background: rgba(22, 16, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(16px);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-arcade .pillar-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(168, 85, 247, 0.35);
}

body.page-arcade .pillar-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-arcade .pillar-card h3 {
  margin: 0;
  font-family: var(--font-arcade);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
}

body.page-arcade .pillar-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--arcade-muted);
  flex: 1;
}

body.page-arcade .pillar-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

/* 2. Speed Benchmarks Section */
body.page-arcade .hub-benchmarks-section {
  margin: 88px auto 56px;
  max-width: 100%;
  width: 100%;
}

body.page-arcade .benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  body.page-arcade .benchmarks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.page-arcade .benchmarks-grid {
    grid-template-columns: 1fr;
  }
}

body.page-arcade .benchmark-card {
  background: rgba(18, 12, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

body.page-arcade .benchmark-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

body.page-arcade .benchmark-card.tier-beginner::before {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

body.page-arcade .benchmark-card.tier-intermediate::before {
  background: linear-gradient(90deg, #34d399, #10b981);
}

body.page-arcade .benchmark-card.tier-advanced::before {
  background: linear-gradient(90deg, #f59e0b, #ec4899);
}

body.page-arcade .benchmark-card.tier-master::before {
  background: linear-gradient(90deg, #ec4899, #a855f7);
}

body.page-arcade .benchmark-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.7);
}

body.page-arcade .tier-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.page-arcade .tier-emoji {
  font-size: 1.3rem;
}

body.page-arcade .tier-name {
  font-family: var(--font-arcade);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

body.page-arcade .tier-wpm {
  font-family: var(--font-arcade);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

body.page-arcade .tier-wpm small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--arcade-dim);
  font-family: var(--font-mono);
}

body.page-arcade .tier-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--arcade-muted);
}

/* 3. Guides Preview Strip */
body.page-arcade .hub-guides-preview-section {
  margin: 88px auto 56px;
  max-width: 100%;
  width: 100%;
}

body.page-arcade .guides-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 860px) {
  body.page-arcade .guides-preview-grid {
    grid-template-columns: 1fr;
  }
}

body.page-arcade .guide-preview-card {
  background: rgba(22, 16, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-arcade .guide-preview-card:hover {
  border-color: rgba(236, 72, 153, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 18px 36px -12px rgba(236, 72, 153, 0.3);
}

body.page-arcade .guide-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff3cac;
  background: rgba(255, 60, 172, 0.12);
  border: 1px solid rgba(255, 60, 172, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
}

body.page-arcade .guide-preview-card h3 {
  margin: 0;
  font-family: var(--font-arcade);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
}

body.page-arcade .guide-preview-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--arcade-muted);
  flex: 1;
}

body.page-arcade .guide-read-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--arcade-dim);
  margin-top: 6px;
}

body.page-arcade .view-all-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--arcade-pink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

body.page-arcade .view-all-link:hover {
  color: #fff;
  transform: translateX(3px);
}

/* 4. Bottom Launch CTA Banner */
body.page-arcade .hub-bottom-cta {
  margin: 88px auto 56px;
  max-width: 100%;
  width: 100%;
  position: relative;
}

body.page-arcade .cta-inner {
  background: linear-gradient(135deg, rgba(35, 18, 55, 0.9) 0%, rgba(18, 12, 32, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 56px) 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(168, 85, 247, 0.3);
}

body.page-arcade .cta-inner h2 {
  font-family: var(--font-arcade);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 12px;
}

body.page-arcade .cta-inner p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  color: var(--arcade-muted);
  max-width: 540px;
  margin: 0 auto 28px;
}

body.page-arcade .cta-inner p a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}

body.page-arcade .cta-inner p a:hover {
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

body.page-arcade .cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

