/* ============================================
   1PGD EXPLORER — MAIN DESIGN SYSTEM
   Version: 1.0 | Author: Nalin Sharma
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --deep-navy: #0E1530;
  --navy-mid: #111827;
  --navy-card: #1a2340;
  --navy-elevated: #1e2a4a;
  --warm-white: #F4F1E8;
  --warm-white-dim: #e8e4d9;
  --arcade-cyan: #00E0FF;
  --arcade-cyan-dim: rgba(0,224,255,0.15);
  --arcade-cyan-glow: rgba(0,224,255,0.4);
  --arcade-magenta: #FF2E88;
  --arcade-magenta-dim: rgba(255,46,136,0.15);
  --gold-rsm: #FFC93C;
  --gold-dim: rgba(255,201,60,0.15);
  --muted-green: #3DDC97;
  --muted-green-dim: rgba(61,220,151,0.15);
  --text-primary: #F4F1E8;
  --text-secondary: rgba(244,241,232,0.6);
  --text-muted: rgba(244,241,232,0.35);
  --border-subtle: rgba(244,241,232,0.08);
  --border-card: rgba(244,241,232,0.12);

  /* Canvas section colors */
  --aspiration-color: #4FC3F7;
  --sensory-color: #A5D6A7;
  --rsm-color: #FFC93C;
  --emotions-color: #F48FB1;
  --mechanism-color: #CE93D8;
  --social-color: #80CBC4;

  /* Spacing (4px base unit) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-elevated: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-cyan: 0 0 20px rgba(0,224,255,0.3);
  --shadow-magenta: 0 0 20px rgba(255,46,136,0.3);
  --shadow-gold: 0 0 20px rgba(255,201,60,0.3);

  /* Typography */
  --font-display: 'Press Start 2P', monospace;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- CSS Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--deep-navy);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Scanline Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(14,21,48,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
}

.nav-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--arcade-cyan);
  text-decoration: none;
  text-shadow: 0 0 10px var(--arcade-cyan-glow);
  letter-spacing: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo span {
  display: block;
  font-size: 8px;
  color: var(--arcade-magenta);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--arcade-cyan);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--arcade-cyan);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #000;
  background: var(--arcade-cyan);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,224,255,0.3);
}

.nav-cta:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(0,224,255,0.5);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ============================================
   PAGE WRAPPER
   ============================================ */

.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

.page-content {
  padding-top: 64px;
}

/* ============================================
   HOMEPAGE
   ============================================ */

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-20) var(--space-6);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,224,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255,46,136,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 20%, rgba(255,201,60,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Pixel grid background */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,224,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,224,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--arcade-magenta);
  background: var(--arcade-magenta-dim);
  border: 1px solid rgba(255,46,136,0.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.3;
  margin-bottom: var(--space-6);
}

.hero-title .line-1 {
  color: var(--arcade-cyan);
  text-shadow: 0 0 20px rgba(0,224,255,0.5), 0 0 40px rgba(0,224,255,0.2);
  display: block;
}

.hero-title .line-2 {
  color: var(--arcade-magenta);
  text-shadow: 0 0 20px rgba(255,46,136,0.5), 0 0 40px rgba(255,46,136,0.2);
  display: block;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

/* Mini canvas preview on hero */
.hero-canvas-preview {
  max-width: 760px;
  margin: 0 auto;
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-elevated), 0 0 60px rgba(0,224,255,0.1);
  border: 1px solid rgba(0,224,255,0.2);
}

.hero-canvas-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--deep-navy);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.canvas-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.canvas-mini-cell {
  background: white;
  border-radius: 8px;
  padding: 12px;
  border: 1.5px solid #e5e7eb;
  transition: all var(--transition-base);
  cursor: pointer;
}

.canvas-mini-cell:hover {
  border-color: var(--arcade-cyan);
  box-shadow: 0 0 12px rgba(0,224,255,0.2);
  transform: translateY(-2px);
}

.canvas-mini-cell-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 6px;
}

.canvas-mini-cell-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--deep-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.canvas-mini-cell-desc {
  font-family: var(--font-body);
  font-size: 10px;
  color: #666;
  line-height: 1.4;
}

.canvas-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--arcade-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: var(--space-4);
}

/* Stats bar */
.stats-bar {
  background: var(--navy-card);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  padding: var(--space-6) var(--space-6);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--arcade-cyan);
  display: block;
  text-shadow: 0 0 10px rgba(0,224,255,0.4);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Featured games section */
.section {
  padding: var(--space-20) var(--space-6);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-title::before,
.section-title::after {
  content: '👾';
  font-size: 14px;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--arcade-cyan);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity var(--transition-fast);
}

.section-link:hover { opacity: 0.7; }

/* Game Cards Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.game-card {
  background: var(--navy-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--arcade-magenta);
  box-shadow: var(--shadow-card), var(--shadow-magenta);
}

.game-card-image {
  aspect-ratio: 16/9;
  background: var(--navy-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}

.game-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
}

.game-card-genre-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--arcade-magenta);
  color: white;
  border-radius: var(--radius-full);
  padding: 3px 8px;
  z-index: 1;
}

.game-card-body {
  padding: var(--space-4);
}

.game-card-title {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.game-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.game-card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.game-card-meta-row span:first-child { font-size: 13px; }

.game-card-btn {
  width: 100%;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--arcade-magenta);
  background: transparent;
  border: 1.5px solid var(--arcade-magenta);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.game-card-btn:hover {
  background: var(--arcade-magenta);
  color: white;
  box-shadow: var(--shadow-magenta);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--arcade-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(0,224,255,0.3);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 25px rgba(0,224,255,0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-card);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--arcade-cyan);
  border: 1.5px solid var(--arcade-cyan);
}

.btn-ghost:hover {
  background: var(--arcade-cyan-dim);
  box-shadow: var(--shadow-cyan);
}

/* ============================================
   GAMES EXPLORER PAGE
   ============================================ */

.explorer-layout {
  display: flex;
  height: calc(100vh - 64px);
  overflow: hidden;
}

/* Left Sidebar */
.explorer-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--navy-card);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
}

.sidebar-search {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  background: var(--deep-navy);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 12px 10px 38px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

.sidebar-search input::placeholder { color: var(--text-muted); }

.sidebar-search input:focus {
  border-color: var(--arcade-cyan);
  box-shadow: 0 0 0 2px var(--arcade-cyan-dim);
}

.sidebar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3) 0;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 2px;
}

.sidebar-category {
  margin-bottom: var(--space-1);
}

.sidebar-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-4);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
}

.sidebar-category-header:hover { background: rgba(255,255,255,0.03); }

.sidebar-category-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-category-icon { font-size: 12px; }

.sidebar-category-count {
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  padding: 1px 6px;
}

.sidebar-category-chevron {
  color: var(--text-muted);
  font-size: 10px;
  transition: transform var(--transition-fast);
}

.sidebar-category.collapsed .sidebar-category-chevron {
  transform: rotate(-90deg);
}

.sidebar-games {
  overflow: hidden;
  max-height: 500px;
  transition: max-height var(--transition-slow);
}

.sidebar-category.collapsed .sidebar-games {
  max-height: 0;
}

.sidebar-game-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px var(--space-4) 9px 32px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-game-item:hover {
  background: rgba(255,255,255,0.04);
  border-left-color: var(--border-card);
}

.sidebar-game-item.active {
  background: rgba(0,224,255,0.08);
  border-left-color: var(--arcade-cyan);
}

.sidebar-game-item.active .sidebar-game-name {
  color: var(--arcade-cyan);
}

.sidebar-game-emoji {
  font-size: 16px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.sidebar-game-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-game-year {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Explorer Main Area */
.explorer-main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.explorer-main::-webkit-scrollbar { width: 6px; }
.explorer-main::-webkit-scrollbar-track { background: transparent; }
.explorer-main::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 3px; }

/* Game Header */
.game-header {
  padding: var(--space-6) var(--space-8);
  background: var(--navy-card);
  border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
}

.game-header-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.game-icon-large {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--navy-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  border: 2px solid var(--border-card);
}

.game-title-area { flex: 1; }

.game-title-main {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.game-meta-pills {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  border: 1px solid;
  white-space: nowrap;
}

.pill-cyan {
  color: var(--arcade-cyan);
  border-color: rgba(0,224,255,0.3);
  background: var(--arcade-cyan-dim);
}

.pill-magenta {
  color: var(--arcade-magenta);
  border-color: rgba(255,46,136,0.3);
  background: var(--arcade-magenta-dim);
}

.pill-gold {
  color: var(--gold-rsm);
  border-color: rgba(255,201,60,0.3);
  background: var(--gold-dim);
}

.pill-green {
  color: var(--muted-green);
  border-color: rgba(61,220,151,0.3);
  background: var(--muted-green-dim);
}

/* Canvas Display */
.canvas-display {
  padding: var(--space-6) var(--space-8);
  flex: 1;
}

.canvas-section-title {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.canvas-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* THE 1PGD CANVAS */
.pgd-canvas {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(0,224,255,0.15);
}

/* Growth Ring Header */
.canvas-growth-ring {
  background: linear-gradient(135deg, rgba(61,220,151,0.1) 0%, rgba(61,220,151,0.05) 100%);
  border-bottom: 2px solid var(--muted-green);
  padding: var(--space-2) var(--space-4);
  text-align: center;
}

.growth-ring-label {
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--muted-green);
  letter-spacing: 2px;
}

.growth-ring-sub {
  font-size: 9px;
  color: #4a6060;
  margin-top: 2px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Aspiration Row */
.canvas-aspiration {
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(90deg, rgba(79,195,247,0.08) 0%, rgba(79,195,247,0.15) 25%, rgba(79,195,247,0.2) 50%, rgba(79,195,247,0.25) 75%, rgba(79,195,247,0.3) 100%);
  border-bottom: 1px solid rgba(79,195,247,0.2);
}

.aspiration-label {
  font-family: var(--font-display);
  font-size: 8px;
  color: #2196F3;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: var(--space-3);
}

.aspiration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.aspiration-cell {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border: 1px solid rgba(33,150,243,0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.aspiration-cell:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(33,150,243,0.5);
  box-shadow: 0 2px 12px rgba(33,150,243,0.15);
}

.aspiration-cell-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.arrow-badge {
  background: #2196F3;
  color: white;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.aspiration-cell-title {
  font-size: 11px;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.aspiration-cell-text {
  font-size: 10px;
  color: #444;
  line-height: 1.4;
}

/* Main 3-column area */
.canvas-middle {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Sensory Frame - left column */
.canvas-sensory {
  background: rgba(165,214,167,0.1);
  border-right: 1px solid rgba(76,175,80,0.2);
  padding: var(--space-3);
}

.frame-label {
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
}

.frame-sublabel {
  font-size: 8px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  opacity: 0.6;
}

.sensory-label { color: #2E7D32; }
.sensory-sublabel-color { color: #555; }

.sensory-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sensory-item {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(76,175,80,0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sensory-item:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(76,175,80,0.5);
}

.sensory-item-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.sensory-item-icon { font-size: 12px; }

.sensory-item-name {
  font-size: 9px;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sensory-item-text {
  font-size: 9px;
  color: #555;
  line-height: 1.4;
}

/* RSM Core - center */
.canvas-rsm {
  padding: var(--space-4);
  position: relative;
}

.rsm-title {
  font-family: var(--font-display);
  font-size: 8px;
  color: #B8860B;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2px;
}

.rsm-subtitle {
  font-size: 8px;
  text-align: center;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.rsm-quadrants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.rsm-quadrant {
  background: rgba(255,201,60,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border: 1.5px solid rgba(255,201,60,0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.rsm-quadrant:hover {
  background: rgba(255,201,60,0.15);
  border-color: rgba(255,201,60,0.6);
  box-shadow: 0 0 12px rgba(255,201,60,0.2);
}

.rsm-quadrant.active {
  background: rgba(255,201,60,0.2);
  border-color: var(--gold-rsm);
  box-shadow: 0 0 15px rgba(255,201,60,0.3);
}

.rsm-q-icon-area {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.rsm-q-icon { font-size: 14px; }

.rsm-q-badge {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--gold-rsm);
  line-height: 1;
}

.rsm-q-title {
  font-size: 10px;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.rsm-q-text {
  font-size: 9px;
  color: #555;
  line-height: 1.5;
}

/* RSM Center Hub */
.rsm-hub {
  background: var(--gold-rsm);
  border-radius: var(--radius-full);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 7px;
  color: #1a1a2e;
  text-align: center;
  line-height: 1.3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 20px rgba(255,201,60,0.4);
  letter-spacing: 0.5px;
}

/* Right column - emotions/monetisation/ethics */
.canvas-emotions {
  background: rgba(244,143,177,0.08);
  border-left: 1px solid rgba(233,30,99,0.2);
  padding: var(--space-3);
}

.emotions-label { color: #C2185B; }

.emotions-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.emotions-item {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(233,30,99,0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.emotions-item:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(233,30,99,0.5);
}

.emotions-item-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.emotions-item-icon { font-size: 14px; }

.emotions-item-name {
  font-size: 9px;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emotions-item-text {
  font-size: 9px;
  color: #555;
  line-height: 1.4;
}

/* Mechanism Row */
.canvas-mechanism {
  padding: var(--space-3) var(--space-4);
  background: rgba(206,147,216,0.06);
  border-top: 1px solid rgba(206,147,216,0.2);
  border-bottom: 1px solid rgba(206,147,216,0.2);
}

.mechanism-label { color: #7B1FA2; }

.mechanism-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.mechanism-cell {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border: 1px solid rgba(206,147,216,0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mechanism-cell:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(206,147,216,0.5);
}

.mechanism-cell-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.mechanism-cell-icon { font-size: 14px; }

.mechanism-cell-title {
  font-size: 10px;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mechanism-cell-text {
  font-size: 9px;
  color: #555;
  line-height: 1.5;
}

/* Social Layer */
.canvas-social {
  padding: var(--space-3) var(--space-4);
  background: rgba(128,203,196,0.08);
  border-bottom: 1px solid rgba(0,150,136,0.15);
}

.social-label { color: #00695C; }

.social-content {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(0,150,136,0.2);
  font-size: 11px;
  color: #444;
  line-height: 1.6;
  margin-top: var(--space-3);
}

/* Canvas footer */
.canvas-footer {
  padding: var(--space-2) var(--space-4);
  background: rgba(61,220,151,0.05);
  text-align: center;
}

.canvas-footer-text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-green);
  opacity: 0.7;
}

/* Game prose description */
.game-prose {
  padding: var(--space-6) var(--space-8);
  background: var(--navy-card);
  border-top: 1px solid var(--border-card);
}

.game-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: var(--space-5);
}

.game-takeaway {
  background: var(--gold-dim);
  border: 1px solid rgba(255,201,60,0.3);
  border-left: 4px solid var(--gold-rsm);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  max-width: 760px;
}

.game-takeaway-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-rsm);
  margin-bottom: var(--space-2);
}

.game-takeaway-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  font-style: italic;
}

/* ============================================
   YOUTUBE TRAILER SECTION
   ============================================ */

.game-trailer {
  padding: var(--space-6) var(--space-8);
  background: var(--navy-card);
  border-top: 1px solid var(--border-card);
}

.game-trailer-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.game-trailer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--arcade-magenta);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
  padding-left: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255,46,136,0.5);
}

.game-trailer-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.trailer-wrapper {
  position: relative;
  max-width: 760px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px var(--border-card);
}

.trailer-overlay {
  transition: opacity 0.3s ease;
}

.trailer-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #0a0f28;
  background-image: linear-gradient(135deg, #0a0f28 0%, #1a1f3e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trailer-thumb-overlay {
  position: absolute;
  inset: 0;
}

.trailer-bg-emoji {
  position: absolute;
  font-size: 120px;
  opacity: 0.12;
  z-index: 0;
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.trailer-play-btn {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: var(--space-4);
}

.trailer-play-btn:hover {
  transform: scale(1.08);
}

.trailer-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--arcade-magenta);
  color: #fff;
  border-radius: 50%;
  font-size: 26px;
  padding-left: 5px;
  box-shadow:
    0 0 0 8px rgba(255,46,136,0.2),
    0 0 30px rgba(255,46,136,0.6),
    0 4px 20px rgba(0,0,0,0.4);
  animation: trailerPulse 2s ease-in-out infinite;
}

@keyframes trailerPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255,46,136,0.2), 0 0 30px rgba(255,46,136,0.6), 0 4px 20px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 0 14px rgba(255,46,136,0.1), 0 0 50px rgba(255,46,136,0.8), 0 4px 20px rgba(0,0,0,0.4); }
}

.trailer-play-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  font-family: var(--font-display);
}

.trailer-thumb-title {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  z-index: 2;
}

.trailer-iframe-container {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.trailer-iframe-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.trailer-caption {
  margin-top: var(--space-3);
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* Related games */
.related-games {
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid var(--border-card);
}

.related-games-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.related-games-list {
  display: flex;
  gap: var(--space-4);
}

.related-game-card {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: var(--space-3);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 180px;
}

.related-game-card:hover {
  border-color: var(--arcade-cyan);
  background: var(--arcade-cyan-dim);
}

.related-game-emoji { font-size: 24px; }

.related-game-info { flex: 1; }

.related-game-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.related-game-genre {
  font-size: 10px;
  color: var(--text-muted);
}

/* ============================================
   CANVAS METHODOLOGY PAGE
   ============================================ */

.methodology-hero {
  padding: var(--space-20) var(--space-6) var(--space-16);
  text-align: center;
  background: linear-gradient(180deg, rgba(255,201,60,0.05) 0%, transparent 100%);
}

.methodology-hero-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.5vw, 40px);
  color: var(--gold-rsm);
  text-shadow: 0 0 20px rgba(255,201,60,0.4);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.methodology-hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

/* Methodology sections */
.methodology-section {
  padding: var(--space-16) var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.methodology-section:nth-child(even) {
  background: rgba(255,255,255,0.01);
}

.methodology-inner {
  max-width: 900px;
  margin: 0 auto;
}

.methodology-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.methodology-prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.methodology-card {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--border-card);
  transition: all var(--transition-base);
}

.methodology-card:hover {
  border-color: var(--arcade-cyan);
  box-shadow: 0 0 20px rgba(0,224,255,0.1);
}

.methodology-card-icon { font-size: 24px; margin-bottom: var(--space-3); }

.methodology-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.methodology-card-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Theory cards */
.theory-card {
  background: var(--navy-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--border-card);
  margin-bottom: var(--space-4);
}

.theory-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.theory-card-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.theory-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.theory-card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.theory-card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  padding: var(--space-24) var(--space-6) var(--space-16);
  text-align: center;
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-16);
}

.about-section {
  margin-bottom: var(--space-12);
}

.about-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-card);
  padding-bottom: var(--space-3);
}

.about-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

/* ============================================
   SIDE DRAWER (canvas box detail)
   ============================================ */

.side-drawer {
  position: fixed;
  top: 64px;
  right: 0;
  width: 380px;
  height: calc(100vh - 64px);
  background: var(--navy-card);
  border-left: 1px solid var(--border-card);
  z-index: 500;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
}

.drawer-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.drawer-section-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--arcade-cyan);
  background: var(--arcade-cyan-dim);
  border: 1px solid rgba(0,224,255,0.2);
  border-radius: var(--radius-full);
  padding: 4px 10px;
}

.drawer-close {
  width: 28px;
  height: 28px;
  background: var(--border-card);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.drawer-close:hover {
  background: var(--arcade-magenta);
  color: white;
}

.drawer-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.drawer-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.drawer-tabs {
  display: flex;
  gap: 4px;
}

.drawer-tab {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-tab.active {
  color: var(--arcade-cyan);
  border-bottom-color: var(--arcade-cyan);
}

.drawer-tab:hover {
  color: var(--text-primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
}

.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-track { background: transparent; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 2px; }

.drawer-section {
  margin-bottom: var(--space-6);
}

.drawer-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--arcade-cyan);
  margin-bottom: var(--space-3);
}

.drawer-content-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.drawer-question-prompt {
  background: var(--gold-dim);
  border: 1px solid rgba(255,201,60,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.drawer-question-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-rsm);
  margin-bottom: 6px;
}

.drawer-question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  font-style: italic;
}

.drawer-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.drawer-bullet-list li::before {
  content: '→';
  color: var(--arcade-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

.pro-tip {
  background: var(--muted-green-dim);
  border: 1px solid rgba(61,220,151,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.pro-tip-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-green);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pro-tip-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border-card);
  padding: var(--space-10) var(--space-6);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--arcade-cyan);
}

.footer-brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-legal {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Loading state */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--deep-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--arcade-cyan);
  text-shadow: 0 0 20px var(--arcade-cyan-glow);
  margin-bottom: var(--space-8);
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-bar-track {
  width: 200px;
  height: 4px;
  background: var(--border-card);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: var(--arcade-cyan);
  border-radius: var(--radius-full);
  animation: loadingBar 1.2s ease forwards;
  box-shadow: 0 0 8px var(--arcade-cyan-glow);
}

.loading-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: var(--space-4);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: blink 1s step-end infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes loadingBar {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(0,224,255,0.3); }
  50% { box-shadow: 0 0 30px rgba(0,224,255,0.6); }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.5s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .explorer-sidebar { width: 240px; }
  .canvas-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .methodology-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-card);
    border-bottom: 1px solid var(--border-card);
    padding: var(--space-4);
    gap: var(--space-3);
    z-index: 999;
  }
  .nav-toggle { display: flex; }

  .hero-title { font-size: clamp(20px, 6vw, 32px); }
  .hero-subtitle { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .games-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

  .explorer-layout { flex-direction: column; height: auto; }
  .explorer-sidebar {
    width: 100%;
    height: auto;
    max-height: 280px;
    border-right: none;
    border-bottom: 1px solid var(--border-card);
  }
  .explorer-main { overflow-y: visible; }

  .canvas-middle { grid-template-columns: 1fr; }
  .canvas-sensory, .canvas-emotions {
    border-right: none;
    border-left: none;
    border-top: 1px solid rgba(0,0,0,0.1);
  }

  .game-header { padding: var(--space-4); }
  .canvas-display { padding: var(--space-4); }
  .game-prose { padding: var(--space-4); }
  .game-trailer { padding: var(--space-4); }
  .related-games { padding: var(--space-4); }
  .trailer-play-icon { width: 56px; height: 56px; font-size: 20px; }

  .side-drawer { width: 100%; top: 64px; }

  .aspiration-grid { grid-template-columns: repeat(2, 1fr); }
  .rsm-quadrants { grid-template-columns: 1fr; }
  .mechanism-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
  .related-games-list { flex-direction: column; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .canvas-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .aspiration-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; gap: var(--space-4); }
}

/* ============================================
   INTRO ANIMATION STATE
   ============================================ */

.page.active.initialized {
  animation: fadeIn 0.3s ease;
}

/* Highlighted box tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep-navy);
  border: 1px solid var(--arcade-cyan);
  color: var(--text-primary);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  margin-bottom: 4px;
}

/* No games found */
.no-results {
  padding: var(--space-8);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Pixel decorations */
.pixel-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
}

/* RSM Hub overlay (center of quadrant grid) */
.rsm-quadrant-wrapper {
  position: relative;
}

/* ============================================
   EXTRA POLISH & WOW FACTOR
   ============================================ */

/* Glowing pill for active nav */
.nav-links a.active {
  text-shadow: 0 0 8px rgba(0,224,255,0.4);
}

/* Canvas hover glow effect on all interactive cells */
.aspiration-cell:hover,
.sensory-item:hover,
.rsm-quadrant:hover,
.emotions-item:hover,
.mechanism-cell:hover {
  transform: translateY(-1px);
}

/* Pixel art space invader favicon decoration */
.nav-logo::before {
  content: '👾';
  font-size: 12px;
  margin-right: 6px;
}

/* Hero floating stars */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Game card hover color stripe */
.game-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--arcade-magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.game-card:hover::before {
  transform: scaleX(1);
}

/* Scrollbar for explorer main */
.explorer-main::-webkit-scrollbar { width: 6px; }
.explorer-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--arcade-cyan), var(--arcade-magenta));
  border-radius: 3px;
}

/* RSM hub glow animation */
.rsm-hub {
  animation: goldPulse 2.5s ease-in-out infinite;
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,201,60,0.4); }
  50% { box-shadow: 0 0 35px rgba(255,201,60,0.7), 0 0 60px rgba(255,201,60,0.2); }
}

/* Loading bar gradient */
.loading-bar-fill {
  background: linear-gradient(90deg, var(--arcade-cyan), var(--arcade-magenta), var(--gold-rsm));
}

/* Canvas section highlight on hover */
.pgd-canvas .canvas-aspiration:hover { background: linear-gradient(90deg, rgba(79,195,247,0.1) 0%, rgba(79,195,247,0.2) 25%, rgba(79,195,247,0.25) 50%, rgba(79,195,247,0.3) 75%, rgba(79,195,247,0.35) 100%); }

/* Section headings with animated underline */
.section-title {
  position: relative;
}

/* Stats bar animated numbers */
.stat-value {
  animation: countUp 0.5s ease forwards;
}

/* Sidebar active item glow */
.sidebar-game-item.active {
  background: linear-gradient(90deg, rgba(0,224,255,0.12), rgba(0,224,255,0.04));
}

/* Better card shadows on dark bg */
.methodology-card {
  transition: all var(--transition-base);
}
.methodology-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Drawer open shadow */
#sideDrawer.open {
  box-shadow: -12px 0 60px rgba(0,0,0,0.5);
}

/* Hero bottom gradient fade */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--deep-navy));
  pointer-events: none;
}

/* Canvas mini-cells color scheme */
.canvas-mini-cell:nth-child(1) { border-color: rgba(79,195,247,0.3); }
.canvas-mini-cell:nth-child(2) { border-color: rgba(165,214,167,0.3); }
.canvas-mini-cell:nth-child(3) { border-color: rgba(255,201,60,0.3); }
.canvas-mini-cell:nth-child(4) { border-color: rgba(244,143,177,0.3); }
.canvas-mini-cell:nth-child(5) { border-color: rgba(206,147,216,0.3); }
.canvas-mini-cell:nth-child(6) { border-color: rgba(206,147,216,0.3); }
.canvas-mini-cell:nth-child(7) { border-color: rgba(206,147,216,0.3); }
.canvas-mini-cell:nth-child(8) { border-color: rgba(61,220,151,0.3); }

/* Pill badges with animated border */
.pill {
  position: relative;
}

/* Better hero eyebrow animation */
.hero-eyebrow {
  animation: fadeIn 0.5s ease 0.1s both;
}

.hero-title {
  animation: fadeIn 0.5s ease 0.2s both;
}

.hero-subtitle {
  animation: fadeIn 0.5s ease 0.3s both;
}

.hero-actions {
  animation: fadeIn 0.5s ease 0.4s both;
}

.hero-canvas-preview {
  animation: fadeIn 0.5s ease 0.5s both;
}

/* Game title gradient text effect */
.game-title-main {
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Drawer tabs animated indicator */
.drawer-tab {
  position: relative;
  overflow: hidden;
}

.drawer-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--arcade-cyan);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.drawer-tab.active::after {
  transform: scaleX(1);
}

/* Section separator with glow */
.stats-bar {
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--arcade-cyan), transparent);
}

/* Nav CTA pulse */
.nav-cta {
  animation: glowPulse 3s ease-in-out infinite;
}

/* Footer brand glow */
.footer-brand {
  text-shadow: 0 0 10px rgba(0,224,255,0.3);
}

/* Explore page empty state sparkle */
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(5deg); }
  75% { transform: scale(0.9) rotate(-5deg); }
}

/* Canvas footer animated text */
.canvas-footer-text {
  background: linear-gradient(90deg, var(--muted-green), #00c9a7, var(--muted-green));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}

/* Methodology hero title glow pulse */
.methodology-hero-title {
  animation: goldGlowPulse 3s ease-in-out infinite;
}

@keyframes goldGlowPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(255,201,60,0.4); }
  50% { text-shadow: 0 0 40px rgba(255,201,60,0.7), 0 0 80px rgba(255,201,60,0.2); }
}

/* Explorer sidebar top label */
.explorer-sidebar::before {
  content: '🎮 GAMES EXPLORER';
  display: block;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--arcade-cyan);
  padding: 10px 16px 6px;
  border-bottom: 1px solid var(--border-card);
  opacity: 0.7;
}

/* Arrow in aspiration cells */
.aspiration-cell:last-child::after {
  display: none;
}

/* RSM quadrant A/U/A/E letter sizing */
.rsm-q-badge {
  font-size: 18px !important;
}

/* Better game icon sizing */
.game-icon-large {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Tooltip polish */
[data-tooltip]:hover::after {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-family: var(--font-body);
  font-weight: 600;
}

/* ============================================
   GAME CARD — THUMBNAIL IMAGE (Fix 1)
   ============================================ */

.game-card-image {
  position: relative;
  overflow: hidden;
}

.game-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-thumb {
  transform: scale(1.06);
}

.game-card-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.game-card-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.game-card-emoji-badge {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 28px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.game-card-genre-badge {
  z-index: 2;
}

/* ============================================
   GAME OVERVIEW — 2-COLUMN ABOVE CANVAS (Fix 2)
   ============================================ */

.game-overview {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  background: var(--navy-card);
  border-top: 1px solid var(--border-card);
}

.game-overview-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.game-overview-desc .game-description {
  margin-bottom: 0;
  max-width: none;
}

.game-overview-takeaway {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.game-tagline {
  font-size: 12px;
  font-style: italic;
  color: var(--arcade-cyan);
  line-height: 1.5;
  border-left: 2px solid var(--arcade-cyan);
  padding-left: var(--space-3);
  opacity: 0.8;
}

/* ============================================
   MEDIA SECTION — TRAILER + SCREENSHOTS (Fix 3+4)
   ============================================ */

.game-media-section {
  padding: var(--space-6) var(--space-8);
  background: var(--navy-card);
  border-top: 1px solid var(--border-card);
}

.game-media-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* Trailer thumbnail using <img> with fallback */
.trailer-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0a0f28 0%, #1a1f3e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trailer-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ============================================
   SCREENSHOTS GRID (Fix 4)
   ============================================ */

.game-screenshots {
  display: flex;
  flex-direction: column;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.screenshot-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-elevated);
  border-radius: var(--radius-sm);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.screenshot-item:hover img {
  transform: scale(1.08);
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transition: all 0.2s ease;
}

.screenshot-item:hover .screenshot-overlay {
  background: rgba(0,0,0,0.4);
  opacity: 1;
}

/* ============================================
   SCREENSHOT LIGHTBOX
   ============================================ */

.screenshot-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.screenshot-lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: var(--navy-elevated);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--arcade-magenta);
  border-color: var(--arcade-magenta);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.lightbox-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE — MEDIA + OVERVIEW
   ============================================ */

@media (max-width: 900px) {
  .game-media-inner {
    grid-template-columns: 1fr;
  }
  .game-overview {
    grid-template-columns: 1fr;
  }
  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .game-media-section { padding: var(--space-4); }
  .game-overview { padding: var(--space-4); }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}

