/* MoeChat UI: content-first dark. Achromatic surfaces, one rose accent, the artwork does the talking. */
:root {
  --bg: #0c0c0e;
  --bg-2: #111114;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --surface-3: #26262c;
  --card: var(--surface);
  --card-2: var(--surface-2);
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f1f1f3;
  --text-2: #a6a6b0;
  --text-3: #6f6f7a;
  --accent: #ec5f79;
  --accent-hover: #f17a90;
  --accent-ink: #1a0b10;
  --accent-soft: rgba(236, 95, 121, .12);
  --accent-line: rgba(236, 95, 121, .35);
  --accent-2: var(--accent);
  --accent-grad: var(--accent);
  --good: #4ccf95;
  --warn: #e9b35a;
  --bad: #ef6a6a;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --topbar-h: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Wanted Sans Variable", "Wanted Sans", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 15px; line-height: 1.6; letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
  min-height: 100vh; word-break: keep-all; overflow-wrap: anywhere;
}
body::before { /* film grain, fixed and inert */
  content: ''; position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.ph, .ph-fill { line-height: 1; vertical-align: -.125em; }
::selection { background: rgba(236, 95, 121, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a31; border-radius: 10px; border: 2px solid var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tnum { font-variant-numeric: tabular-nums; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--topbar-h); background: rgba(12, 12, 14, .82); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1280px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 24px; }
.logo { display: flex; align-items: baseline; font-size: 21px; font-weight: 800; letter-spacing: -.045em; }
.logo i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 2px; font-style: normal; }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; padding: 7px 12px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.search { position: relative; flex: 1; max-width: 300px; margin-left: auto; }
.search::before { content: "\e30c"; font-family: "Phosphor"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 16px; pointer-events: none; }
.search input { width: 100%; height: 38px; border-radius: 999px; background: var(--surface); border: 1px solid transparent; padding: 0 16px 0 38px; outline: none; transition: .15s; }
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: var(--line-2); background: var(--surface-2); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.jelly { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; cursor: pointer; transition: .15s; }
.jelly .ph-fill { color: var(--accent); font-size: 15px; }
.jelly:hover { border-color: var(--line-2); }
.avatar-btn { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); cursor: pointer; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; padding: 0; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.bottombar { display: none; }

.app { max-width: 1280px; margin: 0 auto; padding: 28px 24px 80px; min-height: calc(100vh - var(--topbar-h)); }
.app.full { max-width: none; padding: 0; height: calc(100dvh - var(--topbar-h)); min-height: 0; overflow: hidden; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s, transform .15s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary, .btn.grad { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 700; }
.btn.primary:hover, .btn.grad:hover { background: var(--accent-hover); }
.btn.light { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 700; }
.btn.light:hover { background: #fff; }
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 16px; }
.btn.block { width: 100%; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 17px; transition: .15s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.field .hint, .hint { font-size: 12.5px; color: var(--text-3); }
.input, .textarea, .select { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 13px; outline: none; transition: .15s; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }

/* Common */
.section { margin: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.035em; }
.section-head .sub { margin: 4px 0 0; color: var(--text-3); font-size: 13.5px; }
.section-head .more { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13.5px; font-weight: 600; transition: color .15s; }
.section-head .more:hover { color: var(--text); }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -.04em; margin: 0 0 6px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip.accent, .chip.pink { background: var(--accent-soft); color: #f6a3b3; }
.chip.btn-chip { cursor: pointer; border: 1px solid var(--line); background: transparent; transition: .15s; height: 34px; padding: 0 14px; font-size: 13.5px; }
.chip.btn-chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.btn-chip.active { background: var(--text); color: var(--bg); border-color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); }
.pill b { font-weight: 700; color: var(--text); }
.stat { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hscroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.empty { text-align: center; padding: 64px 20px; color: var(--text-3); }
.empty .big { font-size: 40px; margin-bottom: 10px; color: var(--text-3); }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.spinner { width: 26px; height: 26px; border: 2px solid var(--surface-3); border-top-color: var(--text); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button { background: none; border: none; padding: 11px 14px; font-weight: 650; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--text); border-bottom-color: var(--text); }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.segmented button { border: none; background: none; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--text-2); cursor: pointer; transition: .15s; }
.segmented button:hover { color: var(--text); }
.segmented button.active { background: var(--surface-3); color: var(--text); }

/* Scroll reveal (only when JS marks it, so no-JS content stays visible) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Spotlight hero */
.spot { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; min-height: 460px; padding: 8px 0 28px; isolation: isolate; }
.spot-wash { position: absolute; inset: -28px -24px 0; z-index: -1; overflow: hidden; pointer-events: none; }
.spot-wash img { position: absolute; right: -5%; top: -20%; width: 70%; height: 140%; object-fit: cover; filter: blur(80px) saturate(1.1); opacity: .28; transition: opacity .8s var(--ease); }
.spot-wash::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, transparent 80%), linear-gradient(0deg, var(--bg), transparent 40%); }
.spot-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.spot-world { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13.5px; font-weight: 650; color: var(--text-2); transition: color .15s; }
.spot-world:hover { color: var(--text); }
.spot-world .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wc, var(--accent)); }
.spot-name { margin: 0; font-size: clamp(44px, 6.4vw, 84px); line-height: .98; font-weight: 800; letter-spacing: -.06em; }
.spot-title { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.025em; color: var(--text); max-width: 34ch; }
.spot-tagline { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.65; max-width: 46ch; }
.spot-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-3); font-size: 13px; }
.spot-meta span { display: inline-flex; align-items: center; gap: 5px; }
.spot-cta { display: flex; gap: 8px; margin-top: 8px; }
.spot-anim > * { animation: rise .6s var(--ease) both; }
.spot-anim > *:nth-child(2) { animation-delay: .04s; } .spot-anim > *:nth-child(3) { animation-delay: .08s; }
.spot-anim > *:nth-child(4) { animation-delay: .12s; } .spot-anim > *:nth-child(5) { animation-delay: .16s; } .spot-anim > *:nth-child(6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.spot-art { position: relative; justify-self: end; width: min(100%, 440px); }
.spot-frame { position: relative; display: block; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.spot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .16s var(--ease), transform 1.2s var(--ease); }
.spot-frame:hover img { transform: scale(1.03); }
.spot-frame img.fade { opacity: 0; }
.spot-faces { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(12, 12, 14, .6); backdrop-filter: blur(12px); }
.spot-faces button { width: 40px; height: 40px; padding: 0; border-radius: 9px; overflow: hidden; border: 1.5px solid transparent; cursor: pointer; background: var(--surface-2); opacity: .7; transition: .15s; }
.spot-faces button:hover, .spot-faces button.on { opacity: 1; border-color: var(--text); }
.spot-faces img { width: 100%; height: 100%; object-fit: cover; }
.spot-picker { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.spot-pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 10px 14px; border: none; background: none; text-align: left; cursor: pointer; color: var(--text-3); min-width: 0; transition: color .2s; }
.spot-pick img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(.6); opacity: .7; transition: .2s; }
.spot-pick span { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-pick:hover, .spot-pick.on { color: var(--text); }
.spot-pick:hover img, .spot-pick.on img { filter: none; opacity: 1; }
.spot-pick::before, .spot-progress { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; }
.spot-pick::before { background: var(--line-2); }
.spot-progress { background: var(--text); transform-origin: left; transform: scaleX(0); }
.spot-pick.on .spot-progress { animation: progress var(--dur, 7s) linear forwards; }
.spot.paused .spot-pick.on .spot-progress { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* Worlds bento */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(200px, auto)); gap: 12px; }
.bento > :first-child { grid-row: span 2; }
.wtile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px; border-radius: 18px; overflow: hidden; background: var(--surface); isolation: isolate; min-height: 200px; }
.wtile .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.wtile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,12,14,.05) 0%, rgba(12,12,14,.55) 50%, rgba(12,12,14,.94) 100%); }
.wtile:hover .bg { transform: scale(1.04); }
.wtile .count { font-size: 12.5px; font-weight: 650; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.wtile h3 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.035em; }
.bento > :first-child h3 { font-size: 30px; }
.wtile p { margin: 0; max-width: 52ch; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wtile .faces { position: absolute; right: 18px; top: 18px; display: flex; }
.wtile .faces img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; margin-left: -8px; border: 2px solid rgba(12,12,14,.9); }
.wtile .go { position: absolute; right: 20px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); transition: .2s var(--ease); }
.wtile:hover .go { background: var(--text); color: var(--bg); }
.wtile p { padding-right: 52px; }

/* Ranking chart */
.chart { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 40px; }
.chart-row { display: grid; grid-template-columns: 28px 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 10px; margin: 0 -10px; border-radius: 12px; transition: background .15s; }
.chart-row:hover { background: var(--surface); }
.chart-row .no { font-size: 17px; font-weight: 750; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.chart-row:nth-child(-n+3) .no { color: var(--text); }
.chart-row img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.chart-row .t { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-row .s { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-row .n { display: inline-flex; font-size: 16px; color: var(--text-3); opacity: 0; transform: translate(-4px, 4px); transition: .2s var(--ease); }
.chart-row:hover .n { opacity: 1; transform: none; color: var(--text); }

/* Character cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 16px; }
.ccard { display: flex; flex-direction: column; gap: 4px; cursor: pointer; min-width: 0; }
.ccard .thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 8px; }
.ccard .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .35s var(--ease); }
.ccard .thumb img.alt { opacity: 0; }
.ccard:hover .thumb img { transform: scale(1.04); }
.ccard:hover .thumb img.alt { opacity: 1; }
.ccard .thumb .rank { position: absolute; left: 10px; bottom: 6px; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.55); font-variant-numeric: tabular-nums; }
.ccard .world { font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard .title { font-weight: 650; font-size: 15px; line-height: 1.4; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .tagline { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.ccard .meta { display: flex; align-items: center; gap: 10px; margin-top: 2px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ccard .meta span { display: inline-flex; align-items: center; gap: 3px; }
.row-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.row-cards::-webkit-scrollbar { display: none; }
.row-cards > * { scroll-snap-align: start; }

/* World cards (worlds page) */
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wcard { position: relative; border-radius: 18px; overflow: hidden; padding: 22px; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: var(--surface); cursor: pointer; isolation: isolate; }
.wcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(12,12,14,.92)); }
.wcard .avatars { position: absolute; right: 18px; top: 18px; display: flex; }
.wcard .avatars img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(12,12,14,.9); margin-left: -8px; object-fit: cover; }
.wcard h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.wcard p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wcard .chip { background: rgba(0,0,0,.4); backdrop-filter: blur(6px); color: var(--text); }
.wcover { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .75; transition: transform 1s var(--ease); }
.wcard:hover .wcover { transform: scale(1.04); }

/* Character detail */
.detail { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.detail-img { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { display: flex; flex-direction: column; gap: 12px; min-height: 340px; }
.detail-info h1 { margin: 0; font-size: 30px; line-height: 1.25; letter-spacing: -.045em; }
.creator { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.creator .av { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--text); overflow: hidden; }
.creator .av img { width: 100%; height: 100%; object-fit: cover; }
.detail-actions { margin-top: auto; display: flex; gap: 10px; }
.detail-actions .btn.grad { flex: 1; }
.desc-box { margin-top: 40px; }
.desc-box h2 { font-size: 19px; margin: 0 0 12px; letter-spacing: -.03em; }
.desc-box .body { white-space: pre-wrap; color: #d6d6dc; line-height: 1.8; max-width: 72ch; }

/* Chat */
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; height: 100%; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); position: relative; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(12,12,14,.7); backdrop-filter: blur(12px); }
.chat-head .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-head .name { font-weight: 700; font-size: 15.5px; }
.chat-head .sub { font-size: 12.5px; color: var(--text-3); }
.chat-scroll { flex: 1; overflow-y: auto; padding: 28px 0 30px; scroll-behavior: smooth; }
.chat-inner { max-width: 760px; margin: 0 auto; padding: 0 22px; display: flex; flex-direction: column; gap: 24px; }
.msg { display: flex; gap: 12px; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.msg .av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.msg .content { min-width: 0; flex: 1; }
.msg .who { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.msg .bubble { font-size: 15.5px; line-height: 1.85; color: #e6e6ea; word-break: keep-all; overflow-wrap: anywhere; }
.msg .bubble p { margin: 0 0 .75em; }
.msg .bubble p:last-child { margin-bottom: 0; }
.msg .bubble em.act { font-style: normal; color: #93939d; }
.msg .bubble .dlg { color: #fff; font-weight: 500; }
.msg .bubble blockquote { margin: .6em 0; padding: 8px 12px; border-left: 2px solid var(--line-2); background: var(--surface); border-radius: 0 8px 8px 0; color: var(--text-2); font-size: 14px; }
.msg.user { flex-direction: row-reverse; }
.msg.user .content { display: flex; flex-direction: column; align-items: flex-end; }
.msg.user .bubble { background: var(--surface-2); color: var(--text); padding: 11px 16px; border-radius: 18px 18px 4px 18px; max-width: 85%; }
.msg.user .bubble em.act { color: var(--text-2); }
.msg.user .bubble .dlg { color: #fff; }
.msg-tools { display: flex; gap: 2px; margin-top: 6px; opacity: 0; transition: .15s; }
.msg:hover .msg-tools, .msg.last .msg-tools { opacity: 1; }
.msg-tools button { background: none; border: none; color: var(--text-3); font-size: 12.5px; padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.msg-tools button:hover { background: var(--surface-2); color: var(--text); }
.status-card { margin-top: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; font-size: 13px; }
.status-card .k { color: var(--text-3); font-size: 11.5px; font-weight: 650; }
.status-card .v { color: var(--text); font-weight: 600; }
.status-card .full { grid-column: 1 / -1; }
.gauge { height: 5px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.gauge > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s var(--ease); }
.choices { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.choices button { text-align: left; padding: 11px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14.5px; transition: .15s; display: flex; gap: 10px; align-items: center; }
.choices button::before { content: "\e13a"; font-family: "Phosphor"; color: var(--text-3); transition: .15s; }
.choices button:hover { background: var(--surface); border-color: var(--accent-line); }
.choices button:hover::before { color: var(--accent); transform: translateX(2px); }
.typing { display: inline-flex; gap: 4px; padding: 8px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.cursor::after { content: '▍'; animation: blink 1s infinite; color: var(--accent); margin-left: 2px; }
.composer { padding: 12px 18px 18px; border-top: 1px solid var(--line); background: var(--bg); }
.composer-inner { max-width: 760px; margin: 0 auto; }
.composer-box { display: flex; gap: 10px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 7px 7px 7px 18px; transition: .15s; }
.composer-box:focus-within { border-color: rgba(255,255,255,.22); }
.composer-box textarea { flex: 1; background: none; border: none; outline: none; resize: none; max-height: 180px; min-height: 26px; padding: 8px 0; line-height: 1.5; }
.composer-box .send { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--accent); color: var(--accent-ink); font-size: 18px; cursor: pointer; flex: none; transition: .15s; }
.composer-box .send:hover { background: var(--accent-hover); }
.composer-box .send:disabled { opacity: .35; cursor: not-allowed; }
.composer-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); margin-top: 8px; padding: 0 6px; gap: 10px; }
.composer-meta .tip b { color: var(--text-2); }
.model-select { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; outline: none; }
.chat-side { overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; background: var(--bg-2); }
.chat-side > * { flex-shrink: 0; }
.chat-side .portrait { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.chat-side .portrait img { width: 100%; height: 100%; object-fit: cover; animation: fade .35s ease; }
.side-block { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.side-block h4 { margin: 0 0 10px; font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; }
.affection-big { font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }

/* Chat list */
.chat-list { display: flex; flex-direction: column; gap: 2px; }
.chat-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.chat-item:hover { background: var(--surface); }
.chat-item img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; }
.chat-item .t { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.chat-item .l { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Studio */
.studio { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.studio .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 16px; }
.studio .panel h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.02em; }
.studio .panel > .hint { margin: 0 0 18px; }
.studio .sticky { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
.img-upload { position: relative; width: 150px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1.5px dashed var(--line-2); display: grid; place-items: center; cursor: pointer; background: var(--bg-2); color: var(--text-3); font-size: 13px; text-align: center; }
.img-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-upload input { display: none; }
.lore-item, .sf-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--bg-2); }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 9px; }
.tag-input input { flex: 1; min-width: 100px; background: none; border: none; outline: none; padding: 3px; }
.tag-input .chip button { background: none; border: none; color: inherit; cursor: pointer; padding: 0 0 0 3px; opacity: .6; }
.counter { font-size: 11.5px; color: var(--text-3); text-align: right; margin-top: -2px; }

/* Image pack */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 8px; }
.pack-slot { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.pack-img { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; }
.pack-img img { width: 100%; height: 100%; object-fit: cover; }
.pack-label { font-weight: 700; font-size: 13px; }
.pack-slot .row { flex-wrap: wrap; }
.pack-slot .btn.xs { padding: 0 7px; font-size: 12px; }
.emo-inline { display: none; width: 150px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; margin: 4px 0 10px; animation: fadeUp .3s ease; }
.emo-inline img { width: 100%; height: 100%; object-fit: cover; }

/* Shop */
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pkg { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; transition: border-color .2s; }
.pkg:hover { border-color: var(--line-2); }
.pkg .jelly-ico { font-size: 30px; color: var(--accent); }
.pkg .amount { font-size: 28px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pkg .bonus { color: var(--accent); font-weight: 650; font-size: 13.5px; }
.pkg .badge { position: absolute; top: 14px; right: 14px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--text); color: var(--bg); }
.pkg .btn { align-self: stretch; margin-top: 8px; }
.checkin { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; }
.checkin .ico { font-size: 32px; color: var(--accent); }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.66); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); animation: pop .22s var(--ease); }
.modal.wide { max-width: 640px; }
@keyframes pop { from { transform: translateY(6px) scale(.98); opacity: 0; } }
.modal h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.035em; }
.modal-close { float: right; background: none; border: none; color: var(--text-3); font-size: 22px; cursor: pointer; line-height: 1; }
#toast-root { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--surface-3); border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: pop .2s; pointer-events: auto; }
.toast.error { border-color: rgba(239,106,106,.45); color: #ffc2c2; }
.toast.success { border-color: rgba(76,207,149,.4); }

/* Tables (admin/me) */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { color: var(--text-3); font-weight: 650; font-size: 12.5px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stats .card { padding: 16px 18px; }
.stats .n { font-size: 26px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plus { color: var(--good); } .minus { color: var(--bad); }

/* Chat extras */
.swipe { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; font-size: 12.5px; color: var(--text-2); }
.swipe button:disabled { opacity: .3; cursor: default; }
.composer-box .send.stop { background: var(--surface-3); color: var(--text); font-size: 15px; }
.scene-img { display: block; margin-top: 12px; width: 100%; max-width: 560px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: none; padding: 0; background: var(--surface); cursor: zoom-in; }
.scene-img img { width: 100%; height: 100%; object-fit: cover; }
.scene-img.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: default; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 20px; cursor: zoom-out; animation: fade .15s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: none; color: #fff; font-size: 34px; cursor: pointer; }
.stage-up { text-align: center; }
.stage-up .big { font-size: 48px; animation: pop .5s var(--ease); }
.stage-up img { width: 160px; height: 160px; object-fit: cover; border-radius: 18px; margin: 14px auto 0; }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Streak */
.stamps { display: flex; gap: 6px; margin-top: 10px; }
.stamps span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 750; background: var(--surface-2); border: 1px dashed var(--line-2); color: var(--text-3); font-variant-numeric: tabular-nums; }
.stamps span.on { background: var(--accent); border: none; color: var(--accent-ink); }
.stamps span.gift { border-color: var(--accent-line); }

/* Album */
.album-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.album-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.album-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.album-grid .cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: none; cursor: zoom-in; padding: 0; }
.album-grid .cell img { width: 100%; height: 100%; object-fit: cover; }
.album-grid .cell.locked { cursor: default; display: grid; place-items: center; background: var(--bg-2); border: 1px dashed var(--line-2); color: var(--text-3); font-size: 20px; }
.album-grid .cell .lbl { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; font-weight: 650; padding: 3px 6px; background: linear-gradient(transparent, rgba(0,0,0,.7)); text-align: left; color: #fff; }
.album-grid.scenes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.album-grid.scenes .cell { aspect-ratio: 4 / 3; }
.progress-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }

/* Footer & docs */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
body.in-chat .footer { display: none; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 28px 24px 90px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.footer-inner b { color: var(--text-2); }
.footer-links { display: flex; gap: 18px; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.doc { max-width: 760px; line-height: 1.8; color: #d6d6dc; }
.doc h2 { margin-top: 30px; font-size: 18px; letter-spacing: -.02em; }
.doc .draft { border: 1px solid rgba(233,179,90,.35); background: rgba(233,179,90,.07); padding: 12px 16px; border-radius: 12px; font-size: 13.5px; }

/* Responsive */
@media (max-width: 1024px) {
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-side { display: none; }
  .emo-inline { display: block; }
  .studio { grid-template-columns: 1fr; }
  .studio .sticky { position: static; }
  .spot { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 28px; }
  .chart { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
@media (max-width: 760px) {
  :root { --topbar-h: 54px; }
  .nav, .search { display: none; }
  .topbar-inner { padding: 0 16px; }
  .topbar-right { margin-left: auto; }
  .app { padding: 16px 16px 96px; }
  .section { margin: 44px 0; }
  .section-head h2 { font-size: 20px; }
  .bottombar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: rgba(12,12,14,.92); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottombar a { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 10.5px; color: var(--text-3); gap: 3px; font-weight: 600; padding-top: 2px; }
  .bottombar a i { font-size: 22px; }
  .bottombar a .ph-fill { display: none; }
  .bottombar a.active { color: var(--text); }
  .bottombar a.active .ph { display: none; }
  .bottombar a.active .ph-fill { display: inline-block; }
  body.in-chat .bottombar { display: none; }
  .composer-meta .tip { display: none; }
  .composer { padding: 10px 12px 12px; }
  .spot { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding-top: 0; }
  .spot-art { order: -1; justify-self: stretch; width: 100%; }
  .spot-frame { aspect-ratio: 4 / 3.4; border-radius: 18px; }
  .spot-wash { inset: -16px -16px 0; }
  .spot-name { font-size: 44px; }
  .spot-title { font-size: 17px; }
  .spot-tagline { font-size: 14.5px; }
  .spot-cta .btn { flex: 1; }
  .spot-picker { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; margin: 0 -16px; padding: 0 12px; }
  .spot-picker::-webkit-scrollbar { display: none; }
  .spot-pick { flex: none; }
  .spot-pick span { display: none; }
  .spot-pick.on span { display: inline; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .bento > :first-child { grid-row: auto; min-height: 280px; }
  .bento > :first-child h3 { font-size: 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .row-cards { grid-auto-columns: 150px; margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; }
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .detail-img { max-width: 360px; margin: 0 auto; width: 100%; }
  .detail-info { min-height: 0; }
  .detail-actions { position: sticky; bottom: 78px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .chat-inner { padding: 0 14px; }
  .msg .av { width: 32px; height: 32px; }
  .page-title { font-size: 24px; }
  .modal { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .spot-pick.on .spot-progress { transform: scaleX(1); }
}
.studio-ico { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 14px; background: var(--surface-2); font-size: 26px; color: var(--text); }
.stage-up .big { color: var(--accent); }
.chip .ph, .chip .ph-fill, .btn .ph, .btn .ph-fill { font-size: 1.05em; }
.side-block .status-card { border: none; background: none; padding: 0; margin-top: 0; }

/* Voice lines: speech bubble over the portrait */
.detail-img img { transition: opacity .16s var(--ease); }
.detail-img img.fade { opacity: 0; }
.detail-img.talkable { cursor: pointer; }
.detail-img.talkable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.line-bubble { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(12, 12, 14, .72); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.line-bubble p { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.6; color: var(--text); word-break: keep-all; }
.line-bubble.show { animation: bubbleIn .45s var(--ease) both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.detail-img.speaking .line-bubble { border-color: var(--accent-line); }
.sound-btn { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .1); color: var(--text); cursor: pointer; font-size: 15px; transition: background .15s; }
.sound-btn:hover { background: rgba(255, 255, 255, .18); }
.sound-btn[aria-pressed="false"] { color: var(--text-3); }

/* Start-scenario picker */
.openings { display: flex; flex-direction: column; gap: 8px; }
.opening { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.opening:hover { background: var(--surface-2); border-color: var(--accent-line); }
.opening:disabled { opacity: .5; cursor: wait; }
.opening .no { font-size: 13px; font-weight: 750; color: var(--text-3); font-variant-numeric: tabular-nums; }
.opening b { display: block; font-size: 15px; letter-spacing: -.02em; }
.opening .pv { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.opening > .ph { color: var(--text-3); transition: transform .2s var(--ease), color .2s; }
.opening:hover > .ph { color: var(--accent); transform: translateX(3px); }

/* In-chat listen button */
.msg-tools button.on { color: var(--accent); }
