/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: 'Young Serif'; src: url(/fonts/young-serif-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Kalam'; src: url(/fonts/kalam-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/bricolage-grotesque-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(/fonts/manrope-latin-400-normal.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(/fonts/manrope-latin-600-normal.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(/fonts/manrope-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Big Shoulders Display'; src: url(/fonts/big-shoulders-display-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Big Shoulders Display'; src: url(/fonts/big-shoulders-display-latin-900-normal.woff2) format('woff2'); font-weight: 900; font-display: swap; }

/* ---------- themes ---------- */
/* Candlelit (default): warm, intimate. Cocoa ground, amber + rose, soft serif, partner's words handwritten. */
:root, [data-theme="candlelit"] {
  --bg: #1f1512; --surface: #2a1d18; --surface2: #36261f; --line: #4a362d;
  --text: #f4e6da; --muted: #c4a998; --accent: #f0a35e; --accent2: #e3807c; --on-accent: #2a140c;
  --hot: #f7bd84; --hot-bg: rgba(240, 163, 94, .15); --sel: rgba(240, 163, 94, .35);
  --c1: #f0a35e; --c2: #e3807c; --c3: #d9b37a; --c4: #e3807c;
  --font-display: 'Young Serif', Georgia, serif; --display-weight: 400; --display-case: none; --display-track: -0.01em;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-hand: 'Kalam', 'Segoe Print', cursive; --hand-size: 1.12em;
  --radius: 18px; --radius-sm: 12px; --btn-radius: 14px;
  --page-title: 34px; --sec-size: 21px;
  --btn-bg: var(--accent); --btn-shadow: 0 4px 12px -6px rgba(0, 0, 0, .6);
  --nav-bg: rgba(31, 21, 18, .94); --top-bg: rgba(31, 21, 18, .9);
  color-scheme: dark;
}
/* Photo Booth: playful. Deep indigo, full candy palette, chunky grotesque, booth-print photos, springy tab blob. */
[data-theme="booth"] {
  --bg: #17133a; --surface: #221c52; --surface2: #2e2768; --line: #3e3585;
  --text: #fbf7ff; --muted: #bdb4ea; --accent: #ff8a3d; --accent2: #ff5fa2; --on-accent: #2a0e00;
  --hot: #c8f560; --hot-bg: rgba(200, 245, 96, .14); --sel: rgba(255, 95, 162, .4);
  --c1: #ff8a3d; --c2: #ff5fa2; --c3: #c8f560; --c4: #6fd3ff;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif; --display-weight: 800; --display-case: none; --display-track: -0.025em;
  --font-body: 'Bricolage Grotesque', system-ui, sans-serif; --font-hand: var(--font-body); --hand-size: 1em;
  --radius: 24px; --radius-sm: 16px; --btn-radius: 999px;
  --page-title: 38px; --sec-size: 22px;
  --btn-bg: var(--accent); --btn-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6);
  --nav-bg: rgba(23, 19, 58, .95); --top-bg: rgba(23, 19, 58, .9);
  color-scheme: dark;
}
/* Graphite: sleek. Charcoal, periwinkle + teal, precise sans, tabular figures, collapsing large titles. */
[data-theme="graphite"] {
  --bg: #111213; --surface: #18191b; --surface2: #212225; --line: #2c2d31;
  --text: #ececee; --muted: #a0a1a8; --accent: #9aa8ff; --accent2: #6fd6c5; --on-accent: #0d1133;
  --hot: #b4beff; --hot-bg: rgba(154, 168, 255, .14); --sel: rgba(154, 168, 255, .35);
  --c1: #9aa8ff; --c2: #6fd6c5; --c3: #9aa8ff; --c4: #6fd6c5;
  --font-display: 'Manrope', system-ui, sans-serif; --display-weight: 800; --display-case: none; --display-track: -0.035em;
  --font-body: 'Manrope', system-ui, sans-serif; --font-hand: var(--font-body); --hand-size: 1em;
  --radius: 16px; --radius-sm: 10px; --btn-radius: 12px;
  --page-title: 36px; --sec-size: 18px;
  --btn-bg: var(--accent); --btn-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --nav-bg: rgba(17, 18, 19, .96); --top-bg: rgba(17, 18, 19, .92);
  color-scheme: dark;
}
/* Velvet: bold. Wine-black, lacquer red + gold, tall condensed caps, spotlight. */
[data-theme="velvet"] {
  --bg: #110508; --surface: #1c0a0f; --surface2: #281118; --line: #42202a;
  --text: #f7e9ec; --muted: #c79fa9; --accent: #ff2b4f; --accent2: #e6bd6a; --on-accent: #19000a;
  --hot: #e6bd6a; --hot-bg: rgba(230, 189, 106, .14); --sel: rgba(255, 43, 79, .45);
  --c1: #e6bd6a; --c2: #ff2b4f; --c3: #e6bd6a; --c4: #ff2b4f;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif; --display-weight: 900; --display-case: uppercase; --display-track: 0.01em;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-hand: var(--font-body); --hand-size: 1em;
  --radius: 6px; --radius-sm: 4px; --btn-radius: 4px;
  --page-title: 54px; --sec-size: 26px;
  --btn-bg: var(--accent); --btn-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8);
  --nav-bg: rgba(17, 5, 8, .96); --top-bg: rgba(17, 5, 8, .9);
  color-scheme: dark;
}

:root { --nav-h: 66px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); --ease: cubic-bezier(.16, 1, .3, 1); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.5 var(--font-body);
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 20px);
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
  scrollbar-color: var(--line) var(--bg);
}
::selection { background: var(--sel); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
a { color: var(--accent); text-underline-offset: 3px; }
h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.i.sm { width: 16px; height: 16px; }
.i.lg { width: 30px; height: 30px; }
.i.xl { width: 44px; height: 44px; stroke-width: 1.5; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 10px) 18px 10px;
  background: var(--top-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
body.scrolled .top { border-bottom-color: var(--line); }
.brand { position: relative; margin: 0; font-size: 24px; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.brand-name, .brand .heart { transition: opacity .25s var(--ease), transform .35s var(--ease); }
.heart { color: var(--accent2); font-family: system-ui, sans-serif; font-size: .85em; }
.top-title { position: absolute; left: 0; top: 50%; white-space: nowrap; font-size: 20px; opacity: 0; transform: translateY(-20%); transition: opacity .25s var(--ease), transform .35s var(--ease); pointer-events: none; }
body.titled .brand-name, body.titled .brand .heart { opacity: 0; transform: translateY(-40%); }
body.titled .top-title { opacity: 1; transform: translateY(-50%); }
#avatars { display: flex; }
#avatars img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -9px; object-fit: cover; background: var(--surface2); }

main { padding: 6px 16px 12px; max-width: 720px; margin: 0 auto; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.loading::after { content: ''; display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page-title { font-size: var(--page-title); margin: 10px 2px 18px; }

/* ---------- sections ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
}
.card.error { border-color: var(--accent); }
.card > h3, .sec-head { font-size: var(--sec-size); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sec-head h3 { font-size: inherit; }
.card > h3 .i, .sec-head .i { color: var(--c1); }
.warn { background: var(--hot-bg); color: var(--hot); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13.5px; margin-bottom: 10px; }

/* ---------- controls ---------- */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; outline: none; transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--hot-bg); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
input[type=range] { padding: 0; accent-color: var(--accent); background: none; border: 0; box-shadow: none; }
input[type=file] { padding: 9px; font-size: 14px; }
textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  background: var(--btn-bg); color: var(--on-accent); box-shadow: var(--btn-shadow);
  border: 0; border-radius: var(--btn-radius); padding: 11px 20px; font-weight: 700; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: transform .25s var(--ease), filter .2s, box-shadow .2s;
}
.btn .i { width: 19px; height: 19px; stroke-width: 2.2; }
.btn:active { transform: scale(.96); }
.btn.ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; background: none; border: 0; color: var(--muted); border-radius: 50%; cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:active { background: var(--surface2); color: var(--text); }

.stack { display: grid; gap: 10px; margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > input, .row > select { flex: 1; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14.5px; cursor: pointer; }
details summary { list-style: none; cursor: pointer; margin-bottom: 12px; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { margin-bottom: 14px; }

/* ---------- lists & tags ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 4px; }
.list .title { font-weight: 600; }
.list li.done .title { text-decoration: line-through; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--surface2); color: var(--muted); margin: 4px 4px 0 0; }
.tag .i { width: 12px; height: 12px; }
.tag.hot { background: var(--hot-bg); color: var(--hot); }
.who { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--hot-bg); color: var(--hot); align-self: flex-start; white-space: nowrap; flex: none; }
.who .i { width: 13px; height: 13px; }
.pill { font-style: normal; font-size: 11px; font-weight: 700; background: var(--accent2); color: var(--on-accent); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }

/* ---------- calendar ---------- */
.day-head { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); margin: 18px 0 6px; color: var(--c1); font-size: 16px; }
.day-head:first-child { margin-top: 0; }
.event { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.event .time { width: 66px; flex: none; color: var(--muted); font-size: 13.5px; padding-top: 1px; position: relative; padding-left: 14px; }
.event .time::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--line)); }
.event a { color: var(--text); text-decoration: none; font-weight: 500; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 6px; }
.calchips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
.calchips:empty { display: none; }
.calchip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: opacity .2s, border-color .2s; }
.calchip .dot { margin: 0; width: 9px; height: 9px; }
.calchip .muted { font-weight: 500; }
.calchip.off { opacity: .45; background: transparent; }
.calchip.off .dot { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--muted); }
#mycals select { max-width: 150px; font-size: 14px; padding: 9px 30px 9px 10px; }

/* ---------- segmented ---------- */
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius-sm) + 4px); padding: 4px; margin-bottom: 14px; gap: 4px; }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; padding: 9px 6px; border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; font-weight: 600; font-size: 14.5px; transition: background .25s var(--ease), color .2s; }
.seg button .i { width: 17px; height: 17px; }
.seg button.on { background: var(--surface2); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.seg.small button { font-size: 13.5px; padding: 8px 4px; }
.seg.cfilter { margin: 0 0 12px; }

/* ---------- ideas ---------- */
.spin { text-align: center; }
.idea-text { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 24px; line-height: 1.2; min-height: 72px; margin: 6px 0 16px; display: flex; align-items: center; justify-content: center; text-wrap: balance; }
.spin.big .idea-text { font-size: 28px; min-height: 130px; }
.spin .row { justify-content: center; flex-wrap: wrap; }
.spin .row select { max-width: 150px; }
.rolling { opacity: .55; filter: blur(.4px); }
.rate-card .idea-text { font-size: 27px; min-height: 140px; text-align: center; }
.rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.rate-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--text); font-weight: 700; cursor: pointer;
  transition: transform .25s var(--ease), border-color .2s, background .2s;
}
.rate-btn .i { width: 28px; height: 28px; stroke-width: 1.8; }
.rate-btn:active { transform: scale(.95); border-color: var(--accent); background: var(--hot-bg); }
.mini-rate { display: flex; gap: 6px; margin-top: 8px; }
.mini-rate button { display: grid; place-items: center; width: 36px; height: 32px; background: var(--surface2); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; color: var(--muted); }
.mini-rate button .i { width: 17px; height: 17px; }
.mini-rate button.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.bar { height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; margin-top: 6px; }
.bar > div { height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s var(--ease); }
.goal { margin: 12px 0; }
.goal:first-of-type { margin-top: 0; }

/* ---------- notes & gratitude (partner's words) ---------- */
.note-theirs, .grat-note { margin-top: 12px; padding: 12px 14px; background: var(--surface2); border-radius: var(--radius-sm); white-space: pre-wrap; }
.note-theirs .words, .grat-note:not(.mine) .words { font-family: var(--font-hand); font-size: var(--hand-size); line-height: 1.45; }
.note-theirs b, .grat-note b { display: block; font-size: 12.5px; color: var(--c2); margin-bottom: 2px; font-family: var(--font-body); }
.grat-note.mine { background: transparent; border: 1px dashed var(--line); }
.grat-q { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 22px; line-height: 1.25; margin: 2px 0 14px; }

/* ---------- media ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.thumb { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface2); cursor: pointer; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 6px #000); }
.thumb .play .i { fill: #fff; stroke: none; width: 28px; height: 28px; }
.uploader { display: grid; gap: 10px; }
.drop { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; font-weight: 600; }
.drop .i { color: var(--c1); }
.drop.has { color: var(--text); border-style: solid; border-color: var(--accent); }

#lightbox { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
#lightbox[hidden] { display: none; }
#lightbox .lb-media { flex: 1; display: grid; place-items: center; min-height: 0; padding: 8px; }
#lightbox img, #lightbox video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
#lightbox .lb-bar { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px calc(14px + var(--safe-b)); color: #eee; font-size: 14px; }
#lightbox .lb-bar .row { flex-wrap: wrap; }
#lightbox .lb-bar .btn.ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; min-height: 40px; padding: 8px 14px; }
#lightbox .lb-top { display: flex; justify-content: flex-end; padding: calc(var(--safe-t) + 8px) 10px 0; }
#lightbox .lb-top .icon-btn { color: #fff; width: 46px; height: 46px; }
.lb-comments { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 10px; }
.cmt-list { max-height: 30vh; overflow-y: auto; display: grid; gap: 8px; padding-bottom: 8px; overscroll-behavior: contain; }
.cmt { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: baseline; font-size: 14.5px; line-height: 1.4; }
.cmt b { color: var(--accent); font-size: 13px; }
.cmt.mine b { color: rgba(255, 255, 255, .6); }
.cmt .words { color: #f3f3f3; white-space: pre-wrap; word-break: break-word; }
.cmt:not(.mine) .words { font-family: var(--font-hand); font-size: var(--hand-size); }
.cmt-time { font-size: 11px; color: rgba(255, 255, 255, .45); }
.cmt-empty { color: rgba(255, 255, 255, .5); font-size: 13.5px; margin: 0; }
.cmt-form { display: flex; gap: 8px; }
.cmt-form input { flex: 1; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; border-radius: 99px; padding: 10px 16px; }
.cmt-form input::placeholder { color: rgba(255, 255, 255, .5); }
.cmt-form .btn { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.ccount { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11.5px; font-weight: 700; }
.ccount .i { width: 12px; height: 12px; stroke-width: 2.4; }
[data-theme="booth"] .ccount { bottom: 18px; right: 10px; }
.mo-card[data-mo] { cursor: pointer; }
.picker { max-height: 82vh; overflow-y: auto; overscroll-behavior: contain; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pick { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface2); cursor: pointer; }
.pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick.on { box-shadow: 0 0 0 3px var(--accent) inset; }
.pick.on::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--accent); border-radius: inherit; }
.pick:active { transform: scale(.97); }
#lightbox.sheet-bg { justify-content: flex-end; background: rgba(0, 0, 0, .6); }
.sheet { margin: 0 12px calc(12px + var(--safe-b)); animation: rise .45s var(--ease); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.steps { padding-left: 22px; line-height: 1.9; }

/* ---------- chat ---------- */
.msgs { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 80px; }
.msg { max-width: 80%; display: flex; flex-direction: column; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; }
.bubble { padding: 9px 14px; border-radius: 20px; background: var(--surface2); white-space: pre-wrap; word-wrap: break-word; line-height: 1.4; }
.msg.theirs .bubble { border-bottom-left-radius: 6px; }
.msg.mine .bubble { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.msg.mine .bubble a { color: inherit; }
.msg img, .msg video { max-width: 230px; max-height: 300px; border-radius: 16px; display: block; cursor: pointer; }
.msg .meta { font-size: 11px; color: var(--muted); margin: 3px 8px 6px; }
.composer {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 4;
  display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--nav-bg); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.composer input[type=text] { flex: 1; border-radius: 99px; padding: 11px 16px; }
.composer .btn { width: 46px; padding: 0; border-radius: 50%; }
.receipt { font-size: 11px; color: var(--muted); margin: -4px 8px 6px; }
.receipt.read { color: var(--accent); }
.bubble.deleted, .msg.mine .bubble.deleted { background: transparent; color: var(--muted); font-style: italic; border: 1px dashed var(--line); }
.msg { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.msg .bubble a { -webkit-user-select: text; }
.edit-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 62px); z-index: 4; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 16px; background: var(--surface2); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.edit-bar .i { color: var(--accent); }
.msg-acts .btn { justify-content: flex-start; margin-top: 6px; }
.msg-acts-q { margin: 0 0 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface2); font-size: 14px; white-space: pre-wrap; }
.danger-text, .btn.danger-text { color: var(--accent2); }
.voice { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 8px 14px 8px 8px; border-radius: 22px; background: var(--surface2); }
.msg.mine .voice { background: var(--accent); color: var(--on-accent); }
.vp-play { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .18); color: inherit; cursor: pointer; }
.voice.playing .vp-play .i { display: none; }
.voice.playing .vp-play::before { content: ''; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.vp-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(127, 127, 127, .35); overflow: hidden; }
.vp-bar i { display: block; width: 0; height: 100%; background: currentColor; }
.vp-time { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .85; }
.rec { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 46px; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #e5484d; animation: recpulse 1s ease-in-out infinite; }
@keyframes recpulse { 50% { opacity: .35; } }
.note-mine { padding: 12px 14px; background: var(--surface2); border-radius: var(--radius-sm); white-space: pre-wrap; line-height: 1.45; }
.attach { display: grid; place-items: center; width: 42px; height: 42px; color: var(--muted); cursor: pointer; border-radius: 50%; }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.tabs button {
  position: relative; z-index: 1; flex: 1; min-width: 0; background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .01em;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: color .25s;
}
.tabs button .i { width: 23px; height: 23px; transition: transform .35s var(--ease); }
.tabs button.active { color: var(--text); }
.tabs button.active .i { color: var(--accent); }
.tab-ind { position: absolute; z-index: 0; left: 0; top: 0; width: calc(100% / 7); height: var(--nav-h); pointer-events: none; transform: translateX(calc(var(--tab, 0) * 100%)); transition: transform .45s var(--ease); }
.tab-ind::before { content: ''; position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.badge { position: absolute; top: 7px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--accent2); color: var(--on-accent); font-size: 10.5px; font-weight: 800; font-style: normal; line-height: 17px; }
.badge[hidden] { display: none; }

#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 84px); z-index: 60; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); animation: rise .35s var(--ease); }
#toast[hidden] { display: none; }
#progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; }
#progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
#progress[hidden] { display: none; }

/* ---------- home ---------- */
.hello { padding: 18px 2px 20px; }
.hello h2 { font-size: calc(var(--page-title) * .95); }
.hello p { margin: 6px 0 0; }
/* Home photo shown whole, nothing laid over it; greeting sits underneath */
.hero-photo { margin: -6px -16px 0; background: var(--surface); }
.hero-photo img { display: block; width: 100%; height: auto; max-height: 75vh; object-fit: cover; }
@media (min-width: 720px) { .hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; } }
/* Home photo inside a heart, outlined in the theme accent */
/* Gradient band around the heart, in each theme's colours, fading into the page */
.hero-band {
  margin: -6px -16px 0; padding: 22px 0 26px; position: relative;
  background:
    radial-gradient(60% 55% at 50% 45%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 75%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent2) 34%, var(--bg)) 0%, color-mix(in srgb, var(--accent) 18%, var(--bg)) 55%, var(--bg) 100%);
}
.hero-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
@media (min-width: 720px) { .hero-band { margin: 0; border-radius: var(--radius); } }
[data-theme="booth"] .hero-band { background:
  radial-gradient(55% 50% at 50% 45%, color-mix(in srgb, var(--c3) 30%, transparent), transparent 75%),
  linear-gradient(135deg, color-mix(in srgb, var(--c2) 55%, var(--bg)) 0%, color-mix(in srgb, var(--c1) 45%, var(--bg)) 50%, color-mix(in srgb, var(--c4) 45%, var(--bg)) 100%); }
[data-theme="graphite"] .hero-band { background:
  radial-gradient(60% 55% at 50% 45%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 75%),
  linear-gradient(150deg, color-mix(in srgb, var(--accent) 22%, var(--bg)) 0%, color-mix(in srgb, var(--accent2) 16%, var(--bg)) 60%, var(--bg) 100%); }
[data-theme="velvet"] .hero-band { background:
  radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%),
  linear-gradient(180deg, color-mix(in srgb, var(--accent2) 22%, var(--bg)) 0%, color-mix(in srgb, var(--accent) 20%, var(--bg)) 45%, var(--bg) 100%); }
[data-theme="velvet"] .hello.under-photo { background: none; margin-top: 0; padding-top: 18px; }
.hero-heart { position: relative; z-index: 1; width: min(90%, 440px); aspect-ratio: 100 / 92; margin: 0 auto; }
/* feathered heart: a slightly blurred mask so the photo melts into the gradient */
.hh-clip { position: absolute; inset: 0; overflow: hidden; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92' preserveAspectRatio='none'><filter id='f' x='-5%' y='-5%' width='110%' height='110%'><feGaussianBlur stdDeviation='0.9'/></filter><path filter='url(%23f)' d='M50 89 C46 86.5 6 62 3 34 C1 15.5 13.5 3.5 28.5 3.5 C38.5 3.5 46 9.5 50 18 C54 9.5 61.5 3.5 71.5 3.5 C86.5 3.5 99 15.5 97 34 C94 62 54 86.5 50 89 Z'/></svg>") center / 100% 100% no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92' preserveAspectRatio='none'><filter id='f' x='-5%' y='-5%' width='110%' height='110%'><feGaussianBlur stdDeviation='0.9'/></filter><path filter='url(%23f)' d='M50 89 C46 86.5 6 62 3 34 C1 15.5 13.5 3.5 28.5 3.5 C38.5 3.5 46 9.5 50 18 C54 9.5 61.5 3.5 71.5 3.5 C86.5 3.5 99 15.5 97 34 C94 62 54 86.5 50 89 Z'/></svg>") center / 100% 100% no-repeat; }
.hh-clip img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; transition: transform .2s var(--ease); }
.hh-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hh-line path { fill: none; stroke: var(--accent2); stroke-width: 1.6; stroke-opacity: .75; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hh-line .hh-soft { stroke: color-mix(in srgb, var(--accent2) 60%, white); stroke-width: 9; stroke-opacity: .12; }
.hh-adjust { position: absolute; right: 16px; bottom: 30px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; backdrop-filter: blur(6px); cursor: pointer; }
.hh-adjust .i { width: 18px; height: 18px; }
.cover-mini { width: 170px; margin: 0 auto; }
.cover-mini .hero-heart { width: 100%; }
.adj-stage { width: min(78vw, 340px); margin: 0 auto; cursor: grab; }
.adj-stage .hero-heart { width: 100%; }
.adj-stage .hh-clip img { transition: none; }
.hello.under-photo { padding-top: 16px; }
.quote { margin: 14px 0 0; padding: 0 0 0 0; }
.quote p { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 18px; line-height: 1.35; color: var(--text); opacity: .92; text-wrap: pretty; }
.quote cite { display: block; margin-top: 4px; font-style: normal; font-size: 13px; color: var(--c2); }
[data-theme="candlelit"] .quote p, :root:not([data-theme]) .quote p { font-family: var(--font-hand); font-size: 19px; }
[data-theme="velvet"] .quote p { text-transform: none; font-family: var(--font-body); font-weight: 500; font-style: italic; font-size: 16.5px; }
[data-theme="graphite"] .quote p { font-weight: 600; font-size: 17px; }
.cover-preview { height: 150px; border-radius: var(--radius-sm); background: var(--img) var(--pos, center) / cover no-repeat; }
#coverPos { flex: 1 1 100%; }
.install { display: flex; align-items: center; gap: 14px; border-color: var(--accent); background: var(--surface); }
.install .i { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); border-radius: 99px; padding: 8px 14px; cursor: pointer; font-size: 14px; transition: border-color .2s, transform .25s var(--ease); }
.chip .i { width: 16px; height: 16px; color: var(--c1); }
.chip:active { border-color: var(--accent); transform: scale(.97); }
.dinner-line { display: flex; gap: 12px; align-items: center; }
.dinner-line .i { color: var(--c2); }

/* ---------- daily moment ---------- */
.mo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; cursor: pointer; }
.mo-card { background: var(--surface2); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; }
.mo-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.small-pair .mo-card img { aspect-ratio: 1; }
.mo-frame { position: relative; }
.mo-carried { margin: -4px 0 10px; }
.mo-dual .mo-inset { position: absolute; top: 8px; left: 8px; width: 32%; padding: 0; border: 3px solid #000; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.mo-dual .mo-inset img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; }
.mo-dual .mo-inset:active { transform: scale(.96); }
.mo-cap { padding: 9px 10px; font-size: 14px; }
.mo-wait { aspect-ratio: 3/4; align-items: center; justify-content: center; color: var(--muted); gap: 8px; text-align: center; padding: 10px; }
.small-pair .mo-wait { aspect-ratio: 1; }
.mo-snap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 230px; border: 2px dashed var(--accent); border-radius: var(--radius); cursor: pointer; color: var(--muted); font-weight: 600; }
.mo-snap .i { color: var(--accent); }
.mo-snap.small-snap { height: 56px; flex-direction: row; font-size: 14px; }
.mo-snap.small-snap .i { width: 22px; height: 22px; }
.mo-prev { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); }
.mo-home .mo-pair { max-width: 340px; }
.big-wait { display: grid; justify-items: center; gap: 10px; padding: 18px 0 6px; color: var(--c1); }
label.small select { margin-top: 6px; }
.mo-tease { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.mo-tease .i { color: var(--c1); }

/* ---------- games ---------- */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px; min-height: 140px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); cursor: pointer; transition: transform .3s var(--ease), border-color .2s; }
.game-tile .i { color: var(--c1); margin-bottom: 10px; }
.game-tile:nth-child(2) .i { color: var(--c2); }
.game-tile:nth-child(3) .i { color: var(--c3); }
.game-tile:nth-child(4) .i { color: var(--c4); }
.game-tile:active { transform: scale(.97); border-color: var(--accent); }
.gt-name { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 21px; line-height: 1.1; }
.game-title { justify-content: center; font-size: var(--sec-size); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.game-title .i { color: var(--c1); }
.dice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.die { display: flex; flex-direction: column; justify-content: center; gap: 6px; aspect-ratio: 1; padding: 8px; background: var(--surface2); border: 1px solid var(--line); border-radius: calc(var(--radius-sm) + 4px); }
.die-k { font-size: 13px; font-weight: 600; color: var(--muted); }
.die-v { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 17px; line-height: 1.15; text-wrap: balance; }
[data-theme="booth"] .die { background: #fbf7ff; color: #1d1747; border: 0; }
[data-theme="booth"] .die-k { color: #6b62a6; }

[data-theme="booth"] .game-tile { border: 0; color: #1d1747; }
[data-theme="booth"] .game-tile .muted { color: rgba(29, 23, 71, .72); }
[data-theme="booth"] .game-tile .i, [data-theme="booth"] .game-tile:nth-child(n) .i { color: #1d1747; }
[data-theme="booth"] .game-tile:nth-child(1) { background: var(--c1); }
[data-theme="booth"] .game-tile:nth-child(2) { background: var(--c2); }
[data-theme="booth"] .game-tile:nth-child(3) { background: var(--c3); }
[data-theme="booth"] .game-tile:nth-child(4) { background: var(--c4); }

/* ---------- theme picker ---------- */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-tile {
  position: relative; text-align: left; cursor: pointer; padding: 14px 14px 12px; min-height: 128px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px; overflow: hidden;
  font-family: var(--font-body); transition: transform .3s var(--ease), border-color .2s;
}
.theme-tile:active { transform: scale(.97); }
.theme-tile .tt-name { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 22px; line-height: 1; }
.theme-tile .tt-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.theme-tile .tt-sw { display: flex; gap: 5px; }
.theme-tile .tt-sw span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line); }
.theme-tile .tt-btn { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--btn-radius); background: var(--accent); color: var(--on-accent); }
.theme-tile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.theme-tile .tt-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: none; place-items: center; }
.theme-tile.on .tt-check { display: grid; }
.theme-tile .tt-check .i { width: 15px; height: 15px; stroke-width: 3; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; }
.login .card { width: 100%; max-width: 360px; padding: 40px 26px 30px; }
.login h1 { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 52px; margin: 0 0 6px; line-height: 1; }
.login .btn { width: 100%; margin-top: 22px; }

/* ================= theme signatures ================= */

/* Candlelit: partner's words in handwriting (above), warm candle glow under the active tab */
[data-theme="candlelit"] .tab-ind::before, :root:not([data-theme]) .tab-ind::before { width: 26px; height: 3px; margin-left: -13px; bottom: 6px; border-radius: 3px; }

/* Photo Booth: springy colour blob behind the active icon, multicolour section icons, booth-print photos */
[data-theme="booth"] .tab-ind { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
[data-theme="booth"] .tab-ind::before { width: 52px; height: 34px; margin-left: -26px; bottom: auto; top: 7px; border-radius: 999px; background: var(--accent2); }
[data-theme="booth"] .tabs button.active .i { color: var(--on-accent); transform: scale(1.08); }
[data-theme="booth"] .tabs button.active { color: var(--text); }
[data-theme="booth"] .card { border: 0; }

[data-theme="booth"] main > .card:nth-of-type(4n+2) > h3 .i { color: var(--c2); }
[data-theme="booth"] main > .card:nth-of-type(4n+3) > h3 .i { color: var(--c3); }
[data-theme="booth"] main > .card:nth-of-type(4n) > h3 .i { color: var(--c4); }
[data-theme="booth"] .thumb, [data-theme="booth"] .mo-card { background: #fbf7ff; padding: 5px 5px 14px; border-radius: 6px; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .7); }
[data-theme="booth"] .thumb { aspect-ratio: auto; }
[data-theme="booth"] .thumb img, [data-theme="booth"] .thumb video { aspect-ratio: 1; height: auto; border-radius: 2px; }
[data-theme="booth"] .grid { gap: 10px; }
[data-theme="booth"] .grid .thumb:nth-child(3n+1) { transform: rotate(-1.6deg); }
[data-theme="booth"] .grid .thumb:nth-child(3n+3) { transform: rotate(1.4deg); }
[data-theme="booth"] .mo-card img { border-radius: 2px; }
[data-theme="booth"] .mo-cap { color: #1d1747; }
[data-theme="booth"] .mo-cap .muted { color: #5b528f; }
[data-theme="booth"] .mo-wait { background: var(--surface2); color: var(--muted); padding: 10px; }
[data-theme="booth"] .btn { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), filter .2s; }
[data-theme="booth"] .seg button.on { background: var(--c3); color: #1d2a00; }
[data-theme="booth"] .msg.mine .bubble { background: var(--accent2); }

/* Graphite: Material-style pill behind the active icon, hairline precision, quiet surfaces */
[data-theme="graphite"] .tab-ind::before { width: 58px; height: 32px; margin-left: -29px; bottom: auto; top: 8px; border-radius: 16px; background: var(--hot-bg); }
[data-theme="graphite"] .card { background: var(--surface); }
[data-theme="graphite"] .card > h3 .i { color: var(--muted); }
[data-theme="graphite"] .page-title { margin-top: 16px; }
[data-theme="graphite"] .btn { font-weight: 700; letter-spacing: -0.01em; }

/* Velvet: gold rule on the active tab, spotlight over Home, lacquer buttons in caps */
[data-theme="velvet"] .tab-ind::before { width: 34px; height: 2px; margin-left: -17px; bottom: auto; top: 0; border-radius: 0; background: var(--accent2); }
[data-theme="velvet"] .tabs button.active .i { color: var(--accent2); }
[data-theme="velvet"] .tabs button { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
[data-theme="velvet"] .btn { text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
[data-theme="velvet"] .card > h3 { color: var(--accent2); }
[data-theme="velvet"] .card > h3 .i { color: var(--accent2); }
[data-theme="velvet"] .card { border-color: transparent; border-top: 1px solid rgba(230, 189, 106, .22); }
[data-theme="velvet"] .hello {
  margin: -6px -16px 14px; padding: 46px 18px 26px;
  background: radial-gradient(120% 90% at 50% -10%, rgba(255, 43, 79, .38), rgba(255, 43, 79, .08) 45%, transparent 70%);
}
[data-theme="velvet"] .hello.under-photo { margin-top: 0; padding-top: 26px; }
[data-theme="velvet"] .page-title { line-height: .95; }
[data-theme="velvet"] .theme-tile .tt-name { font-size: 26px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.day-empty { margin: 0 0 4px; padding: 4px 0 4px 14px; }
/* love languages */
.quiz-opt { white-space: normal; text-align: center; min-height: 64px; line-height: 1.3; font-size: 16px; }
.quiz-opt:active { border-color: var(--accent); background: var(--hot-bg); }
.love-top { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.love-top .tag { font-size: 13px; padding: 4px 11px; margin: 0; }
/* Read My Mind */
.game-feature { width: 100%; min-height: 0; margin-bottom: 10px; }
[data-theme="booth"] .game-feature { background: var(--c2); }
.mind-score { display: flex; align-items: center; justify-content: space-between; text-align: center; }
.mind-score > div { display: grid; gap: 2px; min-width: 90px; }
.mind-score b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 44px; line-height: 1; color: var(--accent); }
.mind-score > div:last-child b { color: var(--accent2); }
.mind-q { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 24px; line-height: 1.2; margin: 4px 0 16px; text-wrap: balance; }
.mind-pick { margin-bottom: 14px; }
.mind-reveal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mind-reveal > div { display: grid; gap: 4px; padding: 14px 12px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line); text-align: center; }
.mind-reveal b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; }
.mind-reveal .hit { border-color: var(--accent); background: var(--hot-bg); }
.prize { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.prize:first-of-type { border-top: 0; }
.note-prompt { display: flex; gap: 8px; align-items: flex-start; margin: -2px 0 10px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.note-prompt .i { color: var(--c1); margin-top: 2px; }
/* date planner */
.date-ask { padding: 14px; border-radius: var(--radius-sm); background: var(--hot-bg); border: 1px solid var(--accent); margin-bottom: 10px; }
.date-title { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 22px; line-height: 1.2; margin: 2px 0 4px; }
.date-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.date-item:first-of-type { border-top: 0; }
.date-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--hot-bg); color: var(--accent); flex: none; }
.surprise-toggle { align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface2); color: var(--text); }
.surprise-toggle input { margin-top: 3px; }
.surprise-toggle .small { color: var(--muted); }
.tantra-d { font-size: 17px; line-height: 1.55; margin: 0 0 16px; text-wrap: pretty; }
.tantra-timer { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 56px; line-height: 1; margin: 6px 0 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.seg.kinds button { font-size: 13.5px; padding: 9px 2px; }
/* setup checklist + tour */
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.setup-item { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--text); cursor: pointer; }
.setup-item .grow { display: grid; gap: 1px; }
.setup-item > .i { color: var(--muted); }
.setup-box { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); }
.setup-item.done { opacity: .6; }
.setup-item.done .setup-box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.setup-item.done .setup-box .i { width: 13px; height: 13px; stroke-width: 3; }
.tour { text-align: center; padding: 26px 20px 18px; }
.tour-icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--hot-bg); color: var(--accent); }
.tour-title { font-size: calc(var(--sec-size) + 6px); margin-bottom: 8px; }
.tour-d { font-size: 16px; line-height: 1.5; color: var(--text); opacity: .9; margin: 0 0 16px; text-wrap: pretty; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: width .3s var(--ease), background .3s; }
.tour-dots span.on { width: 20px; border-radius: 4px; background: var(--accent); }
.tour .tour-title { justify-content: center; text-align: center; }
.spicy-banner { display: flex; gap: 12px; align-items: center; border-color: var(--accent); background: var(--hot-bg); }
.spicy-pepper { font-size: 30px; line-height: 1; }
.cal-acct + .cal-acct { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cal-acct .list { margin-top: 4px; }
/* weekly challenge */
.chal { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chal th, .chal td { padding: 8px 6px; text-align: center; border-top: 1px solid var(--line); }
.chal thead th { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.chal td:first-child, .chal th:first-child { text-align: left; }
.chal tr.tot td { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; color: var(--accent); }
.chal tr.tot td:first-child { font-size: 16px; color: var(--text); }
.chip.pcat { opacity: .5; }
.chip.pcat.on { opacity: 1; border-color: var(--accent); background: var(--hot-bg); }
.evcolors { display: flex; flex-wrap: wrap; gap: 8px; }
.evc { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; background: var(--surface2); color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.evc.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg) inset; }
.sug-month { margin: 10px 0 2px; font-weight: 600; }
.sug-month:first-of-type { margin-top: 0; }
/* what's on this day */
.dayon-btn { min-height: 38px; padding: 6px 12px; font-size: 14px; justify-self: start; }
.dayon { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line); display: grid; gap: 10px; }
.dayon-cal { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.dayon-cal .dot { margin: 0; width: 9px; height: 9px; }
.dayon-ev { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 14.5px; padding: 2px 0 2px 15px; }
.mo-waiting { display: flex; gap: 14px; align-items: center; cursor: pointer; }
.mo-locked { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: var(--radius-sm); color: var(--text); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, var(--surface2)), color-mix(in srgb, var(--accent2) 45%, var(--surface2))); filter: saturate(.9); }
/* photo editor */
.pe { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; color: #fff; }
.pe-top { display: flex; align-items: center; gap: 8px; padding: calc(var(--safe-t) + 8px) 12px 8px; }
.pe-top .icon-btn { color: #fff; }
.pe-txt { min-height: 40px; padding: 6px 14px; background: rgba(255,255,255,.12) !important; color: #fff !important; border-color: rgba(255,255,255,.2) !important; font-weight: 800; }
.pe-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 6px 12px; }
.pe-frame { position: relative; touch-action: none; overflow: hidden; border-radius: 10px; }
.pe-frame canvas { width: 100%; height: 100%; display: block; }
.pe-item { position: absolute; transform: translate(-50%, -50%); line-height: 1; cursor: grab; user-select: none; touch-action: none; white-space: nowrap; }
.pe-item.sel { outline: 2px dashed rgba(255,255,255,.8); outline-offset: 4px; border-radius: 6px; }
.pe-textitem { font-family: system-ui, sans-serif; font-weight: 700; color: #fff; -webkit-text-stroke: .06em rgba(0,0,0,.45); paint-order: stroke fill; }
.pe-size { display: flex; align-items: center; gap: 10px; padding: 4px 16px; }
.pe-size input { flex: 1; }
.pe-size .icon-btn { color: #fff; }
.pe-row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
.pe-row:last-child { padding-bottom: calc(var(--safe-b) + 12px); }
.pe-filter { display: grid; gap: 4px; justify-items: center; background: none; border: 0; color: rgba(255,255,255,.75); font-size: 11.5px; cursor: pointer; flex: none; }
.pe-filter canvas { width: 56px; height: 56px; border-radius: 10px; border: 2px solid transparent; }
.pe-filter.on { color: #fff; } .pe-filter.on canvas { border-color: #fff; }
.pe-stk { font-size: 30px; background: none; border: 0; cursor: pointer; flex: none; padding: 2px 4px; }
/* Us menu tabs */
.us-tabs { display: flex; gap: 6px; overflow-x: auto; margin: -4px -16px 16px; padding: 2px 16px; scrollbar-width: none; }
.us-tabs button { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.us-tabs button .i { width: 17px; height: 17px; }
.us-tabs button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* toggle switch */
.switch { position: relative; flex: none; width: 46px; height: 28px; align-self: center; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); transition: background .25s var(--ease); }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--ease), background .25s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--on-accent); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* What to Watch */
.watch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.watch-spin { display: flex; flex-direction: column; gap: 10px; text-align: center; margin: 0; }
.watch-pick { min-height: 3.2em; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
.watch-pick.picked { color: var(--accent); font-weight: 600; }
.watch-spin .row { flex-wrap: wrap; }

.w-poster { width: 34px; height: 50px; object-fit: cover; border-radius: 6px; flex: none; background: var(--surface2); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.watch-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.watch-acts:empty { display: none; }
.watch-pick { flex-direction: column; gap: 6px; }
.w-pick-poster { width: 64px; height: 94px; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 18px rgb(0 0 0 / .35); }
.wsug { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wsug-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; background: var(--surface); border: 0; border-top: 1px solid var(--line); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.wsug-item:first-child { border-top: 0; }
.wsug-item:hover, .wsug-item:focus-visible { background: var(--surface2); }

/* Spicy moment: two options */
.spicy-banner { display: block; }
.spicy-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 8px; }
.spicy-opt { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.spicy-opt:active { transform: scale(.98); }
.spicy-opt.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.spicy-opt[disabled] { cursor: default; opacity: .55; }
.spicy-opt.on[disabled] { opacity: 1; }
.so-k { font-weight: 700; font-size: .95rem; }
.so-t { line-height: 1.3; }
.so-h { font-size: .78rem; opacity: .7; }

/* ---------- Drawn scenes ---------- */
.art { display: block; width: 96px; height: 76px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.art .a1 { stroke: var(--c1); } .art .a2 { stroke: var(--c2); } .art .a3 { stroke: var(--c3); } .art .a4 { stroke: var(--c4); }
.art .f1 { fill: color-mix(in srgb, var(--c1) 16%, transparent); } .art .f2 { fill: color-mix(in srgb, var(--c2) 16%, transparent); }
.art .f3 { fill: color-mix(in srgb, var(--c3) 16%, transparent); } .art .f4 { fill: color-mix(in srgb, var(--c4) 16%, transparent); }
.art .p1 { fill: var(--c1); stroke: none; } .art .p2 { fill: var(--c2); stroke: none; } .art .p3 { fill: var(--c3); stroke: none; }
.empty-art { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 10px 8px 2px; }
.empty-art .art { width: 124px; height: 98px; }
.empty-art p { margin: 0; }
.art-empty { width: 150px; height: 118px; margin: 0 auto; }

/* Game tiles carry a scene instead of a lone icon */
.gt-art { display: block; }
.gt-art .art { width: 80px; height: 63px; margin: -6px 0 6px -8px; }
.game-tile:active .art { transform: scale(1.04); }
.game-tile .art { transition: transform .3s var(--ease); }
.game-feature { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name art" "sub art"; column-gap: 10px; align-items: center; padding: 18px 16px 18px 18px; }
.game-feature .gt-name { grid-area: name; align-self: end; }
.game-feature > .muted { grid-area: sub; align-self: start; }
.gf-art { grid-area: art; }
.gf-art .art { width: 112px; height: 89px; }

/* ---------- Colour moments: features and live rituals glow in the theme's colours ---------- */
.game-feature, .mo-home.is-live, .dates-card:not(:empty) {
  background:
    radial-gradient(110% 130% at 100% 0%, color-mix(in srgb, var(--c2) 24%, transparent), transparent 62%),
    linear-gradient(155deg, color-mix(in srgb, var(--c1) 20%, var(--surface)), var(--surface) 78%);
  border-color: color-mix(in srgb, var(--c1) 34%, var(--line));
}
.game-feature[data-game="watch"] {
  background:
    radial-gradient(110% 130% at 100% 0%, color-mix(in srgb, var(--c4) 26%, transparent), transparent 62%),
    linear-gradient(155deg, color-mix(in srgb, var(--c3) 18%, var(--surface)), var(--surface) 78%);
  border-color: color-mix(in srgb, var(--c3) 34%, var(--line));
}
[data-theme="booth"] .game-feature { background: linear-gradient(135deg, var(--c2), var(--c1)); }
[data-theme="booth"] .game-feature[data-game="watch"] { background: linear-gradient(135deg, var(--c4), var(--c3)); }
[data-theme="booth"] .game-tile .art .a1, [data-theme="booth"] .game-tile .art .a2, [data-theme="booth"] .game-tile .art .a3, [data-theme="booth"] .game-tile .art .a4 { stroke: #1d1747; }
[data-theme="booth"] .game-tile .art .f1, [data-theme="booth"] .game-tile .art .f2, [data-theme="booth"] .game-tile .art .f3, [data-theme="booth"] .game-tile .art .f4 { fill: rgba(255, 255, 255, .42); }
[data-theme="booth"] .game-tile .art .p1, [data-theme="booth"] .game-tile .art .p2, [data-theme="booth"] .game-tile .art .p3 { fill: #1d1747; }
[data-theme="velvet"] .game-feature, [data-theme="velvet"] .mo-home.is-live, [data-theme="velvet"] .dates-card:not(:empty) { border-color: transparent; border-top-color: rgba(230, 189, 106, .4); }

/* ---------- Living backgrounds: one quiet texture per theme, behind everything ---------- */
body { background: transparent; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
:root:not([data-theme]) body::before, [data-theme="candlelit"] body::before {
  background: radial-gradient(60% 38% at 12% 0%, rgba(240, 163, 94, .11), transparent 70%), radial-gradient(48% 32% at 92% 6%, rgba(227, 128, 124, .08), transparent 70%);
  animation: candle 6s ease-in-out infinite alternate;
}
@keyframes candle { 0% { opacity: .7; } 35% { opacity: 1; } 55% { opacity: .82; } 80% { opacity: .96; } 100% { opacity: .88; } }
[data-theme="booth"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg opacity='.16'%3E%3Crect x='20' y='26' width='8' height='3' rx='1.5' fill='%23ff8a3d' transform='rotate(30 24 27)'/%3E%3Ccircle cx='120' cy='40' r='2.2' fill='%23c8f560'/%3E%3Crect x='70' y='96' width='9' height='3' rx='1.5' fill='%23ff5fa2' transform='rotate(-40 74 97)'/%3E%3Ccircle cx='150' cy='130' r='2.4' fill='%236fd3ff'/%3E%3Crect x='30' y='150' width='8' height='3' rx='1.5' fill='%23c8f560' transform='rotate(70 34 151)'/%3E%3Ccircle cx='96' cy='160' r='1.8' fill='%23ff8a3d'/%3E%3Crect x='140' y='76' width='7' height='3' rx='1.5' fill='%236fd3ff' transform='rotate(15 143 77)'/%3E%3Ccircle cx='50' cy='80' r='1.8' fill='%23ff5fa2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
}
[data-theme="graphite"] body::before {
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
[data-theme="velvet"] body::before {
  background: linear-gradient(115deg, transparent 30%, rgba(255, 43, 79, .07) 44%, rgba(230, 189, 106, .05) 50%, transparent 64%);
  background-size: 320% 320%;
  animation: sheen 16s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 100%; } }

/* ---------- Celebrations ---------- */
.celebrate { position: fixed; inset: 0; pointer-events: none; z-index: 1000; overflow: hidden; }
.cel-p { position: absolute; display: block; will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
  .game-tile .art { transition: none; }
}

/* Photo Booth: every game tile gets a candy colour, not just the first four */
[data-theme="booth"] .games .game-tile:nth-child(4n+1) { background: var(--c1); }
[data-theme="booth"] .games .game-tile:nth-child(4n+2) { background: var(--c2); }
[data-theme="booth"] .games .game-tile:nth-child(4n+3) { background: var(--c3); }
[data-theme="booth"] .games .game-tile:nth-child(4n+4) { background: var(--c4); }

/* ---------- Games in Chat ---------- */
.composer button.attach { background: none; border: 0; padding: 0; font: inherit; }
.msg.msg-game { max-width: 86%; }
.game-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 6px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--c1) 34%, var(--line)); border-radius: var(--radius-sm);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c2) 20%, transparent), transparent 60%), linear-gradient(155deg, color-mix(in srgb, var(--c1) 16%, var(--surface)), var(--surface) 80%); }
.game-card .art { width: 58px; height: 46px; flex: none; }
.game-card .gc-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.game-card > .i { color: var(--muted); }
.gc-turn { color: var(--hot); font-weight: 600; }
.gpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gpick-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.gpick-tile .art { width: 70px; height: 55px; margin: -4px 0 2px -6px; }
.gpick-tile:active { transform: scale(.98); }

.game-screen { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; padding: calc(var(--safe-t) + 8px) 12px calc(var(--safe-b) + 24px); animation: rise .35s var(--ease); }
body.in-game { overflow: hidden; }
/* Toasts sit above the full-screen game (move errors like an invalid word were hidden behind it) */
body.in-game #toast { z-index: 90; bottom: auto; top: calc(var(--safe-t) + 62px); }
.gs-top { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; position: sticky; top: 0; padding: 4px 0; background: var(--bg); z-index: 2; }
.gs-body { max-width: 520px; margin: 0 auto; }
.w-score { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 8px; font-size: 15px; }
.w-score b { font-family: var(--font-display); font-size: 1.25em; margin-left: 4px; color: var(--accent); }

/* Chess */
.chess { display: grid; grid-template-columns: repeat(8, 1fr); border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .8); aspect-ratio: 1; }
.chess .sq { position: relative; border: 0; padding: 0; display: grid; place-items: center; aspect-ratio: 1; cursor: pointer; font: inherit; }
.chess .sq.l { background: color-mix(in srgb, var(--c3) 30%, #e8dccb); }
.chess .sq.d { background: color-mix(in srgb, var(--c1) 45%, #5a4236); }
.chess .sq.last { box-shadow: inset 0 0 0 100px color-mix(in srgb, var(--c2) 26%, transparent); }
.chess .sq.sel { box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 100px color-mix(in srgb, var(--accent) 24%, transparent); }
.chess .sq.tgt::after { content: ''; width: 28%; height: 28%; border-radius: 50%; background: rgba(20, 12, 8, .35); }
.chess .sq.cap::after { content: ''; position: absolute; inset: 6%; border-radius: 50%; border: 3px solid rgba(20, 12, 8, .4); }
.chess .sq.chk { box-shadow: inset 0 0 0 100px rgba(220, 40, 40, .45); }
.chess .pc { font-size: min(9.6vw, 50px); line-height: 1; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', serif; }
.chess .pc.w { color: #fbf4ea; -webkit-text-stroke: 1.2px #2b1d16; paint-order: stroke fill; text-shadow: 0 2px 2px rgba(0, 0, 0, .25); }
.chess .pc.b { color: #1d1411; -webkit-text-stroke: .8px rgba(255, 240, 225, .35); text-shadow: 0 2px 2px rgba(0, 0, 0, .25); }
.chess .rk, .chess .fl { position: absolute; font-style: normal; font-size: 9px; font-weight: 700; color: rgba(30, 20, 15, .55); }
.chess .rk { top: 2px; left: 3px; } .chess .fl { bottom: 1px; right: 3px; }

/* Word board */
.wboard { display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; padding: 4px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--line) 70%, var(--bg)); }
.wc { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 0; padding: 0; border-radius: 4px; background: var(--surface); color: var(--muted); font: 700 8.5px/1 var(--font-body); cursor: pointer; }
.wc[disabled] { cursor: default; }
.wc.pT { background: color-mix(in srgb, var(--c2) 46%, var(--surface)); color: var(--text); }
.wc.pD { background: color-mix(in srgb, var(--c2) 22%, var(--surface)); color: var(--text); }
.wc.pt { background: color-mix(in srgb, var(--c4) 40%, var(--surface)); color: var(--text); }
.wc.pd { background: color-mix(in srgb, var(--c4) 18%, var(--surface)); color: var(--text); }
.wc.ps { background: color-mix(in srgb, var(--c1) 30%, var(--surface)); color: var(--c1); font-size: 13px; }
.wc.tile, .rt { background: #f3e6cf; color: #2a1b10; font: 800 clamp(13px, 4vw, 18px)/1 var(--font-body); box-shadow: 0 1px 0 #c8b28e, 0 2px 4px -2px rgba(0, 0, 0, .5); }
.wc.tile i, .rt i { position: absolute; right: 2px; bottom: 1px; font: 700 7px/1 var(--font-body); font-style: normal; opacity: .7; }
.wc.tile.pend { background: color-mix(in srgb, var(--accent) 55%, #f3e6cf); }
.wc.tile.just { box-shadow: 0 0 0 2px var(--c2), 0 2px 4px -2px rgba(0, 0, 0, .5); }
.rack { display: flex; justify-content: center; gap: 6px; margin-top: 12px; min-height: 46px; }
.rt { position: relative; width: 44px; height: 46px; border: 0; border-radius: 7px; cursor: pointer; font-size: 20px; transition: transform .2s var(--ease); }
.rt i { font-size: 9px; right: 4px; bottom: 3px; }
.rt.on { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--accent), 0 6px 10px -4px rgba(0, 0, 0, .6); }
.rt.sw { opacity: .45; }
.w-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.w-actions .btn { min-height: 40px; padding: 6px 4px; }

/* Word duel */
.duel-in { width: 9ch; text-align: center; text-transform: uppercase; letter-spacing: .3em; font-weight: 800; font-size: 20px; }
.du-grid { display: grid; gap: 6px; justify-content: center; }
.du-row { display: grid; grid-template-columns: repeat(5, 52px); gap: 6px; }
.du-c { height: 52px; display: grid; place-items: center; border-radius: 8px; border: 1.5px solid var(--line); font: 800 24px/1 var(--font-body); }
.du-c.typed { border-color: var(--muted); }
.du-c.hit { background: color-mix(in srgb, #4caf6a 75%, var(--surface)); border-color: transparent; color: #0d1a10; }
.du-c.near { background: color-mix(in srgb, #e6b84a 80%, var(--surface)); border-color: transparent; color: #241a05; }
.du-c.miss { background: var(--surface2); border-color: transparent; color: var(--muted); }
.du-side { text-align: center; margin: 10px 0; }
.du-minis { display: inline-grid; gap: 2px; margin-top: 4px; }
.du-mini { display: flex; gap: 2px; }
.du-mini i { width: 9px; height: 9px; border-radius: 2px; background: var(--surface2); }
.du-mini i.hit { background: #4caf6a; } .du-mini i.near { background: #e6b84a; }
.kb { display: grid; gap: 6px; margin-top: 8px; }
.kb-row { display: flex; justify-content: center; gap: 4px; }
.kb-k { flex: 1; max-width: 38px; height: 50px; border: 0; border-radius: 7px; background: var(--surface2); color: var(--text); font: 700 15px/1 var(--font-body); cursor: pointer; }
.kb-k.wide { max-width: 64px; flex: 1.6; font-size: 13px; }
.kb-k.hit { background: #4caf6a; color: #0d1a10; } .kb-k.near { background: #e6b84a; color: #241a05; } .kb-k.miss { opacity: .4; }

/* Battleship */
.sea { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; padding: 6px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--c4) 22%, var(--surface)); }
.sea .cell { aspect-ratio: 1; border: 0; padding: 0; border-radius: 5px; background: color-mix(in srgb, var(--c4) 14%, var(--bg)); }
.sea button.cell { cursor: pointer; } .sea button.cell:active { transform: scale(.9); }
.sea .cell.ship { background: color-mix(in srgb, var(--muted) 60%, var(--surface)); }
.sea .cell.miss { background: radial-gradient(circle, var(--muted) 18%, color-mix(in srgb, var(--c4) 14%, var(--bg)) 22%); }
.sea .cell.hit { background: radial-gradient(circle, #fff3 10%, var(--c2) 14%, color-mix(in srgb, var(--c2) 60%, var(--bg)) 70%); }
.sea .cell.sunk { box-shadow: inset 0 0 0 2px var(--c2); }
.sea.mine-small { max-width: 220px; gap: 2px; padding: 4px; } .sea.mine-small .cell { border-radius: 3px; }

/* Dots & Boxes */
.dotsboard { width: 100%; max-width: 420px; display: block; margin: 0 auto; touch-action: manipulation; }
.dotsboard .dot { fill: var(--text); }
.dotsboard .ln .hit { stroke: transparent; stroke-width: 22; stroke-linecap: round; }
.dotsboard .ln .vis { stroke: var(--line); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; }
.dotsboard .ln[data-line] { cursor: pointer; }
.dotsboard .ln[data-line]:hover .vis, .dotsboard .ln[data-line]:focus .vis { stroke: var(--muted); }
.dotsboard .ln.me .vis { stroke: var(--c1); stroke-width: 6; stroke-dasharray: none; }
.dotsboard .ln.them .vis { stroke: var(--c2); stroke-width: 6; stroke-dasharray: none; }
.dotsboard .ln.last .vis { filter: drop-shadow(0 0 4px currentColor); }
.dotsboard .bx-me { fill: color-mix(in srgb, var(--c1) 30%, transparent); }
.dotsboard .bx-them { fill: color-mix(in srgb, var(--c2) 30%, transparent); }
.sc-me b { color: var(--c1); } .sc-them b { color: var(--c2); }

/* ---------- Heads Up ---------- */
.hu-decks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hu-deck { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.hu-deck b { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 18px; }
.hu-deck.spicy { border-color: color-mix(in srgb, var(--c2) 45%, var(--line)); background: linear-gradient(155deg, color-mix(in srgb, var(--c2) 18%, var(--surface)), var(--surface)); }
.hu-screen { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: var(--bg); color: var(--text); user-select: none; transition: background .2s; overflow: hidden; }
.hu-screen.yes { background: color-mix(in srgb, #4caf6a 70%, var(--bg)); }
.hu-screen.pass { background: color-mix(in srgb, #e6904a 70%, var(--bg)); }
.hu-card { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: clamp(40px, 11vmin, 110px); line-height: 1.05; text-align: center; padding: 0 6vw; text-wrap: balance; }
.hu-count { font-size: clamp(34px, 9vmin, 90px); }
.hu-time { position: absolute; top: 14px; right: 18px; font-size: 22px; font-weight: 800; opacity: .8; }
.hu-bar { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--surface2); }
.hu-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: hu-shrink linear forwards; }
@keyframes hu-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.hu-tap { position: absolute; bottom: 14px; font-size: 13px; opacity: .45; } .hu-tap.l { left: 18px; } .hu-tap.r { right: 18px; }
.hu-end { width: min(92vw, 520px); max-height: 92vh; overflow: auto; text-align: center; }
.hu-end ul { list-style: none; padding: 0; margin: 10px 0 16px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.hu-end li { padding: 6px 12px; border-radius: 99px; background: var(--surface2); font-size: 14px; }
.hu-end li.ok { background: color-mix(in srgb, #4caf6a 30%, var(--surface2)); } .hu-end li.no { opacity: .55; text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { .game-screen { animation: none; } .rt { transition: none; } }

/* Read My Mind: link to the one owed list on the Leaderboard */
.owed-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.owed-link .grow { display: flex; flex-direction: column; gap: 2px; }

/* Chat inside a game: a sheet over the lower part of the board */
.gs-chat-btn { position: relative; }
.gs-chat-btn .badge { top: 2px; right: 0; }
.gchat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; flex-direction: column; max-height: min(58vh, 520px);
  background: var(--surface); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -14px 40px -14px rgba(0, 0, 0, .6);
  padding: 8px 12px calc(var(--safe-b) + 10px); animation: rise .3s var(--ease); }
.gchat[hidden] { display: none; }
.gchat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 4px; }
.gchat-msgs { flex: 1; min-height: 140px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; padding: 4px 0 8px; }
.gchat-msgs .loading { padding: 30px 0; }
.gchat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.gchat-quick::-webkit-scrollbar { display: none; }
.gchat-quick button { flex: none; border: 1px solid var(--line); background: var(--surface2); color: var(--text); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.gchat-form { display: flex; gap: 8px; align-items: center; }
.gchat-form input[type=text] { flex: 1; border-radius: 99px; padding: 10px 14px; }
.gchat-form .btn { width: 44px; padding: 0; border-radius: 50%; flex: none; }
.gc-peek { position: fixed; z-index: 86; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 62px); display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 32px); padding: 9px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface2); color: var(--text);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); animation: rise .3s var(--ease); }
.gc-peek span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 700px) { .gchat { left: auto; right: 16px; bottom: 16px; width: 380px; border-radius: 22px; border: 1px solid var(--line); } }
@media (min-width: 1000px) { body.gchat-open .game-screen { padding-right: 412px; } }
@media (prefers-reduced-motion: reduce) { .gchat, .gc-peek { animation: none; } }

/* Nudges */
.nudge-btn { position: relative; display: flex; align-items: center; background: none; border: 0; padding: 4px 4px 4px 12px; cursor: pointer; border-radius: 99px; }
.nudge-btn:active { transform: scale(.94); }
.nudge-heart { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px var(--bg); }
.nudge-heart .i { width: 11px; height: 11px; stroke-width: 2.6; fill: currentColor; }
.nudges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nudge-opt { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: 600 14px/1.2 var(--font-body); text-align: left; cursor: pointer; }
.nudge-opt .ne { font-size: 22px; line-height: 1; }
.nudge-opt:active { transform: scale(.97); border-color: var(--accent); }

/* Ideas hub: sections as tiles */
.ihub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ihub-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 14px 16px; min-height: 168px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--c1) 26%, var(--line));
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c2) 20%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--c1) 14%, var(--surface)), var(--surface) 80%);
  transition: transform .3s var(--ease); }
.ihub-tile:nth-child(even) { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c4) 22%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--c3) 14%, var(--surface)), var(--surface) 80%); }
.ihub-tile:active { transform: scale(.97); }
.ihub-tile .art { width: 86px; height: 68px; margin: -4px 0 4px -8px; }
.ih-name { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 22px; line-height: 1.1; }
.ih-badge { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 99px; background: var(--hot-bg); color: var(--hot); font-size: 11.5px; font-weight: 700; }
[data-theme="booth"] .ihub-tile { border: 0; color: #1d1747; }
[data-theme="booth"] .ihub-tile .muted { color: rgba(29, 23, 71, .72); }
[data-theme="booth"] .ihub-tile:nth-child(4n+1) { background: var(--c1); } [data-theme="booth"] .ihub-tile:nth-child(4n+2) { background: var(--c2); }
[data-theme="booth"] .ihub-tile:nth-child(4n+3) { background: var(--c3); } [data-theme="booth"] .ihub-tile:nth-child(4n+4) { background: var(--c4); }
[data-theme="booth"] .ihub-tile .art .a1, [data-theme="booth"] .ihub-tile .art .a2, [data-theme="booth"] .ihub-tile .art .a3 { stroke: #1d1747; }
[data-theme="booth"] .ihub-tile .art .f1, [data-theme="booth"] .ihub-tile .art .f2, [data-theme="booth"] .ihub-tile .art .f3 { fill: rgba(255, 255, 255, .42); }
[data-theme="booth"] .ihub-tile .art .p1, [data-theme="booth"] .ihub-tile .art .p2, [data-theme="booth"] .ihub-tile .art .p3 { fill: #1d1747; }
[data-theme="booth"] .ih-badge { background: #1d1747; color: #fbf7ff; }
[data-theme="velvet"] .ihub-tile { border-color: transparent; border-top-color: rgba(230, 189, 106, .35); }
.ideas-back { margin: -2px 0 12px; }
.ideas-back .btn { min-height: 40px; padding: 8px 14px; }
.subtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.subtiles button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 13px/1 var(--font-body); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.subtiles button .i { color: var(--c1); }
.subtiles button.on { color: var(--text); border-color: color-mix(in srgb, var(--c1) 50%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 20%, var(--surface)), var(--surface)); }
.subtiles button:active { transform: scale(.96); }
.subtiles .pill { position: absolute; top: 6px; right: 6px; }
[data-theme="booth"] .subtiles button.on { background: var(--c3); color: #1d1747; border-color: transparent; } [data-theme="booth"] .subtiles button.on .i { color: #1d1747; }

/* Games home, challenges, leaderboard */
.games-h { display: flex; align-items: center; gap: 8px; margin: 18px 2px 10px; font-size: var(--sec-size); }
.games-h .i { color: var(--c1); }
.art-sm { width: 52px; height: 41px; flex: none; } .art-xs { width: 40px; height: 32px; flex: none; } .art-lg { width: 150px; height: 118px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.on { border-color: var(--accent); color: var(--text); background: var(--hot-bg); }
.challenge-card .bet-text { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 22px; line-height: 1.2; margin: 0 0 16px; color: var(--hot); }
.gs-banner { max-width: 520px; margin: 0 auto 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line); }
.gs-nudge { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; }
.gs-nudge .btn { min-height: 36px; padding: 6px 14px; flex: none; }
.gs-banner.bet { border-color: color-mix(in srgb, var(--c2) 45%, var(--line)); background: linear-gradient(155deg, color-mix(in srgb, var(--c2) 16%, var(--surface)), var(--surface)); }
.ld-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-sm); background: linear-gradient(155deg, color-mix(in srgb, var(--c1) 18%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--c1) 30%, var(--line)); }
.ld-total > div { display: flex; flex-direction: column; align-items: center; } .ld-total b { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--accent); }
.ld-list li { align-items: center; }
.ld-score { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; white-space: nowrap; } .ld-score i { font-style: normal; color: var(--muted); margin: 0 6px; }

.challenge-card h3 { justify-content: center; text-align: center; }


/* Watch: Our list / Suggestions */
.subtiles.two { grid-template-columns: 1fr 1fr; }
.subtiles.two button { flex-direction: row; justify-content: center; gap: 10px; padding: 14px 8px; font-size: 14.5px; }
.setup-card { display: flex; gap: 12px; align-items: flex-start; border-color: color-mix(in srgb, var(--c1) 40%, var(--line)); background: linear-gradient(155deg, color-mix(in srgb, var(--c1) 16%, var(--surface)), var(--surface) 80%); }
.sug-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .sug-grid { grid-template-columns: repeat(3, 1fr); } }
.sug { display: flex; flex-direction: column; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.sug img, .sug-noimg { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; background: var(--surface2); }
.sug-noimg { display: grid; place-items: center; padding: 12px; text-align: center; font-family: var(--font-display); font-weight: var(--display-weight); color: var(--muted); }
.sug-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; flex: 1; }
.sug-body b { line-height: 1.2; }
.sug-why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sug-acts { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.sug-acts .btn { min-height: 36px; padding: 6px 12px; }

/* Title details */
[data-tinfo] { cursor: pointer; }
.sug-pic { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.sug-rate { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 99px; background: rgba(10, 6, 4, .72); color: #ffd98a; font: 700 11.5px/1.4 var(--font-body); }
.td { padding: 0 !important; overflow: hidden; }
.td-hero { position: relative; aspect-ratio: 16 / 9; background: var(--surface2) center / cover no-repeat; }
.td-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--surface) 98%); pointer-events: none; }
.td-hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.td-hero.playing::after { display: none; }
.td-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(10, 6, 4, .55); color: #fff; }
.td-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 99px; background: rgba(10, 6, 4, .7); color: #fff; font: 700 15px/1 var(--font-body); cursor: pointer; backdrop-filter: blur(6px); }
.td-play .i { fill: currentColor; }
.td-body { padding: 0 16px 16px; margin-top: -34px; position: relative; z-index: 1; }
.td-head { display: flex; gap: 12px; align-items: flex-end; }
.td-head img { width: 76px; border-radius: 8px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .8); flex: none; }
.td-title { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 23px; line-height: 1.1; }
.td-rates { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.td-rate { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.td-rate i { font-style: normal; font-weight: 600; color: var(--muted); font-size: 11.5px; }
.td-rate.imdb b { background: #f5c518; color: #000; padding: 0 4px; border-radius: 3px; font-size: 11px; }
.td-over { max-height: 9.5em; overflow: auto; }
.td-prov { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.td-prov img { width: 38px; height: 38px; border-radius: 9px; }
.td-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* Love + Bedroom play */
.subtiles.five { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.subtiles.five button { font-size: 12px; padding: 11px 2px 9px; }
#ltabs button span { text-align: center; line-height: 1.15; }
.love-task { border-color: color-mix(in srgb, var(--c2) 40%, var(--line)); background: linear-gradient(155deg, color-mix(in srgb, var(--c2) 16%, var(--surface)), var(--surface) 80%); }
.love-task.done { opacity: .8; }
.q36 .idea-text { min-height: 4.2em; display: grid; place-items: center; }
.q36-bar { height: 4px; border-radius: 4px; background: var(--surface2); margin: 8px 0 0; overflow: hidden; }
.q36-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s var(--ease); }
.kq { padding: 10px 0; border-top: 1px solid var(--line); }
.kq:first-of-type { border-top: 0; padding-top: 0; }
.kq-q { margin: 0 0 8px; font-weight: 600; }
.kq-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.kq-opts .chip { font-size: 13.5px; padding: 7px 12px; }
.kq ~ .btn { margin-top: 12px; }

/* Velvet chat: light text on deep wine (mine), lifted bubble with a gold edge (theirs); easier to read at night */
[data-theme="velvet"] .msg.mine .bubble { background: #8f1730; color: #fff0f2; }
[data-theme="velvet"] .msg.theirs .bubble { background: #34151e; color: #f7e9ec; box-shadow: inset 0 0 0 1px rgba(230, 189, 106, .2); }

/* Watch → Browse */
.prov-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 2px 16px 4px; }
.prov-chips::-webkit-scrollbar, .brow::-webkit-scrollbar { display: none; }
.prov { flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 13.5px/1 var(--font-body); white-space: nowrap; cursor: pointer; }
.prov img { width: 30px; height: 30px; border-radius: 9px; }
.prov.on { color: var(--text); border-color: var(--accent); background: var(--hot-bg); }
.prov:active { transform: scale(.96); }
.brow-h { margin: 16px 2px 8px; }
.brow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x proximity; scroll-padding: 0 16px; min-height: 162px; }
.brow .loading { padding: 0; margin: auto; }
.bp { position: relative; flex: none; width: 108px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--surface2); cursor: pointer; scroll-snap-align: start; }
.bp img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.bp:active { transform: scale(.96); }
.bp-on { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.bp-on .i { width: 13px; height: 13px; stroke-width: 3; }
@media (min-width: 560px) { .bp { width: 128px; } .brow { min-height: 192px; } }

/* Countdowns, Someday trips */
/* App lock */
.pinlock { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-b)); background: var(--bg); overflow-y: auto; }
body.pin-locked { overflow: hidden; }
.pl-box { width: 100%; max-width: 320px; text-align: center; }
.pl-brand { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; margin-bottom: 14px; }
.pl-brand .heart { color: var(--accent); }
.pl-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; box-shadow: 0 0 0 3px var(--surface2); }
.pl-title { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.pl-sub { margin: 0 0 6px; }
.pl-dots { display: flex; justify-content: center; gap: 16px; margin: 18px 0 8px; }
.pl-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); transition: background .15s, border-color .15s; }
.pl-dots i.on { background: var(--accent); border-color: var(--accent); }
.pl-dots.shake { animation: plshake .35s; }
@keyframes plshake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pl-err { min-height: 20px; margin: 0 0 10px; color: var(--accent2); font-size: 14px; }
.pl-pad { display: grid; grid-template-columns: repeat(3, 72px); justify-content: center; gap: 14px 22px; }
.pl-pad button { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 26px/1 var(--font-body); cursor: pointer; }
.pl-pad button:active { background: var(--surface2); transform: scale(.95); }
.pl-forgot { margin-top: 22px; }
.pin-sheet { text-align: center; padding-bottom: 24px; }
.leave-opts { display: flex; flex-direction: column; gap: 8px; }
.leave-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); cursor: pointer; }
.leave-opt:has(input:checked) { border-color: var(--accent); background: var(--hot-bg); }
.leave-opt input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.leave-opt > span { display: flex; flex-direction: column; gap: 2px; }
.btn.danger { background: var(--accent2); color: #fff; }
.quick-links { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -4px -16px 14px; padding: 2px 16px 4px; }
.quick-links::-webkit-scrollbar { display: none; }
.quick-links button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 13.5px/1 var(--font-body); cursor: pointer; }
.quick-links button .i { color: var(--c1); }
.quick-links button:active { transform: scale(.96); }
.plans-sec { scroll-margin-top: 76px; }
.cd-list { display: flex; flex-direction: column; gap: 8px; }
.cd-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 12px 8px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cd-row:active { transform: scale(.98); }
.cd-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cd-row.past { opacity: .7; }
.cd-row.someday { padding-left: 12px; }
.cd-row > .i { color: var(--muted); flex: none; }
.cd-days { flex: none; display: grid; place-items: center; align-content: center; width: 52px; height: 48px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); line-height: 1; }
.cd-days b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; }
.cd-days span { font-size: 10.5px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .06em; }
.cd-days.soon { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.cd-days.soon span { color: inherit; opacity: .85; }
.cd-emoji { font-size: 22px; line-height: 1; flex: none; }
.cd-art { flex: none; display: grid; place-items: center; }
.cd-empty { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px dashed var(--line); }
.cd-hero { display: flex; justify-content: center; margin: -6px 0 10px; }
.cd-hero .art { width: 132px; height: 104px; }
.cd-notes { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cd-sub { margin: 20px 2px 4px; font-size: 15px; }
.cd-past { margin-top: 14px; }
.cd-past summary { cursor: pointer; padding: 6px 2px; }
.cd-past .cd-list { margin-top: 6px; }
.cd-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 12px; }
.cd-kinds button { font-size: 13px; padding-left: 4px; padding-right: 4px; }
.cd-l { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.rcal { padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface2); color: var(--text); }
.rg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.rg-head b { font-size: 15px; }
.rg-week, .rg-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.rg-week { font-size: 11.5px; color: var(--muted); margin: 2px 0 4px; }
.rg-grid { row-gap: 4px; }
.rg-grid button { height: 40px; border: 0; background: none; color: var(--text); font: 600 14.5px/1 var(--font-body); cursor: pointer; border-radius: 20px; }
.rg-grid button.past { color: var(--muted); }
.rg-grid button.today { text-decoration: underline; text-underline-offset: 4px; }
.rg-grid button.mid { background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 0; }
.rg-grid button.start, .rg-grid button.end { background: var(--accent); color: var(--on-accent); }
.rg-grid.has-range button.start { border-radius: 20px 0 0 20px; }
.rg-grid.has-range button.end { border-radius: 0 20px 20px 0; }
.rg-grid.has-range button.start.end { border-radius: 20px; }
.rg-sum { display: flex; align-items: stretch; gap: 6px; margin-top: 10px; }
.rg-sum > span:not(.rg-arrow) { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.rg-sum > span.next { border-color: var(--accent); }
.rg-sum small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rg-sum b { font-size: 14px; }
.rg-arrow { align-self: center; color: var(--muted); }
.cd-emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-emojis button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); font-size: 20px; cursor: pointer; }
.cd-emojis button.on { border-color: var(--accent); background: var(--hot-bg); }

/* Free together, by month */
.fmonth { border-top: 1px solid var(--line); }
.fmonth:first-of-type { border-top: 0; }
.fmonth summary { display: flex; align-items: center; gap: 10px; min-height: 46px; cursor: pointer; list-style: none; font-weight: 600; }
.fmonth summary::-webkit-details-marker { display: none; }
.fmonth summary .i { color: var(--muted); transition: transform .2s var(--ease); }
.fmonth[open] summary .i { transform: rotate(90deg); }
.fmonth .chips { padding: 0 0 12px; }
.sug-pair { display: inline-flex; }
.sug-pair > .chip:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.sug-peek { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; padding-left: 10px; padding-right: 10px; color: var(--muted); }
.sug-peek .i { width: 16px; height: 16px; }
.dp-day { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.dp-day.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.dp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.dp-day .day-empty { margin: 4px 0 2px; }
.dp-free .grow { color: var(--text); }
.fm-key { display: flex; align-items: center; gap: 6px; margin: -2px 0 4px; }
.fm-key .i { width: 14px; height: 14px; }

/* Gifts */
.gift-occ { margin-bottom: 12px; max-width: none; }
.gift-claim { flex: none; min-height: 38px; padding: 6px 12px; font-size: 13.5px; }
.list li.done .title { text-decoration: line-through; color: var(--muted); }

/* Hobbies */
.hob-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.hob-group { padding: 12px 0; border-top: 1px solid var(--line); }
.hob-h { font-weight: 700; margin-bottom: 8px; }
.hob-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hob-chip { display: inline-flex; align-items: center; gap: 2px; padding: 6px 6px 6px 12px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); font-size: 14px; }
.hob-chip:not(:has(button)) { padding-right: 12px; }
.hob-chip button { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }

/* Monthly recap */
.us-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.us-link .grow { display: flex; flex-direction: column; gap: 2px; }
.us-link > .i:first-child { color: var(--c1); }
.rc-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc-mini > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--radius-sm); background: var(--surface2); text-align: center; }
.rc-mini b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; line-height: 1.1; }
.rc-top { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.rc-next .i { transform: none; }
.rc-eyebrow { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.rc-title { margin: 2px 0 0; font-size: 24px; }
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rc-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line); }
.rc-e { font-size: 22px; line-height: 1; }
.rc-n { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 34px; line-height: 1.1; margin-top: 6px; }
.rc-l { font-size: 13.5px; color: var(--muted); }
.rc-split { font-size: 12px; color: var(--muted); margin-top: 4px; }
.rc-h { margin: 18px 2px 8px; font-size: 15px; }
.rc-posters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rc-posters img { width: 72px; flex: none; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.rc-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rc-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* Watch → TV episodes */
.ep-prog { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; min-height: 30px; padding: 4px 10px 4px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: 600 12.5px/1.2 var(--font-body); cursor: pointer; }
.ep-prog .i { width: 14px; height: 14px; color: var(--accent); }
.ep-new { display: inline-block; margin: 6px 6px 0 0; padding: 4px 9px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font: 700 11.5px/1.2 var(--font-body); vertical-align: middle; }
.ep-bar { height: 3px; max-width: 170px; margin-top: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ep-bar i { display: block; height: 100%; background: var(--accent); }
.eps-poster { width: 56px; flex: none; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.eps .td-title { font-size: 20px; }
.eps-next { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 10px 10px 10px 14px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line); }
.eps-next .btn { flex: none; min-height: 40px; padding: 8px 14px; }
.eps-done { margin: 14px 0 4px; text-align: center; font-weight: 600; }
.eps-seasons { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.eps-season { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.eps-shead { display: flex; align-items: stretch; }
.eps-toggle { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 4px 8px 12px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.eps-toggle > span { display: flex; flex-direction: column; gap: 2px; }
.eps-toggle .i { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.eps-season.open .eps-toggle .i { transform: rotate(90deg); }
.eps-check { display: grid; place-items: center; width: 54px; cursor: pointer; }
.eps-season input[type=checkbox] { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.eps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.eps-ep label { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 9px 12px; cursor: pointer; }
.eps-ep + .eps-ep { border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.eps-ep.on .grow { color: var(--muted); }
.eps-ep input:disabled { opacity: .4; }
.eps-n { font-weight: 700; color: var(--accent); }

/* Watch → Surprise me */
.subtiles.three { grid-template-columns: repeat(3, 1fr); }
.subtiles.three button { flex-direction: column; gap: 6px; padding: 12px 4px 10px; font-size: 13px; }
.rz-label { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
.rz-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-genres .chip { font-size: 13px; padding: 6px 11px; }
.rz-src { display: grid; gap: 2px; }
.rz-src .check { margin: 0; padding: 8px 0; }
.rz-range { width: 100%; accent-color: var(--accent); }
.rz-result { display: flex; gap: 14px; align-items: flex-start; }
.rz-result img, .rz-result .sug-noimg { width: 108px; flex: none; border-radius: 10px; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .8); }
.rz-title { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 22px; line-height: 1.12; margin: 2px 0 4px; }
.rz-spin { min-height: 3.2em; display: grid; place-items: center; text-align: center; font-family: var(--font-display); font-size: 20px; color: var(--muted); }

/* Spicy daily moment: blurred on Home, clear on the Moment screen */
.mo-spicy .mo-card { position: relative; }
.mo-spicy .mo-card img { filter: blur(22px) saturate(.8); transform: scale(1.2); }
.mo-veil { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); pointer-events: none; }
[data-theme="booth"] .mo-spicy .mo-card { overflow: hidden; }

/* Games in progress */
.gip { gap: 8px; margin-bottom: 4px; }
.gip-row { display: flex; gap: 8px; align-items: stretch; }
.gip-row .game-card { flex: 1; min-width: 0; }
.gip-x { flex: none; min-height: 44px; padding: 8px 12px; font-size: 13.5px; }

/* Spicy daily moment on Home: full card width */
.mo-home .mo-pair.mo-spicy { max-width: none; }

/* Back buttons: a clear chevron pill that says where it goes */
.btn.back-btn { min-height: 42px; padding: 8px 16px 8px 10px; gap: 4px; background: var(--surface2); color: var(--text); border: 1px solid var(--line); box-shadow: none; font-weight: 700; }
.btn.back-btn .i { width: 22px; height: 22px; stroke-width: 2.6; color: var(--accent); }
.btn.back-btn:active { transform: scale(.97); }
.ideas-back .btn.back-btn { min-height: 42px; padding: 8px 16px 8px 10px; }
.icon-btn.back-icon { color: var(--text); background: var(--surface2); border: 1px solid var(--line); }
.icon-btn.back-icon .i { stroke-width: 2.6; }
[data-theme="velvet"] .btn.back-btn { background: transparent; border: 1.5px solid var(--accent2); color: var(--accent2); letter-spacing: .1em; font-size: 15px; }
[data-theme="velvet"] .btn.back-btn .i { color: var(--accent2); stroke-width: 2.8; }
[data-theme="velvet"] .icon-btn.back-icon { background: transparent; border: 1.5px solid var(--accent2); color: var(--accent2); border-radius: var(--btn-radius); }

/* Notification bell + inbox */
.bell-btn { position: relative; color: var(--text); margin-right: 2px; }
.bell-btn .badge.bell-badge { top: 2px; right: 0; }
.nt-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.nt-bar .seg { margin: 0; flex: 0 1 230px; }
.nt-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; line-height: 18px; }
.nt-act { min-height: 38px; padding: 7px 12px; font-size: 13.5px; }
.nt-group { padding-top: 12px; padding-bottom: 6px; }
.nt-day { font-size: 13px !important; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) !important; margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; }
.nt-list { list-style: none; margin: 0; padding: 0; }
.nt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.nt:first-child { border-top: 0; }
.nt-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface2); color: var(--muted); }
.nt-ic .i { width: 19px; height: 19px; }
.nt.unread .nt-ic { color: var(--c1); background: color-mix(in srgb, var(--c1) 16%, var(--surface2)); }
.nt-title { font-weight: 500; line-height: 1.3; }
.nt.unread .nt-title { font-weight: 750; }
.nt:not(.unread) .nt-title { color: var(--muted); }
.nt-body { color: var(--muted); font-size: 14px; margin-top: 2px; line-height: 1.35; }
.nt-meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 5px; opacity: .85; }
.nt-meta span + span::before { content: '·'; margin-right: 8px; }
.nt-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: -2px -8px 0 0; background: none; border: 0; cursor: pointer; }
.nt-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.nt-foot { margin: 4px 0 8px; }

/* Daily moment: back camera + selfie */
.dual { display: grid; gap: 10px; }
.dual-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dual-step { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 210px; padding: 10px; text-align: center; border: 2px dashed var(--accent); border-radius: var(--radius); cursor: pointer; color: var(--text); overflow: hidden; }
.dual-step .i { color: var(--accent); }
.dual-step.later { opacity: .55; border-style: dotted; }
.dual-step.done { border: 0; padding: 0; }
.dual-step.done img { width: 100%; height: 100%; object-fit: cover; }
.dual-n { position: absolute; top: 8px; left: 10px; font: 700 13px/1 var(--font-body); color: var(--muted); }
.dual-ok { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 12.5px; font-weight: 600; }
.dual-ok .i { width: 14px; height: 14px; color: #fff; }
.dual-skip { justify-self: center; background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 13.5px; cursor: pointer; padding: 6px; }
.dual-prev { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.dual-prev:disabled { cursor: default; }
.dual-prev img { display: block; width: 100%; max-height: 480px; object-fit: cover; }
.dual-hint { position: absolute; bottom: 10px; right: 10px; padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: 12.5px; font-weight: 600; }
.dual-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dual-chip { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 13.5px/1 var(--font-body); cursor: pointer; }
.dual-chip .i { width: 18px; height: 18px; color: var(--accent); }
/* ======================================================================
   The Boys: on top of the shared base styles
   ====================================================================== */

/* Varsity (default): letterman navy, varsity gold and red, tall condensed caps like a jacket patch */
[data-theme="varsity"] {
  --bg: #0e1522; --surface: #151f31; --surface2: #1d2a41; --line: #2a3a57;
  --text: #eef2f8; --muted: #a3b2c9; --accent: #f5b82e; --accent2: #ef5a5f; --on-accent: #1b1200;
  --hot: #ffd36b; --hot-bg: rgba(245, 184, 46, .14); --sel: rgba(245, 184, 46, .35);
  --c1: #f5b82e; --c2: #ef5a5f; --c3: #7cc4ff; --c4: #7ee0a1;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif; --display-weight: 900; --display-case: uppercase; --display-track: 0.015em;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-hand: var(--font-body); --hand-size: 1em;
  --radius: 14px; --radius-sm: 10px; --btn-radius: 10px;
  --page-title: 46px; --sec-size: 24px;
  --btn-bg: var(--accent); --btn-shadow: 0 4px 12px -6px rgba(0, 0, 0, .7);
  --nav-bg: rgba(14, 21, 34, .95); --top-bg: rgba(14, 21, 34, .9);
  color-scheme: dark;
}
/* Pennant stripes, faint, across the top of the page */
[data-theme="varsity"] body::before {
  background:
    repeating-linear-gradient(-55deg, transparent 0 46px, rgba(245, 184, 46, .035) 46px 58px, transparent 58px 70px, rgba(239, 90, 95, .03) 70px 78px),
    radial-gradient(70% 40% at 50% -5%, rgba(124, 196, 255, .09), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

/* ---------- top bar ---------- */
.brand { cursor: pointer; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); }
[data-theme="varsity"] .brand-name { color: var(--accent); font-size: 28px; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
body.titled .brand-name { opacity: 0; }
.top-acts { display: flex; align-items: center; gap: 6px; }
.bell { position: relative; color: var(--text); }
.bell .badge { top: 2px; right: 0; }
.me-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; display: grid; }
.me-btn .av { border: 2px solid var(--line); }

/* ---------- avatars ---------- */
.av { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface2); vertical-align: middle; }
.av-i { background: hsl(var(--h, 210) 45% 32%); color: hsl(var(--h, 210) 80% 90%); font-weight: 800; letter-spacing: .02em; font-family: var(--font-body); line-height: 1; }
.av-stack { display: inline-flex; align-items: center; vertical-align: middle; }
.av-stack .av { border: 2px solid var(--surface); margin-left: -7px; }
.av-stack .av:first-child { margin-left: 0; }
.av-more { background: var(--surface2); color: var(--muted); }
.on-dot { position: absolute; right: 4px; bottom: 22px; width: 12px; height: 12px; border-radius: 50%; background: #3ad07a; border: 2px solid var(--bg); }
.on-dot.big { width: 16px; height: 16px; right: calc(50% - 34px); top: 62px; bottom: auto; }

/* ---------- page heads, back links ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.page-head .page-title { margin-bottom: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 10px; padding: 6px 2px; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.back-link .i { width: 18px; height: 18px; }
.card > h3 .grow { min-width: 0; }
.kicker { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: .06em; font-size: 13px; color: var(--c1); margin: 12px 0 6px; }
.kicker:first-of-type { margin-top: 0; }
.tap { cursor: pointer; }
.list li.tap:active { background: var(--surface2); }
.emo { font-size: 22px; line-height: 1.2; flex: none; width: 28px; text-align: center; }
.live { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 70%); }
.chip.sm { padding: 5px 10px; font-size: 12.5px; }
.danger-text { color: var(--accent2) !important; }

/* ---------- home ---------- */
.hero { position: relative; margin: -6px -16px 0; min-height: 150px; overflow: hidden; display: flex; align-items: flex-end;
  background: radial-gradient(80% 90% at 85% 10%, color-mix(in srgb, var(--c2) 30%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--c1) 26%, var(--bg)), var(--bg) 85%); }
.hero.has-photo { min-height: 240px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, .75)); }
.hero .pennant { position: absolute; right: 10px; top: 8px; opacity: .9; }
.hero .pennant .art { width: 150px; height: 118px; }
.hero-text { position: relative; z-index: 1; padding: 18px 18px 14px; }
.hero-text h2 { font-size: calc(var(--page-title) * 1.15); line-height: .95; color: var(--text); }
[data-theme="varsity"] .hero-text h2 { color: var(--accent); text-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.hero.has-photo .hero-text h2 { color: #fff; }
.hero-text p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.hero.has-photo .hero-text p { color: rgba(255, 255, 255, .85); }
@media (min-width: 720px) { .hero { margin: 0; border-radius: var(--radius); } }
.hello { padding: 16px 2px 10px; }
.crew-row { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.crew-chip { position: relative; display: grid; justify-items: center; gap: 4px; flex: none; width: 60px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.crew-chip span { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-chip .on-dot { right: 6px; bottom: 20px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 14px; }
.qa { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; transition: transform .2s var(--ease); }
.qa .i { width: 26px; height: 26px; color: var(--c1); }
.qa:nth-child(2) .i { color: var(--c3); } .qa:nth-child(3) .i { color: var(--c2); } .qa:nth-child(4) .i { color: var(--c4); }
.qa:active { transform: scale(.95); }
.bday-card { display: flex; align-items: center; gap: 12px; border-color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--c2) 22%, var(--surface)), color-mix(in srgb, var(--c1) 18%, var(--surface))); }
.bday-big { font-size: 34px; }
.mo-tease { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.mo-tease > .i { color: var(--c1); }
.live-pulse > .i { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.mo-strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.mo-mini { flex: none; width: 92px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; }
.mo-mini img { width: 92px; height: 122px; object-fit: cover; border-radius: var(--radius-sm); display: block; margin-bottom: 4px; }
.up-list .days { font-weight: 800; font-size: 13px; color: var(--muted); white-space: nowrap; align-self: center; }
.up-list .days.hot { color: var(--accent); }
.up-list li { align-items: center; }
.tb-mem { display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; cursor: pointer; }
.tb-story { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- chat ---------- */
.msg { max-width: 86%; flex-direction: row; align-items: flex-end; gap: 6px; }
.msg.mine { flex-direction: row; justify-content: flex-end; }
.msg-col { display: flex; flex-direction: column; min-width: 0; }
.msg.mine .msg-col { align-items: flex-end; }
.msg-av { width: 30px; flex: none; align-self: flex-start; margin-top: 18px; }
.msg.cont .msg-av { margin-top: 0; }
.msg-av .av { cursor: pointer; }
.msg-who { font-size: 12px; font-weight: 700; color: var(--c1); margin: 6px 0 2px 10px; }
.msg.cont { margin-top: -4px; }
.msg.cont .msg-who { display: none; }
.msg .meta { margin: 2px 8px 4px; }
.msg.cont .meta { display: none; }
.msg:last-child .meta, .msg:has(+ .msg:not(.cont)) .meta { display: block; }
.sys-line { font-size: 13.5px; color: var(--muted); margin: 4px 4px 6px; }
.sys-line b { color: var(--text); }
.msg.mine .sys-line { text-align: right; }
.ref-card { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--c1) 34%, var(--line)); background: color-mix(in srgb, var(--c1) 8%, var(--surface)); color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.ref-card .i { color: var(--c1); }
.mem-ref .i:first-child { color: var(--c2); }
.reacts { display: flex; gap: 4px; margin: -6px 6px 0; position: relative; z-index: 1; }
.react { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); font-size: 13px; }
.react b { font-size: 11px; color: var(--muted); }
.react.mine { border-color: var(--accent); }
.react-bar { display: flex; justify-content: space-around; margin-bottom: 12px; }
.react-bar button { font-size: 28px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--surface2); cursor: pointer; transition: transform .2s var(--ease); }
.react-bar button:active, .react-bar button.on { transform: scale(1.15); background: var(--hot-bg); }
.seen { display: flex; align-items: center; justify-content: flex-end; gap: 4px; width: 100%; font-size: 11px; color: var(--muted); margin: 2px 8px 6px; }
.msg.theirs .seen { justify-content: flex-start; }
.typing { padding: 0 4px 70px; margin-top: -70px; }
.msgs { padding-bottom: 90px; }

/* ---------- plans ---------- */
.hang { display: flex; gap: 14px; cursor: pointer; }
.hang-date { flex: none; width: 54px; height: 58px; display: grid; place-content: center; text-align: center; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line); line-height: 1; }
.hang-date b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; color: var(--accent); }
.hang-date span { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.hang-title { font-weight: 700; font-size: 17px; line-height: 1.25; }
.hang-who { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.rsvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.rsvp button { min-height: 42px; border-radius: var(--btn-radius); border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .2s var(--ease); }
.rsvp button:active { transform: scale(.95); }
.rsvp button.on.in { background: #2c8a52; border-color: #3ad07a; color: #fff; }
.rsvp button.on.maybe { background: #8a6d1c; border-color: var(--accent); color: #fff; }
.rsvp button.on.out { background: #6b2a2d; border-color: var(--accent2); color: #fff; }
.hang-head { text-align: center; }
.hang-big { font-size: 44px; line-height: 1; margin-bottom: 4px; }
.hang-head h2 { font-size: calc(var(--page-title) * .8); margin-bottom: 6px; }
.hang-when { font-weight: 700; font-size: 17px; color: var(--accent); }
.hang-details { white-space: pre-wrap; text-align: left; background: var(--surface2); padding: 10px 12px; border-radius: var(--radius-sm); }
.hang-head .row { justify-content: center; }
.who-group { margin-bottom: 12px; }
.who-group:last-child { margin-bottom: 0; }
.who-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.who-p { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 99px; background: var(--surface2); font-size: 14px; font-weight: 600; }
.opts li { align-items: center; }
.opts .check { color: var(--text); }
.opt-bar { height: 6px; border-radius: 99px; background: var(--surface2); overflow: hidden; margin-top: 6px; }
.opt-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s var(--ease); }
.opt-n { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.hc-list { display: grid; gap: 12px; }
.hc { display: flex; gap: 10px; align-items: flex-start; }
.hc .grow > div { white-space: pre-wrap; word-break: break-word; }
.reply-body { margin-top: 2px; }
.reply-pic { padding: 0; border: 0; background: none; margin-top: 6px; cursor: pointer; }
.reply-pic img { max-width: 220px; max-height: 220px; border-radius: var(--radius-sm); display: block; }

/* ---------- memories ---------- */
.mem { cursor: pointer; transition: border-color .2s; }
.mem:active { border-color: var(--accent); }
.mem-kicker { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: .05em; font-size: 13px; color: var(--c2); margin-bottom: 4px; }
.mem-kicker .muted { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; }
.mem-title { font-size: 25px; line-height: 1.1; margin-bottom: 8px; }
.mem-title.big { font-size: calc(var(--page-title) * .8); }
.mem-story { color: var(--muted); white-space: pre-wrap; }
.mem-story.full { color: var(--text); font-size: 16.5px; line-height: 1.6; }
.mem-pics { display: grid; gap: 4px; margin: 10px 0; border-radius: var(--radius-sm); overflow: hidden; }
.mem-pics.n2 { grid-template-columns: 1fr 1fr; } .mem-pics.n3 { grid-template-columns: 2fr 1fr 1fr; }
.mem-pics img { width: 100%; height: 150px; object-fit: cover; display: block; }
.mem-pics.n1 img { height: 210px; }
.mem-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.laugh { border: 1px solid var(--line); background: var(--surface2); color: var(--text); border-radius: 99px; padding: 4px 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .2s var(--ease); }
.laugh.on { border-color: var(--accent); background: var(--hot-bg); }
.laugh.big { font-size: 17px; padding: 6px 16px; }
.laugh:active { transform: scale(1.12); }
.pick-people { display: flex; flex-wrap: wrap; gap: 8px; }
.pp { display: grid; justify-items: center; gap: 4px; width: 68px; padding: 8px 2px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.pp span { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp.on { opacity: 1; border-color: var(--accent); color: var(--text); background: var(--hot-bg); }

/* ---------- daily moment ---------- */
.mo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.small-grid { grid-template-columns: repeat(3, 1fr); }
.small-grid .mo-card img { aspect-ratio: 1; }
.small-grid .mo-cap { padding: 6px 8px; font-size: 12.5px; }
.mo-wait { display: flex; flex-direction: column; aspect-ratio: 3/4; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 10px; font-size: 13px; }
.mo-prompt { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 26px; line-height: 1.1; margin: 0 0 12px; }
.mo-pick { display: grid; gap: 6px; justify-items: center; cursor: pointer; }

/* ---------- crew + profiles ---------- */
.crew-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .crew-grid { grid-template-columns: repeat(3, 1fr); } }
.member { position: relative; display: grid; justify-items: center; gap: 6px; padding: 18px 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: center; cursor: pointer; transition: transform .2s var(--ease); }
.member:active { transform: scale(.97); }
.member b { font-size: 16px; }
.member .on-dot.big { top: 66px; right: calc(50% - 32px); }
.pf-head { text-align: center; position: relative; }
.pf-head > .av { margin: 4px auto 10px; display: grid; border: 3px solid var(--accent); }
.pf-head .on-dot.big { top: 92px; right: calc(50% - 46px); }
.pf-head h2 { font-size: calc(var(--page-title) * .85); }
.pf-head p { margin: 4px 0; }
.pf-bio { white-space: pre-wrap; margin: 10px 0 !important; }
.pf-head .row { margin-top: 10px; }
.pf-list li { align-items: center; }
.pf-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface2); color: var(--c1); flex: none; }
.pf-photo { display: grid; justify-items: center; cursor: pointer; }
.pf-photo .av { border: 3px solid var(--accent); }
.kids { display: grid; gap: 10px; }
.kid { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line); }
.kid[role=button] { cursor: pointer; }
.kid-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.kid-top b { font-size: 17px; }
.kid-acts { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 4px; }
.kid-acts .chip { cursor: default; }
.rec-row { display: flex; gap: 10px; text-align: center; }
.rec-row > div { flex: 1; padding: 10px 4px; border-radius: var(--radius-sm); background: var(--surface2); display: grid; }
.rec-row b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; line-height: 1; color: var(--accent); }
.rec-row span { font-size: 12px; color: var(--muted); }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.themes .theme-tile { display: grid; gap: 4px; align-content: end; min-height: 92px; padding: 12px; border-radius: var(--radius-sm); border: 2px solid transparent; text-align: left; color: #fff; font: inherit; cursor: pointer; }
.themes .theme-tile.on { border-color: var(--accent); box-shadow: none; }
.themes .theme-tile span { opacity: .7; }
.t-varsity b { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 24px; color: #f5b82e; }
.t-booth b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; color: #ff8a3d; }
.t-graphite b { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px; color: #9aa8ff; }
.t-velvet b { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 24px; color: #ff2b4f; }

/* ---------- games ---------- */
.mlt-q { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 30px; line-height: 1.05; margin: 0 0 14px; text-wrap: balance; }
.mlt-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.mlt-pick button { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.mlt-pick button:active { transform: scale(.94); border-color: var(--accent); }
.mlt-pick span { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlt-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mlt-res li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); }
.mlt-res li.top { background: var(--hot-bg); }
.mlt-res li.top b { color: var(--accent); }
.mlt-bar { width: 32%; height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.mlt-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s var(--ease); }
.mlt-win { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 45%; }
.mlt-home { background: radial-gradient(110% 120% at 100% 0%, color-mix(in srgb, var(--c3) 16%, transparent), transparent 60%), var(--surface); }
.kq { margin-bottom: 16px; }
.kq b { display: block; margin-bottom: 6px; }
.kq .chip { font-size: 13.5px; padding: 7px 12px; }
.chip.right { border-color: #3ad07a; background: rgba(58, 208, 122, .2); }
.chip.wrong { border-color: var(--accent2); background: rgba(239, 90, 95, .2); text-decoration: line-through; }
.chip:disabled { cursor: default; }
.kq-score { text-align: center; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 30px; margin: 10px 0; }
.lb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lb-table th { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 6px 6px; }
.lb-table td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: center; }
.lb-table td:first-child { text-align: left; }
.lb-table tr.me td { background: var(--hot-bg); }
.lb-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.lb-rank { width: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.ld-score { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; }
.ld-score i { font-style: normal; color: var(--muted); margin: 0 4px; }

/* ---------- inbox ---------- */
.nt-list { list-style: none; margin: 0; padding: 0; }
.nt { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.nt:first-child { border-top: 0; padding-top: 2px; }
.nt-title { font-weight: 600; }
.nt.unread .nt-title { font-weight: 800; }
.nt-body { color: var(--muted); font-size: 14px; }
.nt-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* Seven tabs: a touch tighter on small phones */
@media (max-width: 380px) { .tabs button { font-size: 10px; } .tabs button .i { width: 21px; height: 21px; } }

/* ======================================================================
   The Good Times: from Jud's old site's business card. Black, white strips,
   chrome lettering with a hard drop shadow, photocopy grain, camera-flash yellow.
   ====================================================================== */
[data-theme="goodtimes"] {
  --bg: #16100b; --surface: #211811; --surface2: #2c2117; --line: #45352a;
  --text: #f4eadb; --muted: #bfab93; --accent: #ecdcc2; --accent2: #d9a95b; --on-accent: #1a120b;
  --hot: #e7bb6e; --hot-bg: rgba(217, 169, 91, .15); --sel: rgba(236, 220, 194, .25);
  --c1: #d9a95b; --c2: #ecdcc2; --c3: #9fb0be; --c4: #c9743f;
  --font-display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif; --display-weight: 900; --display-case: uppercase; --display-track: 0.01em;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-hand: var(--font-body); --hand-size: 1em;
  --radius: 6px; --radius-sm: 4px; --btn-radius: 4px;
  --page-title: 50px; --sec-size: 25px;
  --btn-bg: linear-gradient(#f6ecdb, #cdb48f); --btn-shadow: 0 3px 0 #0b0704, 0 6px 14px -6px rgba(0, 0, 0, .8);
  --nav-bg: rgba(22, 16, 11, .96); --top-bg: rgba(22, 16, 11, .92);
  color-scheme: dark;
}
/* Photocopy halftone, strongest at the top */
[data-theme="goodtimes"] body::before {
  background-image: radial-gradient(rgba(236, 210, 170, .08) 1px, transparent 1.3px), radial-gradient(70% 45% at 30% -10%, rgba(217, 169, 91, .12), transparent 70%);
  background-size: 5px 5px, 100% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 60%); mask-image: linear-gradient(to bottom, #000, transparent 60%);
}
/* Chrome letters with a hard black shadow, like THE-GOOD-TIMES on the card */
[data-theme="goodtimes"] h2, [data-theme="goodtimes"] .page-title, [data-theme="goodtimes"] .mlt-q, [data-theme="goodtimes"] .mo-prompt, [data-theme="goodtimes"] .kq-score {
  background: linear-gradient(180deg, #fff7ea 0%, #ead7b8 45%, #9a7650 52%, #e3cba6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 3px 0 #0b0704) drop-shadow(0 0 1px rgba(0, 0, 0, .8));
}
[data-theme="goodtimes"] .brand-name { font-size: 27px; transform: skewX(-8deg); display: inline-block; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff7ea 0%, #e6d1ae 48%, #8f6b45 54%, #e8d3b0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(2px 2px 0 #000); }
[data-theme="goodtimes"] .card > h3 { color: var(--text); }
[data-theme="goodtimes"] .card > h3 .i { color: var(--c1); }
[data-theme="goodtimes"] .btn:not(.ghost) { color: #1a120b; border: 1px solid #0b0704; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .03em; font-size: 17px; }
[data-theme="goodtimes"] .msg.mine .bubble { background: #e9d8bc; color: #1a120b; }
[data-theme="goodtimes"] .card { box-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
/* Hero: a white strip with the slogan, like the top of the card */
[data-theme="goodtimes"] .hero { background: radial-gradient(rgba(236, 210, 170, .1) 1px, transparent 1.4px) 0 0 / 5px 5px, linear-gradient(160deg, #4a3522, #16100b 80%); }
[data-theme="goodtimes"] .hero .pennant .art .a1, [data-theme="goodtimes"] .hero .pennant .art .a2 { stroke: #ecdcc2; }
[data-theme="goodtimes"] .hero-text h2 { font-size: calc(var(--page-title) * 1.12); transform: skewX(-8deg); transform-origin: left bottom; }
[data-theme="goodtimes"] .hero-text p { display: inline-block; margin-top: 10px; padding: 4px 10px; background: #efe2cb; color: #1a120b; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; transform: skewX(-8deg); box-shadow: 3px 3px 0 #0b0704; }
[data-theme="goodtimes"] .hang-date b, [data-theme="goodtimes"] .rec-row b { color: var(--c1); }
[data-theme="goodtimes"] .mem-kicker { color: var(--c1); }
[data-theme="goodtimes"] .msg-who { color: var(--c3); }
[data-theme="goodtimes"] .tabs button.active .i { color: var(--c1); }
[data-theme="goodtimes"] .tab-ind::before { background: var(--c1); }
[data-theme="goodtimes"] .live { border-color: rgba(217, 169, 91, .5); background: linear-gradient(160deg, rgba(217, 169, 91, .1), var(--surface) 70%); }
[data-theme="goodtimes"] .opt-bar i, [data-theme="goodtimes"] .mlt-bar i, [data-theme="goodtimes"] .bar > div { background: var(--c1); }
[data-theme="goodtimes"] .laugh.on, [data-theme="goodtimes"] .chip.on, [data-theme="goodtimes"] .pp.on { border-color: var(--c1); }
[data-theme="goodtimes"] .pf-head > .av, [data-theme="goodtimes"] .pf-photo .av { border-color: #ecdcc2; }
.t-goodtimes b { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 24px; display: inline-block; transform: skewX(-8deg);
  background: linear-gradient(180deg, #fff7ea, #9a7650 55%, #e8d3b0); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(2px 2px 0 #000); }
[data-theme="goodtimes"] .hero .pennant { opacity: .22; right: -10px; top: 18px; }
.seg button { white-space: nowrap; }

/* ---------- daily crossword ---------- */
#gSeg button { font-size: 13px; padding: 8px 2px; }
.cw-grid { --cell: min(38px, calc((min(100vw, 720px) - 40px) / var(--cols))); }
.cw-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cw-clock { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--text); padding: 6px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); min-width: 112px; text-align: center; }
.cw-clock.done { color: var(--on-accent); background: var(--c1); border-color: var(--c1); }
.cw-res { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.cw-rt { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; border-radius: 99px; background: var(--surface2); font-size: 14px; }
.cw-rt.me { box-shadow: inset 0 0 0 1.5px var(--c1); }
.cw-rt i { color: var(--muted); font-style: normal; }
.cw-grid { display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); grid-auto-rows: var(--cell); gap: 2px; justify-content: center; margin: 4px auto 10px; touch-action: manipulation; }
.cw-x { display: block; }
.cw-c { position: relative; padding: 0; border: 0; border-radius: 3px; background: #f3ead9; color: #1a120b; font-family: var(--font-body); font-weight: 800; font-size: calc(var(--cell) * .52); line-height: 1; cursor: pointer; display: grid; place-items: center; text-transform: uppercase; box-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
[data-theme="varsity"] .cw-c, [data-theme="graphite"] .cw-c { background: #eef1f6; color: #0e1522; }
.cw-c sup { position: absolute; top: 1px; left: 2px; font-size: calc(var(--cell) * .24); font-weight: 700; color: rgba(0, 0, 0, .6); line-height: 1; }
.cw-c.word { background: color-mix(in srgb, var(--c1) 35%, #f3ead9); }
.cw-c.sel { background: var(--c1); }
.cw-c.bad { color: #c62828; }
.cw-c.bad::after { content: ''; position: absolute; left: 15%; right: 15%; top: 50%; height: 2px; background: #c62828; transform: rotate(-20deg); }
.cw-c.rev::before { content: ''; position: absolute; top: 0; right: 0; border: 5px solid transparent; border-top-color: #c9743f; border-right-color: #c9743f; border-top-right-radius: 3px; }
.cw-c.solved { background: color-mix(in srgb, var(--c1) 22%, #f3ead9); }
.cw-clue { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; text-align: left; cursor: pointer; position: sticky; top: calc(var(--safe-t) + 58px); z-index: 2; }
.cw-clue b { flex: none; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; color: var(--c1); min-width: 34px; }
.cw-clue span { flex: 1; font-weight: 600; line-height: 1.3; }
.cw-by { font-style: normal; color: var(--c3); font-weight: 600; font-size: 13px; }
.cw-kb { margin-top: 10px; }
.cw-kb .kb-k { height: 50px; font-size: 17px; }
.cw-acts { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; margin-top: 10px; }
.cw-acts .btn { min-height: 42px; padding: 8px 6px; font-size: 13.5px; white-space: normal; line-height: 1.15; }
.cw-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cw-lists h4 { font-size: 18px; margin-bottom: 6px; color: var(--c1); }
.cw-lists ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cw-lists li { display: flex; gap: 6px; padding: 6px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.3; cursor: pointer; }
.cw-lists li b { flex: none; min-width: 18px; color: var(--muted); }
.cw-lists li.on { background: var(--hot-bg); }
.cw-lists li.filled span { color: var(--muted); }
@media (max-width: 420px) { .cw-lists { grid-template-columns: 1fr; } }
.cw-done { border-color: var(--c1); }
.cw-done-t { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 30px; color: var(--c1); }
.cw-home { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cw-home > .i { color: var(--c1); }
/* 9×9 NYT-style: one solid board, thin lines, black squares */
.cw-grid.nyt { --cell: min(44px, calc((min(100vw, 720px) - 36px) / var(--cols))); gap: 0; width: max-content; border: 2px solid #0b0704; background: #0b0704; border-radius: 3px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .8); }
.cw-grid.nyt .cw-c { border-radius: 0; box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .45); font-size: calc(var(--cell) * .56); }
.cw-grid.nyt .cw-x.blk { background: #0b0704; }
.cw-grid.nyt .cw-c sup { font-size: calc(var(--cell) * .26); }
/* While solving: the clue bar and keyboard sit at the bottom like the NYT app, the big page title steps aside */
body.cw-mode .page-head { display: none; }
body.cw-mode #gSeg { margin-top: 6px; }
body.cw-mode main { padding-bottom: 250px; }
body.cw-mode #cwDock { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 5; padding: 6px 8px 8px; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
body.cw-mode #cwDock .cw-clue { position: static; min-height: 48px; padding: 8px 10px; }
body.cw-mode .cw-kb { margin-top: 6px; gap: 5px; }
body.cw-mode .cw-kb .kb-k { height: 42px; max-width: 40px; }
body.cw-mode .cw-acts { margin-top: 6px; }
body.cw-mode .cw-acts .btn { min-height: 34px; padding: 4px 6px; font-size: 12.5px; }
@media (min-width: 720px) { body.cw-mode #cwDock { left: 50%; right: auto; width: 720px; transform: translateX(-50%); } }
.cw-back { display: none; }
body.cw-mode .cw-back { display: inline-flex; margin: 0 0 2px; padding: 2px 0; }
body.cw-mode #gSeg { display: none; }
body.cw-mode .cw-top { margin-bottom: 6px; }
body.cw-mode .cw-top .muted.small { display: none; }
body.cw-mode .cw-clock { font-size: 28px; padding: 4px 12px; min-width: 88px; }
body.cw-mode .cw-res { margin-bottom: 6px; }
body.cw-mode .cw-grid.nyt { --cell: min(44px, calc((min(100vw, 720px) - 36px) / var(--cols)), calc((100dvh - 470px - var(--safe-t) - var(--safe-b)) / var(--rows))); margin-top: 2px; }

/* ---------- groups ---------- */
.brand-sw { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; color: var(--muted); }
.brand-sw .badge { top: -6px; right: -12px; }
body.titled .brand-sw { opacity: 0; }
.grp-list li { align-items: center; }
.grp-list li.on .title { color: var(--accent); }
.grp-dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none; font-family: var(--font-display); font-weight: 900; font-size: 20px; color: #fff; background: var(--surface2); border: 1px solid var(--line); }
.grp-dot.t-goodtimes { background: #2c2117; color: #ecdcc2; } .grp-dot.t-varsity { background: #151f31; color: #f5b82e; } .grp-dot.t-booth { background: #221c52; color: #ff8a3d; }
.grp-dot.t-graphite { background: #18191b; color: #9aa8ff; } .grp-dot.t-velvet { background: #1c0a0f; color: #ff2b4f; }
.nt-grp { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 99px; background: var(--surface2); color: var(--text); font-weight: 600; }
.cw-card { border-color: color-mix(in srgb, var(--c1) 45%, var(--line)); background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 12%, var(--surface)), var(--surface) 70%); }
.cw-card .cw-home b { font-size: 17px; }

/* Crossword with the phone's own keyboard */
.cw-in { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; font-size: 16px; pointer-events: none; caret-color: transparent; }
.cw-cluebar { display: flex; gap: 6px; align-items: stretch; }
.cw-cluebar .cw-clue { flex: 1; min-width: 0; }
.cw-nav { flex: none; width: 46px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--text); cursor: pointer; }
.cw-nav:active { background: var(--hot-bg); border-color: var(--c1); }
.cw-type { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 6px; padding: 8px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.cw-type .i { color: var(--c1); }
body.cw-mode main { padding-bottom: 170px; }
body.cw-mode .cw-grid.nyt { --cell: min(44px, calc((min(100vw, 720px) - 36px) / var(--cols)), calc((100dvh - 330px - var(--safe-t) - var(--safe-b)) / var(--rows))); }
/* Keyboard up: no tab bar, the clue bar sits on the keyboard, the grid fills what's left */
body.cw-mode.kb-open .tabs { display: none; }
body.cw-mode.kb-open #cwDock { bottom: var(--kb, 0px); padding-bottom: 6px; }
body.cw-mode.kb-open .cw-type, body.cw-mode.kb-open .cw-res, body.cw-mode.kb-open .cw-back, body.cw-mode.kb-open .cw-top .kicker { display: none; }
body.cw-mode.kb-open .cw-top { justify-content: flex-end; margin: -2px 0 4px; }
body.cw-mode.kb-open .cw-clock { font-size: 20px; padding: 2px 10px; min-width: 70px; }
body.cw-mode.kb-open main { padding-top: 2px; padding-bottom: 120px; }
body.cw-mode.kb-open .cw-grid.nyt { --cell: min(44px, calc((min(100vw, 720px) - 36px) / var(--cols)), calc((var(--vvh, 500px) - 205px) / var(--rows))); }
body.cw-mode.kb-open .cw-acts .btn { min-height: 30px; }

/* ---------- memory prompt of the day ---------- */
.prompt-card { border-color: color-mix(in srgb, var(--c2) 40%, var(--line)); background: linear-gradient(155deg, color-mix(in srgb, var(--c2) 10%, var(--surface)), var(--surface) 70%); }
.prompt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prompt-turn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.prompt-turn.me { color: var(--c1); }
.prompt-text { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: 27px; line-height: 1.08; margin: 10px 0 4px; text-wrap: balance; }
.prompt-answers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.prompt-answers .chip { gap: 5px; }
.mem-prompt { font-size: 13px; font-weight: 700; color: var(--c1); margin-bottom: 6px; }
.mem-prompt.big { font-size: 16px; margin: -4px 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--hot-bg); }

/* ---------- chat: replies, GIFs, hearts, mentions ---------- */
.reply-q { display: grid; gap: 1px; max-width: 260px; margin: 2px 0 2px; padding: 6px 10px; border: 0; border-left: 3px solid var(--c1); border-radius: 8px; background: var(--surface2); color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; opacity: .85; }
.reply-q b { font-size: 12px; color: var(--c1); }
.reply-q span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.msg.mine .reply-q { align-self: flex-end; }
.msg img.gif { max-width: 220px; max-height: 240px; border-radius: 14px; cursor: default; }
.msg .bubble, .msg img, .msg .voice { position: relative; }
.heart-pop { position: absolute; right: -6px; bottom: -6px; font-size: 26px; font-style: normal; pointer-events: none; animation: heartpop .7s var(--ease) forwards; }
@keyframes heartpop { 0% { transform: scale(.2); opacity: 0; } 30% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1) translateY(-14px); opacity: 0; } }
.msg.flash .bubble, .msg.flash img { box-shadow: 0 0 0 3px var(--c1); transition: box-shadow .3s; }
.at { font-weight: 700; color: var(--c3); }
.msg.mine .bubble .at { color: inherit; text-decoration: underline; }
.at.me { background: var(--hot-bg); color: var(--c1); border-radius: 4px; padding: 0 2px; }
.reply-bar { z-index: 5; }
.at-box { position: fixed; left: 10px; right: 10px; bottom: calc(var(--nav-h) + var(--safe-b) + 66px); z-index: 7; display: flex; gap: 6px; overflow-x: auto; padding: 6px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .8); }
.at-box button { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 12px 4px 4px; border: 0; border-radius: 99px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gif-btn { font-size: 12px; font-weight: 800; letter-spacing: .02em; border: 1.5px solid currentColor !important; border-radius: 6px !important; width: 36px !important; height: 26px !important; padding: 0 !important; }
.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-height: 50vh; overflow-y: auto; margin-top: 10px; }
.gif-pick { padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--surface2); aspect-ratio: 1; cursor: pointer; }
.gif-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.composer { gap: 2px; padding-left: 6px; }
.composer .attach { width: 36px; height: 40px; }
.composer .attach .i { width: 21px; height: 21px; }
.composer input[type=text] { margin-left: 4px; min-width: 0; }
