/* =========================================================
   Wandering Nurse Games — Premium Design System v2
   ========================================================= */

:root {
  /* Refined palette: deeper indigo, warmer accent, considered greys */
  --primary: #5b54e8;
  --primary-dark: #3d35d6;
  --primary-darker: #1e1b4b;
  --primary-light: #eef0ff;
  --primary-50: #f5f6ff;
  --accent: #f59e0b;
  --accent-dark: #b45309;
  --accent-light: #fef3c7;
  --success: #10b981;
  --danger: #ef4444;

  --ink: #0a0a1a;
  --ink-soft: #1a1a2e;
  --text: #2a2a3a;
  --text-muted: #525273;
  --text-subtle: #767695;
  --text-faint: #9999b3;
  --text-inverse: #ffffff;

  --bg: #ffffff;
  --bg-soft: #fafafd;
  --bg-muted: #f3f3f8;
  --bg-dark: #0a0a1a;
  --bg-card: #ffffff;

  --border: #ececf3;
  --border-soft: #f3f3f8;
  --border-strong: #d0d0e0;

  --shadow-xs: 0 1px 2px rgba(10, 10, 26, 0.04);
  --shadow-sm: 0 1px 3px rgba(10, 10, 26, 0.04), 0 1px 2px rgba(10, 10, 26, 0.03);
  --shadow-md: 0 6px 16px -4px rgba(10, 10, 26, 0.06), 0 2px 6px -1px rgba(10, 10, 26, 0.03);
  --shadow-lg: 0 20px 40px -10px rgba(10, 10, 26, 0.10), 0 8px 16px -4px rgba(10, 10, 26, 0.04);
  --shadow-xl: 0 30px 60px -15px rgba(10, 10, 26, 0.18);
  --shadow-glow: 0 0 0 4px rgba(91, 84, 232, 0.12);
  --shadow-card-hover: 0 24px 48px -16px rgba(91, 84, 232, 0.18), 0 4px 8px rgba(10, 10, 26, 0.04);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --max-width: 1200px;
  --max-width-narrow: 760px;
  --max-width-wide: 1320px;
  --header-height: 76px;

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --gradient-primary: linear-gradient(135deg, #6c63ff 0%, #5b54e8 50%, #3d35d6 100%);
  --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-text: linear-gradient(120deg, #c7c4ff 0%, #f5d9ff 35%, #ffd9a3 70%, #fff0c2 100%);
  --gradient-dark: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #2a2253 100%);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

ul, ol { padding-left: 1.25rem; }
ul.unstyled, .nav-list, .footer-legal, .footer-column ul { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.75rem); margin-bottom: 1rem; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem); margin-bottom: 0.75rem; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.18rem; margin-bottom: 0.5rem; font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 1rem; margin-bottom: 0.5rem; font-weight: 600; }
p { margin-bottom: 1rem; }

::selection { background: var(--primary); color: #fff; }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: var(--ink);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: var(--max-width-narrow); }
.container-wide { max-width: var(--max-width-wide); }

main { flex: 1; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.94rem;
  border: 0;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: -0.005em;
  position: relative;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(91, 84, 232, 0.4), 0 4px 12px -2px rgba(91, 84, 232, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(91, 84, 232, 0.4), 0 12px 24px -4px rgba(91, 84, 232, 0.4);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-muted); }
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 8px 16px -4px rgba(0,0,0,0.08);
}
.btn-white:hover { background: var(--ink); color: #fff; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(10, 10, 26, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.025em;
  font-family: var(--font-display);
  white-space: nowrap;
}
.logo:hover { color: var(--primary); }
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px -2px rgba(91, 84, 232, 0.5);
  position: relative;
}
.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 50%);
  border-radius: inherit;
}
.main-nav { flex: 1; }
.nav-list {
  display: flex;
  gap: 0.1rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.93rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.nav-list a:hover { color: var(--ink); background: var(--bg-muted); }
.nav-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.header-cta { display: inline-flex; }

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-menu-toggle:hover { background: var(--bg-muted); }
.hamburger-line {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 840px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open .nav-list { flex-direction: column; gap: 0.25rem; align-items: stretch; }
  .main-nav.open .nav-list a { display: block; padding: 0.9rem 1rem; font-size: 1rem; }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(at 25% 30%, rgba(108, 99, 255, 0.45) 0px, transparent 45%),
    radial-gradient(at 78% 25%, rgba(236, 72, 153, 0.32) 0px, transparent 45%),
    radial-gradient(at 50% 90%, rgba(245, 158, 11, 0.22) 0px, transparent 45%);
  filter: blur(50px);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, transparent, rgba(10, 10, 26, 0.5)),
    linear-gradient(to bottom, transparent 70%, rgba(10, 10, 26, 0.6));
  z-index: -1;
  pointer-events: none;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4vw + 1rem, 4.5rem);
  max-width: 920px;
  margin: 0 auto 1.4rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.hero .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero p.lead {
  text-align: center;
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.25rem);
  max-width: 660px;
  margin: 0 auto 2.4rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 740px;
  margin: 4rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-stat { text-align: center; }
.hero-stat .n {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}
.hero-stat .l {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.6rem;
  display: block;
  font-weight: 600;
}

/* Hero "preview" tag pills decorating the hero */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  backdrop-filter: blur(8px);
}
.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* --- Section utilities --- */
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 28px;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--primary);
  transform: translateY(-50%);
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}

/* --- Game cards (premium) --- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  transition: all var(--transition-spring);
  position: relative;
  text-decoration: none;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(91, 84, 232, 0.2);
  color: var(--text);
}
.game-card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.game-card-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}
.game-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.04));
  pointer-events: none;
}
.game-card-thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 26, 0.5);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}
.game-card:hover .play-overlay { opacity: 1; }
.play-overlay-pill {
  background: #fff;
  color: var(--ink);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-md);
}
.game-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.game-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.game-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-subtle);
}
.game-card-time {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 500;
}
.game-card-time::before {
  content: '·';
  margin-right: 0.5rem;
  color: var(--text-faint);
}
.game-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.18rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.game-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}
.game-card-cta {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}
.game-card:hover .game-card-cta { gap: 10px; }

/* --- Category chips --- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
}
.cat-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  transition: all var(--transition);
  font-size: 0.95rem;
}
.cat-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}
.cat-chip .cat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cat-chip-meta { display: flex; flex-direction: column; gap: 2px; }
.cat-chip-meta .count {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 500;
}

/* --- Feature grid --- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 84, 232, 0.2);
}
.feature .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--ink); }
.feature p { color: var(--text-muted); font-size: 0.92rem; margin: 0; line-height: 1.55; }

/* --- Article cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cards-grid.cards-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 84, 232, 0.25);
  color: var(--text);
}
.article-card .date {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-bottom: 0.7rem;
  display: block;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.article-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.article-card .read-more {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.article-card:hover .read-more { gap: 8px; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
  letter-spacing: -0.005em;
}
.breadcrumb a { color: var(--text-subtle); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--text-faint); }

/* --- Game page layout --- */
.game-page {
  padding: 1.5rem 0 4rem;
}
.game-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.game-hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  margin-bottom: 0.6rem;
}
.game-hero .game-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.game-hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.game-frame {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.game-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 1.1rem 1.4rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.stat-pill .label {
  color: var(--text-subtle);
  font-weight: 500;
  font-size: 0.78rem;
}
.stat-pill .val {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.game-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.game-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.game-btn.secondary { background: var(--accent); }
.game-btn.secondary:hover { background: var(--accent-dark); }
.game-btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.game-btn.ghost:hover { background: var(--bg-muted); color: var(--ink); }

.game-canvas-area {
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}
.game-status {
  text-align: center;
  min-height: 1.75rem;
  margin-top: 0;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 0 1rem 1.25rem;
  font-size: 0.95rem;
}

.game-article {
  max-width: var(--max-width-narrow);
  margin: 3.5rem auto 0;
  padding: 0 1rem;
}
.game-article h2 { margin-top: 2.5rem; font-size: 1.5rem; color: var(--ink); }
.game-article h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.game-article p { color: var(--text); line-height: 1.75; font-size: 1rem; }
.game-article ul, .game-article ol { margin: 1rem 0 1rem 1.5rem; color: var(--text); }
.game-article li { margin-bottom: 0.4rem; }
.game-article pre {
  background: var(--bg-muted);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink);
}

/* --- Long-form article --- */
.article-body {
  max-width: var(--max-width-narrow);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.article-body h1 { font-size: clamp(1.85rem, 2vw + 1rem, 2.6rem); margin-bottom: 0.6rem; }
.article-body > .meta {
  color: var(--text-subtle);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 500;
}
.article-body > .meta .dot { color: var(--text-faint); }
.article-body h2 {
  margin-top: 2.5rem;
  color: var(--ink);
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}
.article-body h3 { margin-top: 1.75rem; font-size: 1.18rem; }
.article-body p {
  color: var(--text);
  line-height: 1.78;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}
.article-body ul, .article-body ol { margin: 1rem 0 1rem 1.5rem; color: var(--text); }
.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { color: var(--text); }
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink);
  font-style: normal;
  font-size: 1.08rem;
  line-height: 1.55;
}
.article-body img {
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

/* --- Tables --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.93rem;
}
.data-table th, .data-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.data-table tr:last-child td { border-bottom: 0; }

/* --- Footer --- */
.site-footer {
  margin-top: 5rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 10% 0%, rgba(91, 84, 232, 0.25) 0px, transparent 40%),
    radial-gradient(at 90% 100%, rgba(236, 72, 153, 0.12) 0px, transparent 40%);
  pointer-events: none;
}
.site-footer > * { position: relative; }
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.92rem; max-width: 320px; line-height: 1.55; }
.footer-column h4 {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.footer-column ul li { margin-bottom: 0.65rem; list-style: none; }
.footer-column ul a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer-column ul a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-legal { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; padding: 0; margin: 0; }
.footer-legal a { color: rgba(255, 255, 255, 0.6); font-size: 0.84rem; }

/* --- Forms --- */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.form-control, input.form-control, textarea.form-control, select.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: all var(--transition);
}
.form-control:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
textarea.form-control { min-height: 140px; resize: vertical; }

/* --- Cookie consent --- */
.cookie-consent {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 480px;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 100;
  transform: translateY(calc(100% + 2rem));
  transition: transform var(--transition-spring);
  border: 1px solid rgba(255,255,255,0.08);
}
.cookie-consent.visible { transform: translateY(0); }
.cookie-consent p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 1rem; line-height: 1.55; }
.cookie-consent a { color: #c7c4ff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* --- CTA banner --- */
.cta-banner {
  background: var(--gradient-dark);
  color: #fff;
  padding: 4rem 2rem;
  border-radius: var(--radius-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 20% 30%, rgba(91, 84, 232, 0.4) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(236, 72, 153, 0.25) 0px, transparent 50%);
  z-index: -1;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.85rem;
  font-size: clamp(1.5rem, 1vw + 1.25rem, 2.25rem);
}
.cta-banner p {
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

/* --- Marquee logos / featured row --- */
.featured-strip {
  background: var(--bg-soft);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.featured-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  color: var(--text-subtle);
  font-size: 0.85rem;
}
.featured-strip-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--text-faint);
}
.featured-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .game-canvas-area { padding: 1rem; }
  .game-toolbar { padding: 0.85rem; }
  .article-body { padding: 0 1.25rem; }
  .article-body p { font-size: 1rem; }
  .cta-banner { padding: 2.5rem 1.25rem; }
}

/* Subtle entrance animation removed for stability */
