/* =====================================================================
   POOPIES INC.™ — WARM DIM CINEMA THEME (Main Style)
   Matte foggy espresso (#181513), soft low-glare oat-cream ink (#cfc6b8),
   muted sand & clay accents, deep forest green vs. muted burgundy split,
   16px cinema letterbox bars + 2px top progress hairline, compact Act
   headers, faint modern hairline frames, tactile folio drawers, and
   Fraunces 300 + Instrument Serif + B.I.T.C.H. (V.O.) bridges.
===================================================================== */

html[data-style="softfilm"] {
  --bg: #181513;
  --bg-elev: #1e1a17;
  --card: #1d1916;
  --card-soft: #25201c;
  --ink: #cfc6b8;
  --ink-soft: #a19689;
  --ink-muted: #766d63;
  --line: rgba(207, 198, 184, 0.09);
  --line-strong: rgba(207, 198, 184, 0.17);
  --amber: #c7a87e;
  --sand: #c7a87e;
  --terracotta: #b57d6a;
  --clay: #b57d6a;
  --sage: #889e89;
  --subtitle: #d5c9b6;
  --bar: 16px;

  --font-serif: "Fraunces", Georgia, serif;
  --font-title: "Instrument Serif", "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-hand: "Caveat", cursive;

  & body {
    background: var(--bg);
    color: var(--ink);
  }
  & ::selection { background: rgba(199, 168, 126, 0.3); color: #e2d9cb; }

  /* Subtle matte espresso letterbox framing + 2px progress hairline */
  & body::before,
  & body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    height: var(--bar);
    background: #120f0e;
    z-index: 905;
    pointer-events: none;
  }
  & body::before {
    top: 0;
    background:
      linear-gradient(90deg, rgba(199, 168, 126, 0.78) 0 calc(var(--act-progress, 0.1667) * 100%), transparent 0) top left / 100% 2px no-repeat,
      #120f0e;
    box-shadow: 0 1px 0 rgba(207, 198, 184, 0.05);
  }
  & body::after {
    bottom: 0;
    box-shadow: 0 -1px 0 rgba(207, 198, 184, 0.05);
    content: "POOPIES INC.™  ·  ISTANBUL ↔ MANILA  ·  2026";
    display: grid;
    place-items: center;
    font-family: var(--font-sans);
    font-size: 0.46rem;
    font-weight: 500;
    letter-spacing: 0.38em;
    color: rgba(207, 198, 184, 0.28);
  }

  & .paper-grain { opacity: 0.025; }
  /* Flat velvety matte espresso — no low-alpha radial gradients that band on 8-bit dark displays */
  & .lamp-vignette { display: none; }

  /* ---------- Soft Muted Primitives ---------- */
  & .narrator-tag {
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
    color: var(--sand);
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    gap: 14px;
  }
  & .narrator-tag::before,
  & .narrator-tag::after {
    content: "";
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(199, 168, 126, 0.45));
  }
  & .narrator-tag::after { background: linear-gradient(90deg, rgba(199, 168, 126, 0.45), transparent); }
  & .eyebrow-mono {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    color: rgba(199, 168, 126, 0.72);
  }
  & .bitch-caption {
    border: 0;
    padding: 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 0.98rem;
    color: var(--ink-soft);
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
  }
  & a { color: var(--sand); text-underline-offset: 3px; }

  & .btn-primary {
    background: rgba(199, 168, 126, 0.14);
    border: 1px solid rgba(199, 168, 126, 0.45);
    color: #dad0c1;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    padding: 10px 22px;
    box-shadow: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  }
  & .btn-primary:hover:not(:disabled) {
    background: rgba(199, 168, 126, 0.26);
    border-color: rgba(199, 168, 126, 0.75);
    color: #e6ddd0;
    transform: translateY(-1px);
  }
  & .btn-secondary {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.8rem;
  }
  & .btn-secondary:hover:not(:disabled) { background: rgba(207, 198, 184, 0.06); color: var(--ink); }
  & .btn-secondary:disabled { border-color: rgba(136, 158, 137, 0.5); color: var(--sage); }
  & .btn-sm { font-size: 0.74rem; padding: 7px 15px; }
  & .pager-btn { min-height: 28px; padding: 6px 10px; }
  & .speak-mini { min-height: 26px; }
  & .rotary-btn { min-height: 28px; }
  & .spotify-out-link,
  & .track-spotify-link { display: inline-flex; align-items: center; min-height: 26px; }

  & button:focus-visible,
  & summary:focus-visible,
  & a:focus-visible,
  & input:focus-visible { outline: 1.5px solid rgba(199, 168, 126, 0.65); outline-offset: 2px; }

  /* =========================================================
     GATE + INTRO — soft dim opening card
  ========================================================= */
  & .gate-card {
    background: rgba(30, 26, 23, 0.6);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(10, 8, 7, 0.45);
    width: min(560px, 100%);
    padding: 46px 42px 38px;
  }
  & .gate-title {
    font-weight: 300;
    font-size: clamp(2.4rem, 4.8vw, 3.4rem);
    letter-spacing: -0.025em;
    line-height: 1.06;
    color: var(--ink);
  }
  & .gate-title em { font-family: var(--font-title); font-weight: 400; color: var(--clay); font-size: 1.08em; }
  & .gate-sub { font-family: var(--font-serif); font-weight: 300; font-style: italic; font-size: 1.04rem; color: var(--ink-soft); }
  & .gate-form input {
    background: #14110f;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    border-radius: 999px;
    padding: 11px 18px;
  }
  & .gate-hint { color: var(--ink-muted); font-style: italic; font-family: var(--font-serif); font-size: 0.96rem; }

  & .intro-inner { width: min(680px, 100%); }
  & .intro-receipts { gap: 14px; margin: 28px 0 34px; }
  & .intro-slip {
    background: rgba(30, 26, 23, 0.68);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
  }
  & .intro-slip.is-kath { border-left: 2px solid #8a4657; }
  & .intro-slip.is-yigit { border-left: 2px solid #386850; }
  & .intro-slip-quote { font-weight: 300; font-style: italic; font-size: 1.32rem; color: var(--subtitle); }
  & .intro-slip-meta { color: var(--ink-muted); }
  & .backlog-stamp { border: 1px solid rgba(199, 168, 126, 0.55); border-radius: 4px; color: var(--sand); transform: rotate(-1.5deg); padding: 12px 28px; }
  & .backlog-stamp strong { font-family: var(--font-title); font-weight: 400; font-size: 2.2rem; }

  /* =========================================================
     QUIET TOP NAV — Cinema Act Counter × Baseline Simplicity
  ========================================================= */
  & .zine-nav {
    top: var(--bar);
    max-width: none;
    margin: var(--bar) 0 0;
    padding: 13px clamp(20px, 3.2vw, 38px) 15px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: linear-gradient(180deg, rgba(24, 21, 19, 0.96) 0, rgba(24, 21, 19, 0.92) 78%, rgba(24, 21, 19, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 0;
  }
  & .zine-wordmark {
    justify-self: start;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1.02rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--ink-soft);
  }
  & .zine-wordmark em { color: var(--sand); font-style: normal; font-size: 0.72em; }
  & .zine-wordmark::after {
    content: " · ACT " var(--act-num, "01") " / 06";
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.2em;
    color: var(--ink-muted);
    margin-left: 6px;
  }
  & .chapter-rail { gap: 4px; }
  & .chap-btn {
    padding: 6px 11px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    background: transparent;
    gap: 7px;
  }
  & .chap-num {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    font-size: 0;
    color: inherit;
  }
  & .chap-num::before { font-family: var(--font-title); font-size: 0.96rem; font-style: italic; font-weight: 400; color: var(--ink-muted); }
  & .chap-btn:nth-child(1) .chap-num::before { content: "i"; }
  & .chap-btn:nth-child(2) .chap-num::before { content: "ii"; }
  & .chap-btn:nth-child(3) .chap-num::before { content: "iii"; }
  & .chap-btn:nth-child(4) .chap-num::before { content: "iv"; }
  & .chap-btn:nth-child(5) .chap-num::before { content: "v"; }
  & .chap-btn:nth-child(6) .chap-num::before { content: "vi"; }
  & .chap-btn:hover:not(.is-locked) { color: var(--ink); background: rgba(207, 198, 184, 0.04); }
  & .chap-btn.active,
  & .chap-btn.chap-bitch.active {
    background: rgba(199, 168, 126, 0.1);
    border: 0;
    color: var(--sand);
  }
  & .chap-btn.active .chap-num,
  & .chap-btn.chap-bitch.active .chap-num { background: none; color: var(--sand); }
  & .chap-btn.active .chap-num::before,
  & .chap-btn.chap-bitch.active .chap-num::before { color: var(--sand); }
  & .zine-shell.is-guided .chapter-rail { gap: 4px; }
  & .zine-shell.is-guided .chap-btn { padding: 6px 9px; }
  & .zine-shell.is-guided .chap-btn.active { padding: 6px 12px; }
  & .zine-shell.is-guided .chap-btn.is-done .chap-num { background: none; border: 0; }
  & .zine-shell.is-guided .chap-btn.is-done .chap-num::before { color: var(--sage); }
  & .zine-shell.is-guided .chap-btn.is-locked { opacity: 0.34; }
  & .zine-shell.is-guided .chap-btn.is-locked .chap-num { border: 0; background: none; }

  & .quiet-tools { justify-self: end; gap: 6px; }
  & .tool-label {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-muted);
    padding: 6px 12px;
  }
  & .tool-label:hover:not(.is-locked) { color: var(--ink); border-color: var(--line-strong); }
  & .tool-label.active { color: var(--sand); background: rgba(199, 168, 126, 0.08); border-color: rgba(199, 168, 126, 0.24); }
  & .tool-accent { background: rgba(181, 125, 106, 0.14); color: #d6b6a8; border-color: rgba(181, 125, 106, 0.36); }
  & .tool-accent:hover:not(.is-locked) { background: rgba(181, 125, 106, 0.26); color: #e6cfc5; }
  & .tool-label.is-locked { border: 1px dashed var(--line-strong); opacity: 0.55; }

  /* =========================================================
     SINGLE CALM CENTERED COLUMN — CLEAN FIRST GLANCE
  ========================================================= */
  & .chapter-stage {
    max-width: 800px;
    padding: 16px 28px calc(110px + var(--bar));
    text-align: center;
    animation-duration: 0.65s;
  }

  /* Compact Act header so the #1 focal object breathes cleanly in view! */
  & .chapter-header {
    max-width: 620px;
    margin: 0 auto 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 8px;
  }
  & .chapter-header .narrator-tag {
    order: 0;
    display: block;
    font-size: 0;
    margin-bottom: 16px;
    padding: 0 64px;
    background:
      linear-gradient(90deg, transparent, rgba(199, 168, 126, 0.45)) left center / 44px 1px no-repeat,
      linear-gradient(90deg, rgba(199, 168, 126, 0.45), transparent) right center / 44px 1px no-repeat;
  }
  & .chapter-header .narrator-tag::after { display: none; }
  & .chapter-header .narrator-tag::before {
    width: auto;
    height: auto;
    background: none;
    font-family: var(--font-title);
    font-size: 1.06rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--sand);
  }
  &[data-chapter="story"] .chapter-header .narrator-tag::before { content: "Act I · How it started"; }
  &[data-chapter="music"] .chapter-header .narrator-tag::before { content: "Act II · The soundtrack"; }
  &[data-chapter="late"] .chapter-header .narrator-tag::before { content: "Act III · After midnight"; }
  &[data-chapter="nazli"] .chapter-header .narrator-tag::before { content: "Act IV · Head of Safety"; }
  &[data-chapter="play"] .chapter-header .narrator-tag::before { content: "Act V · Recall test"; }
  &[data-chapter="bitch"] .chapter-header .narrator-tag::before { content: "Act VI · The machine talks back"; }

  & .chapter-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.35rem, 4.4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.028em;
    margin: 0 0 14px;
    color: var(--ink);
    font-variation-settings: "opsz" 144;
  }
  & .chapter-title em {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 1.1em;
    letter-spacing: -0.008em;
    color: var(--clay);
  }
  & .chapter-lead {
    font-family: var(--font-serif);
    font-weight: 300;
    font-style: italic;
    font-size: 1.04rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 48ch;
  }
  & .chapter-lead em { font-family: var(--font-title); font-size: 1.08em; color: var(--ink); }
  & .chapter-header > div:last-child:not(.narrator-tag) { margin-top: 20px !important; }

  /* Quiet breathing space between scenes — faint modern frames guide the eye */
  & .spread-card {
    position: relative;
    background: rgba(30, 26, 23, 0.44);
    border: 1px solid rgba(207, 198, 184, 0.11);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(207, 198, 184, 0.045), 0 18px 46px rgba(10, 8, 7, 0.24);
    padding: 32px 34px;
    margin: 0 auto 74px;
  }
  /* Hero sections keep a lighter, airy translucent frame so eyes anchor effortlessly without heaviness */
  &[data-chapter="story"] .chapter-stage > section.spread-card:first-of-type,
  &[data-chapter="late"] .chapter-stage > section.dual-clock-card,
  &[data-chapter="play"] .chapter-stage > section.spread-card {
    background: rgba(29, 25, 22, 0.32);
    border: 1px solid rgba(207, 198, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(207, 198, 184, 0.055), 0 14px 38px rgba(10, 8, 7, 0.2);
    padding: 30px 34px 32px;
  }
  & .spread-card + .spread-card::before,
  & .turntable-deck + .spread-card::before {
    content: "";
    position: absolute;
    top: -54px;
    left: 50%;
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(199, 168, 126, 0.35));
  }
  & .spread-card .eyebrow-mono { margin-bottom: 12px; }
  & .spread-h3 {
    font-weight: 300;
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--ink);
    margin: 0 0 14px;
  }

  & .sub-switch {
    background: rgba(30, 26, 23, 0.7);
    border: 1px solid var(--line);
    padding: 4px;
    gap: 4px;
    margin: 0 auto 38px;
  }
  & .sub-btn {
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--ink-muted);
  }
  & .sub-btn.active { background: rgba(199, 168, 126, 0.14); color: var(--sand); }

  /* ---------- TACTILE FOLIO DRAWER REVEALS (NOT lazy static buttons!) ---------- */
  & .cozy-details {
    position: relative;
    background: linear-gradient(180deg, rgba(35, 30, 26, 0.78), rgba(27, 23, 20, 0.72));
    border: 1px solid var(--line-strong);
    border-top: 2px solid rgba(199, 168, 126, 0.34);
    border-radius: 14px;
    padding: 20px 28px;
    margin: 0 auto 64px;
    text-align: left;
    box-shadow: 0 14px 36px rgba(10, 8, 7, 0.28);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  }
  & .cozy-details::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 28px;
    width: 68px;
    height: 7px;
    border-radius: 6px 6px 0 0;
    background: rgba(199, 168, 126, 0.28);
    border: 1px solid rgba(199, 168, 126, 0.25);
    border-bottom: 0;
    transition: background 0.25s ease, width 0.25s ease;
  }
  & .cozy-details:not([open]):hover {
    transform: translateY(-3px);
    border-top-color: rgba(199, 168, 126, 0.65);
    box-shadow: 0 20px 44px rgba(10, 8, 7, 0.4);
  }
  & .cozy-details:not([open]):hover::before {
    width: 84px;
    background: rgba(199, 168, 126, 0.48);
  }
  & .cozy-details summary {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 1.32rem;
    color: var(--ink);
    gap: 16px;
  }
  & .details-toggle {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand);
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(199, 168, 126, 0.25);
    background: rgba(199, 168, 126, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  & .cozy-details:hover .details-toggle { background: rgba(199, 168, 126, 0.14); border-color: rgba(199, 168, 126, 0.45); }
  & .cozy-details[open] > :not(summary) { animation: folioUnfold 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
  @keyframes folioUnfold {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ---------- HERO NUMBERS & CHARTS (Soft Blended Tones) ---------- */
  & .hero-nums { gap: 0; margin-bottom: 30px; }
  & .hero-nums > div { padding: 4px 18px; }
  & .hero-nums > div + div { border-left: 1px solid rgba(207, 198, 184, 0.09); }
  & .hero-num-val {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 4.6vw, 3.6rem);
    letter-spacing: -0.03em;
    color: var(--ink);
    font-variation-settings: "opsz" 144;
  }
  & .hero-num-lbl { font-family: var(--font-mono); color: var(--sand); letter-spacing: 0.2em; font-size: 0.56rem; margin-top: 8px; }
  & .hero-num-sub { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--ink-muted); font-size: 0.86rem; }

  /* Deep muted forest green (Yiğit) vs. opposite muted burgundy-mulberry (Kath) */
  & .balance-bar { height: 7px; background: rgba(207, 198, 184, 0.07); border-radius: 999px; margin: 14px 0 12px; }
  & .balance-yigit { background: linear-gradient(90deg, #2b5440, #386850); }
  & .balance-her { background: linear-gradient(90deg, #743948, #8a4657); }
  & .dot-y { background: #386850; }
  & .dot-k { background: #8a4657; }
  & .balance-legend { color: var(--ink-soft); font-size: 0.72rem; }
  & .nick-bar-track { height: 7px; border-radius: 999px; background: rgba(207, 198, 184, 0.07); }

  & svg path[stroke="#ebb05a"] { stroke: var(--sand); stroke-width: 1.7; }
  & svg circle[stroke="#ebb05a"] { stroke: var(--sand); }
  & svg circle[fill="#201914"] { fill: var(--bg); }
  & svg circle[fill="#de6d48"] { fill: var(--clay); }
  & #poopGrad stop { stop-color: #c7a87e; }
  & svg text[fill="#93806e"] { fill: #7c7267; }
  & .stock-tooltip {
    background: rgba(20, 17, 15, 0.75);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink-soft);
  }
  & .stock-tooltip strong { color: var(--sand); }

  & .story-timeline { border-left: 1px solid rgba(199, 168, 126, 0.22); text-align: left; max-width: 600px; margin: 24px auto 0 !important; gap: 20px; }
  & .story-node::before { background: var(--sand); border-color: var(--card); width: 9px; height: 9px; left: -27px; }
  & .story-meta { color: var(--sand); letter-spacing: 0.12em; font-size: 0.62rem; }
  & .story-title { font-weight: 400; font-size: 1.18rem; color: var(--ink); }
  & .story-quote { color: var(--ink-soft); font-size: 0.9rem; }

  & .story-jump-strip {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    text-align: left;
  }
  & .story-jump-note {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 0.92rem;
    color: var(--ink-soft);
  }
  & .story-jump-btn {
    background: rgba(199, 168, 126, 0.11);
    border: 1px solid rgba(199, 168, 126, 0.36);
    border-radius: 999px;
    padding: 6px 15px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--sand);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
  }
  & .story-jump-btn:hover {
    background: rgba(199, 168, 126, 0.22);
    border-color: rgba(199, 168, 126, 0.65);
    transform: translateY(-1px);
  }

  & .calendar-spotlight-card {
    border-top: 1px solid rgba(199, 168, 126, 0.32);
    scroll-margin-top: 86px;
  }
  & .cal-highlights-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 20px;
  }
  & .cal-highlight-chip {
    background: rgba(24, 21, 19, 0.72);
    border: 1px solid rgba(199, 168, 126, 0.24);
    border-radius: 999px;
    padding: 6px 13px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.18s ease;
  }
  & .cal-highlight-chip strong { color: var(--sand); font-weight: 500; }
  & .cal-highlight-chip:hover {
    background: rgba(199, 168, 126, 0.14);
    border-color: rgba(199, 168, 126, 0.58);
    color: var(--ink);
    transform: translateY(-1px);
  }
  & .cal-legend-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin: 0 0 22px;
    padding: 9px 16px;
    border-radius: 10px;
    background: rgba(20, 17, 15, 0.52);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--ink-muted);
  }
  & .cal-ramp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  & .cal-swatch {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(207, 198, 184, 0.08);
  }
  & .cal-swatch.lvl-0 { background: rgba(207, 198, 184, 0.04); }
  & .cal-swatch.lvl-1 { background: rgba(199, 168, 126, 0.14); }
  & .cal-swatch.lvl-2 { background: rgba(199, 168, 126, 0.30); }
  & .cal-swatch.lvl-3 { background: rgba(181, 125, 106, 0.54); }
  & .cal-swatch.lvl-4 { background: var(--sand); }

  & .calendar-months { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; text-align: left; }
  & .month-card { background: rgba(22, 19, 17, 0.66); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
  & .month-title { font-weight: 300; font-size: 1.22rem; color: var(--ink); }
  & .cal-day {
    background: rgba(207, 198, 184, 0.035);
    border: 1px solid transparent;
    color: var(--ink-soft);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  }
  & .cal-day:hover {
    transform: translateY(-2px) scale(1.06);
    border-color: rgba(199, 168, 126, 0.72);
    box-shadow: 0 6px 14px rgba(10, 8, 7, 0.45);
    z-index: 2;
  }
  & .cal-day.lvl-1 { background: rgba(199, 168, 126, 0.12); }
  & .cal-day.lvl-2 { background: rgba(199, 168, 126, 0.26); }
  & .cal-day.lvl-3 { background: rgba(181, 125, 106, 0.50); color: #ede5d8; }
  & .cal-day.lvl-4 { background: var(--sand); color: #181513; font-weight: 600; }

  /* ---------- MUSIC — Clean Horizontal 2-Col Vinyl Stage First Glance ---------- */
  &[data-chapter="music"] .chapter-stage {
    max-width: 980px;
  }
  & .turntable-deck {
    position: relative;
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    background: rgba(30, 26, 23, 0.44);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 22px 54px rgba(10, 8, 7, 0.34);
    padding: 36px 40px 38px;
    margin: 0 auto 76px;
    text-align: left;
  }
  & .turntable-deck::before { display: none; }
  & .turntable-stage-3d { transform: scale(1.06); margin: 10px auto 12px; }
  & .deck-right { max-width: none; text-align: left; }
  & .active-record-meta h3 { font-weight: 300; font-size: 1.8rem; color: var(--ink); margin-bottom: 6px; }
  & .active-record-meta p { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 0.96rem; color: var(--ink-soft); }
  & .vinyl-shelf-wrap { max-width: 390px; margin: 6px 0 18px; }
  & .vinyl-shelf { justify-items: start; }
  & .vinyl-shelf-ledge { background: linear-gradient(90deg, rgba(199, 168, 126, 0.42), rgba(199, 168, 126, 0.08)); height: 2px; border: 0; box-shadow: none; }
  & .vinyl-sleeve.active .sleeve-cover { border-color: var(--sand); box-shadow: 0 0 0 1.5px var(--sand), 0 12px 26px rgba(10, 8, 7, 0.55); }
  & .sleeve-title { font-family: var(--font-title); font-weight: 400; font-size: 0.78rem; color: #ece3d5; }
  & .deck-actions-row { justify-content: flex-start; }
  & .now-playing-bar { background: rgba(20, 17, 15, 0.6); border: 1px solid var(--line); color: var(--subtitle); align-items: stretch; margin-top: 16px; }
  & .np-top-row { justify-content: space-between; gap: 16px; }
  & .np-progress-track { max-width: none; height: 2px; background: rgba(207, 198, 184, 0.12); }
  & .np-progress-fill { background: var(--sand); }

  &[data-chapter="music"] .spread-card { max-width: 860px; }
  & .jam-card-head { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 16px; text-align: left; }
  & .jam-pills { justify-content: flex-start; gap: 6px; margin: 18px 0 22px; }
  & .jam-pill { background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-muted); font-size: 0.7rem; }
  & .jam-pill:hover { color: var(--ink); border-color: var(--line-strong); }
  & .jam-pill.active { background: rgba(199, 168, 126, 0.14); color: var(--sand); border-color: rgba(199, 168, 126, 0.45); }
  &[data-chapter="music"] .bitch-caption { margin-left: 0; text-align: left; }
  & .tracklist-scroll { text-align: left; max-width: none; margin: 16px auto 0; max-height: 360px; gap: 5px; }
  & .track-row { background: rgba(24, 21, 19, 0.55); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); }
  & .track-row.playing { background: rgba(199, 168, 126, 0.08); border-color: rgba(199, 168, 126, 0.45); }
  & .track-play-btn { background: rgba(199, 168, 126, 0.1); border-color: rgba(199, 168, 126, 0.3); color: var(--sand); }
  & .track-play-btn:hover { background: var(--sand); color: #181513; }
  & .autospin-toggle { background: transparent; border-color: var(--line-strong); color: var(--ink-soft); }
  & .autospin-toggle.active { background: rgba(199, 168, 126, 0.14); border-color: rgba(199, 168, 126, 0.48); color: var(--sand); }

  &[data-chapter="music"] .spread-card { text-align: left; }
  & .jam-session-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 6px; }
  & .jam-session-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.24rem; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
  & .jam-session-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-muted); }
  & .jam-live-quote { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 0.94rem; color: var(--ink-soft); margin: 0 0 12px; text-align: left; }
  & .nick-legend { display: flex; justify-content: center; gap: 22px; margin: -4px 0 14px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }
  & .dict-grid { text-align: left; gap: 14px; margin-top: 20px; }
  & .dict-card { background: rgba(24, 21, 19, 0.65); border-color: var(--line); border-radius: 10px; }
  & .dict-term { font-family: var(--font-title); font-weight: 400; font-size: 1.32rem; color: var(--sand); }

  /* ---------- 3 AM — Soft Dim Clocks First Glance (with faint modern framing) ---------- */
  & .dual-clock-grid { gap: 28px; margin: 16px 0 24px; }
  & .clock-unit {
    padding: 18px 22px 16px;
    border-radius: 14px;
    border: 1px solid rgba(207, 198, 184, 0.09);
    background: rgba(24, 21, 19, 0.45);
  }
  & .analog-clock-svg { width: 132px; height: 132px; filter: drop-shadow(0 12px 26px rgba(10, 8, 7, 0.45)); }
  & .analog-clock-svg circle[fill="#15100d"] { fill: #201c19; stroke: rgba(199, 168, 126, 0.34); stroke-width: 1.2; }
  & .analog-clock-svg circle[stroke="rgba(235,176,90,0.12)"] { stroke: rgba(199, 168, 126, 0.08); }
  & .analog-clock-svg line[stroke="#cbbba8"] { stroke: var(--ink); }
  & .analog-clock-svg line[stroke="#5e4c3f"] { stroke: rgba(207, 198, 184, 0.24); }
  & .analog-clock-svg line[id$="-hand-h"] { stroke: var(--ink); }
  & .analog-clock-svg line[id$="-hand-m"] { stroke: var(--ink-soft); }
  & #clk-tr-hand-s { stroke: #386850; stroke-width: 1.6; }
  & #clk-ph-hand-s { stroke: #8a4657; stroke-width: 1.6; }
  & .analog-clock-svg circle[r="3"][fill="#386850"] { fill: #386850; }
  & .analog-clock-svg circle[r="3"][fill="#8a4657"] { fill: #8a4657; }
  & .clock-city { font-weight: 300; font-size: 1.38rem; color: var(--ink); margin-top: 12px; }
  & .clock-digital { color: var(--sand); font-size: 0.78rem; }
  & .clock-gap-pill { background: rgba(30, 26, 23, 0.72); border: 1px solid rgba(207, 198, 184, 0.14); color: var(--sand); }
  & .clock-status-badge {
    background: rgba(24, 21, 19, 0.62);
    border: 1px solid rgba(207, 198, 184, 0.12);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 1rem;
    color: var(--subtitle);
  }
  & .hour-bars {
    height: 204px;
    gap: 5px;
    margin-top: 16px;
    padding: 12px 4px 0;
    border-top: 1px dashed rgba(207, 198, 184, 0.08);
    border-bottom: 1px solid rgba(207, 198, 184, 0.1);
  }
  & .hour-bar { border-radius: 3px 3px 0 0; background: rgba(207, 198, 184, 0.15); }
  & .hour-bar.is-antok-zone { background: linear-gradient(180deg, rgba(177, 131, 113, 0.78), rgba(177, 131, 113, 0.28)); }
  & .hour-bar.is-peak { background: linear-gradient(180deg, #d3b488, #ad8d62); box-shadow: 0 0 14px rgba(199, 168, 126, 0.26); }
  &[data-chapter="late"] .balance-legend { justify-content: center; gap: 28px; }
  & .nick-row { text-align: left; border-bottom: 1px solid var(--line); }
  & .nick-row strong { font-family: var(--font-serif); font-weight: 400; color: var(--ink); }
  & .emoji-dna-strip { background: rgba(24, 21, 19, 0.55); border-color: var(--line); }
  & .emoji-chip { background: rgba(36, 31, 27, 0.7); border-color: var(--line); color: var(--ink); }
  & .mini-stats-3 { background: rgba(24, 21, 19, 0.55); border-color: var(--line); }
  & .mini-stat-lbl { color: var(--sand); }
  & .mini-stat-val { color: var(--ink); }

  /* ---------- NAZLI — Soft Muted Espresso-Linen Polaroid Mats (zero white glare!) ---------- */
  & .polaroid-grid { gap: 36px 26px; margin: 8px auto 74px; }
  & .polaroid {
    width: 196px;
    background: #28221e;
    border: 1px solid rgba(207, 198, 184, 0.14);
    padding: 10px 10px 26px;
    border-radius: 4px;
    transform: rotate(calc(var(--tilt, -1.5deg) * 0.65));
    box-shadow: 0 18px 42px rgba(10, 8, 7, 0.52);
  }
  & .polaroid::before { background: rgba(199, 168, 126, 0.22); }
  /* width/height attrs reserve space (no CLS); height:auto lets aspect-ratio keep the square crop */
  & .polaroid img { filter: saturate(0.92) contrast(0.98); border-radius: 2px; height: auto; aspect-ratio: 1; }
  & .polaroid:hover { transform: rotate(0) scale(1.04); border-color: rgba(199, 168, 126, 0.42); box-shadow: 0 24px 54px rgba(10, 8, 7, 0.62); }
  & .polaroid-cap { color: #c7bdb0; font-size: 1.04rem; }

  /* ---------- PLAY — Calm Framed Quote Card ---------- */
  & .quiz-quote-box {
    background: rgba(24, 21, 19, 0.42);
    border: 1px solid rgba(207, 198, 184, 0.09);
    border-radius: 14px;
    padding: 30px 26px 26px;
  }
  & .quiz-quote-text {
    font-family: var(--font-title);
    font-style: italic;
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    line-height: 1.18;
    color: var(--subtitle);
    margin-bottom: 28px;
  }
  & .quiz-choices { gap: 14px; }
  & .quiz-choices button[data-pick="yigit"] { background: rgba(56, 104, 80, 0.24) !important; border-color: rgba(56, 104, 80, 0.62) !important; color: #b8d2c4 !important; }
  & .quiz-choices button[data-pick="her"] { background: rgba(138, 70, 87, 0.24) !important; border-color: rgba(138, 70, 87, 0.62) !important; color: #dfb9c2 !important; }
  & .quiz-feedback { background: rgba(30, 26, 23, 0.7) !important; border: 1px solid var(--line) !important; color: var(--ink-soft); }
  & .quiz-next-btn { gap: 8px; padding-right: 13px; }
  & .quiz-cd-ring-wrap { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; flex-shrink: 0; }
  & .quiz-cd-svg { transform: rotate(-90deg); display: block; }
  & .quiz-cd-bg { fill: none; stroke: rgba(207, 198, 184, 0.16); stroke-width: 1.9; }
  & .quiz-cd-ring { fill: none; stroke: var(--sand); stroke-width: 1.9; stroke-linecap: round; transition: stroke-dashoffset 0.06s linear; }
  & .quiz-streak-note {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(199, 168, 126, 0.12);
    border: 1px solid rgba(199, 168, 126, 0.3);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--sand);
  }

  /* ---------- B.I.T.C.H. — Calm Centered Console (Soft Tones!) ---------- */
  & #bitch-mount { text-align: left; }
  & .bakelite-centerpiece[data-tone="banter"] {
    --c-bg: #1d1916;
    --c-panel: #221d1a;
    --c-border: rgba(207, 198, 184, 0.14);
    --c-line: rgba(207, 198, 184, 0.09);
    --c-ink: #cfc6b8;
    --c-ink-soft: #a19689;
    --c-ink-muted: #766d63;
    --c-accent: #c7a87e;
    --c-accent-ink: #181513;
    --c-user-bg: #2e2620;
    --c-user-ink: #dcd3c5;
    --c-bot-bg: rgba(207, 198, 184, 0.035);
    --c-bot-border: rgba(207, 198, 184, 0.11);
    --c-pill-bg: rgba(207, 198, 184, 0.03);
    --c-input-bg: #151210;
    --c-radius: 14px;
    background-image: none;
  }
  & .bakelite-centerpiece {
    border-radius: 16px;
    box-shadow: 0 28px 68px rgba(10, 8, 7, 0.45);
    height: clamp(470px, 60vh, 600px);
  }
  & .bakelite-centerpiece[data-tone="audit"] {
    --c-bg: #191d22;
    --c-panel: #1f242b;
    --c-border: rgba(196, 204, 214, 0.16);
    --c-line: rgba(196, 204, 214, 0.09);
    --c-ink: #cbd0d6;
    --c-ink-soft: #9aa2ad;
    --c-ink-muted: #727a85;
    --c-accent: #c2b08a;
    --c-accent-ink: #171a1f;
    --c-user-bg: #29313b;
    --c-user-ink: #d9dfe6;
    --c-bot-bg: rgba(196, 204, 214, 0.04);
    --c-bot-border: rgba(196, 204, 214, 0.12);
    --c-pill-bg: rgba(196, 204, 214, 0.04);
    --c-input-bg: #14171c;
    --c-radius: 8px;
  }
  & .bakelite-centerpiece[data-tone="nazli"] {
    --c-bg: #ded5c7;
    --c-panel: #d5cab9;
    --c-border: #bfb19d;
    --c-line: #cbbda9;
    --c-ink: #322820;
    --c-ink-soft: #5c4f43;
    --c-ink-muted: #7f7062;
    --c-accent: #a6624d;
    --c-accent-ink: #f2ebe1;
    --c-user-bg: #a6624d;
    --c-user-ink: #f2ebe1;
    --c-bot-bg: #e6dfd3;
    --c-bot-border: #cabca8;
    --c-pill-bg: #e3dbce;
    --c-input-bg: #e6dfd3;
    --c-radius: 14px;
  }
  & .bakelite-title { font-family: var(--font-title); font-weight: 400; font-style: italic; font-size: 1.62rem; letter-spacing: 0.01em; line-height: 1; }
  & .bakelite-centerpiece[data-tone="audit"] .bakelite-title { font-style: normal; font-size: 1.24rem; letter-spacing: 0.06em; }
  & .thinking-word { font-family: var(--font-title); font-size: 1.18rem; }
  & .msg-text.is-streaming::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.02em;
    margin-left: 3px;
    vertical-align: -0.14em;
    border-radius: 1px;
    background: var(--c-accent, var(--sand));
    animation: bitchCursorBlink 0.72s steps(2, end) infinite;
  }
  @keyframes bitchCursorBlink {
    0%, 49% { opacity: 0.9; }
    50%, 100% { opacity: 0.15; }
  }
  & .receipt-chips {
    gap: 0;
    margin-top: 0;
  }
  & .receipt-slot,
  & .meta-slot {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
    transition:
      grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      margin-top 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease;
  }
  & .receipt-slot.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 6px;
    pointer-events: auto;
  }
  & .receipt-slot:first-child.is-open {
    margin-top: 10px;
  }
  & .meta-slot.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 8px;
    pointer-events: auto;
  }
  & .receipt-slot-inner,
  & .meta-slot-inner {
    overflow: hidden;
    min-height: 0;
  }
  & .receipt-slot .receipt-chip {
    transform: translateY(-4px);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }
  & .receipt-slot.is-open .receipt-chip {
    transform: translateY(0);
  }
  & .meta-slot .msg-meta-row {
    margin-top: 0;
  }
  & .receipt-chip { background: #dfd6c8; }

  /* ---------- B.I.T.C.H. (V.O.) BRIDGES ---------- */
  & .chapter-bridge {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-top: 32px;
  }
  & .chapter-bridge::before {
    content: "";
    display: block;
    width: 110px;
    height: 1px;
    margin: 0 auto 32px;
    background: linear-gradient(90deg, transparent, rgba(199, 168, 126, 0.45), transparent);
  }
  & .bridge-line {
    font-family: var(--font-serif);
    font-weight: 300;
    font-style: italic;
    font-size: 1.16rem;
    line-height: 1.58;
    color: var(--subtitle);
    max-width: 42ch;
    margin: 0 auto 28px;
  }
  & .bridge-tag {
    display: block;
    width: max-content;
    margin: 0 auto 10px;
    background: none;
    border: 0;
    padding: 0;
    font-size: 0;
    font-style: normal;
  }
  & .bridge-tag::before {
    content: "B.I.T.C.H. (V.O.)";
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--ink-muted);
  }
  & .bridge-actions { flex-direction: column-reverse; align-items: center; gap: 16px; }
  & .bridge-actions > span:empty { display: none; }
  & .pager-btn { font-family: var(--font-sans); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
  & .bridge-finale-btn {
    background: rgba(181, 125, 106, 0.2);
    border-color: rgba(181, 125, 106, 0.6);
    color: #e4cac0;
    box-shadow: 0 0 28px rgba(181, 125, 106, 0.14);
  }
  & .bridge-finale-btn:hover:not(:disabled) { background: rgba(181, 125, 106, 0.34); color: #efe0d9; }
  & .finale-progress-wrap { max-width: 340px; margin: 0 auto 22px; }
  & .finale-progress-track { height: 2px; border: 0; background: rgba(207, 198, 184, 0.12); }
  & .finale-progress-fill { background: var(--sand); }

  /* =========================================================
     INTERRUPTIONS · SUBTITLE TOAST · DIALOGS (Low-Glare)
  ========================================================= */
  & .bitch-interrupt {
    bottom: calc(var(--bar) + 20px);
    border-radius: 12px;
    border: 1px solid rgba(199, 168, 126, 0.26);
    background: rgba(28, 24, 21, 0.96);
    box-shadow: 0 26px 64px rgba(10, 8, 7, 0.65);
  }
  & .interrupt-banner { background: rgba(20, 17, 15, 0.7); border-bottom: 1px solid var(--line); color: var(--sand); letter-spacing: 0.22em; }
  & .interrupt-text { font-family: var(--font-title); font-size: 1.32rem; line-height: 1.28; color: var(--subtitle); }
  & .interrupt-comeback { background: rgba(199, 168, 126, 0.08); border-left-color: var(--sand); font-family: var(--font-serif); font-style: italic; font-weight: 300; }
  & .bitch-interrupt[data-variant="ticker-stamp"],
  & .bitch-interrupt[data-variant="dj-takeover"],
  & .bitch-interrupt[data-variant="quiz-heckle"],
  & .bitch-interrupt[data-variant="lamp-dim"] { background: rgba(28, 24, 21, 0.96); border: 1px solid rgba(199, 168, 126, 0.26); box-shadow: 0 26px 64px rgba(10, 8, 7, 0.65); }
  /* One banner treatment for every B.I.T.C.H. card (only the Nazlı + hfeelings variants keep their own) */
  & .bitch-interrupt[data-variant="ticker-stamp"] .interrupt-banner,
  & .bitch-interrupt[data-variant="dj-takeover"] .interrupt-banner,
  & .bitch-interrupt[data-variant="quiz-heckle"] .interrupt-banner,
  & .bitch-interrupt[data-variant="lamp-dim"] .interrupt-banner { background: rgba(20, 17, 15, 0.7); color: var(--sand); border-bottom: 1px solid var(--line); }
  & .bitch-interrupt[data-variant="hfeelings-override"] { background: #211916; border-color: rgba(181, 125, 106, 0.55); }
  & .bitch-interrupt[data-variant="safety-inspection"] {
    background: #e2d8c9;
    background-image: none;
    color: #32261d;
    border: 1.5px solid #a6624d;
  }
  & .bitch-interrupt[data-variant="safety-inspection"] .interrupt-banner { background: #a6624d; color: #f2ebe1; border-bottom: 0; }
  & .bitch-interrupt[data-variant="safety-inspection"] .interrupt-text { color: #32261d; }
  & .bitch-interrupt[data-variant="safety-inspection"] .interrupt-badge { color: #6e5948; }
  & .bitch-interrupt[data-variant="safety-inspection"] .btn-primary { background: #a6624d; border-color: #a6624d; color: #f2ebe1; }
  & .bitch-interrupt[data-variant="safety-inspection"] .btn-secondary { background: transparent; color: #443428; border-color: #bfa994; }
  & .bitch-interrupt[data-variant="safety-inspection"] .interrupt-comeback { background: rgba(166, 98, 77, 0.12); color: #32261d; border-left-color: #a6624d; }

  /* Cinema "subtitle" toast: bottom-center above the letterbox so it never sits on the nav or Act title */
  & .easter-toast {
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(var(--bar) + 22px);
    transform: translateX(-50%);
    width: max-content;
    max-width: min(460px, calc(100vw - 32px));
    background: rgba(24, 21, 19, 0.95);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    color: var(--subtitle);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
    padding: 9px 18px;
  }
  /* Never stack on top of an open B.I.T.C.H. interruption card (bottom-right / full-width on phones) */
  & body:has(#bitch-interrupt:not(.hidden)) .easter-toast { left: 26px; transform: none; }
  @media (max-width: 940px) {
    & body:has(#bitch-interrupt:not(.hidden)) .easter-toast {
      left: 50%;
      transform: translateX(-50%);
      top: calc(var(--bar) + 64px);
      bottom: auto;
    }
  }

  /* iOS Safari zooms any focused field under 16px — keep Kath's typing fields at 16px on touch/narrow screens */
  @media (max-width: 820px), (pointer: coarse) {
    & .gate-form input,
    & .bitch-form input { font-size: 16px; }
  }

  & dialog.cozy-dialog {
    background: #1b1715;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: 0 32px 84px rgba(10, 8, 7, 0.72);
    color: var(--ink);
  }
  & dialog.cozy-dialog::backdrop { background: rgba(12, 10, 9, 0.78); backdrop-filter: blur(5px); }
  & .dialog-head h3 { font-weight: 300; font-size: 1.85rem; color: var(--ink); }
  & .day-stats-row { background: rgba(20, 17, 15, 0.65); border-color: var(--line); }
  & .day-stat-val { font-weight: 300; color: var(--sand); }
  & .lightbox-nav { width: 40px; height: 40px; }
  & .christmas-envelope { background: rgba(24, 21, 19, 0.7); border-color: var(--line); border-radius: 12px; text-align: center; }
  & .christmas-envelope h4 { font-weight: 300 !important; font-size: 1.85rem !important; color: var(--ink); }
  & .christmas-envelope > p { margin-left: auto !important; margin-right: auto !important; font-family: var(--font-serif); font-style: italic; font-weight: 300; }
  & .sealed-envelope-stage { background: linear-gradient(160deg, #27201b, #1c1714); border-color: var(--line); border-radius: 10px; }
  & .wax-seal-btn { filter: saturate(0.82) drop-shadow(0 6px 16px rgba(10, 8, 7, 0.5)); }
  & .christmas-letter { text-align: left; background: #e3dacb; color: #2b221b; border-radius: 8px; }
  & .thermal-paper { background: #e5ddd0; color: #2b221b; }
  & .finale-keepsake-checkout { background: rgba(24, 21, 19, 0.65); border-color: var(--line); border-radius: 12px; }
  & .keepsake-title { font-weight: 300; font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.15; }
  & .keepsake-sub { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 0.94rem; color: var(--ink-soft); }
  & .keepsake-stamp-mini { color: var(--sand); background: rgba(199, 168, 126, 0.08); border-color: rgba(199, 168, 126, 0.3); font-weight: 500; }
  & .keepsake-actions,
  & .dialog-actions { justify-content: center; }
  & .voucher-stamp { border-color: rgba(136, 158, 137, 0.7); color: var(--sage); background: rgba(136, 158, 137, 0.1); box-shadow: inset 0 0 0 1px rgba(136, 158, 137, 0.3); font-weight: 600; }
  & .tt-arm-svg rect[fill="#de6d48"] { fill: var(--clay); }
  & .voucher-card { background: rgba(24, 21, 19, 0.6); border-color: var(--line-strong); border-radius: 10px; }
  & .voucher-card h4 { font-weight: 300; color: var(--ink); }
  & .voucher-code { color: var(--sand); }

  @media (max-width: 1180px) {
    & .chap-name { display: none; }
    & .chap-btn.active .chap-name { display: inline; }
  }
  @media (max-width: 860px) {
    & .turntable-deck { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; gap: 24px; }
    & .deck-right { text-align: center; }
    & .vinyl-shelf-wrap { margin: 8px auto 18px; }
    & .deck-actions-row { justify-content: center; }
    & .calendar-months { grid-template-columns: 1fr; }
    & .story-jump-strip { justify-content: center; text-align: center; }
  }

  /* Keyboard focus for non-button interactive surfaces (chart dots, polaroids) */
  & .stock-pt:focus { outline: none; }
  & .stock-pt:focus-visible .pt-ring { stroke-width: 2.5; stroke: var(--ink); }
  & .polaroid:focus-visible { outline: 1.5px solid rgba(199, 168, 126, 0.75); outline-offset: 4px; transform: rotate(0) scale(1.02); }

  /* Reduced motion: keep every state change, drop the movement (vinyl spin, thinking bounce,
     folio unfold, wax-seal crack/shake, receipt feed, interrupt pop, hover lifts, chapter fades) */
  @media (prefers-reduced-motion: reduce) {
    & { scroll-behavior: auto; }
    & *,
    & *::before,
    & *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      animation-delay: 0ms !important;
      transition-duration: 0.01ms !important;
      transition-delay: 0ms !important;
    }
    & .vinyl-disc.spinning,
    & .tt-vinyl.spinning { animation: none !important; }
    & .cal-day:hover,
    & .polaroid:hover,
    & .cozy-details:not([open]):hover,
    & .vinyl-sleeve:hover,
    & .turntable-stage-3d:hover .tt-plinth { transform: none; }
  }

  /* =========================================================
     RESPONSIVE LAYER (tablet ≤ 900 · phone ≤ 640 / 560 / 480)
     Layout/spacing only — palette, type families & matte canvas unchanged.
  ========================================================= */
  @media (max-width: 900px) {
    /* Keepsake / Envelope collapse to their icons so the 3-column nav never collides on tablets */
    & .tool-keepsake .tool-text,
    & #btn-drawer .tool-text { display: none; }
    & .tool-label { min-width: 40px; }
    & .chapter-stage { padding-left: 22px; padding-right: 22px; }
  }

  @media (max-width: 640px) {
    /* Two-row nav: brand + tools on top, the chapter rail centered underneath */
    & .zine-nav {
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas: "brand tools" "rail rail";
      column-gap: 10px;
      row-gap: 4px;
      padding: 8px 12px 10px;
    }
    & .zine-wordmark { grid-area: brand; font-size: 0.98rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    & .zine-wordmark::after { margin-left: 3px; letter-spacing: 0.14em; }
    & .quiet-tools { grid-area: tools; gap: 4px; }
    & .chapter-rail { grid-area: rail; justify-self: center; gap: 2px; }

    & .chapter-stage { padding: 6px 16px calc(96px + var(--bar)); }
    & .chapter-header { margin-bottom: 28px; padding-top: 12px; }
    & .chapter-header .narrator-tag {
      padding: 0 40px;
      background-size: 28px 1px, 28px 1px;
    }
    & .chapter-header .narrator-tag::before { font-size: 0.98rem; letter-spacing: 0.06em; }
    & .chapter-title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
    & .chapter-lead { font-size: 0.98rem; line-height: 1.6; }

    & .spread-card,
    &[data-chapter="story"] .chapter-stage > section.spread-card:first-of-type,
    &[data-chapter="late"] .chapter-stage > section.dual-clock-card,
    &[data-chapter="play"] .chapter-stage > section.spread-card { padding: 24px 18px; border-radius: 16px; margin-bottom: 58px; }
    & .spread-card + .spread-card::before,
    & .turntable-deck + .spread-card::before { top: -44px; height: 30px; }
    & .spread-h3 { font-size: 1.62rem; }
    & .bitch-caption { font-size: 0.94rem; }
    & .cozy-details { padding: 18px 18px; margin-bottom: 52px; }
    & .cozy-details summary { font-size: 1.12rem; gap: 10px; }
    & .details-toggle { padding: 5px 9px; letter-spacing: 0.12em; }
    & .bridge-line { font-size: 1.05rem; }

    /* Gate + intro */
    & .gate-card { padding: 34px 22px 28px; border-radius: 18px; }
    & .gate-form { flex-direction: column; align-items: stretch; }
    & .intro-slip-quote { font-size: 1.14rem; }

    /* Overlays: centered with even 12px gutters above the bottom letterbox */
    & .bitch-interrupt { left: 12px; right: 12px; width: auto; bottom: calc(var(--bar) + 12px); max-height: calc(100svh - var(--bar) * 2 - 96px); overflow-y: auto; }
    & .interrupt-text { font-size: 1.18rem; }
    & .interrupt-actions { flex-wrap: wrap; }

    /* Dialogs: full-bleed-ish cards with internal scroll and a reachable ✕ */
    & dialog.cozy-dialog { width: calc(100vw - 24px); max-width: none; max-height: calc(100svh - 40px); padding: 20px 16px; border-radius: 16px; }
    & .dialog-head h3 { font-size: 1.5rem; }
    & .dialog-actions { flex-wrap: wrap; justify-content: center; }
    & .dialog-actions > button { flex: 1 1 140px; min-height: 42px; }
    & .day-stats-row { gap: 8px; padding: 12px 6px; }
    & .day-stat-val { font-size: 1.5rem; }
    & .day-stat-val-sm { font-size: 0.86rem; }
    & .day-stat-val-md { font-size: 1.02rem; }
    & .voucher-card { flex-wrap: wrap; }
    & .keepsake-actions { flex-wrap: wrap; justify-content: center; }
    & .christmas-envelope h4 { font-size: 1.5rem !important; }
    /* Thermal receipt is 340px wide on desktop; let it shrink inside the narrow drawer/printer stages */
    & .thermal-paper { width: 100%; max-width: 340px; flex-shrink: 1; padding: 18px 14px; font-size: 0.7rem; }
    & .receipt-stage { padding: 12px; }
    & .rcpt-row { gap: 10px; }
    & .rcpt-row strong { text-align: right; }
    & .lightbox-img { max-height: 58svh; }
    & .film-thumb { flex: 0 0 52px; }

    /* Music */
    & .turntable-deck { padding: 24px 14px 26px; gap: 18px; margin-bottom: 60px; }
    & .active-record-meta h3 { font-size: 1.5rem; }
    & .jam-card-head { flex-direction: column; align-items: stretch; }
    & .autospin-toggle { align-self: flex-start; }
    & .prompt-pill { white-space: normal; text-align: left; }
    & .quiz-choices > button { flex: 1 1 130px; }
    & .tracklist-scroll { max-height: 420px; }
    & .track-row { padding: 8px 10px; gap: 8px; }
    & .track-row-left { gap: 9px; }
    & .track-text { display: flex; flex-direction: column; white-space: normal; line-height: 1.3; min-width: 0; }
    & .track-text > strong,
    & .track-text > .track-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    & .track-text > .track-artist { font-size: 0.76rem; }
    & .track-time { display: none; }
    & .now-playing-bar .np-top-row { flex-wrap: wrap; gap: 6px 12px; }

    /* 3 AM */
    & .dual-clock-grid { gap: 8px; margin: 12px 0 18px; }
    & .clock-unit { padding: 12px 8px 10px; }
    & .analog-clock-svg { width: 92px; height: 92px; }
    & .clock-city { font-size: 1.12rem; margin-top: 8px; }
    & .clock-gap-pill { padding: 4px 8px; font-size: 0.62rem; }
    & .clock-gap-sub { font-size: 0.58rem; text-align: center; }
    & .clock-status-badge { font-size: 0.94rem; }
    & .hour-key-row { gap: 6px 14px; flex-wrap: wrap; justify-content: center; }
    & .hour-bars { gap: 2px; height: 184px; padding: 10px 0 0; }
    & .nick-row {
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas: "label count" "bar bar";
      row-gap: 7px;
      column-gap: 10px;
    }
    & .nick-row > strong { grid-area: label; }
    & .nick-row > .nick-bar-track { grid-area: bar; }
    & .nick-row > span { grid-area: count; }
    & .mini-stats-3 { grid-template-columns: 1fr; gap: 10px; }
    & .mini-stats-3 > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; }
    & .dict-grid { grid-template-columns: 1fr; }

    /* Nazlı: balanced 2-up polaroid wall */
    & .polaroid-grid { gap: 26px 16px; }
    & .polaroid { width: min(196px, calc(50% - 8px)); padding: 8px 8px 20px; }
    & .polaroid-cap { font-size: 0.94rem; }

    /* Play */
    & .quiz-quote-box { padding: 24px 16px 20px; }
    & .quiz-quote-text { font-size: clamp(1.5rem, 6.4vw, 1.9rem); margin-bottom: 20px; }
    & .quiz-choices { flex-wrap: wrap; }
    & .quiz-top-meta { flex-wrap: wrap; gap: 4px 12px; }

    /* B.I.T.C.H. console: stacked header, wrapping pills, roomier on tall phones */
    & .bakelite-centerpiece { height: clamp(480px, 74svh, 640px); }
    & .bakelite-header { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 14px 12px; }
    & .bakelite-controls { justify-content: space-between; }
    & .bitch-messages { padding: 14px 14px; }
    & .bitch-prompts { flex-wrap: wrap; overflow-x: visible; max-height: 120px; padding: 10px 14px 6px; }
    & .bitch-form { padding: 10px 12px 12px; }
    & .finale-progress-wrap { max-width: 280px; }
  }


  /* Comfortable ≥ 40px touch targets on phones AND touch tablets (iPad reports pointer: coarse) */
  @media (max-width: 640px), (pointer: coarse) {
    & .chap-btn,
    & .zine-shell.is-guided .chap-btn,
    & .zine-shell.is-guided .chap-btn.active { min-height: 40px; min-width: 40px; padding: 6px 10px; justify-content: center; }
    & .tool-label { min-height: 40px; padding: 6px 12px; }
    & .pager-btn { min-height: 40px; padding: 8px 14px; }
    & .bridge-next-btn,
    & .bridge-finale-btn,
    & .bridge-locked-btn { min-height: 44px; }
    & .gate-form .btn-primary { min-height: 44px; }
    & .interrupt-actions .btn-sm { min-height: 40px; }
    & .interrupt-x { min-width: 36px; min-height: 36px; }
    & .icon-close { width: 40px; height: 40px; }
    & .drawer-tab { padding: 9px 13px; min-height: 40px; }
    & .btn-claim { min-height: 40px; }
    & .keepsake-actions .btn-sm { min-height: 40px; }
    & .lightbox-nav { width: 42px; height: 42px; }
    & .autospin-toggle { min-height: 40px; }
    & .jam-pill { min-height: 40px; padding: 6px 12px; }
    & .track-play-btn { width: 40px; height: 40px; }
    & .track-spotify-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; }
    & .spotify-out-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }
    /* Plinth START/STOP is tiny hardware detail — give it a generous invisible hit area */
    & .tt-hw-btn::after { content: ""; position: absolute; inset: -12px; }
    & .quiz-choices > button { min-height: 46px; }
    & .rotary-btn { min-height: 40px; padding: 6px 12px; }
    & .voice-toggle { min-height: 40px; }
    & .prompt-pill { min-height: 40px; }
    & .bitch-send { min-height: 44px; }
    & .speak-mini { min-height: 40px; padding: 4px 10px; }
    & .cal-highlight-chip { min-height: 40px; }
    & .story-jump-btn { min-height: 40px; padding: 8px 16px; }
  }

  @media (max-width: 560px) {
    /* Hero numbers: the big total on its own line, streak + jams side by side underneath */
    & .hero-nums { grid-template-columns: 1fr 1fr; row-gap: 18px; }
    & .hero-nums > div { padding: 4px 8px; }
    & .hero-nums > div:first-child { grid-column: 1 / -1; }
    & .hero-nums > div + div { border-left: 0; border-top: 1px solid rgba(207, 198, 184, 0.09); padding-top: 16px; }
    & .hero-nums > div:nth-child(3) { border-left: 1px solid rgba(207, 198, 184, 0.09); }
    & .hero-num-val { font-size: clamp(2.2rem, 11vw, 2.8rem); }
    & .balance-legend { font-size: 0.68rem; }
    & .month-card { padding: 14px 12px; }
    & .cal-grid { gap: 4px; }
    & .cal-legend-bar { gap: 8px 14px; padding: 8px 10px; }
  }

  @media (max-width: 480px) {
    /* Desktop lifts the 3D deck to 1.06×; on phones scale it down so the plinth never bleeds */
    & .turntable-stage-3d { transform: scale(0.94); margin: -2px auto 0; }
    & .vinyl-shelf-wrap { max-width: 300px; }
    & .zine-wordmark { font-size: 0.92rem; }
  }
  @media (max-width: 380px) {
    & .turntable-stage-3d { transform: scale(0.86); margin: -14px auto -10px; }
    & .zine-wordmark::after { content: " · " var(--act-num, "01"); }
  }
}
