    /* ==========================================================================
       1. DESIGN TOKENS, DARK CINEMA PALETTES, 12 ACCENTS & 4 FONT PAIRINGS
       ========================================================================== */
    :root {
      --bg-primary: #0b0f19;
      --bg-secondary: #111726;
      --bg-card: #141b2b;
      --bg-card-elevated: #192236;
      --bg-tile: #1e283d;
      --bg-tile-hover: #26324c;
      --border-subtle: rgba(255, 255, 255, 0.08);
      --border-strong: rgba(255, 255, 255, 0.16);
      --text-primary: #f8fafc;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;

      --accent: #eab308;
      --accent-contrast: #0b0f19;
      --accent-soft: rgba(234, 179, 8, 0.14);
      --accent-border: rgba(234, 179, 8, 0.45);
      --accent-glow: rgba(234, 179, 8, 0.16);

      --green-solid: #1eb954;
      --green-bg: rgba(30, 185, 84, 0.2);
      --green-border: #22c55e;
      --yellow-bg: rgba(234, 179, 8, 0.22);
      --yellow-border: #eab308;
      --danger: #ef4444;

      --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
      --font-serif: 'Playfair Display', Georgia, serif;
      --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;

      --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.55);
    }

    body[data-palette="obsidian"] {
      --bg-primary: #020305;
      --bg-secondary: #07080c;
      --bg-card: #0c0e14;
      --bg-card-elevated: #12151e;
      --bg-tile: #161a24;
      --bg-tile-hover: #1f2433;
      --border-subtle: rgba(255, 255, 255, 0.09);
      --border-strong: rgba(255, 255, 255, 0.2);
      --text-primary: #ffffff;
      --text-secondary: #9ca3af;
      --text-muted: #6b7280;
      --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.85);
    }

    body[data-palette="abyssal"] {
      --bg-primary: #05070a;
      --bg-secondary: #090c11;
      --bg-card: #0e1219;
      --bg-card-elevated: #141923;
      --bg-tile: #19202c;
      --bg-tile-hover: #222b3b;
      --border-subtle: rgba(148, 163, 184, 0.1);
      --border-strong: rgba(148, 163, 184, 0.22);
      --text-primary: #f1f5f9;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
      --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.88);
    }

    body[data-palette="shadow"] {
      --bg-primary: #06050b;
      --bg-secondary: #0b0914;
      --bg-card: #110e1e;
      --bg-card-elevated: #171329;
      --bg-tile: #1e1934;
      --bg-tile-hover: #282144;
      --border-subtle: rgba(196, 181, 253, 0.11);
      --border-strong: rgba(196, 181, 253, 0.22);
      --text-primary: #f5f3ff;
      --text-secondary: #a5b4fc;
      --text-muted: #6366f1;
      --shadow-card: 0 18px 44px rgba(2, 1, 8, 0.88);
    }

    body[data-palette="velvet"] {
      --bg-primary: #0d050c;
      --bg-secondary: #150814;
      --bg-card: #1d0c1c;
      --bg-card-elevated: #261024;
      --bg-tile: #30142d;
      --bg-tile-hover: #3e1b3a;
      --border-subtle: rgba(244, 214, 230, 0.12);
      --border-strong: rgba(244, 214, 230, 0.24);
      --text-primary: #fdf8f5;
      --text-secondary: #d8bfd0;
      --text-muted: #9e8196;
      --shadow-card: 0 18px 42px rgba(6, 1, 6, 0.82);
    }

    body[data-palette="ivory"] {
      --bg-primary: #f6f2e9;
      --bg-secondary: #ede7da;
      --bg-card: #ffffff;
      --bg-card-elevated: #faf7f0;
      --bg-tile: #f2ece0;
      --bg-tile-hover: #e8e0cf;
      --border-subtle: rgba(28, 25, 23, 0.1);
      --border-strong: rgba(28, 25, 23, 0.2);
      --text-primary: #1c1917;
      --text-secondary: #57534e;
      --text-muted: #78716c;
      --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.08);
    }

    /* 12 Curated Accent Shades */
    body[data-accent="gold"] { --accent: #eab308; --accent-contrast: #0b0f19; --accent-soft: rgba(234,179,8,0.14); --accent-border: rgba(234,179,8,0.48); --accent-glow: rgba(234,179,8,0.16); }
    body[data-accent="crimson"] { --accent: #e11d48; --accent-contrast: #ffffff; --accent-soft: rgba(225,29,72,0.15); --accent-border: rgba(225,29,72,0.48); --accent-glow: rgba(225,29,72,0.18); }
    body[data-accent="coral"] { --accent: #f97316; --accent-contrast: #0b0f19; --accent-soft: rgba(249,115,22,0.15); --accent-border: rgba(249,115,22,0.48); --accent-glow: rgba(249,115,22,0.16); }
    body[data-accent="cobalt"] { --accent: #3b82f6; --accent-contrast: #ffffff; --accent-soft: rgba(59,130,246,0.15); --accent-border: rgba(59,130,246,0.48); --accent-glow: rgba(59,130,246,0.18); }
    body[data-accent="emerald"] { --accent: #10b981; --accent-contrast: #062118; --accent-soft: rgba(16,185,129,0.15); --accent-border: rgba(16,185,129,0.48); --accent-glow: rgba(16,185,129,0.16); }
    body[data-accent="amethyst"] { --accent: #a855f7; --accent-contrast: #ffffff; --accent-soft: rgba(168,85,247,0.15); --accent-border: rgba(168,85,247,0.48); --accent-glow: rgba(168,85,247,0.18); }
    body[data-accent="rose"] { --accent: #ec4899; --accent-contrast: #ffffff; --accent-soft: rgba(236,72,153,0.15); --accent-border: rgba(236,72,153,0.48); --accent-glow: rgba(236,72,153,0.18); }
    body[data-accent="teal"] { --accent: #14b8a6; --accent-contrast: #04201d; --accent-soft: rgba(20,184,166,0.15); --accent-border: rgba(20,184,166,0.48); --accent-glow: rgba(20,184,166,0.16); }
    body[data-accent="copper"] { --accent: #d97706; --accent-contrast: #ffffff; --accent-soft: rgba(217,119,6,0.15); --accent-border: rgba(217,119,6,0.48); --accent-glow: rgba(217,119,6,0.16); }
    body[data-accent="sapphire"] { --accent: #6366f1; --accent-contrast: #ffffff; --accent-soft: rgba(99,102,241,0.15); --accent-border: rgba(99,102,241,0.48); --accent-glow: rgba(99,102,241,0.18); }
    body[data-accent="ruby"] { --accent: #dc2626; --accent-contrast: #ffffff; --accent-soft: rgba(220,38,38,0.15); --accent-border: rgba(220,38,38,0.48); --accent-glow: rgba(220,38,38,0.18); }
    body[data-accent="silver"] { --accent: #cbd5e1; --accent-contrast: #0f172a; --accent-soft: rgba(203,213,225,0.15); --accent-border: rgba(203,213,225,0.48); --accent-glow: rgba(203,213,225,0.15); }

    /* 4 Classic Font Pairings */
    body[data-font="marquee"] { --font-display: 'Cinzel', 'Playfair Display', serif; --font-serif: 'Playfair Display', serif; --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif; }
    body[data-font="editorial"] { --font-display: 'Cormorant Garamond', Georgia, serif; --font-serif: 'Playfair Display', Georgia, serif; --font-body: 'Inter', system-ui, sans-serif; }
    body[data-font="modern"] { --font-display: 'Playfair Display', Georgia, serif; --font-serif: 'Playfair Display', Georgia, serif; --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif; }
    body[data-font="silverscreen"] { --font-display: 'Cinzel', Georgia, serif; --font-serif: 'Cormorant Garamond', Georgia, serif; --font-body: 'Inter', system-ui, sans-serif; }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body {
      min-height: 100%;
      background-color: var(--bg-primary);
      color: var(--text-primary);
      font-family: var(--font-body);
      line-height: 1.45;
      overflow-x: hidden;
      transition: background-color 0.25s ease, color 0.25s ease;
    }

    body.cinema-glow::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background:
        radial-gradient(ellipse 68% 45% at 50% 0%, var(--accent-glow), transparent 72%),
        radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.42) 100%);
    }

    .app-shell {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 16px 64px;
    }

    /* ==========================================================================
       2. MINIMALIST TOP CORNER BAR
       ========================================================================== */
    .minimal-top-bar {
      width: 100%;
      max-width: 1280px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 22px;
    }

    .top-bar-group { display: flex; align-items: center; gap: 10px; }

    .icon-circle-btn {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      color: var(--text-secondary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, transform 0.14s ease;
    }
    .icon-circle-btn:hover {
      border-color: var(--accent);
      color: var(--text-primary);
      background: var(--bg-card-elevated);
      transform: translateY(-1px);
    }
    .icon-circle-btn svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .mini-dot-badge {
      position: absolute;
      top: -2px;
      right: -2px;
      min-width: 17px;
      height: 17px;
      padding: 0 4px;
      border-radius: 999px;
      background: var(--accent);
      color: var(--accent-contrast);
      font-size: 0.65rem;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* ==========================================================================
       3. CENTERED STAGE COLUMN
       ========================================================================== */
    .center-stage-col {
      width: 100%;
      max-width: 650px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }

    .stage-hud-row {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }

    .stage-hud-left { display: flex; justify-content: flex-start; }
    .stage-hud-right { display: flex; justify-content: flex-end; }

    .hud-subtle-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 34px;
      padding: 0 13px;
      border-radius: 9px;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
      font-family: var(--font-body);
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
      white-space: nowrap;
    }
    .hud-subtle-pill:hover:not(:disabled) {
      border-color: var(--accent-border);
      color: var(--text-primary);
      background: var(--bg-card-elevated);
    }
    .hud-subtle-pill.ready { border-color: var(--accent-border); color: var(--accent); }
    .hud-subtle-pill:disabled { opacity: 0.55; cursor: not-allowed; }

    .guess-status-center {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text-secondary);
      text-align: center;
      white-space: nowrap;
    }
    .guess-status-center .accent-num { color: var(--accent); font-weight: 800; }

    .search-input-shell {
      position: relative;
      display: flex;
      align-items: center;
      margin-bottom: 18px;
    }

    .spotle-search-input {
      width: 100%;
      height: 48px;
      padding: 0 46px 0 18px;
      border-radius: 12px;
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      color: var(--text-primary);
      font-family: var(--font-body);
      font-size: 0.92rem;
      font-weight: 500;
      outline: none;
      transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    }
    .spotle-search-input::placeholder { color: var(--text-muted); }
    .spotle-search-input:focus {
      border-color: var(--accent-border);
      background: var(--bg-card-elevated);
      box-shadow: 0 0 0 3px var(--accent-glow);
    }
    .spotle-search-input:disabled { opacity: 0.55; cursor: not-allowed; }

    .search-right-icon {
      position: absolute;
      right: 16px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      pointer-events: none;
    }
    .search-right-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }

    .autocomplete-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      background: var(--bg-card-elevated);
      border: 1px solid var(--accent-border);
      border-radius: 12px;
      max-height: 300px;
      overflow-y: auto;
      z-index: 60;
      box-shadow: 0 22px 48px rgba(0, 0, 0, 0.78);
      display: none;
    }
    .autocomplete-dropdown.open { display: block; }

    .ac-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 15px;
      border-bottom: 1px solid var(--border-subtle);
      cursor: pointer;
      transition: background 0.12s ease;
    }
    .ac-row:last-child { border-bottom: none; }
    .ac-row:hover, .ac-row.highlighted { background: var(--accent-soft); }
    .ac-row-title { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
    .ac-row-sub { font-size: 0.75rem; color: var(--text-secondary); }
    .ac-row-badge {
      font-size: 0.7rem;
      font-weight: 700;
      padding: 3px 9px;
      border-radius: 999px;
      background: var(--bg-tile);
      border: 1px solid var(--border-subtle);
      color: var(--accent);
      white-space: nowrap;
    }

    /* ==========================================================================
       4. LEFT MENU DRAWER
       ========================================================================== */
    .left-drawer-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(3, 6, 14, 0.76);
      backdrop-filter: blur(6px);
      display: none;
      justify-content: flex-start;
      z-index: 115;
    }
    .left-drawer-backdrop.open { display: flex; }

    .left-menu-drawer {
      width: 100%;
      max-width: 380px;
      height: 100%;
      background: var(--bg-secondary);
      border-right: 1px solid var(--border-strong);
      padding: 22px 20px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .menu-brand-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .brand-lockup { display: flex; align-items: center; gap: 11px; }
    .brand-emblem {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      border: 1.5px solid var(--accent-border);
      background: var(--bg-card);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 0.8rem;
      letter-spacing: 0.06em;
      color: var(--accent);
    }
    .brand-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
    .brand-subtitle { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); }

    .menu-field-group { display: flex; flex-direction: column; gap: 6px; }
    .menu-field-label { font-size: 0.71rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }

    .studio-select-wrap { position: relative; display: flex; align-items: center; width: 100%; }
    .studio-select {
      width: 100%;
      appearance: none;
      -webkit-appearance: none;
      min-height: 42px;
      padding: 0 36px 0 14px;
      border-radius: 11px;
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      color: var(--text-primary);
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 0.86rem;
      cursor: pointer;
      outline: none;
      transition: border-color 0.15s ease;
    }
    .studio-select:hover, .studio-select:focus { border-color: var(--accent); }
    .studio-select option { background: var(--bg-secondary); color: var(--text-primary); }
    .select-chevron { position: absolute; right: 13px; pointer-events: none; color: var(--accent); font-size: 0.78rem; font-weight: 800; }

    .studio-pill-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 40px;
      padding: 8px 14px;
      border-radius: 11px;
      border: 1px solid var(--border-strong);
      background: var(--bg-card);
      color: var(--text-primary);
      font-family: var(--font-body);
      font-size: 0.83rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.14s ease;
    }
    .studio-pill-btn:hover { border-color: var(--accent); background: var(--bg-card-elevated); }
    .studio-pill-btn.accent-solid { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

    .filter-drawer-box {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: 14px;
      padding: 13px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .filter-slot-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .slot-label-text { font-weight: 700; font-size: 0.82rem; }
    .slot-status-pill { font-size: 0.69rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
    .filter-pills-wrap { display: flex; flex-wrap: wrap; gap: 5px; }

    .mini-filter-pill {
      padding: 4px 10px;
      min-height: 29px;
      border-radius: 999px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
      font-family: var(--font-body);
      font-size: 0.74rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.13s ease;
    }
    .mini-filter-pill:hover { border-color: var(--accent-border); color: var(--text-primary); }
    .mini-filter-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

    /* ==========================================================================
       5. GUESS CARDS (Movies, TV Series & Anime)
       ========================================================================== */
    .guess-stack { display: flex; flex-direction: column; gap: 14px; }

    .spotle-card {
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      border-radius: 16px;
      padding: 16px 18px;
      box-shadow: var(--shadow-card);
      animation: cardSlideIn 0.24s ease-out;
    }
    .spotle-card.exact-win {
      border: 1.5px solid var(--green-border);
      box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16), var(--shadow-card);
    }
    @keyframes cardSlideIn {
      from { opacity: 0; transform: translateY(-8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .card-upper-split {
      display: grid;
      grid-template-columns: 126px 1fr;
      gap: 16px;
      align-items: stretch;
    }

    .media-poster-box {
      width: 126px;
      min-height: 184px;
      border-radius: 10px;
      background: var(--bg-tile);
      border: 1px solid var(--border-subtle);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 1.35rem;
      color: var(--accent);
      flex-shrink: 0;
    }
    .media-poster-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .card-right-main {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-width: 0;
    }

    .card-entity-title {
      font-family: var(--font-body);
      font-size: 1.24rem;
      font-weight: 800;
      letter-spacing: -0.01em;
      color: var(--text-primary);
      line-height: 1.2;
      margin-bottom: 6px;
    }

    .genre-pills-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
    .genre-chip {
      font-size: 0.71rem;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 999px;
      background: var(--bg-tile);
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
    }
    .genre-chip.exact { background: var(--green-bg); border-color: var(--green-border); color: #4ade80; }
    body[data-palette="ivory"] .genre-chip.exact { color: #15803d; }

    .reference-tiles-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 0.92fr;
      grid-template-rows: 1fr 1fr;
      gap: 7px;
      flex: 1;
    }

    .s-tile {
      border-radius: 9px;
      background: var(--bg-tile);
      border: 1px solid var(--border-subtle);
      padding: 7px 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      min-height: 54px;
      transition: background 0.2s ease, border-color 0.2s ease;
    }
    .s-tile.span-2-rows { grid-column: 3; grid-row: 1 / span 2; }
    .s-tile.exact { background: #1eb954; border-color: #22c55e; color: #ffffff; }
    body[data-palette="ivory"] .s-tile.exact { background: #16a34a; color: #ffffff; }
    .s-tile.close { background: var(--yellow-bg); border-color: var(--yellow-border); }

    .s-tile-lbl {
      font-size: 0.59rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: var(--text-muted);
      margin-bottom: 3px;
    }
    .s-tile.exact .s-tile-lbl { color: rgba(255, 255, 255, 0.9); }
    .s-tile.close .s-tile-lbl { color: var(--text-primary); opacity: 0.85; }
    .s-tile-val { font-size: 0.86rem; font-weight: 800; line-height: 1.2; word-break: break-word; }

    .dual-rating-stack {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      font-size: 0.76rem;
      font-weight: 800;
      line-height: 1.25;
    }

    .studio-emblem-badge {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1.5px solid currentColor;
      opacity: 0.88;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-size: 0.78rem;
      font-weight: 800;
      margin: 2px 0 4px;
    }

    .card-credits-footer {
      margin-top: 13px;
      padding-top: 11px;
      border-top: 1px solid var(--border-subtle);
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      overflow-x: auto;
    }

    .credit-group { display: flex; flex-direction: column; align-items: center; gap: 7px; }
    .credit-group.grow { flex: 1; }
    .credit-group-title { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); text-align: center; }
    .credit-avatars-row { display: flex; align-items: flex-start; justify-content: center; gap: 12px; }
    .credit-divider-v { width: 1px; align-self: stretch; background: var(--border-subtle); margin-top: 14px; }

    .person-node { display: flex; flex-direction: column; align-items: center; width: 62px; text-align: center; }
    .person-avatar-circle {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--bg-tile);
      border: 1.5px solid var(--border-strong);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.72rem;
      font-weight: 800;
      color: var(--text-secondary);
      margin-bottom: 5px;
    }
    .person-node.exact .person-avatar-circle { border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35); color: #4ade80; }
    .person-short-name { font-size: 0.68rem; font-weight: 600; color: var(--text-secondary); line-height: 1.15; word-break: break-word; }
    .person-node.exact .person-short-name { color: #4ade80; font-weight: 800; }
    body[data-palette="ivory"] .person-node.exact .person-short-name { color: #15803d; }

    /* ==========================================================================
       6. PROGRESS BAR, ROTATING TIP CARD, TIMER, CLUES & MODALS
       ========================================================================== */
    .guess-segments-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 16px 0 12px; }
    .guess-seg { height: 3.5px; border-radius: 999px; background: var(--border-strong); transition: background 0.2s ease; }
    .guess-seg.done { background: var(--text-secondary); }
    .guess-seg.won { background: #22c55e; }
    .guess-seg.active { background: var(--accent); }

    .tip-carousel-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 15px 18px; margin-bottom: 16px; }
    .tip-carousel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
    .tip-nav-btn { width: 28px; height: 28px; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--text-muted); font-size: 0.9rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
    .tip-nav-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
    .tip-title-wrap { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 700; color: var(--text-primary); }
    .tip-kicker { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
    .tip-body-text { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 10px; }
    .tip-legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 9px; border-top: 1px solid var(--border-subtle); font-size: 0.77rem; color: var(--text-secondary); }
    .tip-legend-item { display: flex; align-items: center; gap: 7px; }

    .bottom-howto-link { align-self: center; background: none; border: none; color: var(--text-muted); font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; cursor: pointer; padding: 4px 10px; }
    .bottom-howto-link:hover { color: var(--text-primary); }

    .timer-bar-panel, .revealed-clues-banner, .ost-player-panel {
      display: none;
      padding: 11px 15px;
      margin-bottom: 14px;
      border-radius: 12px;
      background: var(--bg-card);
      border: 1px solid var(--accent-border);
    }
    .timer-bar-panel.active, .ost-player-panel.active { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
    .revealed-clues-banner.active { display: flex; flex-direction: column; gap: 7px; }
    .timer-readout { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }
    .timer-readout.urgent { color: var(--danger); }

    .clue-item-line { font-size: 0.83rem; color: var(--text-primary); display: flex; align-items: flex-start; gap: 8px; }
    .clue-item-tag { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); white-space: nowrap; margin-top: 1px; }

    .eq-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 15px; }
    .eq-bar { width: 3px; height: 5px; background: var(--accent); border-radius: 2px; }
    .eq-bars.playing .eq-bar { animation: eqBounce 0.55s infinite alternate; }
    .eq-bars.playing .eq-bar:nth-child(2) { animation-delay: 0.15s; }
    .eq-bars.playing .eq-bar:nth-child(3) { animation-delay: 0.3s; }
    .eq-bars.playing .eq-bar:nth-child(4) { animation-delay: 0.1s; }
    @keyframes eqBounce { from { height: 4px; } to { height: 15px; } }

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(3, 6, 14, 0.82);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      z-index: 120;
    }
    .modal-overlay.open { display: flex; }

    .modal-dialog {
      width: 100%;
      max-width: 600px;
      max-height: 90vh;
      overflow-y: auto;
      border-radius: 22px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-strong);
      padding: 24px;
      box-shadow: 0 30px 70px rgba(0, 0, 0, 0.78);
    }
    .modal-dialog.settings-wide { max-width: 820px; }

    .settings-modal-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding-bottom: 16px;
      margin-bottom: 20px;
      border-bottom: 1px solid var(--border-subtle);
    }
    .settings-modal-title { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 800; }
    .settings-modal-sub { font-size: 0.83rem; color: var(--text-secondary); margin-top: 3px; }

    .circle-close-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      color: var(--text-primary);
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .circle-close-btn:hover { border-color: var(--accent); color: var(--accent); }

    .settings-sec-label { font-size: 0.73rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin: 18px 0 10px; }
    .settings-sec-label:first-of-type { margin-top: 0; }

    .palette-grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .palette-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-card); border: 1.5px solid var(--border-subtle); color: var(--text-primary); text-align: left; cursor: pointer; }
    .palette-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
    .palette-swatch-box { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .palette-swatch-ring { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--accent); }
    .palette-name { font-weight: 700; font-size: 0.88rem; }
    .palette-desc { font-size: 0.73rem; color: var(--text-secondary); }

    .accents-grid-4x3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
    .accent-pill-card { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: var(--bg-card); border: 1.5px solid var(--border-subtle); color: var(--text-primary); font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
    .accent-pill-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
    .accent-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }

    .font-grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .font-card { padding: 13px 15px; border-radius: 14px; background: var(--bg-card); border: 1.5px solid var(--border-subtle); color: var(--text-primary); text-align: left; cursor: pointer; }
    .font-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
    .font-card-sample { font-size: 1.02rem; font-weight: 800; margin-bottom: 3px; }
    .font-card-sub { font-size: 0.74rem; color: var(--text-secondary); }

    .settings-box-panel { margin-top: 14px; padding: 14px 16px; border-radius: 15px; background: var(--bg-card); border: 1px solid var(--border-subtle); }
    .settings-box-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .status-pill-green { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.45); color: #34d399; }
    .key-input-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .studio-text-input { flex: 1; min-width: 210px; min-height: 40px; padding: 8px 13px; border-radius: 11px; background: var(--bg-primary); border: 1px solid var(--border-strong); color: var(--text-primary); font-family: var(--font-body); font-size: 0.83rem; outline: none; }
    .studio-text-input:focus { border-color: var(--accent); }

    .hint-choice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 13px; background: var(--bg-card); border: 1px solid var(--border-subtle); margin-bottom: 9px; cursor: pointer; }
    .hint-choice-row:hover:not(.used) { border-color: var(--accent); background: var(--bg-card-elevated); }
    .hint-choice-row.used { opacity: 0.5; cursor: not-allowed; }

    .drawer-backdrop { position: fixed; inset: 0; background: rgba(3, 6, 14, 0.76); backdrop-filter: blur(6px); display: none; justify-content: flex-end; z-index: 115; }
    .drawer-backdrop.open { display: flex; }
    .guide-drawer { width: 100%; max-width: 440px; height: 100%; background: var(--bg-secondary); border-left: 1px solid var(--border-strong); padding: 24px; overflow-y: auto; }

    .stats-4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 18px; }
    .stat-box { padding: 11px 6px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border-subtle); text-align: center; }
    .stat-num { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
    .stat-lbl { font-size: 0.66rem; text-transform: uppercase; color: var(--text-secondary); letter-spacing: 0.05em; }

    .studio-toast {
      position: fixed;
      bottom: 22px;
      left: 50%;
      transform: translateX(-50%) translateY(90px);
      background: var(--bg-card-elevated);
      border: 1.5px solid var(--accent);
      color: var(--text-primary);
      padding: 10px 18px;
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 700;
      box-shadow: 0 16px 38px rgba(0, 0, 0, 0.7);
      z-index: 160;
      opacity: 0;
      pointer-events: none;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .studio-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    @media (max-width: 640px) {
      .card-upper-split { grid-template-columns: 1fr; }
      .media-poster-box { width: 100%; min-height: 160px; height: 160px; }
      .reference-tiles-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
      .s-tile.span-2-rows { grid-column: 1 / -1; grid-row: auto; }
      .tip-legend-grid { grid-template-columns: 1fr; }
      .accents-grid-4x3 { grid-template-columns: repeat(2, 1fr); }
      .palette-grid-2x2, .font-grid-2x2 { grid-template-columns: 1fr; }
    }