:root {
  /* Warm Cozy Dark Mode — Late-Night Amber Lamp Room */
  --bg: #130f0c;
  --bg-elev: #1b1511;
  --card: #201914;
  --card-soft: #271f19;
  --ink: #f5ece0;
  --ink-soft: #cbbba8;
  --ink-muted: #93806e;
  --line: #342921;
  --line-strong: #4a3a2f;

  --terracotta: #de6d48;
  --amber: #ebb05a;
  --sage: #80a882;

  --bakelite: #15100d;
  --bakelite-panel: #1f1712;
  --bakelite-line: #3a2c22;

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

body.lamp-antok {
  --bg: #0d0a08;
  --card: #18120e;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--bg-elev);
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: var(--bg-elev); border-radius: 999px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 2px solid var(--bg-elev); }
*::-webkit-scrollbar-thumb:hover { background: #665242; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease;
}

.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--amber); }

button:focus-visible,
summary:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0.04;
  background-image: radial-gradient(rgba(255, 236, 209, 0.7) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

.lamp-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 899;
  background:
    radial-gradient(circle at 50% 0%, rgba(235, 176, 90, 0.14), transparent 56%),
    radial-gradient(circle at 82% 88%, rgba(222, 109, 72, 0.07), transparent 48%);
  transition: background 0.6s ease;
}

/* Narrator Pill — Signals B.I.T.C.H. is speaking! */
.narrator-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--amber);
  background: rgba(235, 176, 90, 0.1);
  border: 1px solid rgba(235, 176, 90, 0.28);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.bitch-caption {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 2px solid rgba(235, 176, 90, 0.45);
}

/* Color key for Yiğit vs Kath */
.who-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.dot-y, .dot-k {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.dot-y { background: var(--sage); }
.dot-k { background: var(--terracotta); }

.btn-primary {
  background: var(--amber);
  color: #19120d;
  border: 1px solid var(--amber);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn-primary:hover:not(:disabled) { background: #f4be6f; transform: translateY(-1px); }
.btn-ico { display: inline-flex; align-items: center; gap: 8px; }
.ico-svg { display: block; flex-shrink: 0; }
.btn-lg { padding: 13px 28px; font-size: 0.98rem; }
.btn-sm { padding: 7px 15px; font-size: 0.8rem; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.84rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover:not(:disabled) { background: var(--card-soft); }
.btn-secondary:disabled { opacity: 0.72; cursor: default; border-color: var(--sage); color: var(--sage); }

/* ======================================================
   SCREENS 1 & 2 (GATE & BACKLOG RECEIPTS)
====================================================== */
.centered-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.gate-card {
  width: min(470px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.gate-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.14;
}
.gate-title em { color: var(--terracotta); font-style: italic; }
.gate-sub { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 26px; }
.gate-form { display: flex; gap: 10px; }
.gate-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink);
}
.gate-form input:focus { outline: 2px solid var(--amber); border-color: transparent; }
.gate-hint { margin: 16px 0 0; font-family: var(--font-hand); font-size: 1.24rem; color: var(--ink-muted); }
.gate-hint.error { color: var(--terracotta); }

.intro-inner { width: min(640px, 100%); text-align: center; }
.intro-receipts { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 28px; }
.intro-slip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  animation: slipIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.intro-slip.is-kath { border-left: 4px solid var(--terracotta); }
.intro-slip.is-yigit { border-left: 4px solid var(--sage); }
.intro-slip-quote { font-family: var(--font-serif); font-size: 1.14rem; color: var(--ink); }
.intro-slip-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); white-space: nowrap; }

@keyframes slipIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.backlog-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 30px;
  border: 3px solid var(--terracotta);
  border-radius: 10px;
  color: var(--terracotta);
  transform: rotate(-3deg);
  margin: 6px 0 28px;
  animation: stampSlam 0.35s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
.backlog-stamp span { font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.16em; }
.backlog-stamp strong { font-family: var(--font-serif); font-size: 2rem; letter-spacing: 0.06em; line-height: 1.1; }
@keyframes stampSlam {
  from { opacity: 0; transform: scale(1.8) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(-3deg); }
}

/* ======================================================
   TOP NAV — EXPLICIT LABELS, ZERO MYSTERY ICONS
====================================================== */
.zine-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 16px 26px;
  background: rgba(19, 15, 12, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.zine-wordmark {
  background: none; border: 0; padding: 0;
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.zine-wordmark em { color: var(--amber); font-style: italic; }

.chapter-rail { display: flex; align-items: center; gap: 4px; }
.chap-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.83rem; font-weight: 500; color: var(--ink-muted);
  transition: all 0.18s ease; white-space: nowrap;
}
.chap-num {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  background: rgba(255, 244, 224, 0.06); color: var(--ink-muted);
  transition: all 0.18s ease;
}
.chap-btn:hover:not(.is-locked) { color: var(--ink); }
.chap-btn.active {
  background: var(--card-soft); color: var(--ink); border-color: var(--line-strong); font-weight: 600;
}
.chap-btn.active .chap-num { background: var(--amber); color: #19120d; }
.chap-btn.chap-bitch.active {
  background: var(--amber); color: #19120d; border-color: var(--amber);
}
.chap-btn.chap-bitch.active .chap-num { background: #19120d; color: var(--amber); }

/* Guided First-Playthrough Minimal Progress Rail */
.zine-shell.is-guided .chapter-rail { gap: 8px; }
.zine-shell.is-guided .chap-btn { padding: 5px 7px; }
.zine-shell.is-guided .chap-btn:not(.active) .chap-name { display: none; }
.zine-shell.is-guided .chap-btn.active { padding: 6px 14px 6px 8px; }
.zine-shell.is-guided .chap-btn.is-done .chap-num {
  background: rgba(128, 168, 130, 0.22); color: var(--sage); border: 1px solid rgba(128, 168, 130, 0.45);
}
.zine-shell.is-guided .chap-btn.is-locked {
  opacity: 0.42; cursor: not-allowed;
}
.zine-shell.is-guided .chap-btn.is-locked .chap-num {
  border: 1px dashed var(--line-strong); background: transparent;
}
.zine-shell.is-guided .chap-btn.is-locked:hover { opacity: 0.72; color: var(--ink-muted); }

.quiet-tools { display: flex; align-items: center; gap: 8px; }
.tool-label {
  padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.77rem; font-weight: 600;
  transition: all 0.18s ease; white-space: nowrap;
}
.tool-label:hover:not(.is-locked) { color: var(--ink); border-color: var(--line-strong); }
.tool-label.active { color: var(--amber); border-color: rgba(235, 176, 90, 0.5); }
.tool-label.is-locked { opacity: 0.38; border-style: dashed; cursor: not-allowed; }
.tool-label.is-locked:hover { opacity: 0.65; }
.tool-accent { background: var(--terracotta); color: #fff8f0; border-color: var(--terracotta); }
.tool-accent:hover:not(.is-locked) { background: #c95d3a; color: #fff8f0; }

/* SINGLE CALM COLUMN */
.chapter-stage {
  max-width: 740px;
  margin: 0 auto;
  padding: 46px 26px 96px;
  animation: chapterFade 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes chapterFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chapter-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 38px;
}
.chapter-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 12px;
}
.chapter-title em { color: var(--amber); font-style: italic; }
.chapter-lead { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }

.spread-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 32px;
  margin-bottom: 24px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}
.spread-h3 { font-family: var(--font-serif); font-size: 1.38rem; font-weight: 600; margin: 0 0 8px; }

.sub-switch {
  display: inline-flex;
  background: var(--bg-elev);
  padding: 4px; border-radius: 999px; border: 1px solid var(--line);
  margin: 0 auto 28px;
}
.sub-btn {
  border: 0; background: transparent; padding: 7px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.83rem; color: var(--ink-muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.sub-btn:hover { color: var(--ink); }
.sub-btn.active { background: var(--card-soft); color: var(--ink); }

.chapter-bridge {
  margin-top: 40px;
  padding: 22px 26px;
  background: linear-gradient(145deg, rgba(39, 31, 25, 0.9), rgba(27, 21, 17, 0.9));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
}
.bridge-line {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.bridge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: rgba(235, 176, 90, 0.12);
  border: 1px solid rgba(235, 176, 90, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}
.bridge-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bridge-finale-btn {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff8f0;
  box-shadow: 0 8px 24px rgba(222, 109, 72, 0.35);
}
.bridge-finale-btn:hover:not(:disabled) { background: #e87a55; }
.bridge-locked-btn { opacity: 0.84; border-style: dashed; }

/* 5-Prompt Finale Unlock Progress Bar */
.finale-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.finale-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 244, 224, 0.08);
  border: 1px solid var(--line);
  overflow: hidden;
}
.finale-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--terracotta));
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.finale-progress-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  white-space: nowrap;
}
.pager-btn { background: none; border: 0; font-family: var(--font-serif); font-size: 1.08rem; color: var(--ink); padding: 6px 0; }
.pager-btn:hover { color: var(--amber); }
.pager-btn.muted { color: var(--ink-muted); font-size: 0.94rem; }

/* Clear 3-number Hero Row */
.hero-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; margin-bottom: 26px; }
.hero-num-val { font-family: var(--font-serif); font-size: 2.15rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.hero-num-lbl { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-top: 6px; }
.hero-num-sub { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }

/* Day Postcard aligned 3-stat row */
.day-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: center;
  margin-bottom: 20px;
  padding: 14px 10px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.day-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.day-stat-val {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
.day-stat-val-sm { font-size: 0.96rem; font-weight: 600; }
.day-stat-val-md { font-size: 1.24rem; }

.balance-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bg); margin: 10px 0 8px; }
.balance-yigit { background: var(--sage); }
.balance-her { background: var(--terracotta); }
.balance-legend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); flex-wrap: wrap; gap: 8px; }

.story-timeline {
  display: flex; flex-direction: column; gap: 20px;
  border-left: 2px solid var(--line-strong); padding-left: 22px; margin-left: 6px;
}
.story-node { position: relative; }
.story-node::before {
  content: ""; position: absolute; left: -29px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--amber); border: 2px solid var(--card);
}
.story-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--amber); }
.story-title { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; margin: 2px 0; }
.story-quote { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; }

.stock-pt .pt-ring { opacity: 0; transition: opacity 0.18s ease; }
.stock-pt:hover .pt-ring,
.stock-pt.is-active .pt-ring { opacity: 0.75; }

.stock-tooltip {
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* Balanced 3-column mini stats strip (3 AM tab) */
.mini-stats-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  text-align: center;
}
.mini-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}
.mini-stat-val {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* ======================================================
   MUSIC: TACTILE 3D WALNUT TURNTABLE + DEEZER TRACKLIST
====================================================== */
.turntable-deck {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  background:
    radial-gradient(circle at 26% 18%, rgba(235, 176, 90, 0.14), transparent 55%),
    linear-gradient(155deg, #211812, #150f0b);
  border-radius: 24px;
  padding: 26px 28px;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.52);
}

/* 3D Perspective Stage */
.turntable-stage-3d {
  position: relative;
  width: 296px;
  height: 248px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  perspective: 920px;
}

.tt-ground-shadow {
  position: absolute;
  bottom: 10px;
  left: 16px;
  right: 16px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 74%);
  filter: blur(8px);
  pointer-events: none;
}

.tt-plinth {
  position: relative;
  width: 282px;
  height: 214px;
  transform: rotateX(22deg) rotateZ(-1.5deg);
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.turntable-stage-3d:hover .tt-plinth {
  transform: rotateX(18deg) rotateZ(-0.5deg) translateY(-2px);
}

.tt-deck-top {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 224, 174, 0.18), transparent 54%),
    linear-gradient(135deg, #6d462b 0%, #4b2d1a 46%, #351f12 100%);
  border: 1px solid rgba(235, 190, 130, 0.3);
  box-shadow:
    inset 0 2px 3px rgba(255, 232, 196, 0.24),
    inset 0 -4px 10px rgba(15, 7, 3, 0.65),
    0 18px 34px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 2;
}

/* Subtle horizontal walnut wood-grain lines */
.tt-wood-grain {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    repeating-linear-gradient(
      92deg,
      rgba(26, 12, 5, 0.45) 0 2px,
      transparent 2px 9px,
      rgba(255, 210, 152, 0.16) 9px 11px,
      transparent 11px 22px
    );
  pointer-events: none;
}

/* 3D Front Walnut Bevel Skirt */
.tt-plinth-front {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -15px;
  height: 22px;
  border-radius: 0 0 13px 13px;
  background: linear-gradient(180deg, #3c2314 0%, #24140b 65%, #160c06 100%);
  border: 1px solid rgba(215, 168, 108, 0.18);
  border-top: 0;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.tt-front-trim {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 9px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(235, 190, 120, 0.55), transparent);
}
.tt-foot {
  position: absolute;
  bottom: -21px;
  width: 28px;
  height: 9px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #2a211b, #b69a74 45%, #3a2e25);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.75);
  z-index: 0;
}
.tt-foot-l { left: 22px; }
.tt-foot-r { right: 22px; }

/* Recessed Brushed-Aluminum Platter Rim + Strobe Dots */
.tt-platter-well {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 186px;
  height: 186px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #0e0a08 66%, #241913 100%);
  box-shadow:
    inset 0 6px 14px rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(255, 224, 178, 0.22);
  display: grid;
  place-items: center;
}

.tt-platter-rim {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: conic-gradient(
    from 25deg,
    #807972 0deg,
    #dad3ca 52deg,
    #6c655e 124deg,
    #e8e1d7 210deg,
    #777068 290deg,
    #807972 360deg
  );
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.72),
    inset 0 1px 2px rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
}

/* Machined strobe dots ring around outer aluminum chamfer */
.tt-strobe-ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(26, 20, 16, 0.65) 0deg 3.5deg,
    transparent 3.5deg 10deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  pointer-events: none;
}

.tt-vinyl-wrap {
  position: relative;
  width: 162px;
  height: 162px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.vinyl-disc.tt-vinyl {
  position: relative;
  width: 162px;
  height: 162px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0e0b09 0 28%, transparent 28.5%),
    repeating-radial-gradient(circle at center, #120f0e 0 1.4px, #1e1916 1.4px 2.8px, #14100e 2.8px 4.2px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 244, 224, 0.08),
    0 6px 16px rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  animation: spinVinyl 5.2s linear infinite;
  animation-play-state: paused;
}
.vinyl-disc.tt-vinyl.spinning { animation-play-state: running; }
@keyframes spinVinyl { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.tt-vinyl-grooves {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 240, 215, 0.07);
  box-shadow: inset 0 0 0 16px rgba(0, 0, 0, 0.14), inset 0 0 0 17px rgba(255, 240, 215, 0.05);
  pointer-events: none;
}

/* Stationary conical overhead lamp light reflections on spinning vinyl */
.tt-vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -38deg,
    rgba(255, 244, 224, 0.22) 0deg,
    rgba(255, 244, 224, 0.03) 26deg,
    transparent 62deg,
    transparent 150deg,
    rgba(235, 176, 90, 0.18) 184deg,
    rgba(255, 244, 224, 0.02) 215deg,
    transparent 255deg,
    rgba(255, 244, 224, 0.18) 338deg,
    rgba(255, 244, 224, 0.22) 360deg
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.vinyl-label.tt-label {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff8ee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
  font-family: var(--font-mono);
  font-size: 0.42rem;
  line-height: 1.15;
  border: 2px solid rgba(255, 240, 215, 0.48);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.32);
  background-size: cover;
  background-position: center;
}
.vinyl-label.tt-label strong { font-size: 0.54rem; letter-spacing: 0.02em; }

.tt-spindle {
  position: absolute;
  z-index: 4;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6e6 0%, #d4ba8f 55%, #665239 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.85), 0 0 0 2px rgba(20, 14, 10, 0.65);
  pointer-events: none;
}

/* Tactile Plinth Controls */
.tt-hw-btn {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 5;
  width: 34px;
  height: 22px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 244, 224, 0.32);
  background: linear-gradient(180deg, #cbc2b6 0%, #8e857a 100%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.tt-hw-btn:hover { transform: translateY(-1px); }
.tt-hw-btn:active, .tt-hw-btn.is-active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.tt-hw-cap {
  font-family: var(--font-mono);
  font-size: 0.37rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: #211914;
}

.tt-rpm-pill {
  position: absolute;
  left: 49px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 10, 7, 0.62);
  border: 1px solid rgba(235, 190, 130, 0.2);
  font-family: var(--font-mono);
  font-size: 0.44rem;
  color: #d7c3a8;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.tt-strobe-lamp {
  width: 8px;
  height: 4px;
  border-radius: 2px;
  background: #4e3322;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.tt-strobe-lamp.is-lit {
  background: #ff9a42;
  box-shadow: 0 0 8px #ff9a42, 0 0 14px rgba(255, 154, 66, 0.7);
}

.tt-brass-badge {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(235, 194, 130, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

/* Precision Pitch Slider on Right Side */
.tt-pitch-fader {
  position: absolute;
  right: 13px;
  bottom: 34px;
  width: 14px;
  height: 54px;
  border-radius: 4px;
  background: rgba(14, 9, 6, 0.55);
  border: 1px solid rgba(235, 190, 130, 0.18);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.tt-pitch-track {
  width: 2px;
  height: 40px;
  background: #0b0705;
  border-radius: 999px;
}
.tt-pitch-knob {
  position: absolute;
  top: 22px;
  width: 10px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #dfd6c8, #8c8276);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Dimensional Metallic Gimbal + S-Curved Tonearm */
.tt-gimbal {
  position: absolute;
  top: 16px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #493f38, #1a1411 72%);
  border: 1.5px solid rgba(235, 206, 164, 0.35);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.72), inset 0 2px 4px rgba(255, 240, 220, 0.18);
  display: grid;
  place-items: center;
  z-index: 5;
  pointer-events: none;
}
.tt-gimbal-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(#7d6d5a, #ead8bc, #5e4f3e, #dec7a6, #7d6d5a);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
}
.tt-gimbal-cap {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f5e6ce, #78634a);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.tt-arm-rest {
  position: absolute;
  top: 108px;
  right: 36px;
  width: 12px;
  height: 6px;
  border-radius: 3px;
  background: #231a15;
  border: 1px solid rgba(235, 190, 130, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  z-index: 4;
  pointer-events: none;
}

.tt-tonearm-pivot {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 185px;
  transform-origin: 46px 40px;
  transform: rotate(-1deg);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 7;
  pointer-events: none;
}
.tt-tonearm-pivot.engaged {
  transform: rotate(24deg);
}
.tt-arm-shadow {
  position: absolute;
  top: 6px;
  left: 5px;
  filter: blur(2.5px);
  opacity: 0.72;
  transition: transform 0.45s ease;
}
.tt-tonearm-pivot.engaged .tt-arm-shadow {
  transform: translate(-2px, -2px);
}
.tt-arm-svg {
  position: relative;
  display: block;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
}

.deck-right { min-width: 0; }

/* Feature #4: Interactive Vinyl Sleeve Slide-Out Picker on Wooden Shelf */
.vinyl-shelf-wrap { margin: 14px 0 16px; }
.vinyl-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding: 6px 12px 0 2px;
}
.vinyl-sleeve {
  position: relative;
  display: block;
  width: 100%;
  max-width: 92px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.sleeve-disc {
  position: absolute;
  top: 8%;
  left: 6%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #14110f 0 2px, #241e1a 2px 4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  transform: translateX(4px) rotate(0deg);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}
.sleeve-disc-label {
  width: 36%;
  height: 36%;
  border-radius: 50%;
  background: var(--sleeve-accent, var(--amber));
  border: 2px solid rgba(255, 240, 215, 0.45);
}
.sleeve-cover {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 82%;
  height: 100%;
  padding: 7px 6px 6px;
  border-radius: 5px;
  background:
    linear-gradient(155deg, rgba(255, 248, 232, 0.14), rgba(0, 0, 0, 0.28)),
    var(--sleeve-accent, var(--amber));
  border: 1px solid rgba(255, 244, 224, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.52), inset 2px 0 0 rgba(255, 248, 232, 0.25);
  color: #fff8f0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.sleeve-cat {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.sleeve-title {
  font-family: var(--font-serif);
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}
.sleeve-sub {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vinyl-sleeve:hover { transform: translateY(-3px); }
.vinyl-sleeve:hover .sleeve-disc { transform: translateX(15px) rotate(18deg); }
.vinyl-sleeve.active .sleeve-disc { transform: translateX(16px) rotate(22deg); }
.vinyl-sleeve.active .sleeve-cover {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(235, 176, 90, 0.55), 0 10px 20px rgba(0, 0, 0, 0.55);
}
.vinyl-shelf-ledge {
  height: 8px;
  margin-top: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #543d2c 0%, #312217 100%);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(235, 176, 90, 0.2);
}

/* Feature #6: Live 30s Vinyl Groove Progress Bar + Auto-Spin Toggle */
.now-playing-bar {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(235, 176, 90, 0.08);
  border: 1px solid rgba(235, 176, 90, 0.25);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--amber);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.np-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.np-track-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-time { flex-shrink: 0; font-size: 0.69rem; opacity: 0.92; }
.np-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 244, 224, 0.12);
  overflow: hidden;
}
.np-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--terracotta));
  transition: width 0.2s linear;
}
.jam-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.autospin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.16s ease;
}
.autospin-toggle:hover { color: var(--ink); border-color: var(--amber); }
.autospin-toggle.active {
  background: rgba(235, 176, 90, 0.15);
  border-color: var(--amber);
  color: var(--amber);
}
.autospin-ico {
  font-size: 0.86rem;
  line-height: 1;
  transition: transform 0.35s ease;
}
.autospin-toggle.active .autospin-ico {
  transform: rotate(180deg);
}

.jam-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.jam-pill {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft);
  transition: all 0.15s ease;
}
.jam-pill:hover { color: var(--ink); border-color: var(--line-strong); }
.jam-pill.active { background: var(--amber); color: #19120d; border-color: var(--amber); font-weight: 700; }

.tracklist-scroll { max-height: 270px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-right: 4px; }
.track-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: var(--bg-elev); border: 1px solid transparent; font-size: 0.84rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.track-row:hover { border-color: var(--line-strong); }
.track-row.playing { border-color: var(--amber); background: rgba(235, 176, 90, 0.09); }
.track-play-btn {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--card-soft); color: var(--amber); border: 1px solid var(--line-strong);
  display: grid; place-items: center; padding: 0;
  transition: all 0.15s ease;
}
.track-play-btn:hover { background: var(--amber); color: #19120d; }
.track-time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); flex-shrink: 0; }

/* 3 AM Chart & Nicknames */
.hour-bars {
  display: grid; grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 4px; align-items: end; height: 155px; padding: 12px 2px 4px;
}
.hour-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.hour-bar { width: 100%; border-radius: 4px 4px 2px 2px; background: var(--sage); min-height: 4px; }
.hour-bar.is-antok-zone { background: var(--terracotta); }
.hour-bar.is-peak { background: var(--amber); box-shadow: 0 0 14px rgba(235, 176, 90, 0.55); }
.hour-lbl { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-muted); }

.nick-row {
  display: grid; grid-template-columns: 145px minmax(0, 1fr) 150px;
  gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.86rem;
}
.nick-bar-track { height: 8px; border-radius: 999px; background: var(--bg); display: flex; overflow: hidden; }

.cozy-details {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 24px; margin-bottom: 22px;
}
.cozy-details summary {
  cursor: pointer; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.cozy-details summary::-webkit-details-marker { display: none; }
.details-toggle { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-muted); }
.details-toggle::before { content: "open ▾"; }
.cozy-details[open] .details-toggle::before { content: "close ▴"; }

.dict-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.dict-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.dict-term { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--amber); }

/* Calendar */
.calendar-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.month-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.month-title { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; margin-bottom: 12px; display: flex; justify-content: space-between; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-day {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-elev);
  color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.7rem; position: relative; transition: transform 0.12s ease;
}
.cal-day:hover { transform: scale(1.08); border-color: var(--amber); z-index: 2; }
.cal-day.lvl-0 { opacity: 0.28; }
.cal-day.lvl-1 { background: #2c221b; }
.cal-day.lvl-2 { background: #4a3525; }
.cal-day.lvl-3 { background: #8c4d2e; color: #fffaf2; }
.cal-day.lvl-4 { background: #de6d48; color: #19120d; font-weight: 700; }
.cal-badge {
  position: absolute; bottom: 1px; right: 2px; font-size: 0.58rem; line-height: 1;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.75));
}

/* Quiz */
.quiz-quote-box {
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 34px 26px; text-align: center; margin: 16px 0;
}
.quiz-quote-text { font-family: var(--font-serif); font-size: 1.52rem; line-height: 1.34; margin: 0 0 20px; }
.quiz-choices { display: flex; justify-content: center; gap: 12px; }
.quiz-choices button.is-correct { box-shadow: 0 0 0 2px var(--ink); }
.quiz-choices button.is-dimmed { opacity: 0.35; cursor: default; }
.quiz-feedback { margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: 0.88rem; }
.quiz-feedback.right { background: rgba(128, 168, 130, 0.16); border: 1px solid var(--sage); }
.quiz-feedback.wrong { background: rgba(222, 109, 72, 0.15); border: 1px solid var(--terracotta); }
.quiz-date-pill {
  font-family: var(--font-mono); font-size: 0.78rem;
  background: rgba(255, 244, 224, 0.08); padding: 1px 6px; border-radius: 6px;
}

/* Polaroids — Warm paper prints centered naturally like a corkboard! */
.polaroid-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 22px;
  margin-bottom: 34px;
}
.polaroid {
  position: relative; width: 206px; flex: 0 0 auto;
  background: #f8f2e7; color: #241b15; padding: 10px 10px 24px; border-radius: 3px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--tilt, -1.5deg));
  transition: transform 0.22s ease, box-shadow 0.22s ease; cursor: pointer;
}
.polaroid::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 52px; height: 17px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(235, 198, 134, 0.65); border: 1px solid rgba(255, 240, 210, 0.2);
}
.polaroid:hover { transform: rotate(0deg) scale(1.06); z-index: 10; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.6); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 2px; }
.polaroid-cap { margin-top: 9px; font-family: var(--font-hand); font-size: 1.1rem; line-height: 1.15; text-align: center; color: #241b15; }

/* ======================================================
   B.I.T.C.H. CONSOLE — PER-TONE THEMES (BANTER · FORMAL · NAZLI)
====================================================== */
.bakelite-centerpiece {
  --c-bg: #15100d;
  --c-panel: #1f1712;
  --c-border: #4a3a2f;
  --c-line: #3a2c22;
  --c-ink: #f5ece0;
  --c-ink-soft: #cbbba8;
  --c-ink-muted: #93806e;
  --c-accent: #ebb05a;
  --c-accent-ink: #19120d;
  --c-user-bg: #36281f;
  --c-user-ink: #fff8f0;
  --c-bot-bg: #201914;
  --c-bot-border: #342921;
  --c-pill-bg: #201914;
  --c-input-bg: #130f0c;
  --c-radius: 15px;

  position: relative;
  background-color: var(--c-bg);
  background-image: radial-gradient(circle at 18% 0%, rgba(235, 176, 90, 0.14), transparent 52%);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52), 0 0 36px rgba(235, 176, 90, 0.08);
  display: flex;
  flex-direction: column;
  height: clamp(460px, 62vh, 600px);
  overflow: hidden;
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.3s ease, color 0.25s ease;
}

/* Tone 2: Formal — Crisp Dark Slate / Muted Brass / Ledger Grid */
.bakelite-centerpiece[data-tone="audit"] {
  --c-bg: #10151d;
  --c-panel: #161e29;
  --c-border: #425164;
  --c-line: #293545;
  --c-ink: #ebe6db;
  --c-ink-soft: #b2bcc9;
  --c-ink-muted: #7f8c9e;
  --c-accent: #d2b67c;
  --c-accent-ink: #11161d;
  --c-user-bg: #222d3b;
  --c-user-ink: #f4f1ea;
  --c-bot-bg: #151c26;
  --c-bot-border: #324052;
  --c-pill-bg: #171f2a;
  --c-input-bg: #0c1016;
  --c-radius: 8px;

  background-color: var(--c-bg);
  background-image: linear-gradient(180deg, rgba(210, 182, 124, 0.08), transparent 34%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(210, 182, 124, 0.18);
}
.bakelite-centerpiece[data-tone="audit"] .bitch-messages {
  background-image:
    linear-gradient(rgba(210, 182, 124, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 182, 124, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bakelite-centerpiece[data-tone="audit"] .msg-bubble.bot {
  font-family: var(--font-sans);
  border-left: 2px solid var(--c-accent);
}
.bakelite-centerpiece[data-tone="audit"] .bakelite-title,
.bakelite-centerpiece[data-tone="audit"] .msg-meta-row {
  letter-spacing: 0.1em;
}

/* Tone 3: Ma'am Nazlı — Warm Cream-Terracotta Cat-Fur Parchment & Blush-Gold */
.bakelite-centerpiece[data-tone="nazli"] {
  --c-bg: #f6ecdc;
  --c-panel: #ede0cb;
  --c-border: #d8b594;
  --c-line: #dec7ab;
  --c-ink: #2c2017;
  --c-ink-soft: #5c4636;
  --c-ink-muted: #846a55;
  --c-accent: #c85a38;
  --c-accent-ink: #fff8f0;
  --c-user-bg: #c85a38;
  --c-user-ink: #fff8f0;
  --c-bot-bg: #fdf8ef;
  --c-bot-border: #e2ccb0;
  --c-pill-bg: #faf2e4;
  --c-input-bg: #fffaf1;
  --c-radius: 18px;

  background-color: var(--c-bg);
  background-image:
    radial-gradient(circle at 86% 12%, rgba(226, 152, 114, 0.22), transparent 50%),
    radial-gradient(circle at 12% 88%, rgba(217, 165, 102, 0.18), transparent 48%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45), 0 0 36px rgba(216, 150, 96, 0.18);
}
.bakelite-centerpiece[data-tone="nazli"] .bitch-messages {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23c85a38' fill-opacity='0.06'%3E%3Cellipse cx='60' cy='68' rx='13' ry='10'/%3E%3Ccircle cx='44' cy='51' r='5'/%3E%3Ccircle cx='54' cy='45' r='5.2'/%3E%3Ccircle cx='66' cy='45' r='5.2'/%3E%3Ccircle cx='76' cy='51' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 112px 112px;
}
.bakelite-centerpiece[data-tone="nazli"] .rotary-group {
  background: rgba(140, 94, 58, 0.1);
}
.bakelite-centerpiece[data-tone="nazli"] .voice-toggle {
  background: #faf2e4;
}
.bakelite-centerpiece[data-tone="nazli"] .receipt-chip {
  background: #efe3cf;
  border: 1px solid #dcc4a6;
  border-left: 3px solid var(--c-accent);
}

.bakelite-centerpiece.is-glitching .bakelite-title {
  color: var(--terracotta);
  animation: blinkFast 0.14s infinite;
}
@keyframes blinkFast { 50% { opacity: 0.25; } }

.bakelite-header {
  padding: 14px 22px;
  background: var(--c-panel);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.bakelite-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bakelite-title {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.07em;
  line-height: 1.2;
  transition: color 0.35s ease;
}
.bakelite-subtitle {
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.11em;
  color: var(--c-ink-muted);
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.bakelite-controls { display: flex; align-items: center; gap: 8px; }
.rotary-group {
  display: flex;
  gap: 4px;
  background: var(--c-input-bg);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--c-line);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.rotary-btn {
  background: transparent;
  color: var(--c-ink-muted);
  border: 0;
  border-radius: 7px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.rotary-btn:hover { color: var(--c-ink); }
.rotary-btn.active { background: var(--c-accent); color: var(--c-accent-ink); }

.voice-toggle {
  background: var(--c-input-bg);
  color: var(--c-ink-soft);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.voice-toggle.active { border-color: var(--c-accent); color: var(--c-accent); }

.bitch-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.4s ease;
}
.msg-bubble {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: var(--c-radius);
  font-size: 0.9rem;
  line-height: 1.52;
  white-space: normal;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, border-radius 0.35s ease;
}
.msg-text { white-space: pre-wrap; }
.msg-bubble.user {
  align-self: flex-end;
  background: var(--c-user-bg);
  color: var(--c-user-ink);
  border-bottom-right-radius: 4px;
}
.msg-bubble.bot {
  align-self: flex-start;
  background: var(--c-bot-bg);
  border: 1px solid var(--c-bot-border);
  color: var(--c-ink);
  border-bottom-left-radius: 4px;
}
.msg-bubble.bot.is-roast {
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(222, 109, 72, 0.16);
}
.msg-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--c-ink-muted);
}
.speak-mini {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-accent);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.66rem;
}
.speak-mini:hover:not(:disabled) { background: rgba(235, 176, 90, 0.12); }
.speak-mini:disabled { opacity: 0.5; cursor: wait; }

/* Animated Exotic English Thinking Indicator */
.msg-bubble.msg-typing {
  padding: 11px 16px;
  border-style: dashed;
  border-color: var(--c-accent);
}
.thinking-word {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--c-accent);
  transition: opacity 0.17s ease, transform 0.17s ease;
}
.thinking-word.is-swapping {
  opacity: 0;
  transform: translateY(-4px);
}
.think-char {
  display: inline-block;
  animation: thinkFloat 1.35s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 48ms);
}
.think-dots {
  display: inline-flex;
  margin-left: 2px;
}
.think-dots span {
  display: inline-block;
  animation: thinkDotPulse 1.05s ease-in-out infinite;
}
.think-dots span:nth-child(2) { animation-delay: 0.18s; }
.think-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes thinkFloat {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  45% { transform: translateY(-2.5px); opacity: 1; }
}
@keyframes thinkDotPulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1.5px); }
}

.receipt-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.receipt-chip { background: #f5ede0; color: #241b15; border-radius: 8px; padding: 8px 12px; font-family: var(--font-mono); font-size: 0.7rem; border-left: 3px solid var(--terracotta); }
.receipt-chip summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.receipt-chip summary::-webkit-details-marker { display: none; }
.chip-toggle::before { content: "read ▾"; color: #7a6550; }
.receipt-chip[open] .chip-toggle::before { content: "hide ▴"; }
.receipt-lines { margin-top: 7px; padding-top: 7px; border-top: 1px dashed #c8b69b; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-sans); font-size: 0.8rem; line-height: 1.4; }

.bitch-prompts {
  display: flex;
  gap: 7px;
  padding: 10px 18px 6px;
  overflow-x: auto;
  border-top: 1px solid var(--c-line);
  max-height: 64px;
  opacity: 1;
  transition: max-height 0.32s ease, opacity 0.26s ease, padding 0.32s ease, border-color 0.32s ease;
}
.bitch-prompts.is-dismissed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
  overflow: hidden;
  pointer-events: none;
}
.prompt-pill {
  background: var(--c-pill-bg);
  color: var(--c-ink-soft);
  border: 1px solid var(--c-bot-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.76rem;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background 0.3s ease;
}
.prompt-pill:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-1px); }
.prompt-pill.is-entering { animation: pillSwapIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pillSwapIn {
  from { opacity: 0; transform: translateY(6px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bitch-form {
  display: flex;
  gap: 10px;
  padding: 12px 18px 16px;
  background: var(--c-panel);
  border-top: 1px solid var(--c-line);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.bitch-form input {
  flex: 1;
  background: var(--c-input-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 0.88rem;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.25s ease;
}
.bitch-form input::placeholder { color: var(--c-ink-muted); }
.bitch-form input:focus { outline: 1px solid var(--c-accent); border-color: var(--c-accent); }
.bitch-send {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 0.84rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}
.bitch-send:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .think-char, .think-dots span, .prompt-pill.is-entering { animation: none !important; }
}

/* ======================================================
   CREATIVE PAGE-SPECIFIC B.I.T.C.H. INTERRUPTIONS
====================================================== */
.lamp-dim-curtain {
  position: fixed;
  inset: 0;
  z-index: 930;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(8, 5, 3, 0.35), rgba(5, 3, 2, 0.78));
  transition: opacity 0.5s ease;
  animation: curtainFadeIn 0.45s ease both;
}
@keyframes curtainFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.interrupt-lamp-dim .lamp-vignette {
  background: radial-gradient(circle at 50% 10%, rgba(235, 176, 90, 0.05), transparent 44%);
}

.bitch-interrupt {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 945;
  width: min(410px, calc(100vw - 40px));
  background: #221914;
  border: 1.5px solid var(--amber);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.72);
  animation: popInterrupt 0.36s cubic-bezier(0.2, 1.25, 0.4, 1) both;
}
@keyframes popInterrupt {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.interrupt-banner {
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(235, 176, 90, 0.14);
  color: var(--amber);
  border-bottom: 1px solid rgba(235, 176, 90, 0.24);
}
.interrupt-body {
  padding: 15px 18px 17px;
}
.interrupt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.interrupt-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.interrupt-x {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.interrupt-x:hover { color: var(--ink); border-color: var(--amber); }

.interrupt-text {
  font-size: 0.93rem;
  color: var(--ink);
  margin: 10px 0 14px;
  line-height: 1.5;
}
.interrupt-comeback {
  margin: -4px 0 14px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(235, 176, 90, 0.11);
  border-left: 3px solid var(--amber);
  font-size: 0.87rem;
  color: var(--ink);
  line-height: 1.46;
  animation: slipIn 0.25s ease both;
}
.interrupt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Variant 1: Story ($POOP Ticker Audit Stamp) */
.bitch-interrupt[data-variant="ticker-stamp"] {
  border-color: var(--amber);
  background: linear-gradient(155deg, #251c15, #1a130e);
  transform-origin: bottom right;
}
.bitch-interrupt[data-variant="ticker-stamp"] .interrupt-banner {
  background: linear-gradient(90deg, rgba(235, 176, 90, 0.24), rgba(222, 109, 72, 0.16));
  color: #f7c97a;
}

/* Variant 2: Music (DJ B.I.T.C.H. Turntable Hijack) */
.bitch-interrupt[data-variant="dj-takeover"] {
  border-color: var(--terracotta);
  background: linear-gradient(155deg, #241714, #17100e);
}
.bitch-interrupt[data-variant="dj-takeover"] .interrupt-banner {
  background: rgba(222, 109, 72, 0.2);
  color: #f49b7b;
  border-bottom-color: rgba(222, 109, 72, 0.35);
}

/* Variant 3: 3 AM (Bedtime Lamp-Dim Intervention) */
.bitch-interrupt[data-variant="lamp-dim"] {
  border-color: rgba(235, 176, 90, 0.7);
  background: #140f0c;
  box-shadow: 0 0 0 1px rgba(235, 176, 90, 0.18), 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 42px rgba(235, 176, 90, 0.18);
}

/* Variant 4: Nazlı (Warm Cream-Terracotta Head of Safety Permit) */
.bitch-interrupt[data-variant="safety-inspection"] {
  background: #f6ecdc;
  color: #2b1f16;
  border: 2px solid #c85a38;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.62);
}
.bitch-interrupt[data-variant="safety-inspection"] .interrupt-banner {
  background: #c85a38;
  color: #fff8f0;
  border-bottom: 0;
}
.bitch-interrupt[data-variant="safety-inspection"] .interrupt-badge { color: #7c5f48; }
.bitch-interrupt[data-variant="safety-inspection"] .interrupt-text { color: #2b1f16; }
.bitch-interrupt[data-variant="safety-inspection"] .interrupt-x { border-color: #d3b899; color: #6e523e; }
.bitch-interrupt[data-variant="safety-inspection"] .interrupt-comeback {
  background: rgba(200, 90, 56, 0.12);
  border-left-color: #c85a38;
  color: #2b1f16;
}
.bitch-interrupt[data-variant="safety-inspection"] .btn-secondary {
  color: #3c2a1e;
  border-color: #c8a888;
}
.bitch-interrupt[data-variant="safety-inspection"] .btn-secondary:hover { background: rgba(200, 90, 56, 0.1); }

/* Variant 5: Play (Memory Wager Ticket) */
.bitch-interrupt[data-variant="quiz-heckle"] {
  border: 1.5px dashed var(--amber);
  background: linear-gradient(155deg, #231b14, #19130e);
}

/* Variant 6: Envelope Finale (Hfeelings Emergency Override) */
.bitch-interrupt[data-variant="hfeelings-override"] {
  border: 2px solid var(--terracotta);
  background: linear-gradient(160deg, #2c1713, #190f0d);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78), 0 0 38px rgba(222, 109, 72, 0.25);
}
.bitch-interrupt[data-variant="hfeelings-override"] .interrupt-banner {
  background: repeating-linear-gradient(
    -45deg,
    rgba(222, 109, 72, 0.28),
    rgba(222, 109, 72, 0.28) 10px,
    rgba(235, 176, 90, 0.16) 10px,
    rgba(235, 176, 90, 0.16) 20px
  );
  color: #ffd5c5;
  border-bottom-color: rgba(222, 109, 72, 0.45);
}

/* Modals */
dialog.cozy-dialog {
  width: min(600px, 92vw); max-height: 88vh; overflow-y: auto; background: var(--card); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 24px 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
}
dialog.cozy-dialog::backdrop { background: rgba(7, 5, 4, 0.72); backdrop-filter: blur(5px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.dialog-head h3 { font-family: var(--font-serif); font-size: 1.45rem; margin: 0; }
.icon-close { background: var(--card-soft); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; color: var(--ink); flex-shrink: 0; }
.icon-close:hover { border-color: var(--amber); color: var(--amber); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* Thermal Receipt Stage — align-items: flex-start so full white paper scrolls cleanly! */
.receipt-stage {
  background: var(--bg);
  border-radius: 14px;
  padding: 18px;
  max-height: 55vh;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.thermal-paper {
  width: 340px; flex-shrink: 0; background: #fffef9; color: #1f1916; font-family: var(--font-mono); font-size: 0.74rem;
  padding: 22px 20px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  border-top: 4px dashed #d7cbb8; border-bottom: 4px dashed #d7cbb8;
  animation: feedReceipt 0.6s ease-out both;
}
@keyframes feedReceipt { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
.rcpt-row { display: flex; justify-content: space-between; margin: 4px 0; }
.rcpt-div { border-top: 1px dashed #bfb29d; margin: 10px 0; }

/* Integrated Finale Keepsake Checkout Stage inside Desk Drawer */
.finale-keepsake-checkout {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(39, 31, 25, 0.94), rgba(24, 18, 14, 0.96));
  border: 1px solid rgba(235, 176, 90, 0.36);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.keepsake-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.keepsake-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  margin: 0;
  color: var(--ink);
}
.keepsake-stamp-mini {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: rgba(235, 176, 90, 0.12);
  border: 1px solid rgba(235, 176, 90, 0.3);
  padding: 4px 9px;
  border-radius: 999px;
}
.keepsake-sub {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 8px 0 14px;
}
.keepsake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.printer-slot-wrap {
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #110d0a;
}
.printer-slot-lip {
  padding: 7px 14px;
  background: linear-gradient(180deg, #2b211a, #19130f);
  border-bottom: 3px solid #090705;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}
.receipt-stage-inline {
  max-height: clamp(210px, 34vh, 290px);
  padding: 12px;
  border-radius: 0;
}

.voucher-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev); border: 1px dashed var(--amber); border-radius: 14px;
  padding: 12px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  transition: border-color 0.2s ease;
}
.voucher-info { min-width: 0; flex: 1; }
.voucher-card.is-claimed { border-color: var(--sage); }
.voucher-code { font-family: var(--font-mono); font-size: 0.68rem; color: var(--amber); font-weight: 700; }
.voucher-card h4 { font-family: var(--font-serif); margin: 2px 0 3px; font-size: 1.04rem; }
.voucher-fine { font-size: 0.75rem; color: var(--ink-muted); margin-top: 3px; }

.voucher-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Feature #8: Sage-Green Rubber Ink Stamp Animation */
.voucher-stamp {
  transform: rotate(-8deg);
  padding: 5px 10px;
  border: 2px solid var(--sage);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--sage);
  background: rgba(128, 168, 130, 0.1);
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(128, 168, 130, 0.35);
}
.voucher-stamp.is-fresh {
  animation: voucherStampSlam 0.36s cubic-bezier(0.2, 1.35, 0.4, 1) both;
}
@keyframes voucherStampSlam {
  from { opacity: 0; transform: scale(2.1) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(-8deg); }
}

/* Feature #1: Tactile Wax-Seal Tear Animation on Christmas Envelope */
.christmas-envelope {
  margin-top: 14px; background: linear-gradient(135deg, #2b1d16, #1b130f); color: var(--ink);
  border-radius: 16px; padding: 20px 22px; border: 1px solid var(--line-strong);
}
.sealed-envelope-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 20px 18px;
  border-radius: 12px;
  background: linear-gradient(160deg, #32231a 0%, #241913 100%);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(235, 176, 90, 0.08), rgba(0, 0, 0, 0.18));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1px solid rgba(235, 176, 90, 0.14);
  transform-origin: top center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.sealed-envelope-stage.is-tearing .envelope-flap {
  transform: rotateX(75deg) scaleY(0.2);
  opacity: 0.25;
}
.wax-seal-btn {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
.wax-seal-btn:hover:not(:disabled) { transform: scale(1.06); }
.wax-face {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #e87a56 0%, #b84828 62%, #863018 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.58), inset 0 2px 5px rgba(255, 224, 198, 0.35), inset 0 -4px 8px rgba(58, 16, 6, 0.55);
  display: grid;
  place-items: center;
  transition: opacity 0.22s ease, transform 0.28s ease;
}
.wax-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 232, 208, 0.42);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fce7d2;
  text-shadow: 0 1px 2px rgba(64, 16, 4, 0.65);
}
.wax-half {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #e0724f, #9e391c);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.wax-left { clip-path: polygon(0 0, 52% 0, 44% 52%, 54% 100%, 0 100%); }
.wax-right { clip-path: polygon(52% 0, 100% 0, 100% 100%, 54% 100%, 44% 52%); }
.wax-seal-btn.is-cracking .wax-face { opacity: 0; transform: scale(0.92); }
.wax-seal-btn.is-cracking .wax-left {
  opacity: 1;
  animation: crackLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.wax-seal-btn.is-cracking .wax-right {
  opacity: 1;
  animation: crackRight 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes crackLeft {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(-26px, 12px) rotate(-26deg); opacity: 0; }
}
@keyframes crackRight {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(26px, 12px) rotate(26deg); opacity: 0; }
}
.wax-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.christmas-letter {
  margin-top: 14px; background: #f8f1e4; color: #231a14; border-radius: 10px;
  padding: 22px 24px; font-family: var(--font-serif); font-size: 1.04rem; line-height: 1.68;
  animation: unfoldLetter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes unfoldLetter {
  from { opacity: 0; transform: translateY(10px) scaleY(0.94); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}
.christmas-sig { margin-top: 14px; font-family: var(--font-hand); font-size: 1.45rem; color: #c45737; }

/* Feature #2: Real-Time Dual Analog Clock (Istanbul · Manila) */
.dual-clock-card { text-align: center; }
.dual-clock-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 14px 0 18px;
}
.clock-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.analog-clock-svg { width: 92px; height: 92px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); }
.clock-city {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; margin-top: 6px;
}
.clock-digital {
  font-family: var(--font-mono); font-size: 0.86rem; font-weight: 700; color: var(--amber);
}
.clock-tz { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-muted); }
.clock-bridge-mid { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.clock-gap-pill {
  padding: 4px 11px; border-radius: 999px;
  background: rgba(235, 176, 90, 0.12); border: 1px solid rgba(235, 176, 90, 0.32);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: var(--amber);
}
.clock-gap-sub { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-muted); }
.clock-status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* Feature #5: Emoji DNA Fingerprint Strip */
.emoji-dna-strip {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.emoji-dna-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.emoji-dna-who {
  width: 64px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.emoji-chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.emoji-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-size: 0.94rem;
}
.emoji-chip small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
}

/* Feature #3: Nazlı Photo Lightbox Filmstrip & Navigation */
.lightbox-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.lightbox-counter {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e0b09;
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
}
.lightbox-img {
  width: 100%;
  max-height: 54vh;
  object-fit: contain;
  display: block;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 16, 13, 0.82);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  z-index: 3;
}
.lightbox-nav:hover { background: var(--amber); color: #19120d; border-color: var(--amber); }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }
.lightbox-filmstrip {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  padding: 4px 2px 6px;
  overflow-x: auto;
}
.film-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--bg-elev);
  opacity: 0.58;
  transition: all 0.15s ease;
}
.film-thumb:hover { opacity: 0.9; }
.film-thumb.active { opacity: 1; border-color: var(--amber); }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block; }

.easter-toast {
  position: fixed; bottom: 24px; left: 26px; z-index: 950;
  background: var(--card); color: var(--amber); border: 1px solid var(--amber);
  padding: 12px 18px; border-radius: 12px; font-family: var(--font-mono); font-size: 0.78rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5); max-width: 400px;
}

/* ======================================================
   V4 ADDITIONS: REAL COVERS, SPOTIFY LINKS, CLEAN HOURLY
   CHART, FOCUSED QUIZ CUES & TABBED ENVELOPE DRAWER
====================================================== */
.sleeve-cover.has-art {
  padding: 0;
  overflow: hidden;
  background: #171310;
}
.sleeve-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) brightness(0.92);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.vinyl-sleeve:hover .sleeve-art-img,
.vinyl-sleeve.active .sleeve-art-img {
  transform: scale(1.03);
  filter: saturate(1) brightness(0.98);
}
.sleeve-art-scrim {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  padding: 16px 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: linear-gradient(180deg, rgba(16, 13, 11, 0), rgba(16, 13, 11, 0.88) 65%);
}
.active-record-meta {
  margin: 18px 0 16px;
}
.active-record-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--ink);
}
.active-record-meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}
.deck-actions-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.spotify-out-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.spotify-out-link:hover { color: var(--amber); border-color: var(--amber); }

.track-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.track-cover {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: saturate(0.92) brightness(0.93);
  background: #14110f;
}
.track-cover-fallback {
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.track-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}
.track-artist { color: var(--ink-soft); }
.track-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.track-spotify-link {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.track-spotify-link:hover {
  color: var(--amber);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

/* Fixed 3 AM Hourly Chart (zero clipping + clear key & live readout) */
.hour-key-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
}
.hour-key-row span { display: inline-flex; align-items: center; gap: 6px; }
.hkey-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.hkey-swatch.is-normal { background: rgba(207, 198, 184, 0.22); }
.hkey-swatch.is-late { background: var(--terracotta); }
.hkey-swatch.is-peak { background: var(--amber); }

.hour-col {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  cursor: pointer;
}
.hour-bar-slot {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  min-height: 0;
}
.hour-col .hour-bar {
  width: 100%;
  transition: filter 0.16s ease, transform 0.16s ease;
}
.hour-col:hover .hour-bar,
.hour-col:focus-visible .hour-bar {
  filter: brightness(1.18);
  transform: scaleX(1.08);
}
.hour-col .hour-lbl {
  height: 16px;
  line-height: 16px;
  flex-shrink: 0;
  font-size: 0.6rem;
}
.hour-hover-readout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 24px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(20, 17, 15, 0.55);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.hour-hover-readout strong { color: var(--amber); }

/* Clear Who Said It cues */
.quiz-top-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.quiz-eyebrow {
  margin-bottom: 12px;
}
.quiz-prompt-cue {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

/* Clean Tabbed Envelope Drawer (zero clutter!) */
.drawer-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(20, 17, 15, 0.75);
  border: 1px solid var(--line);
  margin: 0 auto 20px;
  width: fit-content;
}
.drawer-tab {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.drawer-tab:hover { color: var(--ink); }
.drawer-tab.active {
  background: rgba(199, 168, 126, 0.16);
  color: var(--amber);
}
.drawer-vouchers-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
