/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;
  --bg: #13100c;
  --bg-raised: #181410;
  --surface: #1e1a15;
  --surface-2: #28221b;
  --surface-3: #342c23;
  --line: #3a3128;
  --line-soft: #2a241d;
  --text: #f7f0e6;
  --text-2: #cdbfab;
  --muted: #968a78;
  --honey: #f5b83d;
  --honey-2: #ffd27a;
  --honey-deep: #e08a1e;
  --honey-ink: #2a1c04;
  --honey-wash: rgba(245, 184, 61, 0.12);
  --honey-glow: rgba(245, 184, 61, 0.42);
  --chart: #c98500;
  --bubble: #2b251e;
  --me-a: #f5b83d;
  --me-b: #ef8a2c;
  --me-ink: #231704;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.28);
  --backdrop: rgba(10, 8, 5, 0.72);

  /* member identity: validated categorical slots, dark steps */
  --m0: #3987e5; --m0-ink: #fff;
  --m1: #d95926; --m1-ink: #fff;
  --m2: #199e70; --m2-ink: #fff;
  --m3: #c98500; --m3-ink: #1d1405;
  --m4: #d55181; --m4-ink: #fff;
  --m5: #008300; --m5-ink: #fff;
  --m6: #9085e9; --m6-ink: #140f2e;
  --m7: #e66767; --m7-ink: #fff;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius: 18px;
  --gutter: 16px;
  --nav-h: 60px;
  --sticky-top: 60px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf6ee;
  --bg-raised: #fffaf2;
  --surface: #ffffff;
  --surface-2: #f5eee2;
  --surface-3: #ece2d2;
  --line: #e6dccb;
  --line-soft: #efe7da;
  --text: #1f1810;
  --text-2: #5a4d3c;
  --muted: #877a66;
  --honey: #e9a21a;
  --honey-2: #f5b83d;
  --honey-deep: #c97a0e;
  --honey-ink: #2a1c04;
  --honey-wash: rgba(233, 162, 26, 0.12);
  --honey-glow: rgba(233, 162, 26, 0.35);
  --chart: #c98500;
  --bubble: #f1e9dc;
  --me-a: #f7c04f;
  --me-b: #f09a3a;
  --me-ink: #2a1c04;
  --shadow: 0 1px 2px rgba(60, 40, 10, 0.06), 0 10px 30px rgba(60, 40, 10, 0.08);
  --backdrop: rgba(40, 28, 10, 0.45);

  --m0: #2a78d6; --m0-ink: #fff;
  --m1: #eb6834; --m1-ink: #fff;
  --m2: #1baf7a; --m2-ink: #06261a;
  --m3: #eda100; --m3-ink: #2a1c04;
  --m4: #e87ba4; --m4-ink: #2d0d1a;
  --m5: #008300; --m5-ink: #fff;
  --m6: #4a3aa7; --m6-ink: #fff;
  --m7: #e34948; --m7-ink: #fff;
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--sticky-top); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; border-radius: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* -------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  min-height: 60px; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { font-size: 22px; filter: drop-shadow(0 2px 8px var(--honey-glow)); }
.brand-name { font: 700 16px/1 var(--display); letter-spacing: -0.01em; }
.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tab {
  text-decoration: none; padding: 7px 12px; border-radius: 999px;
  color: var(--text-2); font-weight: 500; font-size: 14px;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn-honey {
  border: 0; color: var(--honey-ink);
  background: linear-gradient(180deg, var(--honey-2), var(--honey));
  box-shadow: 0 4px 16px -4px var(--honey-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-honey:hover { background: linear-gradient(180deg, var(--honey-2), var(--honey-2)); }
.btn-honey .ico { width: 18px; height: 18px; }
.icon-btn {
  width: 36px; height: 36px; flex: none; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); display: inline-grid; place-items: center; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn .ico { width: 18px; height: 18px; }
.me-pick select {
  height: 36px; max-width: 150px; padding: 0 30px 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  background-size: 5px 5px; background-repeat: no-repeat;
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  padding: 72px var(--gutter) 40px;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -40px -10% 0; z-index: -2;
  background: radial-gradient(60% 70% at 50% 0%, var(--honey-wash), transparent 70%);
}
/* honeycomb: a honey-tinted layer masked by a hex svg and a radial fade */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33M0 48l-28 16M56 48l28 16' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 56px 97px repeat,
    radial-gradient(55% 85% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-composite: source-in;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33M0 48l-28 16M56 48l28 16' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 56px 97px repeat,
    radial-gradient(55% 85% at 50% 0%, #000 25%, transparent 75%);
  mask-composite: intersect;
  background-color: var(--honey);
  opacity: 0.16;
}
.hero-group { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; }
.hero-group img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--honey);
}
.hero h1 {
  margin: 18px 0 14px;
  font: 800 clamp(44px, 10vw, 104px)/0.95 var(--display);
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, var(--honey-2) 0%, var(--honey) 55%, var(--honey-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 28px var(--honey-glow));
}
.hero-lede { max-width: 560px; margin: 0 auto; color: var(--text-2); font-size: clamp(15px, 2.2vw, 17px); text-wrap: balance; }
.hero-lede strong { color: var(--text); font-weight: 600; }
.crew { display: flex; justify-content: center; margin-top: 26px; }
.crew a { margin-left: -8px; border-radius: 50%; text-decoration: none; transition: transform 0.2s ease; }
.crew a:first-child { margin-left: 0; }
.crew a:hover, .crew a:focus-visible { transform: translateY(-3px); position: relative; z-index: 1; }
.crew .avatar { width: 38px; height: 38px; font-size: 14px; box-shadow: 0 0 0 3px var(--bg); }

/* avatars */
.avatar {
  --c: var(--m7); --ci: var(--m7-ink);
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: var(--c); color: var(--ci);
  font: 700 12px/1 var(--font); letter-spacing: 0.01em;
  user-select: none;
}
.avatar.sm { width: 20px; height: 20px; font-size: 9px; }
.avatar.xs { width: 16px; height: 16px; font-size: 8px; }
[data-m="0"] { --c: var(--m0); --ci: var(--m0-ink); }
[data-m="1"] { --c: var(--m1); --ci: var(--m1-ink); }
[data-m="2"] { --c: var(--m2); --ci: var(--m2-ink); }
[data-m="3"] { --c: var(--m3); --ci: var(--m3-ink); }
[data-m="4"] { --c: var(--m4); --ci: var(--m4-ink); }
[data-m="5"] { --c: var(--m5); --ci: var(--m5-ink); }
[data-m="6"] { --c: var(--m6); --ci: var(--m6-ink); }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin-bottom: 40px; }
.tile, .panel {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.tile-value { font: 700 28px/1.15 var(--font); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.tile-note { color: var(--text-2); font-size: 13px; }
.tile.hero-tile .tile-value { font-size: 48px; color: var(--text); }
.tile.hero-tile { background: linear-gradient(160deg, var(--honey-wash), transparent 60%), var(--surface); }
.tile-link { text-decoration: none; color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
.tile-link:hover { border-color: var(--honey); transform: translateY(-1px); }
.panel { padding: 18px 20px 16px; min-width: 0; }
.panel h2 { margin: 0; font-size: 15px; font-weight: 600; }
.panel .panel-sub { margin: 2px 0 14px; color: var(--muted); font-size: 13px; }
.panel-wide { grid-column: 1 / -1; }
.panel-half { grid-column: span 2; }

/* crew leaderboard */
.board { display: grid; gap: 2px; }
.board-row {
  display: grid; grid-template-columns: 92px 1fr 64px; align-items: center; gap: 10px;
  padding: 5px 6px; margin: 0 -6px; border-radius: 10px;
  background: none; border: 0; text-align: left; width: calc(100% + 12px);
}
.board-row:hover, .board-row:focus-visible { background: var(--surface-2); }
.board-who { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; min-width: 0; }
.board-who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-track { position: relative; height: 22px; display: flex; align-items: center; gap: 8px; }
.board-bar { height: 14px; background: var(--chart); border-radius: 0 4px 4px 0; min-width: 2px; }
.board-val { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.board-note { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.board-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 10px; }

/* month chart */
.mchart { position: relative; }
.mchart-plot {
  position: relative; height: 130px; display: flex; align-items: flex-end; gap: 2px;
  border-bottom: 1px solid var(--line); margin: 22px 0 26px;
}
.mbar {
  position: relative; flex: 1 1 0; max-width: 24px; height: 100%; padding: 0; border: 0; background: none;
  display: flex; align-items: flex-end; justify-content: center;
}
.mbar i {
  display: block; width: 100%; height: calc(var(--v) * 100%); min-height: 0;
  background: var(--chart); border-radius: 4px 4px 0 0; transition: filter 0.15s;
}
.mbar:hover i, .mbar:focus-visible i { filter: brightness(1.25); }
.mbar.zero i { height: 0; }
.mbar-peak {
  position: absolute; bottom: calc(var(--v) * 100% + 4px); left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; pointer-events: none;
}
.mbar .yr {
  position: absolute; top: calc(100% + 1px); left: 0; padding: 4px 0 0 4px; border-left: 1px solid var(--line);
  font-size: 12px; line-height: 1.2; color: var(--muted); white-space: nowrap; pointer-events: none;
}

/* ---------------------------------------------------------------- filters */
.filters {
  position: sticky; top: var(--nav-h); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.filters-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
}
.search {
  position: relative; flex: 1 1 220px; max-width: 320px;
}
.search input {
  width: 100%; height: 36px; padding: 0 12px 0 36px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px;
}
.search input::placeholder { color: var(--muted); }
.search .ico { position: absolute; left: 11px; top: 9px; width: 18px; height: 18px; color: var(--muted); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip[aria-pressed="true"] {
  color: var(--honey-ink); border-color: transparent;
  background: linear-gradient(180deg, var(--honey-2), var(--honey));
}
.chip .n { opacity: 0.6; font-variant-numeric: tabular-nums; }
.filters select {
  height: 32px; padding: 0 28px 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text-2);
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.filters select.active { color: var(--honey-ink); background-color: var(--honey); border-color: transparent; }
.filter-meta { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--honey); font-weight: 600; font-size: 13px; }
.linkish:hover { text-decoration: underline; }

/* ------------------------------------------------------------------- feed */
.feed { padding: 8px 0 80px; max-width: 700px; margin: 0 auto; }
.month { margin-top: 18px; }
.month-h {
  position: sticky; top: var(--sticky-top); z-index: 10;
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) 10px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.month-h h2 { margin: 0; font: 700 18px/1.2 var(--display); letter-spacing: -0.01em; }
.month-h span { color: var(--muted); font-size: 13px; }
.month-body { display: grid; gap: 14px; }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { border-color: var(--line); }
.card.legendary { border-color: color-mix(in srgb, var(--honey) 55%, transparent); }
.card-thread { padding: 16px 16px 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.card-thread .row.ctx { opacity: 0.55; }
.card-thread .row.ctx:first-child { opacity: 0.32; }
.card-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px 12px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--text-2);
}
.card-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.card-open {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  color: var(--honey); font-weight: 600; text-decoration: none;
}
.card-open:hover { text-decoration: underline; }
.card-open .ico { width: 16px; height: 16px; }
.likers { display: inline-flex; align-items: center; gap: 8px; }
.likers-faces { display: inline-flex; }
.likers-faces .avatar { margin-left: -5px; box-shadow: 0 0 0 2px var(--surface); }
.likers-faces .avatar:first-child { margin-left: 0; }
.speed { color: var(--text-2); white-space: nowrap; }
.legend-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--honey-wash); color: var(--honey); font-weight: 700; font-size: 12px;
}

.empty { text-align: center; padding: 80px 20px; color: var(--text-2); }
.empty .big { font-size: 44px; margin-bottom: 8px; }

/* ------------------------------------------------------------ chat rows */
.row { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; }
.row .av-slot { width: 30px; flex: none; }
.row .col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(78%, 460px); }
.row .who { font-size: 12px; color: var(--muted); margin: 8px 0 2px 12px; font-weight: 500; }
.row.me { flex-direction: row-reverse; }
.row.me .col { align-items: flex-end; }
.row.me .av-slot { display: none; }
.row.first { margin-top: 6px; }
.row.first .av-slot { margin-top: 26px; }

.bubble {
  padding: 8px 13px; border-radius: 20px; background: var(--bubble);
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  font-size: 15px; line-height: 1.4; max-width: 100%;
}
.bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.row:not(.me) .bubble { border-bottom-left-radius: 6px; }
.row.me .bubble {
  background: linear-gradient(160deg, var(--me-a), var(--me-b)); color: var(--me-ink);
  border-bottom-right-radius: 6px;
}
.bubble.jumbo { background: none !important; padding: 0 2px; font-size: 40px; line-height: 1.15; }
.bubble.ph { background: none; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; font-style: italic; }
.row.me .bubble.ph { background: none; color: var(--muted); }
.card .rx { display: none; }
.card .row.ctx .bubble { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chip-ref { display: inline-flex; align-items: center; gap: 6px; }

/* superliked bubble */
.row.super .bubble:not(.jumbo),
.row.super .media-box,
.row.super .share {
  box-shadow: 0 0 0 2px var(--bg-raised), 0 0 0 4px var(--honey), 0 8px 34px -4px var(--honey-glow);
}
.card .row.super .bubble:not(.jumbo),
.card .row.super .media-box,
.card .row.super .share { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--honey), 0 8px 34px -4px var(--honey-glow); }
.row.super .bubble { font-size: 16px; }
.row.super .bubble.jumbo { font-size: 56px; filter: drop-shadow(0 4px 18px var(--honey-glow)); }
.row.focus { animation: pulse 1.8s ease-out 0.25s 2; border-radius: 24px; }
@keyframes pulse {
  0% { background: transparent; }
  30% { background: var(--honey-wash); }
  100% { background: transparent; }
}

/* reactions */
.rx {
  display: inline-flex; align-items: center; gap: 3px; margin-top: -6px; margin-left: 10px; position: relative; z-index: 1;
  padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 2px solid var(--surface);
  font-size: 12px; line-height: 18px; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.thread .rx { border-color: var(--bg-raised); }
.row.me .rx { margin-left: 0; margin-right: 10px; }
.row.super .rx {
  margin-top: 8px; padding: 3px 10px 3px 8px; font-size: 13px; gap: 5px;
  background: var(--honey-wash); color: var(--honey); font-weight: 700; border: 0;
}
.super-meta { margin: 8px 0 0 10px; font-size: 12px; font-weight: 600; color: var(--honey); }
.row.me .super-meta, .row.me .super-link { margin-left: 0; margin-right: 10px; }
.super-link {
  margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--honey); text-decoration: none; margin-left: 10px;
}
.super-link:hover { text-decoration: underline; }

/* media */
.media-grid { display: grid; gap: 4px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); width: min(320px, 66vw); }
.media-grid .media-box { width: 100% !important; aspect-ratio: 1 !important; border-radius: 12px; }
.media-box {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--surface-3);
  width: min(300px, 62vw); max-width: 100%;
}
.media-box.photo { padding: 0; border: 0; display: block; cursor: zoom-in; }
.media-box img, .media-box video { width: 100%; height: 100%; object-fit: cover; }
.media-box video { background: #000; max-height: 480px; object-fit: contain; }
.media-box.gif img { object-fit: contain; }
.media-missing { padding: 18px; font-size: 13px; color: var(--muted); font-style: italic; }
.mini {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 16px;
  background: var(--bubble); color: var(--text-2); font-size: 13px;
}
.row.me .mini { background: color-mix(in srgb, var(--me-a) 30%, var(--bubble)); color: var(--text); }
.mini .ico { width: 16px; height: 16px; }
.voice {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-radius: 22px; background: var(--bubble);
}
.row.me .voice { background: linear-gradient(160deg, var(--me-a), var(--me-b)); color: var(--me-ink); }
.voice audio { height: 36px; width: 240px; max-width: 58vw; }
.voice-dur { font-size: 12px; font-variant-numeric: tabular-nums; opacity: 0.75; }

/* shares */
.share {
  display: block; width: min(300px, 70vw); border-radius: 18px; overflow: hidden; text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--line);
}
a.share:hover { border-color: var(--honey); }
.share-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; }
.ig-dot {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.ig-dot .ico { width: 17px; height: 17px; }
.ig-dot.link-dot { background: var(--surface-3); color: var(--text-2); }
.share-kind { font-size: 12px; color: var(--muted); line-height: 1.2; }
.share-owner { font-weight: 600; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-text {
  margin: 0; padding: 0 12px; font-size: 13px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.share-cta { display: flex; align-items: center; gap: 4px; padding: 8px 12px 10px; font-size: 13px; font-weight: 600; color: var(--honey); }
.share-cta .ico { width: 14px; height: 14px; }
.share.gif { width: auto; max-width: min(260px, 64vw); background: none; border: 0; }
.share.gif img { border-radius: 16px; min-width: 120px; min-height: 80px; background: var(--surface-3); }
.gif-by { display: block; font-size: 11px; color: var(--muted); margin: 3px 0 0 8px; }
.share.gone { padding: 10px 12px; color: var(--muted); font-size: 13px; font-style: italic; }

/* system + time separators */
.sys {
  align-self: center; margin: 10px auto; max-width: 90%;
  padding: 4px 12px; border-radius: 999px; background: var(--surface-2);
  font-size: 12px; color: var(--muted); text-align: center;
}
.sep { align-self: center; margin: 16px 0 6px; font-size: 12px; color: var(--muted); font-weight: 500; }

/* ----------------------------------------------------------------- detail */
.detail { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.detail-backdrop {
  position: absolute; inset: 0; background: var(--backdrop);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade 0.2s ease;
}
.detail-panel {
  position: relative; width: min(760px, 100%); height: min(92vh, 1000px);
  display: flex; flex-direction: column;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden; animation: rise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.detail-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft); background: var(--bg-raised);
}
.detail-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.detail-title strong { font: 700 15px/1.3 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-title span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-actions { display: flex; gap: 6px; }
.thread {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 16px 28px; display: flex; flex-direction: column; gap: 3px;
}
.more {
  align-self: center; margin: 8px 0; height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2);
}
.more:hover { color: var(--text); background: var(--surface-2); }
.edge { align-self: center; margin: 10px 0; font-size: 12px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.985); } }

/* --------------------------------------------------------------- gallery */
.page-head { padding: 48px 0 20px; }
.page-head h1 { margin: 0; font: 800 clamp(34px, 6vw, 56px)/1 var(--display); letter-spacing: -0.03em; }
.page-head p { margin: 8px 0 0; color: var(--text-2); }
.gallery { columns: 4 220px; column-gap: 12px; padding-bottom: 80px; }
.g-tile {
  position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0;
  border-radius: 16px; overflow: hidden; background: var(--surface-2); break-inside: avoid; cursor: zoom-in;
}
.g-tile img { width: 100%; height: auto; transition: transform 0.4s ease; }
.g-tile:hover img { transform: scale(1.03); }
.g-meta {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 6px;
  padding: 26px 10px 8px; color: #fff; font-size: 12px; font-weight: 600; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.g-meta .rxn { margin-left: auto; }
.g-play {
  position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; font-weight: 600;
}
.g-play .ico { width: 14px; height: 14px; }

/* -------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 56px 16px 16px;
  background: rgba(8, 6, 4, 0.92); animation: fade 0.18s ease;
}
.lb-close { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.15); color: #fff; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb-media img, .lb-media video { max-width: min(96vw, 1200px); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 12px; }
.lb-caption { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; color: #eee; font-size: 14px; }
.lb-caption .btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }

/* --------------------------------------------------------- tooltip/toast */
.tooltip {
  position: fixed; z-index: 95; pointer-events: none;
  padding: 7px 10px; border-radius: 10px; background: var(--text); color: var(--bg);
  font-size: 12px; line-height: 1.35; box-shadow: var(--shadow); max-width: 240px;
}
.tooltip strong { display: block; font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px);
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30vh 0; color: var(--muted);
}
.loading-pot { font-size: 44px; animation: bob 1.2s ease-in-out infinite; }
main:not([aria-busy="true"]) .loading { display: none; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .panel-half { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .filters { position: static; }
  .brand-name, .btn-label { display: none; }
  .btn-honey { padding: 0 10px; }
  .tabs { margin-left: 0; }
  .me-pick select { max-width: 112px; }
  .hero { padding-top: 48px; }
  .tile.hero-tile .tile-value { font-size: 40px; }
  .tile-value { font-size: 24px; }
  .filter-meta { margin-left: 0; width: 100%; justify-content: space-between; }
  .search { max-width: none; flex-basis: 100%; }
  .row .col { max-width: 84%; }
  .detail-panel { height: 100%; border-radius: 0; border: 0; }
  .card { border-radius: 18px; }
  .card-thread { padding: 12px 12px 4px; }
  .card-foot { padding: 10px 12px 12px; }
  .board-row { grid-template-columns: 78px 1fr 56px; }
}
/* ------------------------------------------------------------- stats page */
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head .btn { flex: none; }
.panel h3 { margin: 0; font-size: 15px; font-weight: 600; }
.panel > h3 + .mchart, .panel > h3 + div { margin-top: 12px; }
.mbar.static { cursor: default; }
.page { padding-bottom: 80px; }
.sx { margin: 0 0 52px; }
.sx-h { margin: 0 0 16px; font: 700 clamp(20px, 3vw, 26px)/1.2 var(--display); letter-spacing: -0.015em; }
.sx-sub { margin: -12px 0 16px; color: var(--muted); font-size: 14px; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.chart-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.callout { margin: 0 0 16px; font-size: 14px; color: var(--text-2); }
.callout strong { color: var(--text); font-weight: 600; }

/* reaction ladder */
.ladder { display: grid; gap: 6px; }
.ladder-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 76px 96px; align-items: center; gap: 12px; font-size: 14px; }
.ladder-k { color: var(--text-2); }
.ladder-track { height: 20px; display: flex; align-items: center; }
.ladder-bar { height: 14px; border-radius: 0 4px 4px 0; background: var(--surface-3); min-width: 2px; }
.ladder-row.hot .ladder-bar { background: var(--chart); }
.ladder-row.hot .ladder-k { color: var(--text); font-weight: 600; }
.ladder-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ladder-odds { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* heatmaps: one honey ramp from the surface up to the chart color */
.heat { display: grid; gap: 2px; }
.heat-week { grid-template-columns: 34px repeat(24, minmax(0, 1fr)); margin-top: 14px; }
.heat-col, .heat-row { font-size: 11px; color: var(--muted); line-height: 1; }
.heat-col { padding-bottom: 4px; white-space: nowrap; }
.heat-row { display: flex; align-items: center; }
.heat-cell {
  aspect-ratio: 1; min-width: 0; border-radius: 3px;
  background: color-mix(in oklab, var(--chart) calc(var(--v) * 100%), var(--surface-2));
  display: grid; place-items: center; color: var(--text);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.heat-cell:hover { outline: 2px solid var(--text); outline-offset: -1px; }
.heat-cell.ink { color: var(--honey-ink); }
.heat-cell.self { background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, var(--surface-3) 4px 8px); color: var(--muted); }
.heat-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.heat-ramp { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--chart)); }
.matrix-scroll { overflow-x: auto; padding-bottom: 4px; }
.heat-matrix { grid-template-columns: 112px repeat(var(--n), minmax(58px, 1fr)); min-width: 560px; gap: 3px; }
.heat-matrix .heat-cell { aspect-ratio: auto; height: 46px; border-radius: 8px; font-size: 13px; }
.heat-corner { font-size: 11px; color: var(--muted); align-self: stretch; display: flex; align-items: flex-end; padding-bottom: 8px; }
.heat-colhead { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); padding-bottom: 6px; }
.heat-rowhead { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; min-width: 0; }
.heat-rowhead, .heat-corner { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 3px 0 0 var(--surface); }

/* tables */
.table-scroll {
  overflow-x: auto; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.crew-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crew-table th, .crew-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line-soft); }
.crew-table .txt { text-align: left; }
.crew-table thead th { padding: 0; font-size: 12px; font-weight: 600; color: var(--muted); vertical-align: bottom; }
.crew-table thead th button {
  width: 100%; padding: 12px 14px 10px; border: 0; background: none; font: inherit; color: inherit; text-align: inherit;
}
.crew-table thead th button:hover { color: var(--text); }
.crew-table thead th[aria-sort] { color: var(--text); }
.sort-mark { display: inline-block; width: 1em; margin-left: 2px; color: var(--honey); }
.crew-table tbody th { font-weight: 500; }
.crew-table tbody tr:last-child > * { border-bottom: 0; }
.crew-table tbody tr:hover > * { background: var(--surface-2); }
.crew-table .txt { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.tbl-who { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
a.tbl-who:hover, .crew-table th a:hover { text-decoration: underline; }
.crew-table th a { color: inherit; }
.crew-table td.lead { background: var(--honey-wash); font-weight: 700; }
.crew-table .total { font-weight: 700; }
.year-table td.heat-td { background: color-mix(in oklab, var(--chart) calc(var(--v) * 100%), var(--surface)); text-align: center; font-weight: 600; }
.year-table td.heat-td.ink { color: var(--honey-ink); }
.year-table tbody tr:hover > td.heat-td { background: color-mix(in oklab, var(--chart) calc(var(--v) * 100%), var(--surface-2)); }
.year-table tfoot > tr > * { color: var(--text-2); font-size: 13px; border-bottom: 0; border-top: 1px solid var(--line); text-align: center; }
.year-table tfoot .txt { text-align: left; }
.year-table thead th:not(.txt) button, .year-table thead th:not(.txt) { text-align: center; }
.year-table thead th { padding: 12px 14px 10px; }

/* records + reactions */
.records { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.record .tile-value { font-size: 22px; overflow-wrap: anywhere; }
.record .tile-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.emoji-list { display: flex; flex-wrap: wrap; gap: 8px; }
.emoji-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-soft); font-variant-numeric: tabular-nums;
}
.emoji-chip .emoji { font-size: 22px; line-height: 1; }
.emoji-n { font-weight: 600; }
.emoji-p { color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .nav-inner { gap: 8px; }
  .tab { padding: 6px 9px; font-size: 13px; }
  .me-pick select { max-width: 92px; }
  .ladder-row { grid-template-columns: 84px minmax(0, 1fr) auto; row-gap: 0; }
  .ladder-odds { grid-column: 2 / -1; font-size: 12px; margin-top: -2px; }
  .ladder-row:first-child .ladder-odds { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles .hero-tile { grid-column: 1 / -1; }
  .tiles .tile:not(.hero-tile) .tile-value { font-size: 20px; }
  .tiles .tile { padding: 14px; }
  .heat-matrix { grid-template-columns: 92px repeat(var(--n), minmax(52px, 1fr)); min-width: 480px; }
  .records { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ status tokens */
:root { --good: #3fb97a; --bad: #ef5b5b; }
:root[data-theme="light"] { --good: #1f8a55; --bad: #c9302c; }

/* ------------------------------------------------------------ nav: 6 tabs */
.board-row { color: inherit; text-decoration: none; }
@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 10px; }
  .nav-actions { margin-left: auto; }
  .tabs {
    order: 3; flex: 1 0 100%; margin: 8px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px;
    overflow-x: auto; scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .btn-label { display: none; }
  .btn-honey#surprise { padding: 0 10px; }
}

/* ------------------------------------------------------------ shared bits */
.muted { color: var(--muted); }
.spacer { flex: 1; }
.avatar.lg { width: 48px; height: 48px; font-size: 17px; }
.avatar.xl { width: 88px; height: 88px; font-size: 32px; }
.avatar.mystery { background: var(--surface-3); color: var(--muted); }
.avatar.group-av { background: var(--honey-wash); color: var(--text); font-size: 13px; }
.avatar.lg.group-av { font-size: 24px; }
.avatar.xl.group-av { font-size: 44px; }
.mchart.tinted .mbar i { background: var(--pc, var(--chart)); }

.word-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.word-chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-soft); font-weight: 600; font-size: 15px;
}
.word-chip .n { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.word-chips.small .word-chip { padding: 3px 9px; font-size: 12px; }
.word-chips.small .word-chip .n { display: none; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 7px; border-radius: 999px;
  background: var(--honey-wash); font-size: 13px; font-weight: 600;
}
.badge-emoji { font-size: 15px; }
.crew-card .badge { padding: 3px 6px; }

/* signature words list (stats) */
.sig-list { display: grid; gap: 10px; }
.sig-row {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  color: inherit; text-decoration: none; transition: border-color 0.2s ease;
}
.sig-row:hover { border-color: var(--line); }
.sig-who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sig-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sig-emoji { font-size: 22px; letter-spacing: 2px; }

/* creators */
.creators { list-style: none; margin: 0; padding: 0; }
.creators li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.creators li:last-child { border-bottom: 0; }
.cr-rank { width: 20px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.cr-name { flex: 1; min-width: 0; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-name:hover { text-decoration: underline; }
.cr-num { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-sub { color: var(--muted); font-size: 12px; white-space: nowrap; min-width: 84px; text-align: right; }
.grid-creators .panel { padding-bottom: 8px; }

/* ------------------------------------------------------------------ crew */
.crew-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding-bottom: 80px; }
.crew-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  color: inherit; text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease;
}
.crew-card:hover { transform: translateY(-3px); border-color: var(--honey); }
.crew-card-top { display: flex; align-items: center; gap: 12px; }
.crew-card-name { min-width: 0; }
.crew-card-name strong { display: block; font: 700 19px/1.2 var(--display); }
.crew-card-name span { color: var(--muted); font-size: 13px; }
.crew-card-line { margin: 0; color: var(--text-2); font-size: 14px; }

/* profile */
.profile-nav { display: flex; align-items: center; gap: 8px; padding-top: 24px; }
.profile-nav .icon-btn { color: inherit; }
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px 0 28px; }
.profile-head .avatar.xl { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--c); }
.profile-id h1 { margin: 0; font: 800 clamp(34px, 6vw, 56px)/1 var(--display); letter-spacing: -0.03em; }
.profile-id p { margin: 6px 0 12px; color: var(--text-2); }
.profile-actions { display: flex; flex-direction: column; gap: 8px; }
.profile-tiles { margin-bottom: 48px; }
.emoji-rows { display: grid; gap: 12px; margin-top: 18px; }
.emoji-rows .label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.emoji-big { font-size: 24px; }
.nick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.nick-list li { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); }
.nick-list strong { display: block; font-size: 17px; overflow-wrap: anywhere; }
.nick-list span { font-size: 12px; color: var(--muted); }
.profile-sups { display: grid; gap: 14px; max-width: 700px; justify-items: start; }
.profile-sups .card { width: 100%; }

/* ------------------------------------------------------------------ lore */
.lore-filter { flex-wrap: wrap; margin-bottom: 18px; }
.lore { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.lore::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 0; width: 2px; background: var(--line); }
.lore-year {
  position: sticky; top: var(--sticky-top); z-index: 2; margin: 22px 0 8px -30px; padding: 8px 0;
  font: 700 20px/1.2 var(--display); background: linear-gradient(var(--bg) 75%, transparent);
}
.lore-item { position: relative; padding: 8px 0; }
.lore-dot {
  position: absolute; left: -30px; top: 8px; width: 24px; height: 24px; display: grid; place-items: center;
  font-size: 13px; background: var(--bg); border-radius: 50%;
}
.lore-body p { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.lore-body time { font-size: 12px; color: var(--muted); }
.lore-who { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; vertical-align: bottom; }
.lore-who:hover { text-decoration: underline; }
.lore-open { margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--honey); text-decoration: none; }
.lore-era {
  position: relative; margin: 16px 0; padding: 18px 20px; border-radius: 20px;
  background: linear-gradient(135deg, var(--honey-wash), transparent 70%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--honey) 35%, transparent);
}
.lore-era::before { content: "🍯"; position: absolute; left: -35px; top: 18px; font-size: 18px; }
.era-label { font-size: 12px; font-weight: 700; color: var(--honey); text-transform: uppercase; letter-spacing: 0.06em; }
.lore-era h3 { margin: 4px 0 8px; font: 800 clamp(22px, 4vw, 34px)/1.1 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.lore-era p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ------------------------------------------------------------------ play */
.play-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 48px; }
.play-card {
  display: flex; flex-direction: column; gap: 8px; min-height: 260px; padding: 26px 24px 22px; border-radius: 26px;
  background: radial-gradient(120% 90% at 100% 0%, var(--honey-wash), transparent 60%), var(--surface);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.play-card:hover { transform: translateY(-3px); border-color: var(--honey); }
.play-emoji { font-size: 46px; line-height: 1; }
.play-card h2 { margin: 8px 0 0; font: 800 24px/1.15 var(--display); letter-spacing: -0.02em; }
.play-card p { margin: 0; color: var(--text-2); flex: 1; }
.play-extra { font-size: 13px; font-weight: 600; color: var(--honey); }
.play-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--honey); }
.play-cta .ico { width: 18px; height: 18px; }
.wrapped-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-soft); font-weight: 600; text-decoration: none;
}
.quick-chip:hover { border-color: var(--honey); }

/* quiz */
.quiz-score { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 18px; }
.quiz-score .btn { align-self: center; }
.quiz-stat { display: flex; flex-direction: column; justify-content: center; min-width: 90px; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.quiz-stat span { font-size: 12px; color: var(--muted); }
.quiz-stat strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.quiz-card {
  max-width: 720px; padding: 20px; border-radius: 24px; background: var(--surface);
  border: 2px solid var(--line-soft); box-shadow: var(--shadow); transition: border-color 0.2s ease;
}
.quiz-card.is-right { border-color: var(--good); }
.quiz-card.is-wrong { border-color: var(--bad); }
.quiz-meta { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.quiz-thread { display: flex; flex-direction: column; gap: 3px; }
.quiz-thread .row.super .bubble:not(.jumbo) { font-size: 19px; }
.quiz-thread .rx { display: none; }
.quiz-hint { margin-top: 16px; }
.quiz-hint:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.quiz-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.quiz-result strong { font-size: 17px; }
.is-right .quiz-result strong { color: var(--good); }
.is-wrong .quiz-result strong { color: var(--bad); }
.quiz-result > span:not(.spacer) { font-size: 13px; color: var(--muted); }
.quiz-answers { max-width: 720px; display: grid; gap: 10px; margin: 16px 0 80px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.quiz-answer {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; text-align: left;
  background: var(--surface); border: 2px solid var(--line-soft); font-weight: 600; transition: border-color 0.15s ease, transform 0.15s ease;
}
.quiz-answer:not(:disabled):hover { border-color: var(--honey); transform: translateY(-2px); }
.quiz-answer kbd { font: 600 11px/1 var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 5px; }
.quiz-answer:disabled { cursor: default; opacity: 0.5; }
.quiz-answer.right, .quiz-answer.wrong { opacity: 1; }
.quiz-answer.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface)); }
.quiz-answer.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--surface)); }
.quiz-end { text-align: center; }
.quiz-end .big { font-size: 48px; }

/* ---------------------------------------------- party + wrapped: always dark */
.party, .wrapped {
  color-scheme: dark;
  --bg: #13100c; --bg-raised: #181410; --surface: #1e1a15; --surface-2: #28221b; --surface-3: #342c23;
  --line: #3a3128; --line-soft: #2a241d; --text: #f7f0e6; --text-2: #cdbfab; --muted: #968a78;
  --honey: #f5b83d; --honey-2: #ffd27a; --honey-deep: #e08a1e; --honey-ink: #2a1c04;
  --honey-wash: rgba(245, 184, 61, 0.12); --honey-glow: rgba(245, 184, 61, 0.42);
  --bubble: #2b251e; --me-a: #f5b83d; --me-b: #ef8a2c; --me-ink: #231704;
  --m0: #3987e5; --m0-ink: #fff; --m1: #d95926; --m1-ink: #fff; --m2: #199e70; --m2-ink: #fff;
  --m3: #c98500; --m3-ink: #1d1405; --m4: #d55181; --m4-ink: #fff; --m5: #008300; --m5-ink: #fff;
  --m6: #9085e9; --m6-ink: #140f2e; --m7: #e66767; --m7-ink: #fff;
  color: var(--text);
}

/* party mode */
.party {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 0%, #2a1d09, #0c0a07 70%);
}
.party-setup { position: relative; flex: 1; overflow-y: auto; display: grid; place-items: center; padding: 48px 20px; }
.party-setup-inner { max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.party-emoji { font-size: 64px; line-height: 1; }
.party-setup h1 {
  margin: 0; font: 800 clamp(38px, 7vw, 68px)/1 var(--display); letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--honey-2), var(--honey) 55%, var(--honey-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.party-setup p { margin: 0; color: var(--text-2); }
.party-field { border: 0; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.party-field legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.party-field .chips { flex-wrap: wrap; justify-content: center; }
.party-check { display: flex; align-items: center; gap: 8px; color: var(--text-2); margin-top: 4px; }
.party-start { height: 52px; padding: 0 28px; font-size: 17px; margin-top: 10px; }
.party-keys { font-size: 12px; color: var(--muted) !important; }
.party-x { position: absolute; top: 16px; right: 16px; }

.party-slide {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 2.4vh;
  padding: 5vh 6vw 13vh; overflow: hidden; animation: partyIn 0.6s ease both;
}
.party-slide > * { width: 100%; max-width: 1280px; margin-inline: auto; }
@keyframes partyIn { from { opacity: 0; transform: translateY(24px) scale(0.985); } }
.party-top { display: flex; align-items: center; gap: 16px; }
.party-top strong { display: block; font: 700 clamp(22px, 2.4vw, 42px)/1.15 var(--display); }
.party-top span { color: var(--text-2); font-size: clamp(14px, 1.3vw, 22px); }
.party-hearts { margin-left: auto; font-size: clamp(20px, 2.2vw, 38px); font-weight: 700; color: var(--honey); white-space: nowrap; }
.party .avatar.lg { width: clamp(48px, 5vw, 84px); height: clamp(48px, 5vw, 84px); font-size: clamp(18px, 1.8vw, 30px); }
.party-ctx { display: flex; flex-direction: column; gap: 4px; opacity: 0.6; }
.party-ctx .row .col { max-width: min(1000px, 80vw); }
.party-ctx .bubble { font-size: clamp(16px, 1.6vw, 28px); }
.party-ctx .who { font-size: clamp(12px, 1vw, 17px); }
.party-ctx .rx { display: none; }
.party-main .row .col { max-width: min(1200px, 86vw); }
.party-main .who { display: none; }
.party-main .av-slot { display: none; }
.party .party-main .row .bubble { font-size: clamp(26px, 3.6vw, 68px); line-height: 1.25; padding: 0.45em 0.8em; border-radius: 1em; }
.party .party-main .row .bubble.jumbo { font-size: clamp(72px, 10vw, 180px); padding: 0; }
.party-main .media-box { width: auto !important; height: min(62vh, 900px); max-width: 84vw; }
.party-main .media-box img, .party-main .media-box video { width: 100%; height: 100%; object-fit: contain; max-height: none; background: #000; }
.party-main .share { width: min(620px, 84vw); }
.party-main .share-owner { font-size: 20px; }
.party-main .share-text { font-size: 18px; -webkit-line-clamp: 6; }
.party-main .share.gif img { height: 50vh; width: auto; }
.party-main .rx { display: none; }
.party-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.08); }
.party-progress i { display: block; height: 100%; width: 0; background: var(--honey); animation: grow linear forwards; }
.party-progress.video i { animation: none; transition: width 0.25s linear; }
.party.paused .party-progress i { animation-play-state: paused; }
@keyframes grow { to { width: 100%; } }
.party-controls {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 999px;
  background: rgba(20, 16, 12, 0.82); border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity 0.3s ease;
}
.party-count { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.party.idle .party-controls { opacity: 0; pointer-events: none; }
.party.idle { cursor: none; }

/* wrapped: picker */
.picker { max-width: 760px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 80px; }
.picker h3 { margin: 6px 0 0; }
.wrap-chips { flex-wrap: wrap; }
.pick-chip { padding-left: 6px; }
.picker-go { align-self: flex-start; height: 48px; padding: 0 22px; font-size: 16px; margin-top: 10px; }

/* wrapped: story player */
.wrapped {
  position: fixed; inset: 0; z-index: 75; display: flex; align-items: center; justify-content: center; gap: 18px;
  background: rgba(6, 5, 3, 0.94);
}
.story {
  position: relative; width: min(440px, 100vw); height: min(92vh, 820px); display: flex; flex-direction: column;
  border-radius: 26px; overflow: hidden; background: #120e09; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.story-bars { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 3; display: flex; gap: 4px; }
.story-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.story-bars i { display: block; height: 100%; width: 0; background: #fff; }
.story-bars .done i { width: 100%; }
.story-bars .active i { animation: grow linear forwards; }
.story.paused .story-bars .active i { animation-play-state: paused; }
.story.final .story-bars .active i { width: 100%; animation: none; }
.story-head { position: absolute; top: 20px; left: 14px; right: 6px; z-index: 3; display: flex; align-items: center; gap: 2px; }
.story-brand { flex: 1; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.story-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #fff; display: grid; place-items: center; }
.story-btn:hover { background: rgba(255, 255, 255, 0.12); }
.story-btn .ico { width: 20px; height: 20px; }
.story.final .story-pause { visibility: hidden; }
.story-stage { position: relative; flex: 1; min-height: 0; }
.story-side {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06); color: #fff;
}
.story-side:hover { background: rgba(255, 255, 255, 0.14); }

.slide { position: absolute; inset: 0; display: flex; overflow-y: auto; padding: 74px 26px 36px; background: var(--slide-bg); animation: fade 0.4s ease both; }
.slide-inner { margin: auto 0; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.slide-inner > * { animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.slide-inner > :nth-child(2) { animation-delay: 0.08s; }
.slide-inner > :nth-child(3) { animation-delay: 0.2s; }
.slide-inner > :nth-child(4) { animation-delay: 0.32s; }
.slide-inner > :nth-child(5) { animation-delay: 0.44s; }
.slide-inner > :nth-child(n + 6) { animation-delay: 0.56s; }
.bg-cover { --slide-bg: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--pc) 55%, transparent), transparent 60%), linear-gradient(160deg, #2d200b, #0f0c08); }
.bg-a { --slide-bg: linear-gradient(160deg, #3d2808 0%, #1a1209 60%, #0e0b07); }
.bg-b { --slide-bg: radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--pc) 45%, transparent), transparent 65%), #110d09; }
.bg-c { --slide-bg: linear-gradient(200deg, #ffd27a 0%, #f5b83d 35%, #c97a0e 100%); color: #1f1405; }
.bg-d { --slide-bg: radial-gradient(100% 80% at 50% 0%, rgba(245, 184, 61, 0.32), transparent 60%), #0f0b07; }
.bg-e { --slide-bg: linear-gradient(160deg, color-mix(in srgb, var(--pc) 70%, #000), #0d0a07 80%); }
.bg-f { --slide-bg: repeating-linear-gradient(135deg, rgba(245, 184, 61, 0.06) 0 14px, transparent 14px 28px), #14100b; }
.bg-summary { --slide-bg: radial-gradient(90% 60% at 50% 0%, rgba(245, 184, 61, 0.3), transparent 60%), #0f0c08; }

.s-kicker { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--honey); }
.s-big { margin: 0; font: 800 clamp(56px, 17vw, 92px)/0.95 var(--display); letter-spacing: -0.04em; overflow-wrap: break-word; }
.s-big.huge { white-space: nowrap; }
.s-big.mid { font-size: clamp(32px, 9.5vw, 50px); line-height: 1.05; }
.s-big.title { font-size: clamp(36px, 10.5vw, 56px); line-height: 1; }
.s-sub { margin: 0; font-size: 18px; line-height: 1.45; color: rgba(247, 240, 230, 0.85); }
.s-sub strong { color: #fff; }
.s-hint { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.bg-c .s-kicker { color: #3d2604; }
.bg-c .s-sub, .bg-c .s-sub strong { color: #2a1b06; }
.s-cover-av .avatar.xl, .s-cover-av img { width: 120px; height: 120px; font-size: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.45), 0 0 0 9px var(--pc); }
.s-hours { display: flex; align-items: flex-end; gap: 3px; height: 110px; margin-top: 6px; }
.s-hours span { flex: 1; height: calc(var(--v) * 100%); min-height: 2px; border-radius: 3px 3px 0 0; background: rgba(255, 255, 255, 0.22); }
.s-hours span.peak { background: var(--pc); }
.s-hours-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.s-person { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); }
.bg-c .s-person { background: rgba(255, 255, 255, 0.35); }
.s-person-label { min-width: 92px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; }
.s-person strong { font-size: 17px; }
.s-person > span:last-child { margin-left: auto; font-size: 14px; opacity: 0.8; white-space: nowrap; }
.s-bubble { padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, 0.32); }
.s-bubble .row .col { max-width: 100%; }
.s-bubble .rx { display: none; }
.s-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--honey); text-decoration: none; }
.s-words { display: flex; flex-wrap: wrap; gap: 10px; }
.s-word {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(245, 184, 61, 0.14); border: 1px solid rgba(245, 184, 61, 0.35);
  font: 700 calc(32px - var(--k) * 3px)/1.1 var(--font); animation: pop 0.5s calc(var(--k) * 0.12s + 0.25s) both;
}
.s-word small { font-size: 13px; font-weight: 500; opacity: 0.7; }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
.s-emoji { font-size: 26px; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-mini { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); }
.s-mini span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.s-mini strong { font-size: 21px; }
.s-badges { display: grid; gap: 8px; }
.s-badge { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.35); }
.s-badge span { grid-row: span 2; font-size: 30px; }
.s-badge small { opacity: 0.8; }
.s-board { display: grid; gap: 9px; }
.s-board-row { display: grid; grid-template-columns: 28px 76px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-weight: 600; }
.s-board-row i { height: 12px; width: calc(var(--v) * 100%); border-radius: 0 4px 4px 0; background: var(--c); }
.s-board.words .s-board-row { grid-template-columns: 28px 1fr auto; }
.s-board-word { font-size: 22px; }
.s-list { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; font-size: 20px; }
.s-list span { display: block; font-size: 14px; opacity: 0.7; }
.s-names { display: flex; flex-wrap: wrap; gap: 6px; }
.s-names span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-weight: 600; overflow-wrap: anywhere; }
.s-card { padding: 22px; border-radius: 24px; background: linear-gradient(160deg, rgba(245, 184, 61, 0.2), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(245, 184, 61, 0.32); }
.s-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.s-card-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--honey); }
.s-card-head strong { font: 800 24px/1.1 var(--display); }
.s-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-card-grid div { min-width: 0; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); }
.s-card-grid span { display: block; font-size: 12px; opacity: 0.7; }
.s-card-grid strong { display: block; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-card-foot { margin-top: 14px; font-size: 13px; opacity: 0.6; }
.s-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

@media (max-width: 640px) {
  .sig-row { grid-template-columns: 1fr; gap: 10px; }
  .profile-head { grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
  .profile-head .avatar.xl { width: 68px; height: 68px; font-size: 24px; }
  .profile-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .story { width: 100vw; height: 100dvh; border-radius: 0; }
  .story-side { display: none; }
  .party-slide { padding: 4vh 5vw 14vh; }
  .party-top { flex-wrap: wrap; }
  .party-controls { bottom: 12px; }
  .lore { padding-left: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* GIFs: ring the image, not the "via GIPHY" caption */
.row.super .share.gif, .card .row.super .share.gif { box-shadow: none; }
.row.super .share.gif img { box-shadow: 0 0 0 2px var(--bg-raised), 0 0 0 4px var(--honey), 0 8px 34px -4px var(--honey-glow); }
.card .row.super .share.gif img { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--honey), 0 8px 34px -4px var(--honey-glow); }
