/* ========================================
   Gender Mainstreaming in Practice
   Design System & Global Styles
   ======================================== */

:root {
  /* Minimalist palette */
  --ink: #111111;
  --ink-secondary: #555555;
  --ink-light: #999999;
  --surface: #ffffff;
  --surface-subtle: #f9f9f9;
  --surface-hover: #f3f3f3;
  --border: #e5e5e5;
  --border-strong: #cccccc;
  --accent: #111111;

  /* Legacy aliases — keep game-specific styles working */
  --teal: #111111;
  --teal-light: #444444;
  --teal-dark: #111111;
  --sand: #f3f3f3;
  --sand-light: #f9f9f9;
  --sand-dark: #e5e5e5;
  --coral: #111111;
  --coral-light: #555555;
  --coral-dark: #000000;
  --white: #ffffff;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-light: #999999;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

/* ==============================
   Typography
   ============================== */

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
h4 { font-size: 1rem; }

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--teal-light);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ==============================
   Layout
   ============================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==============================
   Navigation
   ============================== */

.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.nav-logo span { color: var(--ink-secondary); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--ink-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-back {
  color: var(--ink-secondary) !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem !important;
}

/* ==============================
   Games Masthead (replaces hero + progress bar)
   ============================== */

.games-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.games-masthead-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.games-masthead-desc {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin: 0;
}

.progress-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.progress-inline .progress-bar-wrap {
  width: 100px;
  min-width: auto;
}


/* ==============================
   Progress Bar (inline in masthead)
   ============================== */

.progress-bar-wrap {
  background: var(--border);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-count {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  font-weight: 600;
  white-space: nowrap;
}

/* ==============================
   Game Cards Hub
   ============================== */

.games-section {
  padding: 0 0 3rem;
  background: var(--surface-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--ink-secondary);
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.game-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.game-card.completed .card-accent {
  background: #111111;
}

.card-accent {
  height: 3px;
  background: var(--border);
}

.game-card.completed .card-accent {
  background: var(--ink);
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-number {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.card-concept {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.card-time {
  font-size: 0.78rem;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-done-badge {
  background: var(--ink);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ==============================
   Completion Certificate
   ============================== */

.certificate {
  display: none;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.certificate.visible {
  display: block;
  animation: fadeSlideIn 0.6s ease;
}

.certificate::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cert-title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.cert-heading {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cert-stars {
  font-size: 2rem;
  letter-spacing: 0.5rem;
  margin-bottom: 1rem;
}

.cert-body {
  max-width: 500px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

/* ==============================
   Game Page — Common Styles
   ============================== */

.game-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  padding: 2rem 0;
}

.game-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.game-number-badge {
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  white-space: nowrap;
}

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

.game-title-group h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 0.4rem;
}

.game-instructions {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  max-width: 700px;
}

/* ==============================
   Buttons
   ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ink);
  color: var(--surface);
}

.btn-primary:hover {
  background: #333;
  color: var(--surface);
}

.btn-coral {
  background: var(--ink);
  color: var(--surface);
}

.btn-coral:hover {
  background: #333;
  color: var(--surface);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-ghost {
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==============================
   Cards (generic)
   ============================== */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.card-sm {
  padding: 1rem;
}

/* ==============================
   Drag & Drop
   ============================== */

.draggable {
  cursor: grab;
  user-select: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.draggable:active { cursor: grabbing; }

.draggable.dragging {
  opacity: 0.4;
  transform: rotate(2deg);
  box-shadow: var(--shadow-lg);
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  min-height: 120px;
}

.drop-zone.drag-over {
  border-color: var(--teal-light);
  background: rgba(41, 128, 185, 0.05);
}

.drop-zone.correct-zone {
  border-color: #27AE60;
  background: rgba(39, 174, 96, 0.05);
}

.drop-zone.wrong-zone {
  border-color: var(--coral);
  background: rgba(231, 76, 60, 0.05);
}

/* ==============================
   Reveal / Feedback Panels
   ============================== */

.reveal-panel {
  display: none;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
  animation: fadeSlideIn 0.4s ease;
}

.reveal-panel.visible { display: block; }

.reveal-correct {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #1A5E36;
}

.reveal-incorrect {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #7B241C;
}

.reveal-info {
  background: rgba(41, 128, 185, 0.1);
  border: 1px solid rgba(41, 128, 185, 0.3);
  color: #1A3E5C;
}

.reveal-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

/* ==============================
   Badge / Chip
   ============================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-teal { background: rgba(27,79,114,0.12); color: var(--teal); }
.badge-coral { background: rgba(231,76,60,0.12); color: var(--coral-dark); }
.badge-green { background: rgba(39,174,96,0.12); color: #1A5E36; }
.badge-purple { background: rgba(142,68,173,0.12); color: #6C3483; }

/* ==============================
   Pill Tabs
   ============================== */

.pill-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pill-tab {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--sand);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.pill-tab:hover {
  background: var(--teal);
  color: var(--white);
}

.pill-tab.active {
  background: var(--teal);
  color: var(--white);
}

/* ==============================
   Score / Stats
   ============================== */

.score-display {
  text-align: center;
  padding: 2rem;
}

.score-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
}

.score-denom {
  font-size: 1.5rem;
  color: var(--text-light);
}

.score-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ==============================
   Animations
   ============================== */

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

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

.animate-fade-in { animation: fadeSlideIn 0.4s ease both; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-bounce { animation: bounce 1s ease infinite; }

/* ==============================
   Character Badge (replaces emoji avatars)
   ============================== */

.char-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0;
  font-family: var(--font-sans);
}

.char-badge-lg {
  width: 56px;
  height: 56px;
  font-size: 1.2rem;
}

/* ==============================
   Key Concepts — Accordion
   ============================== */

.concepts-section {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.accordion {
  max-width: 720px;
  margin: 1.75rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.accordion-trigger {
  width: 100%;
  background: var(--surface);
  border: none;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: background var(--transition);
}

.accordion-trigger:hover {
  background: var(--surface-subtle);
}

.accordion-trigger[aria-expanded="true"] {
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-light);
  transition: transform 0.3s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  color: rgba(255,255,255,0.6);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-panel-inner {
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

.accordion-panel-inner strong {
  color: var(--text-primary);
}

.accordion-panel-inner ul {
  margin: 0.5rem 0 0.75rem 1.1rem;
}

.accordion-panel-inner li {
  margin-bottom: 0.4rem;
}

.accordion-panel-inner p {
  margin-bottom: 0.75rem;
}

.accordion-panel-inner p:last-child {
  margin-bottom: 0;
}

.concept-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

/* ==============================
   Reflection section
   ============================== */

.reflect-section {
  padding: 4rem 0;
  background: var(--surface-subtle);
  border-top: 1px solid var(--border);
  color: var(--ink);
}

.reflect-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.reflect-section h2 {
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.reflect-section p {
  color: var(--ink-secondary);
  margin-bottom: 0.75rem;
}

.reflect-prompts {
  list-style: none;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reflect-prompts li {
  padding: 0.875rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==============================
   Support / Coffee section
   ============================== */

.support-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.support-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-width: 200px;
}

.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--sand);
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-coffee:hover {
  background: var(--sand-dark);
  text-decoration: none;
  color: var(--teal-dark);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-share:hover {
  border-color: var(--teal-light);
  color: var(--teal);
  text-decoration: none;
}

/* ==============================
   Shared Results Banner
   ============================== */

.shared-banner {
  background: var(--teal-dark);
  color: var(--white);
  padding: 1.5rem 0;
  border-bottom: 3px solid var(--coral);
}

.shared-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.shared-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}

.shared-score-item {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.shared-score-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sand);
  line-height: 1.2;
}

.shared-score-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* ==============================
   Footer
   ============================== */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--ink-light);
  padding: 2rem 0;
  margin-top: 0;
  font-size: 0.82rem;
  text-align: center;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--ink-secondary);
}

/* ==============================
   Utilities
   ============================== */

.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-coral { color: var(--coral); }
.text-sand { color: var(--sand); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }

.hidden { display: none !important; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ==============================
   Responsive
   ============================== */

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

  .nav-links {
    display: none;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .games-masthead {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-inline .progress-bar-wrap {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .card-body {
    padding: 1rem;
  }
}

/* ==============================
   Game-specific: Card Sort
   ============================== */

.card-sort-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-sort-source {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sort-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  cursor: grab;
  transition: all var(--transition);
}

.sort-card:hover {
  border-color: var(--teal-light);
  box-shadow: var(--shadow-sm);
}

.sort-card.placed {
  opacity: 0.5;
  cursor: default;
}

.sort-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal-dark);
  margin-bottom: 0.25rem;
}

.sort-card-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sort-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sort-column {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 300px;
  transition: all var(--transition);
}

.sort-column.drag-over {
  border-color: var(--teal-light);
  background: rgba(41, 128, 185, 0.05);
}

.sort-column-header {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.sort-column-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
}

@media (max-width: 700px) {
  .card-sort-workspace {
    grid-template-columns: 1fr;
  }

  .sort-columns {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Game-specific: Walk Track (Power Walk step animation)
   ============================== */

.walk-track-container {
  padding: 0.75rem 1rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.walk-track-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-light);
  margin-bottom: 0.6rem;
}

.walk-track-bar {
  height: 40px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  overflow: visible;
}

.walk-track-center-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 16px;
  background: var(--border-strong);
  transform: translate(-50%, -50%);
  border-radius: 1px;
}

.walk-track-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.3s ease;
  cursor: default;
  user-select: none;
}

.walk-float-label {
  position: absolute;
  top: -28px;
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
  animation: floatUp 0.7s ease forwards;
  white-space: nowrap;
}

@keyframes floatUp {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-18px); }
}

@keyframes dotWobble {
  0%, 100% { transform: scale(1) translateX(0); }
  25%       { transform: scale(1.15) translateX(-5px); }
  75%       { transform: scale(1.15) translateX(5px); }
}

/* ==============================
   Game-specific: Power Walk
   ============================== */

.power-walk-room {
  background: linear-gradient(180deg, #87CEEB 0%, #87CEEB 60%, #8FBC8F 60%, #8FBC8F 100%);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  min-height: 180px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.room-spectrum-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

.character-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.character-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.char-avatar {
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: transform 0.5s ease;
}

.char-name {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
  min-width: 60px;
}

.char-bar {
  flex: 1;
  height: 28px;
  background: rgba(255,255,255,0.4);
  border-radius: 999px;
  overflow: visible;
  position: relative;
}

.char-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.statement-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal);
}

.statement-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1rem;
}

.step-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==============================
   Game-specific: GRP Match
   ============================== */

.grp-workspace {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.strips-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.strip-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  cursor: grab;
  transition: all var(--transition);
  color: var(--text-primary);
}

.strip-card:hover {
  border-color: var(--teal-light);
  box-shadow: var(--shadow-sm);
}

.principle-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.principle-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  min-height: 120px;
  transition: all var(--transition);
}

.principle-box.drag-over {
  border-style: solid;
  background: rgba(41, 128, 185, 0.05);
}

.principle-box-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
  opacity: 0.8;
}

.principle-strips {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 60px;
}

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

  .principle-boxes {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Game-specific: Forum Theater
   ============================== */

.vignette-card {
  background: var(--sand);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.vignette-character {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.char-avatar-large {
  font-size: 2.5rem;
}

.char-info-name {
  font-weight: 700;
  color: var(--teal-dark);
}

.char-info-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.vignette-scene {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.intervention-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.intervention-option {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.intervention-option:hover {
  border-color: var(--teal-light);
  background: rgba(41, 128, 185, 0.04);
}

.intervention-option.selected-best {
  border-color: #27AE60;
  background: rgba(39, 174, 96, 0.08);
}

.intervention-option.selected-partial {
  border-color: #F39C12;
  background: rgba(243, 156, 18, 0.08);
}

.intervention-option.selected-ineffective {
  border-color: var(--coral);
  background: rgba(231, 76, 60, 0.08);
}

/* ==============================
   Game-specific: Longwe Ladder
   ============================== */

.longwe-workspace {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.ladder-visual {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

.ladder-rung {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 80px;
  border: 2px dashed transparent;
  transition: all var(--transition);
}

.ladder-rung.drag-over {
  border-color: var(--teal-light);
  transform: scale(1.02);
}

.rung-label {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  color: white;
  text-align: center;
}

.rung-level-num {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.rung-level-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.rung-icon {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.rung-drop {
  flex: 1;
  background: rgba(255,255,255,0.5);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 80px;
}

.ladder-rung.drag-over .rung-drop {
  background: rgba(41, 128, 185, 0.08);
}

.intervention-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.intervention-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  cursor: grab;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.intervention-card:hover {
  border-color: var(--teal-light);
  box-shadow: var(--shadow-sm);
}

.intervention-card-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
}

.intervention-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

/* ==============================
   Game-specific: Resistance
   ============================== */

.resistance-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.quote-block {
  background: var(--sand);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  margin: 1rem 0;
  position: relative;
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  font-size: 3rem;
  color: var(--teal-light);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.scenario-context {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.coaching-note {
  background: rgba(27, 79, 114, 0.08);
  border: 1px solid rgba(27, 79, 114, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.coaching-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.coaching-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ==============================
   Navigation arrows for multi-step games
   ============================== */

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.step-indicator {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.step-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--transition);
}

.step-dot.active {
  background: var(--teal);
  width: 24px;
  border-radius: 4px;
}

.step-dot.done {
  background: #27AE60;
}
