
  :root {
    /* Z-index scale */
    --z-base: 1;
    --z-sticky: 20;
    --z-popover: 35;
    --z-modal: 70;
    --z-toast: 90;

    /* Concentric card geometry: inner = outer - padding (16 - 8 = 8px) */
    --radius-card: 16px;
    --pad-card: 8px;
    --radius-inner: 8px;
    --radius-panel: 14px;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;

    /* Zero-Chroma Gallery White / Neutral Monochrome (R=G=B) */
    --bg: #F3F3F3;
    --surface: #FFFFFF;
    --surface-hover: #FAFAFA;
    --surface-2: #EAEAEA;
    --card-mat: #FFFFFF;
    --ink: #141414;
    --ink-soft: #525252;
    --ink-faint: #6B6B6B;
    --stage-ink: #141414;
    --stage-ink-soft: #525252;
    --line: rgba(20, 20, 20, 0.09);
    --line-strong: rgba(20, 20, 20, 0.20);
    --accent: #141414;
    --accent-fg: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05), 0 12px 28px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12);

    /* Semantic colors: used ONLY on revealed states or armed risk */
    --ok: #266349;
    --ok-soft: #E8F2ED;
    --ok-border: rgba(38, 99, 73, 0.34);
    --danger: #A63429;
    --danger-soft: #F7EAE8;
    --danger-border: rgba(166, 52, 41, 0.34);
    --warn: #8A611C;
    --warn-soft: #F5EFE2;
    --warn-border: rgba(138, 97, 28, 0.40);
    --sem-fg: #FAFAFA;
  }

  * { box-sizing: border-box; }
  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3 { text-wrap: balance; }
  p { text-wrap: pretty; }
  button { font-family: inherit; cursor: pointer; }
  .tnum { font-variant-numeric: tabular-nums; }

  /* Standalone iOS PWA solid top shield (prevents iOS scroll-edge blur from washing out the header) */
  .pwa-top-shield { display: none; }
  @media (display-mode: standalone) {
    .pwa-top-shield {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: calc(env(safe-area-inset-top, 0px) + 18px);
      background: var(--bg);
      z-index: 25;
      pointer-events: none;
    }
  }

  /* Accessible keyboard focus rings across all interactive controls */
  :is(button, a, input, select, [tabindex]):focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }

  /* Sound icon button */
  .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-soft);
    display: inline-grid;
    place-items: center;
    padding: 0;
    transition: transform 120ms ease-out, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
  }
  .icon-btn:hover { background: var(--surface-hover); color: var(--ink); border-color: var(--ink); }
  .icon-btn:active { transform: scale(0.95); }
  .icon-btn[aria-pressed="false"] { opacity: 0.65; }
  .icon-btn svg { width: 15px; height: 15px; display: block; }

  /* Quiet Back-to-Hub link in left header zone */
  .hub-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 10px 0 6px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 120ms ease-out, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
  }
  .hub-back-link svg { width: 14px; height: 14px; display: block; flex-shrink: 0; }
  .hub-back-link:hover {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
  }
  .hub-back-link:active { transform: scale(0.96); }
  @media (max-width: 860px) {
    .hub-back-link {
      width: 34px;
      height: 34px;
      padding: 0;
      justify-content: center;
      border-color: var(--line-strong);
      background: var(--surface);
    }
    .hub-back-label { display: none; }
  }

  /* Shared Path A Primitives: Past Editions Archive & Interactive Round Review */
  .archive-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
  }
  .archive-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    text-align: left;
    transition: transform 120ms ease-out, border-color 140ms ease, background-color 140ms ease;
  }
  .archive-item:hover {
    background: var(--surface);
    border-color: var(--ink);
    transform: translateY(-1px);
  }
  .archive-item:active { transform: scale(0.99); }
  .archive-item.is-active {
    background: var(--surface);
    border-color: var(--ink);
    box-shadow: var(--shadow-sm);
  }
  .arch-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .arch-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .arch-sub {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-soft);
  }
  .arch-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink-soft);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .arch-badge.done { background: var(--ok-soft); color: var(--ok); }
  .arch-badge.today-tag { background: var(--ink); color: var(--accent-fg); font-size: 9px; padding: 2px 6px; }
  .arch-note {
    margin: 12px 0 0;
    font-size: 11.5px;
    color: var(--ink-faint);
    line-height: 1.4;
  }

  .review-sheet { max-width: 780px !important; }
  .review-kicker {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 4px;
  }
  .review-headline {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.25;
  }
  .review-tell {
    margin: 0 0 16px;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.45;
  }
  .review-tell strong {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-right: 6px;
  }
  .review-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .review-pos {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-soft);
  }
  .sum-row-btn {
    cursor: pointer;
    border-radius: 10px;
    margin: 0 -8px;
    padding-left: 10px !important;
    padding-right: 10px !important;
    transition: background-color 130ms ease;
  }
  .sum-row-btn:hover { background: rgba(20, 20, 20, 0.045); }
  .sum-chev {
    color: var(--ink-faint);
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    transition: transform 130ms ease, color 130ms ease;
  }
  .sum-chev svg { width: 14px; height: 14px; display: block; }
  .sum-row-btn:hover .sum-chev { color: var(--ink); transform: translateX(2px); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  a { color: inherit; text-decoration: none; }

  .page-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 22px 72px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  /* Unified 56px Suite Masthead matching Spot the Impostor */
  .site-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 56px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    gap: 10px;
  }
  .site-left { justify-self: start; display: flex; align-items: center; gap: 6px; }
  .site-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; }
  .site-brand {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
  }
  .site-kicker {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  .site-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
  .top-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 5px 8px;
    border-radius: 999px;
    transition: color 130ms ease, background-color 130ms ease;
    white-space: nowrap;
  }
  .top-link:hover { color: var(--ink); background: var(--surface); }
  .top-link.active { color: var(--ink); font-weight: 700; }

  .play-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--accent-fg);
    border: 1px solid var(--ink);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 140ms ease, transform 120ms ease;
  }
  .play-pill:hover { opacity: 0.88; }
  .play-pill:active { transform: scale(0.97); }
  .play-pill svg { width: 13px; height: 13px; display: block; }

  /* Breadcrumb */
  .crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 16px 0 14px;
    font-size: 12px;
    color: var(--ink-faint);
  }
  .crumbs a { color: var(--ink-soft); font-weight: 500; }
  .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
  .crumbs span[aria-current="page"] { color: var(--ink); font-weight: 600; }

  /* Shared Editorial Cards & Pills */
  .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
  }
  .kicker {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  .sec-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 130ms ease, border-color 130ms ease, transform 120ms ease;
  }
  .pill-btn:hover { background: var(--surface-hover); border-color: var(--ink); }
  .pill-btn:active { transform: scale(0.97); }
  .pill-btn.primary { background: var(--ink); color: var(--accent-fg); border-color: var(--ink); }
  .pill-btn.primary:hover { opacity: 0.9; background: var(--ink); }
  .pill-btn.sm { padding: 5px 11px; font-size: 11.5px; }

  /* Hero Artist Dossier */
  .hero-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .hero-h1 {
    margin: 4px 0 6px;
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--ink);
  }
  .hero-lead {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 760px;
  }
  .trad-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink);
  }
  .trad-link-pill:hover { border-color: var(--ink); background: var(--surface); }

  /* Hero Proportional Signature Palette + Export Bar */
  .sig-bar {
    display: flex;
    height: 52px;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.11);
    margin: 18px 0 12px;
  }
  .sig-bar.compact { height: 34px; border-radius: 8px; margin: 8px 0 0; }
  .sig-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    padding: 0 4px;
    min-width: 24px;
    overflow: hidden;
    white-space: nowrap;
    transition: filter 120ms ease;
  }
  .sig-chip:hover { filter: brightness(1.07); }
  .sig-chip.dark-ink { color: rgba(20, 20, 20, 0.86); }
  .sig-chip.light-ink { color: rgba(255, 255, 255, 0.94); }

  .export-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .export-btns { display: flex; gap: 7px; flex-wrap: wrap; }

  /* Swatch Reference Table (SEO Gold for Hex & RGB Queries) */
  .swatch-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
  }
  .swatch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  .swatch-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }
  .swatch-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
  }
  .swatch-table tr:last-child td { border-bottom: none; }
  .sw-name-cell { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
  .sw-dot {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
  }
  .mono-code {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
  }
  .copy-mini {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
  }
  .copy-mini:hover { border-color: var(--ink); color: var(--ink); }

  /* Secondary Palette Modes */
  .modes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 16px;
  }
  .mode-box {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
  }
  .mode-box-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
  }
  .mode-box-cnt { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); font-weight: 600; }

  /* ==================== PLAYABLE MINI-CHALLENGE (CONVERSION ENGINE) ==================== */
  .mini-game-card {
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 22px;
  }
  .mini-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .mini-title {
    margin: 4px 0 4px;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
  }
  .mini-sub { margin: 0; font-size: 13px; color: var(--ink-soft); }
  .mini-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
  .mini-card {
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: 14px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
    text-align: left;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
    position: relative;
  }
  .mini-card:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: var(--ink);
    box-shadow: var(--shadow-md);
  }
  .mini-card:disabled { cursor: default; }
  .mini-card.is-imp { border-color: var(--ok); box-shadow: 0 0 0 1.5px var(--ok); }
  .mini-card.is-wrong { border-color: var(--danger); box-shadow: 0 0 0 1.5px var(--danger); }
  .mini-card.is-host { opacity: 0.78; }

  .mini-stripes {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
  }
  .mini-stripes span { display: block; width: 100%; }

  .mini-reveal-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .mini-reveal-art img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }
  .mini-reveal-bar {
    display: flex;
    height: 12px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.10);
  }
  .mini-reveal-bar span { display: block; height: 100%; }
  .mini-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-faint);
    padding: 0 2px;
  }
  .mini-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: var(--surface-2);
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .mini-pill.imp { background: var(--ok-soft); color: var(--ok); }
  .mini-pill.wrong { background: var(--danger-soft); color: var(--danger); }

  .mini-result {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }
  .mini-result.open { display: flex; }
  .mini-verdict { font-size: 13.5px; color: var(--ink); line-height: 1.45; max-width: 640px; }
  .mini-verdict strong.ok { color: var(--ok); }
  .mini-verdict strong.miss { color: var(--danger); }

  /* Color Grammar & Design Guide */
  .grammar-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 12px 0 14px;
  }
  .g-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 12px;
    border-right: 1px solid var(--line);
  }
  .g-cell:last-child { border-right: none; padding-right: 0; }
  .g-lbl {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  .g-val { font-size: 14px; font-weight: 700; color: var(--ink); }
  .g-sub { font-size: 12px; color: var(--ink-soft); }

  .gba-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 14px;
  }
  .gba-bar {
    flex: 1 1 200px;
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface-2);
  }
  .gba-g { background: #CFCFCF; }
  .gba-b { background: #7D7D7D; }
  .gba-a { background: #1A1A1A; }
  .gba-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 600;
  }
  .gba-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
  .design-copy { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

  /* Career Timeline */
  .tl-strip { display: flex; gap: 4px; height: 70px; align-items: stretch; margin-top: 10px; }
  .tl-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    min-width: 12px;
  }
  .tl-col span { display: block; width: 100%; }
  .tl-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-faint);
  }

  /* Museum Works Gallery */
  .works-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
  }
  .work-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 9px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    transition: transform 130ms ease, border-color 130ms ease;
  }
  .work-card:hover { transform: translateY(-2px); border-color: var(--ink); }
  .work-img-wrap {
    width: 100%;
    min-height: 175px;
    max-height: 230px;
    padding: 8px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    overflow: hidden;
  }
  .work-img-wrap img {
    max-width: 100%;
    max-height: 214px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.13), 0 0 0 1px rgba(0, 0, 0, 0.09);
  }
  .work-swatches {
    display: flex;
    height: 20px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
  }
  .w-sw { cursor: pointer; min-width: 8px; border: none; padding: 0; }
  .w-sw:hover { filter: brightness(1.08); }
  .work-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.28;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .work-hex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--ink-faint);
    line-height: 1.2;
  }
  .work-hex-row button {
    border: none;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  .work-hex-row button:hover { color: var(--ink); text-decoration: underline; }
  .code-copy-btn {
    border: none;
    background: transparent;
    padding: 2px 5px;
    margin: -2px -5px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
  }
  .code-copy-btn:hover { background: var(--surface-2); }
  .guide-pills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
  }
  .guide-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
  }
  .guide-card:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-md); }
  .guide-card h2 { margin: 0; font-family: var(--font-serif); font-size: 19px; font-weight: 700; line-height: 1.2; }
  .guide-card p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
  .guide-card-foot { margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--ink-faint); display: flex; justify-content: space-between; }
  .work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    color: var(--ink-faint);
  }
  .work-meta a { color: var(--ink-soft); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); }
  .work-meta a:hover { color: var(--ink); }

  /* Closest Color Neighbors & Directory Grids */
  .neighbors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .neighbor-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 11px;
    display: block;
    min-width: 0;
    transition: transform 130ms ease, border-color 130ms ease, background-color 130ms ease;
  }
  .neighbor-card:hover { transform: translateY(-2px); border-color: var(--ink); background: var(--surface); }
  .nb-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 8px; }
  .nb-thumbs div { aspect-ratio: 1 / 1; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
  .nb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .nb-bar { display: flex; height: 10px; border-radius: 4px; overflow: hidden; margin-bottom: 7px; border: 1px solid rgba(0, 0, 0, 0.08); }
  .nb-bar span { display: block; height: 100%; }
  .nb-name { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nb-meta { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }

  /* Directory Controls */
  .dir-controls {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .dir-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .filter-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .fpill {
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 600;
  }
  .fpill:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
  .fpill.active { background: var(--ink); color: var(--accent-fg); border-color: var(--ink); }
  .search-input {
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--ink);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    width: 230px;
    outline: none;
  }
  .search-input:focus { border-color: var(--ink); background: var(--surface); }

  /* FAQ Accordion */
  .faq-list { display: flex; flex-direction: column; gap: 8px; }
  .faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    padding: 12px 15px;
  }
  .faq-item summary {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 15px; color: var(--ink-faint); }
  .faq-item[open] summary::after { content: "−"; color: var(--ink); }
  .faq-item p { margin: 9px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

  /* Bottom Daily Puzzle Promo Strip */
  .promo-banner {
    background: var(--ink);
    color: var(--accent-fg);
    border-radius: 18px;
    padding: 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .promo-banner h2 {
    margin: 4px 0 4px;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .promo-banner p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.78); max-width: 520px; }
  .promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .promo-cta:hover { opacity: 0.92; }

  /* Footer */
  .site-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ink-soft);
  }
  .footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
  .footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

  /* Lightbox & Toast */
  .toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 14px);
    background: var(--ink);
    color: var(--accent-fg);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
    z-index: var(--z-toast);
  }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }

  .lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(20, 20, 20, 0.74);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
  }
  .lightbox.open { display: flex; }
  .lb-panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: min(92vw, 860px);
    width: 100%;
    max-height: 94vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .lb-stage {
    position: relative;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 54px;
    height: min(58vh, 520px);
  }
  .lb-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 5px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.10);
  }
  .lb-btn {
    position: absolute;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
  }
  .lb-btn:hover { background: var(--surface); border-color: var(--ink); }
  .lb-close { top: 12px; right: 12px; width: 34px; height: 34px; font-size: 18px; }
  .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; }
  .lb-next { right: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; }
  .lb-info { padding: 15px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
  .lb-title { margin: 0; font-family: var(--font-serif); font-size: 19px; font-weight: 700; }
  .lb-meta { font-size: 12.5px; color: var(--ink-soft); }
  .lb-swatches { display: flex; height: 28px; border-radius: 7px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.10); }
  .lb-sw { border: none; cursor: pointer; font-family: var(--font-mono); font-size: 10px; font-weight: 700; }

  @media (max-width: 900px) {
    .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .neighbors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grammar-strip { grid-template-columns: 1fr; gap: 10px; }
    .g-cell { border-right: none; padding-right: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
    .g-cell:last-child { border-bottom: none; padding-bottom: 0; }
  }
  @media (max-width: 680px) {
    .page-wrap { padding: 0 14px 52px; }
    .card, .mini-game-card { padding: 16px; }
    .mini-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .mini-card { padding: 4px; border-radius: 10px; }
    .mini-foot { font-size: 9px; }
    .neighbors-grid { grid-template-columns: 1fr; }
    .site-right .top-link { display: none; }
  }
  @media (display-mode: standalone) {
    .page-wrap { padding-top: calc(env(safe-area-inset-top, 0px) + 22px); }
    .site-bar { background: var(--bg); }
  }
