/* Runway-inspired skin (preview only; NOT linked from index.html).
   Source: designmd.fun/runwayml/design-md — black canvas, #1a1a1a cards with a
   single hairline border, zero shadows, 4-8px corners (not pill-shaped), one
   sans-serif at weights 400-600, cool-grey secondary text, uppercase labels.
   To try it: add <link rel="stylesheet" href="themes/runway.css" /> after
   styles.css in index.html. To revert: remove that line.
   Always dark (Runway is dark-dominant), so it ignores the OS light setting. */

html:root:root:root {
  --bg: #000000;
  --surface: #121212;
  --surface-2: #0a0a0a;
  --surface-3: #1a1a1a;
  --text: #ffffff;
  --text-soft: #a7a7a7;
  --border: #27272a;
  --hover-wash: #1a1a1a;

  --brand: #ffffff;
  --brand-ink: #e9ecf2;
  --shadow: none;

  --concept-bg: #0f1012;
  --concept-border: #767d88;
  --concept-ink: #c9ccd1;
  --principle-color: #a7a7a7;
  --principle-bg: #0f1012;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 8px;
  --radius-xl: 16px;
  --radius-badge: 4px;
  --radius-pill: 6px;

  --font: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-shadow: none !important; }

body { line-height: 1.5; letter-spacing: -0.01em; }

/* film-title headlines: light weight, tight leading, negative tracking */
h1 { font-size: 2.6rem; font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: 1.5rem; font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; margin-top: 40px; }
h3 { font-weight: 500; letter-spacing: -0.01em; }

/* primary actions invert: white fill, black text */
.btn { border-radius: 4px; font-weight: 600; font-size: 0.9rem; }
.btn.primary { background: #ffffff; color: #000000; border-color: #ffffff; }
.btn.primary:hover { background: #e9ecf2; }
.btn.ghost, .btn.secondary { background: transparent; border: 1px solid #27272a; color: #ffffff; }

/* uppercase, tracked labels as navigational structure */
.stage-badge, .area-badge, .concept-analogy-label, .concept-h {
  text-transform: uppercase;
  letter-spacing: 0.35px;
  font-size: 0.69rem;
  font-weight: 500;
}

/* flat containers: border only, no fill gradients */
.info-panel, .challenge-row, .mode-card, .card, details.concept {
  background: #121212;
  border: 1px solid #27272a;
}
.concept-analogy { border-radius: 4px; border-left-width: 2px; }

/* ---------- left-rail navigation (>= 1000px); below that the top bar is used ---------- */
@media (min-width: 1000px) {
  body { padding-left: 208px; }
  #app { padding-top: 32px; }
  .topbar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 208px; z-index: 10;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start;
    padding: 20px 12px 16px; background: #000; border-right: 1px solid #27272a; overflow-y: auto;
  }
  .topnav { flex-direction: column; flex-wrap: nowrap; gap: 1px; }
  .nav-link {
    width: 100%; justify-content: flex-start; border-radius: 4px;
    padding: 8px 10px; font-size: 0.85rem; font-weight: 500;
    border-left: 2px solid transparent;
  }
  .nav-link.active { background: #1a1a1a; color: #ffffff; border-left-color: #ffffff; }
  .nav-link:hover { background: #121212; }
  .nav-group-label {
    display: block; padding: 20px 10px 6px;
    font-size: 0.65rem; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; color: #767d88;
  }
  .nav-xp { margin-top: auto; justify-content: flex-start; border-radius: 6px; }
}
