    /* Self-contained page. No shared CSS/JS. Vanilla HTML/CSS/JS only. [cite: 2]
      Obey House Law completely [cite: 4]
    */
    :root {
      /* Unique Design Elements [cite: 31, 32, 34] */
      --bg-color: #0a0c14; /* Dark atmospheric navy [cite: 34, 35] */
      --panel-bg: #0f1118; /* [cite: 51] */
      --accent-color: #d4a574; /* Warm amber [cite: 46] */
      --text-primary: #e8e2d6; /* Story title, active node [cite: 49, 53] */
      --text-secondary: #c8c0b0; /* Node title [cite: 47] */
      --text-body: #b8b0a0; /* Story body [cite: 54] */
      --line-color: rgba(212, 165, 116, 0.08); /* [cite: 48] */
      --field-x: 50%;
      --field-y: 18%;

      --font-display: 'Playfair Display', serif; /* [cite: 32] */
      --font-body: 'DM Sans', sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: var(--bg-color);
      color: var(--text-body);
      font-family: var(--font-body);
      overflow-x: hidden;
      position: relative;
      min-height: 100vh;
    }

    button,
    a,
    [role="button"] {
      min-width: 44px;
      min-height: 44px;
    }

    .glow {
      position: fixed;
      inset: 0;
      background: radial-gradient(72% 72% at var(--field-x) var(--field-y), rgba(212,165,116,0.16), transparent 46%),
                  radial-gradient(120% 120% at 20% 0%, rgba(212,165,116,0.10), transparent 45%),
                  radial-gradient(110% 110% at 80% 10%, rgba(110,173,255,0.08), transparent 40%),
                  linear-gradient(180deg, rgba(255,255,255,0.018), transparent 44%);
      pointer-events: none;
      z-index: 0;
      transition: background-position 240ms ease;
    }

    /* Typography minimums [cite: 11] */
    p {
      font-size: 15px; /* Minimum 15px on mobile [cite: 11] */
      line-height: 1.7; /* Line height minimum 1.5 [cite: 14, 54] */
    }

    h1, h2, h3 {
      font-size: 20px; /* Minimum 20px for headings [cite: 12] */
      line-height: 1.3; /* Line height minimum 1.3 [cite: 14] */
    }

    .caption, .metadata {
      font-size: 11px; /* Minimum 11px [cite: 13] */
    }

    /* SPRIME MARK (TOP-LEFT) [cite: 68] */
    .sprime-mark {
      position: fixed;
      top: 16px;
      left: 16px;
      display: flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      z-index: 100;
      cursor: pointer;
      transition: opacity 200ms ease; /* [cite: 73] */
      /* aria-label is defined in HTML [cite: 74] */
    }

    .sprime-mark:hover .sprime-s,
    .sprime-mark:hover .sprime-bar,
    .sprime-mark:hover .sprime-world {
      opacity: 1; /* [cite: 73] */
    }

    .sprime-s {
      font-family: var(--font-display);
      font-size: 16px;
      color: var(--accent-color);
      opacity: 0.6; /* [cite: 70] */
      transition: opacity 200ms ease;
    }

    .sprime-bar {
      width: 1px;
      height: 16px;
      background-color: var(--accent-color);
      opacity: 0.3; /* [cite: 71] */
      transition: opacity 200ms ease;
    }

    .sprime-world {
      font-family: var(--font-body);
      font-size: 11px;
      color: var(--accent-color);
      opacity: 0.4; /* [cite: 72] */
      text-transform: lowercase;
      transition: opacity 200ms ease;
    }

    /* Header Controls */
    .container {
      position: relative;
      z-index: 1;
      max-width: 1100px;
      margin: 0 auto;
      padding: 80px 22px 40px;
    }

    .hero-head {
      display: grid;
      gap: 12px;
      margin-bottom: 16px;
    }

    .lede {
      color: var(--text-secondary);
      max-width: 760px;
    }

    .chip-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 10px;
    }
    .chip {
      border: 1px solid var(--line-color);
      background: linear-gradient(135deg, rgba(212,165,116,0.12), rgba(15,17,24,0.9));
      border-radius: 12px;
      padding: 10px 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 18px 38px rgba(0,0,0,0.32);
    }
    .chip small { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
    .chip strong { color: var(--text-primary); font-size: 14px; }

    .controls {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin: 10px 0 12px;
    }
    @media (min-width: 768px) { .controls { grid-template-columns: 2fr auto; align-items: center; } }

    .search {
      position: relative;
    }
    .search input {
      width: 100%;
      background: #0f1118;
      border: 1px solid var(--line-color);
      border-radius: 12px;
      padding: 10px 12px 10px 36px;
      color: var(--text-primary);
    }
    .search svg {
      position: absolute;
      top: 10px; left: 12px;
      width: 14px; height: 14px;
      opacity: 0.7;
    }

    .actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .pill {
      border: 1px solid var(--line-color);
      color: var(--text-secondary);
      background: #0f1118;
      border-radius: 10px;
      padding: 8px 10px;
      letter-spacing: 0.04em;
      font-size: 12px;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .pill.active {
      color: var(--text-primary);
      border-color: var(--accent-color);
      box-shadow: 0 12px 26px rgba(212,165,116,0.18);
    }
    .cta {
      border: 1px solid var(--accent-color);
      background: linear-gradient(135deg, rgba(212,165,116,0.2), rgba(110,173,255,0.2));
      color: var(--text-primary);
      border-radius: 12px;
      padding: 9px 12px;
      letter-spacing: 0.05em;
      font-weight: 700;
      text-transform: uppercase;
      box-shadow: 0 16px 36px rgba(0,0,0,0.32);
    }

    .story-lens {
      margin-top: 14px;
      border: 1px solid rgba(212, 165, 116, 0.22);
      border-radius: 18px;
      background:
        linear-gradient(135deg, rgba(232,226,214,0.045), rgba(15,17,24,0.72)),
        radial-gradient(70% 120% at 0% 0%, rgba(212,165,116,0.12), transparent 55%);
      box-shadow: 0 24px 80px rgba(0,0,0,0.34);
      padding: 16px;
      display: grid;
      gap: 12px;
    }

    .story-lens__eyebrow {
      color: var(--accent-color);
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .story-lens__main {
      display: grid;
      gap: 6px;
    }

    .story-lens__title {
      color: var(--text-primary);
      font-family: var(--font-display);
      font-size: clamp(22px, 4vw, 36px);
      line-height: 1.08;
    }

    .story-lens__meta {
      color: var(--text-secondary);
      font-size: 13px;
    }

    .story-lens__facts {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .story-lens__fact {
      border: 1px solid rgba(212, 165, 116, 0.18);
      border-radius: 999px;
      color: var(--text-secondary);
      font-size: 11px;
      letter-spacing: 0.08em;
      padding: 6px 9px;
      text-transform: uppercase;
    }

    /* Constellation Map (Desktop) [cite: 36, 58] */
    #map-container {
      position: relative;
      width: 100vw;
      height: calc(100vh - 60px); /* [cite: 58] */
      margin-top: 60px;
      display: none; /* Hidden on mobile by default */
      overflow: hidden;
      background:
        radial-gradient(circle at 50% 50%, rgba(212,165,116,0.045) 0 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,226,214,0.025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(232,226,214,0.02) 1px, transparent 1px);
      background-size: 58px 58px, 14vw 14vw, 14vw 14vw;
      border-top: 1px solid rgba(212, 165, 116, 0.08);
    }

    #canvas-lines {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
    }

    .node {
      position: absolute;
      z-index: 2;
      transform: translate(-50%, -50%);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 120px;
      background: transparent;
      border: none;
      color: inherit;
      font: inherit;
      outline: none;
      /* Ambient breathing animation [cite: 32, 33] */
    }

    .node-dot {
      width: 12px;
      height: 12px;
      background-color: var(--accent-color);
      border-radius: 50%;
      box-shadow: 0 0 10px rgba(212, 165, 116, 0.4); /* [cite: 46] */
      transition: all 0.3s ease;
      animation: pulse 4s infinite alternate; /* Ambient pulse [cite: 32] */
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 8px rgba(212, 165, 116, 0.3); transform: scale(0.95); }
      100% { box-shadow: 0 0 20px rgba(212, 165, 116, 0.7); transform: scale(1.05); }
    }

    .node-title {
      margin-top: 8px;
      font-family: var(--font-body);
      font-size: 11px;
      color: var(--text-secondary); /* [cite: 47] */
      max-width: 100px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .node:hover .node-dot, .node:focus-visible .node-dot, .node.inspected .node-dot, .node.active .node-dot {
      background-color: #fff;
      box-shadow: 0 0 25px rgba(255, 255, 255, 0.8); /* [cite: 49] */
    }

    .node:hover .node-title, .node:focus-visible .node-title, .node.inspected .node-title, .node.active .node-title {
      font-size: 13px;
      color: var(--text-primary); /* [cite: 49] */
    }

    .node:focus-visible {
      border-radius: 999px;
      outline: 1px solid rgba(232,226,214,0.62);
      outline-offset: 10px;
    }

    .node.flash .node-dot {
      animation: flashPulse 1.1s ease;
      background-color: #fff;
      box-shadow: 0 0 28px rgba(255, 255, 255, 0.9);
    }

    @keyframes flashPulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.35); }
      100% { transform: scale(1); }
    }

    /* Mobile List Layout [cite: 59, 60] */
    #mobile-list {
      display: flex;
      flex-direction: column;
      padding: 80px 24px 48px; /* Separated by padding [cite: 16] */
      gap: 24px;
    }

    .mobile-row {
      display: flex;
      align-items: center;
      gap: 16px;
      cursor: pointer;
      padding: 12px;
      border-radius: 8px;
      transition: background 0.2s;
    }

    .mobile-row:hover {
      background: rgba(255, 255, 255, 0.03);
    }

    .mobile-row:focus-visible,
    .mobile-row.inspected {
      background: rgba(212, 165, 116, 0.08);
      outline: 1px solid rgba(212, 165, 116, 0.45);
      outline-offset: 2px;
    }

    .mobile-thumb {
      width: 60px;
      height: 60px;
      border-radius: 4px;
      object-fit: cover;
      border: 1px solid rgba(212, 165, 116, 0.2);
    }

    .mobile-info {
      flex: 1;
    }

    .mobile-title {
      font-family: var(--font-display);
      font-size: 16px;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .mobile-loc {
      font-family: var(--font-body);
      font-size: 11px;
      color: var(--accent-color);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* Story Panel (Overlay) [cite: 50, 51] */
    #story-panel {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%; /* 100% width on mobile [cite: 51] */
      height: 100vh;
      background-color: var(--panel-bg); /* [cite: 51] */
      border-left: 1px solid var(--accent-color);
      z-index: 200;
      transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1), bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1), top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    #story-panel.open {
      right: 0;
    }

    /* Close button [cite: 56] */
    .close-btn {
      position: absolute;
      top: 16px;
      right: 16px;
      font-size: 20px;
      color: #8a7e6e; /* [cite: 56] */
      cursor: pointer;
      z-index: 210;
      background: rgba(15, 17, 24, 0.6);
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      border: none;
    }

    .close-btn:hover {
      color: var(--accent-color);
    }

    .panel-hero {
      width: 100%;
      height: 280px; /* 280px tall [cite: 52] */
      position: relative;
    }

    .panel-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .panel-gradient {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to top, rgba(15,17,24,0.8) 0%, rgba(15,17,24,0) 100%); /* [cite: 52] */
    }

    .panel-content {
      padding: 32px 24px; /* padding 0 24px mobile [cite: 16] */
      flex: 1;
    }

    .panel-title {
      font-family: var(--font-display);
      font-size: 28px; /* Playfair Display, 28px [cite: 53] */
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .panel-location {
      font-family: var(--font-body);
      font-size: 12px;
      color: var(--accent-color); /* [cite: 53] */
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 24px;
    }

    .panel-body {
      font-family: var(--font-body);
      font-size: 15px; /* Minimum 15px [cite: 11, 54] */
      color: var(--text-body);
      line-height: 1.7;
      margin-bottom: 32px;
    }

    .panel-body p {
      margin-bottom: 16px;
    }

    .panel-connection {
      font-family: var(--font-body);
      font-style: italic;
      font-size: 13px; /* [cite: 54] */
      color: var(--accent-color);
      border-top: 1px solid rgba(212, 165, 116, 0.2);
      padding-top: 24px;
      margin-bottom: 16px;
    }

    .panel-related-btn {
      display: inline-block;
      font-family: var(--font-body);
      font-size: 13px;
      color: var(--text-primary);
      text-decoration: none;
      cursor: pointer;
      background: transparent;
      border: 1px solid var(--accent-color);
      padding: 6px 12px;
      border-radius: 4px;
      transition: all 0.2s;
    }

    .panel-related-btn:hover {
      background: var(--accent-color);
      color: var(--bg-color);
    }

    /* Desktop overrides */
    @media (min-width: 768px) {
      p { font-size: 16px; } /* 16px on desktop [cite: 11] */

      #map-container { display: block; }
      #mobile-list { display: none; }

      #story-panel {
        width: 480px; /* 480px wide desktop [cite: 51] */
      }

      .panel-content {
        padding: 40px 48px; /* padding 0 48px tablet/desktop [cite: 16] */
      }
    }

    @media (max-width: 767px) {
      /* Mobile modal slides from bottom [cite: 50] */
      #story-panel {
        right: 0;
        top: 100%;
        border-left: none;
        border-top: 1px solid var(--accent-color);
      }
      #story-panel.open {
        top: 0;
      }
    }

    .faces-shuffle {
      position: fixed;
      right: 16px;
      bottom: 16px;
      z-index: 220;
      border: 1px solid rgba(212, 165, 116, 0.6);
      background: rgba(10, 12, 20, 0.9);
      color: var(--accent-color);
      border-radius: 999px;
      padding: 9px 14px;
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform 0.2s ease;
    }
    .faces-shuffle:hover {
      transform: translateY(-2px);
    }

    .faces-toast {
      position: fixed;
      right: 16px;
      bottom: 60px;
      z-index: 220;
      border: 1px solid rgba(212, 165, 116, 0.35);
      background: rgba(10, 12, 20, 0.95);
      color: var(--text-primary);
      border-radius: 8px;
      padding: 7px 10px;
      max-width: 280px;
      font-size: 12px;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.2s ease, transform 0.2s ease;
      pointer-events: none;
    }
    .faces-toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    body.faces-easter .panel-related-btn {
      background: var(--accent-color);
      color: var(--bg-color);
    }

    @media (prefers-reduced-motion: reduce) {
      .node-dot,
      .node.flash .node-dot {
        animation: none;
      }

      .glow,
      .node-dot,
      .node-title,
      #story-panel,
      .faces-toast {
        transition: none;
      }
    }
