:root {
  --orange-1: #ff8a4c;
  --orange-2: #ffb27a;
  --orange-3: #ff6a3d;
  --lavender-1: #c9b8ff;
  --lavender-2: #a89cff;
  --lavender-3: #d9c9ff;
  --cream: #fdf6ee;
  --ink: #1f1a17;
  --ink-2: #3a322d;
  --ink-mute: rgba(31, 26, 23, 0.62);
  --paper: rgba(253, 246, 238, 0.92);
  --paper-soft: rgba(253, 246, 238, 0.74);
  --hairline: rgba(31, 26, 23, 0.14);
  --shadow-soft: 0 30px 60px -20px rgba(60, 30, 10, 0.25);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --script: 'Reenie Beanie', 'Caveat', cursive;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff1e3;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

/* ---------- Backdrop ---------- */
.backdrop {
  position: fixed; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd9b8 0%, #f4d4ff 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  mix-blend-mode: normal;
  will-change: transform;
}
.blob-a {
  width: 70vmax; height: 70vmax;
  left: -20vmax; top: -25vmax;
  background: radial-gradient(circle, var(--orange-1) 0%, rgba(255,138,76,0) 65%);
  animation: drift1 60s ease-in-out infinite alternate;
}
.blob-b {
  width: 65vmax; height: 65vmax;
  right: -25vmax; top: -10vmax;
  background: radial-gradient(circle, var(--lavender-2) 0%, rgba(168,156,255,0) 65%);
  animation: drift2 72s ease-in-out infinite alternate;
}
.blob-c {
  width: 60vmax; height: 60vmax;
  left: 20vmax; bottom: -25vmax;
  background: radial-gradient(circle, var(--orange-3) 0%, rgba(255,106,61,0) 65%);
  animation: drift3 84s ease-in-out infinite alternate;
}
.blob-d {
  width: 55vmax; height: 55vmax;
  right: -10vmax; bottom: -20vmax;
  background: radial-gradient(circle, var(--lavender-1) 0%, rgba(201,184,255,0) 65%);
  animation: drift4 96s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate(10vmax, 8vmax) scale(1.12) rotate(8deg); }
  66%  { transform: translate(-2vmax, 14vmax) scale(0.96) rotate(-4deg); }
  100% { transform: translate(-8vmax, 4vmax) scale(1.05) rotate(6deg); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate(-12vmax, 10vmax) scale(1.15) rotate(-10deg); }
  66%  { transform: translate(-4vmax, -8vmax) scale(0.92) rotate(6deg); }
  100% { transform: translate(6vmax, -2vmax) scale(1.08) rotate(-4deg); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate(-10vmax, -12vmax) scale(1.08) rotate(7deg); }
  66%  { transform: translate(8vmax, -4vmax) scale(1.14) rotate(-5deg); }
  100% { transform: translate(2vmax, -10vmax) scale(0.98) rotate(8deg); }
}
@keyframes drift4 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate(10vmax, -10vmax) scale(0.9) rotate(-7deg); }
  66%  { transform: translate(-6vmax, -14vmax) scale(1.1) rotate(4deg); }
  100% { transform: translate(-2vmax, 4vmax) scale(1.05) rotate(-6deg); }
}
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ---------- Brand ---------- */
.brand {
  position: fixed;
  top: 20px; left: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(253, 246, 238, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.55);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-name strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.brand { cursor: default; }
.brand-text-short { display: none; } /* desktop shows the full line */
.brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

/* ---------- Page layout ---------- */
.page {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.center {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  gap: 22px;
  pointer-events: none;
}
.center > * { pointer-events: auto; }

.hero { text-align: center; max-width: 640px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(54px, 7vw, 96px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 14px 0;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 240, 220, 0.6);
}
.hero-sub {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 460px;
  margin: 0 auto;
  text-wrap: pretty;
  opacity: 0.85;
}

/* ---------- Composer ---------- */
.composer {
  position: relative;
  width: min(560px, 92vw);
  background: var(--paper);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 22px 24px 18px 24px;
  transition: padding 280ms ease, width 280ms ease;
}
.composer.is-collapsed {
  padding: 0;
  width: min(560px, 92vw);
}
.composer-toggle {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(253, 246, 238, 0.9);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 180ms ease, background 180ms ease;
}
.composer-toggle:hover { background: #fff; transform: scale(1.05); }

.composer.is-collapsed .composer-toggle {
  top: 50%;
  transform: translateY(-50%);
  right: 14px;
}
.composer.is-collapsed .composer-toggle:hover { transform: translateY(-50%) scale(1.05); }

.composer-collapsed-hint {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 56px 18px 24px;
  background: transparent;
  border: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
}
.hint-prompt {
  opacity: 0.85;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
}

.composer-prompt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-right: 36px;
}
.prompt-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
}
.prompt-line--script {
  font-family: var(--script);
  font-style: normal;
  font-size: 34px;
  color: var(--ink);
  opacity: 0.85;
}
.composer-input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--script);
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  resize: none;
  outline: none;
  padding: 6px 0 4px 0;
  border-bottom: 1px dashed rgba(31,26,23,0.25);
}
.composer-input::placeholder {
  color: rgba(31,26,23,0.38);
  font-family: var(--script);
}
.composer-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.composer-count {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.composer-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}
.composer-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #2c241f;
}
.composer-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------- Counter ---------- */
.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.counter-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.counter-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Floating notes ---------- */
.floaters {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.floater {
  position: absolute;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: rgba(253, 246, 238, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 12px;
  padding: 8px 14px;
  font-family: var(--script);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -10px rgba(60, 30, 10, 0.25);
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity, left;
}
.floater-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.floater:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 12px 28px -10px rgba(60, 30, 10, 0.35);
}
.floater.is-hidden { visibility: hidden; }

@keyframes driftRight {
  0%   { left: -10%; }
  100% { left: 110%; }
}
@keyframes driftLeft {
  0%   { left: 110%; }
  100% { left: -10%; }
}

/* ---------- Modal ---------- */
.modal-scrim, .detail-scrim {
  position: fixed; inset: 0;
  z-index: 50;
  background: rgba(31, 26, 23, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: scrimIn 200ms ease;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: min(520px, 100%);
  background: var(--cream);
  border-radius: 22px;
  padding: 26px 28px 22px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.35);
  animation: popIn 260ms cubic-bezier(.2,.9,.3,1.2);
}
@keyframes popIn {
  from { transform: translateY(8px) scale(.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-close, .detail-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close:hover, .detail-close:hover { background: #fff; }

.modal-preview {
  background: rgba(255, 173, 122, 0.18);
  border: 1px dashed rgba(255, 106, 61, 0.4);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.modal-preview-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.modal-preview-text {
  margin: 0;
  font-family: var(--script);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}

.modal-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.pip {
  width: 22px; height: 3px; border-radius: 2px;
  background: rgba(31,26,23,0.15);
  transition: background 200ms ease;
}
.pip.on { background: var(--ink); }

.modal-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  margin: 4px 0 6px 0;
  color: var(--ink);
}
.modal-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 16px 0;
  text-wrap: pretty;
}
.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.choice {
  text-align: left;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.choice:hover { border-color: rgba(31,26,23,0.4); }
.choice.is-on {
  border-color: var(--ink);
  background: rgba(255, 173, 122, 0.16);
}
.choice-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.choice-sub {
  font-size: 12px;
  color: var(--ink-mute);
}
.modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  margin-bottom: 6px;
  transition: border-color 160ms ease;
}
.modal-input:focus { border-color: var(--ink); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.btn-ghost, .btn-primary {
  font-family: var(--sans);
  font-size: 13px;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  border: 0;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  font-weight: 500;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); background: #2c241f; }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- Detail ---------- */
.detail {
  position: relative;
  width: min(520px, 100%);
  background: var(--cream);
  border-radius: 22px;
  padding: 32px 32px 22px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.35);
  animation: popIn 260ms cubic-bezier(.2,.9,.3,1.2);
}
.detail-prompt {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.detail-text {
  margin: 0 0 14px 0;
  font-family: var(--script);
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: pretty;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.detail-author { font-family: var(--serif); font-style: italic; font-size: 14px; }
.detail-dot { opacity: 0.5; }

.detail-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.act > span, .act > svg { pointer-events: none; }
#act-copy-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.act:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
  border-color: rgba(31,26,23,0.3);
}
.act.is-on {
  background: rgba(255, 173, 122, 0.25);
  border-color: rgba(255, 106, 61, 0.5);
}
.act.is-disabled, .act:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.act-count {
  font-variant-numeric: tabular-nums;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4);
  animation: toastIn 240ms ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Footer ---------- */
.footer {
  position: fixed;
  bottom: 18px;
  right: 84px; /* clears the bottom-right feedback button */
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(60,30,10,0.35);
  pointer-events: auto;
}
.footer-link {
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 4px 4px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: opacity 160ms ease;
}
.footer-link:hover { opacity: 0.75; }
.footer-dot { opacity: 0.7; color: #fff; }

.modal--small { max-width: 380px; }
.modal--small .modal-title { margin-top: 0; }

/* ---------- Small viewport ---------- */
@media (max-width: 600px) {
  .floater { font-size: 17px; padding: 6px 11px; }
  .hero-sub { font-size: 14px; }
  .prompt-line { font-size: 26px; }
  .prompt-line--script { font-size: 30px; }
  .composer-input { font-size: 22px; }
  .detail-text { font-size: 28px; }
  .choice-row { grid-template-columns: 1fr; }
}

/* ---------- Turnstile slot ---------- */
.ts-slot { margin: 4px 0 2px; min-height: 0; }
.ts-slot:empty { display: none; }

/* ---------- Honeypot (anti-bot) ---------- */
/* Offscreen rather than display:none — some bots skip hidden fields. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Widget freshness label ---------- */
.tw-refreshed {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
}

/* ---------- Trending widget (top-right) ---------- */
.tw {
  position: fixed;
  top: 18px; right: 20px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: var(--sans);
}
.tw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(253, 246, 238, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.55);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.tw-toggle:hover { background: rgba(255,255,255,0.92); transform: translateY(-1px); }
.tw-spark { color: var(--orange-3); }
.tw-panel {
  width: 320px;
  max-width: 78vw;
  background: var(--paper);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 12px;
  animation: popIn 200ms cubic-bezier(.2,.9,.3,1.2);
}
.tw-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.tw-tab {
  flex: 1;
  padding: 7px 6px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.tw-tab:hover { color: var(--ink); }
.tw-tab.is-on { background: rgba(255, 173, 122, 0.22); color: var(--ink); }
.tw-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 46vh;
  overflow-y: auto;
}
.tw-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--hairline);
}
.tw-item:last-child { border-bottom: 0; }
.tw-rank {
  flex: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
  text-align: center;
}
.tw-text {
  flex: 1;
  text-align: left;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tw-text:hover { color: var(--orange-3); }
.tw-meta {
  flex: 0 0 auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
}

/* ---------- Feedback widget (bottom-right) ---------- */
.fw {
  position: fixed;
  bottom: 20px; right: 22px;
  z-index: 61;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fw-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  background: var(--ink);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(60, 30, 10, 0.5);
  transition: transform 150ms ease, background 150ms ease;
}
.fw-btn:hover { transform: translateY(-2px); background: #2c241f; }
.fw-pop {
  position: relative;
  width: 300px;
  max-width: 82vw;
  background: var(--cream);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(60, 30, 10, 0.4);
  padding: 18px 18px 16px;
  animation: popIn 200ms cubic-bezier(.2,.9,.3,1.2);
}
.fw-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fw-close:hover { background: #fff; }
.fw-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--ink);
}
.fw-sub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-mute);
  margin: 0 0 12px;
  padding-right: 20px;
}
.fw-text, .fw-email {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: border-color 150ms ease;
}
.fw-text { resize: none; line-height: 1.4; }
.fw-text:focus, .fw-email:focus { border-color: var(--ink); }
.fw-send {
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}
.fw-send:hover:not(:disabled) { transform: translateY(-1px); background: #2c241f; }
.fw-send:disabled { opacity: 0.35; cursor: not-allowed; }

@media (max-width: 600px) {
  /* Brand: short label by default, tap to expand to the full line */
  .brand { top: 14px; left: 14px; padding: 7px 12px; cursor: pointer; max-width: calc(100vw - 84px); }
  .brand-text-full { display: none; }
  .brand-text-short { display: inline; }
  .brand--expanded .brand-text-full { display: inline; }
  .brand--expanded .brand-text-short { display: none; }

  /* Trending: compact pill top-right, panel drops as a full-width sheet */
  .tw { top: 12px; right: 12px; }
  .tw-toggle { padding: 8px 10px; }
  .tw-toggle span:not(.tw-spark) { display: none; }
  .tw-spark { font-size: 14px; }
  .tw-panel { position: fixed; top: 54px; left: 10px; right: 10px; width: auto; max-width: none; }
  .tw-list { max-height: 52vh; }

  /* Feedback: button bottom-right, popover becomes a bottom sheet */
  .fw { bottom: 14px; right: 14px; }
  .fw-pop { position: fixed; left: 10px; right: 10px; bottom: 74px; width: auto; max-width: none; }

  /* Footer moves left and wraps within the space left of the feedback button */
  .footer { left: 14px; right: auto; bottom: 16px; flex-wrap: wrap; max-width: calc(100vw - 76px); row-gap: 2px; }

  /* Modals anchor to the top and scroll if taller than the screen */
  .modal-scrim, .detail-scrim { align-items: flex-start; padding: 16px; }
}
