:root {
  --bg: #f2f5fd;
  --bg-2: #e9eefc;
  --ink: #1b2140;
  --ink-2: #3a4266;
  --muted: #737b9c;
  --card: rgba(255, 255, 255, 0.66);
  --card-solid: #ffffff;
  --line: rgba(40, 60, 130, 0.10);
  --him: #7a68f0;
  --him-soft: rgba(122, 104, 240, 0.14);
  --her: #2fb1e6;
  --her-soft: rgba(47, 177, 230, 0.15);
  --love: #ff7aa8;
  --love-soft: rgba(255, 122, 168, 0.14);
  --glow: rgba(120, 170, 255, 0.35);
  --shadow: 0 10px 40px -18px rgba(40, 60, 130, 0.35);
  --heat-0: rgba(40, 60, 130, 0.06);
  --bubble-me: linear-gradient(135deg, #8d7cf5, #6f8cf5);
  --bubble-her: #ffffff;
  --radius: 22px;
  /* Noto Color Emoji — чтобы новые эмодзи (🫧 🩵) рисовались даже на Windows 10 */
  --font-display: 'Unbounded', 'Noto Color Emoji', system-ui, sans-serif;
  --font-body: 'Manrope', 'Noto Color Emoji', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Noto Color Emoji', cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f24; --bg-2: #0f1632; --ink: #eef1ff; --ink-2: #c9cff0; --muted: #959ec4;
    --card: rgba(255, 255, 255, 0.055); --card-solid: #151c3c; --line: rgba(200, 210, 255, 0.10);
    --him: #a497ff; --him-soft: rgba(164, 151, 255, 0.16); --her: #66d0ff; --her-soft: rgba(102, 208, 255, 0.15);
    --love: #ff8fb8; --love-soft: rgba(255, 143, 184, 0.14); --glow: rgba(110, 160, 255, 0.25);
    --shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.7); --heat-0: rgba(200, 210, 255, 0.06);
    --bubble-me: linear-gradient(135deg, #6c5ce7, #4f6fe0); --bubble-her: #1c2550;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f24; --bg-2: #0f1632; --ink: #eef1ff; --ink-2: #c9cff0; --muted: #959ec4;
  --card: rgba(255, 255, 255, 0.055); --card-solid: #151c3c; --line: rgba(200, 210, 255, 0.10);
  --him: #a497ff; --him-soft: rgba(164, 151, 255, 0.16); --her: #66d0ff; --her-soft: rgba(102, 208, 255, 0.15);
  --love: #ff8fb8; --love-soft: rgba(255, 143, 184, 0.14); --glow: rgba(110, 160, 255, 0.25);
  --shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.7); --heat-0: rgba(200, 210, 255, 0.06);
  --bubble-me: linear-gradient(135deg, #6c5ce7, #4f6fe0); --bubble-her: #1c2550;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -10%, var(--her-soft), transparent 60%),
    radial-gradient(1000px 700px at 100% 10%, var(--him-soft), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, var(--love-soft), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }

#bubbles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .topnav, .footer { position: relative; z-index: 1; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--bg); transition: opacity .6s; color: var(--muted); }
.loader.done { opacity: 0; pointer-events: none; }
.loader-bubble { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--her) 45%, var(--him)); box-shadow: 0 0 40px var(--glow); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); } }

/* ---------- lock ---------- */
.lock { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.lock[hidden] { display: none; }
.lock-card { width: min(360px, 100%); display: grid; justify-items: center; gap: 14px; text-align: center; padding: 34px 26px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lock-card h2 { font-size: 28px; }
.lock-hint { margin: 0; color: var(--muted); font-size: 14px; }
.lock-card input { width: 100%; text-align: center; font-size: 26px; letter-spacing: .3em; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card-solid); outline: none; }
.lock-card input:focus { border-color: var(--her); box-shadow: 0 0 0 4px var(--her-soft); }
.lock-card .btn { width: 100%; justify-content: center; }
.lock-err { margin: 0; min-height: 20px; color: var(--love); font-size: 14px; }
.lock-card.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }

.vbtn { border: 0; cursor: pointer; padding: 6px 14px; border-radius: 999px; background: rgba(127,127,160,.2); font-weight: 700; margin-top: 4px; }

/* ---------- nav ---------- */
.topnav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  background: var(--card); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  max-width: calc(100vw - 24px); z-index: 20;
}
.brand { font-size: 20px; text-decoration: none; padding: 2px 8px; }
.navlinks { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a { text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 999px; white-space: nowrap; transition: .2s; }
.navlinks a:hover, .navlinks a.active { color: var(--ink); background: var(--her-soft); }
.theme-btn { border: 0; background: transparent; cursor: pointer; font-size: 18px; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.theme-btn:hover { background: var(--him-soft); }

/* ---------- layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0 30px; }
.sec-head { margin-bottom: 28px; max-width: 760px; }
.kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1; }
h3 { font-size: 17px; margin-bottom: 4px; }
.lede { font-size: 17px; color: var(--ink-2); margin: 14px 0 0; }
.hint { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head .hint { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid2 > .card { margin-bottom: 20px; }
.center { text-align: center; margin-top: 16px; }
.him-c { color: var(--him); } .her-c { color: var(--her); } .love-c { color: var(--love); }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--him), var(--her)); box-shadow: 0 10px 30px -10px var(--him); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); }
.icon-btn { border: 0; background: var(--her-soft); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; flex: none; }
.icon-btn:hover { background: var(--him-soft); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 110px 0 60px; position: relative; }
.hero-title { font-size: clamp(46px, 11vw, 132px); line-height: .95; font-weight: 800; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .25em; }
.hero-title .him { background: linear-gradient(135deg, var(--him), #b49cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .her { background: linear-gradient(135deg, var(--her), #9fe6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .amp { font-family: var(--font-hand); font-weight: 700; color: var(--love); font-size: .8em; }
.hero-sub { font-size: 18px; color: var(--ink-2); margin: 22px 0 0; }
.together { margin-top: 38px; padding: 20px 30px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.together-label, .together-since { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.together-clock { font-family: var(--font-display); font-size: clamp(22px, 4vw, 34px); font-weight: 600; margin: 6px 0; font-variant-numeric: tabular-nums; }
.together-clock small { font-size: .5em; color: var(--muted); font-weight: 400; margin: 0 .5em 0 .15em; }
.hero-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.scroll-hint { position: absolute; bottom: 24px; color: var(--muted); font-size: 13px; animation: float 2.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(6px); } }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--her), var(--him), var(--love)); opacity: .5; transform: translateX(-1px); }
.tl-item { position: relative; width: 50%; padding: 0 40px 34px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 34px 40px; }
.tl-dot { position: absolute; top: 14px; right: -21px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--card-solid); border: 2px solid var(--line); box-shadow: 0 0 0 6px var(--bg), var(--shadow); z-index: 1; }
.tl-item:nth-child(even) .tl-dot { right: auto; left: -21px; }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); cursor: pointer; transition: transform .25s; backdrop-filter: blur(12px); }
.tl-card:hover { transform: translateY(-3px); }
.tl-date { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.tl-title { font-family: var(--font-display); font-size: 19px; margin: 4px 0 6px; }
.tl-text { margin: 0; color: var(--ink-2); font-size: 15px; }
.tl-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.tl-item.big .tl-card { background: linear-gradient(135deg, var(--her-soft), var(--love-soft)); border-color: transparent; }
.tl-item.big .tl-title { font-size: 24px; }
.tl-item.big .tl-dot { width: 54px; height: 54px; right: -27px; font-size: 26px; }
.tl-item.big:nth-child(even) .tl-dot { left: -27px; }
.tl-item.count .tl-dot { font-size: 11px; font-weight: 800; font-family: var(--font-display); color: var(--him); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpis.small { grid-template-columns: repeat(4, 1fr); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.kpi-icon { font-size: 22px; }
.kpi-val { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-label { color: var(--muted); font-size: 13px; }

/* ---------- versus ---------- */
.versus { display: grid; gap: 16px; }
.vs-row { display: grid; grid-template-columns: 110px 1fr 110px; align-items: center; gap: 14px; }
.vs-num { font-family: var(--font-display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.vs-num.l { text-align: right; color: var(--him); }
.vs-num.r { color: var(--her); }
.vs-label { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.vs-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--heat-0); }
.vs-bar span { display: block; height: 100%; transition: width 1.2s cubic-bezier(.2,.7,.2,1); width: 0; }
.vs-bar .a { background: linear-gradient(90deg, #b3a6ff, var(--him)); }
.vs-bar .b { background: linear-gradient(90deg, var(--her), #9fe4ff); }

/* ---------- calendar ---------- */
.calendar-wrap { overflow-x: auto; padding-bottom: 6px; }
.calendar { display: grid; grid-auto-flow: column; grid-template-rows: 18px repeat(7, 1fr); gap: 4px; width: max-content; }
.cal-cell { width: 18px; height: 18px; border-radius: 5px; background: var(--heat-0); cursor: pointer; transition: transform .15s; position: relative; }
.cal-cell:hover { transform: scale(1.35); z-index: 2; outline: 2px solid var(--ink); }
.cal-cell.empty { background: transparent; cursor: default; }
.cal-cell.empty:hover { transform: none; outline: none; }
.cal-cell.mark { box-shadow: 0 0 0 2px var(--love); }
.cal-month { font-size: 11px; color: var(--muted); white-space: nowrap; height: 18px; }
.cal-wd { font-size: 10px; color: var(--muted); width: 18px; height: 18px; line-height: 18px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ---------- heatmap ---------- */
.heatmap { display: grid; grid-template-columns: 26px repeat(24, 1fr); gap: 3px; }
.hm-cell { aspect-ratio: 1; border-radius: 4px; background: var(--heat-0); }
.hm-lab { font-size: 10px; color: var(--muted); display: flex; align-items: center; }
.hm-hour { font-size: 9px; color: var(--muted); text-align: center; }

/* ---------- before/after ---------- */
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.ba-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.ba-track { height: 170px; width: 70%; display: flex; align-items: flex-end; }
.ba-bar { width: 100%; border-radius: 18px 18px 8px 8px; background: linear-gradient(var(--her), var(--him)); height: 0; transition: height 1.3s cubic-bezier(.2,.7,.2,1); position: relative; }
.ba-col.after .ba-bar { background: linear-gradient(var(--love), var(--him)); }
.ba-val { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.ba-lab { font-size: 13px; color: var(--muted); text-align: center; }
.ba-note { grid-column: 1 / -1; text-align: center; margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- charts ---------- */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart .mk-label { fill: var(--ink-2); font-weight: 700; font-size: 11px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--card-solid); border: 1px solid var(--line); padding: 8px 10px; border-radius: 10px; font-size: 12px; box-shadow: var(--shadow); white-space: nowrap; z-index: 5; transform: translate(-50%, -110%); }
.chart { position: relative; }

.months { display: grid; gap: 10px; }
.mo-row { display: grid; grid-template-columns: 74px 1fr 60px; align-items: center; gap: 10px; font-size: 13px; }
.mo-bar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; }
.mo-bar span { height: 100%; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.mo-bar .a { background: var(--him); } .mo-bar .b { background: var(--her); }
.mo-row .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.firsts { display: grid; gap: 18px; }
.fs-item .fs-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; gap: 10px; }
.fs-item .fs-top b { font-weight: 700; }
.fs-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- words ---------- */
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; padding: 10px 0; line-height: 1.15; }
.cloud span { font-family: var(--font-display); cursor: pointer; transition: transform .2s, opacity .2s; }
.cloud span:hover { transform: scale(1.12); }
.wl { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.wl li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; font-size: 15px; }
.wl .rk { color: var(--muted); font-size: 12px; text-align: right; }
.wl .w { position: relative; padding: 3px 8px; border-radius: 8px; z-index: 0; cursor: pointer; }
.wl .w::before { content: ''; position: absolute; inset: 0; width: var(--p); border-radius: 8px; z-index: -1; }
.wl.him .w::before { background: var(--him-soft); } .wl.her .w::before { background: var(--her-soft); }
.wl .c { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.person-h { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 15px; flex: none; }
.avatar.him { background: linear-gradient(135deg, #b3a6ff, var(--him)); }
.avatar.her { background: linear-gradient(135deg, #9fe4ff, var(--her)); }

.signature { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sig-col h4 { margin: 0 0 10px; font-size: 14px; }
.sig-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sig-chip { padding: 7px 12px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); cursor: pointer; }
.sig-chip small { color: var(--muted); margin-left: 6px; }
.sig-col.him .sig-chip { background: var(--him-soft); } .sig-col.her .sig-chip { background: var(--her-soft); }

.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; min-width: 0; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-solid); outline: none; font-size: 15px; }
.search-row input:focus { border-color: var(--her); box-shadow: 0 0 0 4px var(--her-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--heat-0); border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.chip:hover { background: var(--her-soft); }
.wr-head { display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; margin: 10px 0; }
.wr-big { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.wr-examples { display: grid; gap: 8px; margin-top: 14px; }
.wr-ex { font-size: 14px; padding: 10px 14px; border-radius: 14px; background: var(--heat-0); cursor: pointer; }
.wr-ex .d { font-size: 12px; color: var(--muted); display: block; }
mark { background: var(--love-soft); color: inherit; border-radius: 4px; padding: 0 2px; }

.laughs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; text-align: center; }
.laugh-num { font-family: var(--font-display); font-size: clamp(30px, 5vw, 52px); font-weight: 800; }
.laugh-sub { color: var(--muted); font-size: 13px; }
.laugh-long { margin-top: 18px; font-size: 14px; color: var(--ink-2); text-align: center; word-break: break-all; }
.laugh-mid { font-size: 44px; }

/* ---------- emoji ---------- */
.emo-top { display: flex; align-items: center; gap: 18px; margin: 14px 0 18px; }
.emo-big { font-size: 74px; line-height: 1; filter: drop-shadow(0 8px 18px var(--glow)); animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-8deg) scale(1.06); } }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
.emo-cell { text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--heat-0); }
.emo-cell .e { font-size: 28px; display: block; }
.emo-cell .n { font-size: 12px; color: var(--muted); }
.reacts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.react-col h4 { margin: 0 0 10px; font-size: 14px; }
.react-list { display: flex; flex-wrap: wrap; gap: 8px; }
.react-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--heat-0); font-size: 18px; }
.react-pill small { font-size: 13px; color: var(--muted); }
.custom-tag { font-size: 10px; color: var(--muted); }

/* ---------- love ---------- */
.love { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.love-card { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; backdrop-filter: blur(12px); }
.love-card.wide { grid-column: 1 / -1; background: linear-gradient(135deg, var(--love-soft), var(--her-soft)); }
.love-num { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); font-weight: 800; background: linear-gradient(135deg, var(--love), var(--him)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.love-lab { color: var(--muted); font-size: 14px; }
.love-split { font-size: 13px; margin-top: 8px; }
.quote { font-family: var(--font-hand); font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; margin: 10px auto; max-width: 720px; }
.quote-meta { font-size: 13px; color: var(--muted); }
.heart-beat { display: inline-block; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } 60% { transform: scale(1); } }
.aff-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }

/* ---------- voice ---------- */
.voice-random { display: grid; gap: 14px; }
.vr-meta { font-size: 14px; color: var(--ink-2); }
.player { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--heat-0); }
.play-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 16px; background: linear-gradient(135deg, var(--him), var(--her)); flex: none; }
.wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 34px; }
.wave i { flex: 1; background: var(--muted); opacity: .35; border-radius: 2px; min-width: 2px; }
.wave i.on { background: var(--her); opacity: 1; }
.player .t { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px; }
.round { aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; cursor: pointer; background: var(--heat-0); border: 3px solid transparent; transition: transform .25s; }
.round.him { border-color: var(--him); } .round.her { border-color: var(--her); }
.round:hover { transform: scale(1.07); }
.round img { width: 100%; height: 100%; object-fit: cover; display: block; }
.round .d { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 999px; }
.stk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stk-row .emo-cell .e { font-size: 30px; }

/* ---------- moments ---------- */
.moments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.moment { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px); cursor: pointer; transition: transform .25s; }
.moment:hover { transform: translateY(-3px); }
.moment-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.moment-text { margin: 10px 0; font-size: 15px; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: hidden; mask-image: linear-gradient(#000 75%, transparent); -webkit-mask-image: linear-gradient(#000 75%, transparent); }
.moment-text.short { mask-image: none; -webkit-mask-image: none; }
.moment-meta { font-size: 13px; color: var(--muted); }
.memory #memory { min-height: 120px; }
.mem-thread { display: grid; gap: 6px; margin: 10px 0; }

/* ---------- archive / chat ---------- */
.archive { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.archive-side { display: grid; gap: 14px; position: sticky; top: 84px; }
.arch-results { max-height: 300px; overflow-y: auto; display: grid; gap: 6px; }
.arch-results:empty { display: none; }
.arch-res { font-size: 13px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.arch-res:hover { background: var(--her-soft); }
.arch-res .d { font-size: 11px; color: var(--muted); display: block; }
.arch-count { font-size: 12px; color: var(--muted); padding: 0 6px; }
.mini-cal { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.mc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 700; }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mc-wd { font-size: 10px; color: var(--muted); text-align: center; }
.mc-day { aspect-ratio: 1; border: 0; border-radius: 9px; font-size: 12px; cursor: pointer; background: var(--heat-0); position: relative; }
.mc-day.off { opacity: .25; cursor: default; }
.mc-day.sel { outline: 2px solid var(--him); }
.mc-day:not(.off):hover { outline: 2px solid var(--her); }

.phone { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(14px); }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.phone-title { flex: 1; text-align: center; line-height: 1.2; }
.phone-title span { display: block; font-size: 12px; color: var(--muted); }
.chat { height: 640px; overflow-y: auto; padding: 16px 14px 24px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: auto; }
.msg { max-width: 78%; padding: 8px 12px 6px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; position: relative; word-wrap: break-word; white-space: pre-wrap; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.msg.me { align-self: flex-end; background: var(--bubble-me); color: #fff; border-bottom-right-radius: 6px; }
.msg.her { align-self: flex-start; background: var(--bubble-her); border-bottom-left-radius: 6px; border: 1px solid var(--line); }
.msg.gap { margin-top: 10px; }
.msg .tm { font-size: 10.5px; opacity: .65; float: right; margin: 6px 0 0 10px; }
.msg .fw { font-size: 11px; opacity: .75; display: block; margin-bottom: 2px; font-style: italic; }
.msg .rp { display: block; font-size: 12px; padding: 4px 8px; margin-bottom: 4px; border-left: 3px solid currentColor; border-radius: 6px; background: rgba(127,127,160,.14); opacity: .9; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.msg .md { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; opacity: .9; }
.msg .rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; clear: both; }
.msg .rx span { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: rgba(127,127,160,.18); }
.msg.flash { animation: flash 1.8s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--love); } }
.msg.roundmsg { background: transparent !important; border: 0; box-shadow: none; padding: 0; }
.msg .rthumb { width: 170px; height: 170px; border-radius: 50%; overflow: hidden; display: block; cursor: pointer; position: relative; background: var(--heat-0); }
.msg .rthumb img, .msg .rthumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg .rthumb .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.msg audio { width: 240px; max-width: 100%; height: 36px; display: block; }
.day-sep { align-self: center; font-size: 12px; color: var(--muted); padding: 4px 12px; border-radius: 999px; background: var(--heat-0); margin: 8px 0; }
.chat-empty { margin: auto; color: var(--muted); text-align: center; }

/* ---------- quiz ---------- */
.quiz { text-align: center; padding: 36px 24px; }
.q-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 26px; }
.q-progress i { width: 26px; height: 6px; border-radius: 99px; background: var(--heat-0); }
.q-progress i.ok { background: #4cd4a0; } .q-progress i.bad { background: var(--love); } .q-progress i.cur { background: var(--her); }
.q-text { font-family: var(--font-hand); font-size: clamp(28px, 4.2vw, 42px); line-height: 1.2; max-width: 720px; margin: 0 auto 30px; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.q-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.q-btn { min-width: 170px; padding: 16px 24px; border-radius: 20px; border: 2px solid var(--line); background: var(--card-solid); cursor: pointer; font-weight: 700; font-size: 17px; transition: transform .15s, border-color .2s; display: inline-flex; align-items: center; gap: 10px; justify-content: center; }
.q-btn:hover { transform: translateY(-2px); }
.q-btn.him:hover { border-color: var(--him); } .q-btn.her:hover { border-color: var(--her); }
.q-btn.right { border-color: #4cd4a0; background: rgba(76, 212, 160, .15); }
.q-btn.wrong { border-color: var(--love); background: var(--love-soft); }
.q-btn:disabled { cursor: default; transform: none; }
.q-feedback { margin-top: 20px; min-height: 48px; color: var(--ink-2); font-size: 14px; }
.q-feedback a { color: var(--her); cursor: pointer; text-decoration: underline; }
.q-score { font-family: var(--font-display); font-size: 64px; font-weight: 800; background: linear-gradient(135deg, var(--him), var(--her)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 80px 20px 60px; }
.hand { font-family: var(--font-hand); font-size: clamp(30px, 4.5vw, 46px); line-height: 1.2; margin: 0 auto 14px; max-width: 800px; }
.tiny { font-size: 12px; color: var(--muted); }

/* ---------- stories ---------- */
.stories { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(8, 12, 30, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: fade .35s ease; }
.stories[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.stories-card { position: relative; width: min(430px, 100vw); height: min(860px, 100svh); border-radius: 30px; overflow: hidden; color: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); user-select: none; }
@media (max-width: 480px) { .stories-card { border-radius: 0; } }
.stories-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 5; }
.stories-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.stories-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.stories-bars i.done b { width: 100%; }
.stories-close { position: absolute; top: 24px; right: 14px; z-index: 6; border: 0; background: rgba(255,255,255,.18); color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.stories-tap { position: absolute; top: 60px; bottom: 0; z-index: 4; cursor: pointer; }
.stories-tap.left { left: 0; width: 35%; } .stories-tap.right { right: 0; width: 65%; }
.stories-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 70px 30px 40px; text-align: left; }
.st-bg { position: absolute; inset: 0; z-index: -1; }
.st-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.25), transparent 40%), radial-gradient(circle at 10% 90%, rgba(255,255,255,.15), transparent 45%); }
.st-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.st-big { font-family: var(--font-display); font-size: clamp(54px, 15vw, 84px); font-weight: 800; line-height: 1; margin: 14px 0; }
.st-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.15; margin: 12px 0; }
.st-text { font-size: 17px; opacity: .92; line-height: 1.45; }
.st-hand { font-family: var(--font-hand); font-size: 34px; line-height: 1.15; }
.st-bubble { background: rgba(255,255,255,.95); color: #1b2140; padding: 10px 14px; border-radius: 18px 18px 18px 6px; display: inline-block; font-size: 16px; margin: 4px 0; max-width: 90%; }
.st-bubble.me { background: rgba(30, 20, 80, .55); color: #fff; border-radius: 18px 18px 6px 18px; align-self: flex-end; }
.st-chat { display: flex; flex-direction: column; gap: 4px; margin: 18px 0; }
.st-split { display: flex; height: 54px; border-radius: 16px; overflow: hidden; margin: 18px 0 10px; font-weight: 800; font-family: var(--font-display); }
.st-split span { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; }
.st-split .a { background: rgba(40, 20, 120, .45); } .st-split .b { background: rgba(255,255,255,.9); color: #1b4a66; justify-content: flex-end; }
.st-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; font-size: 18px; }
.st-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.14); }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.st-two h4 { margin: 0 0 6px; font-size: 14px; opacity: .85; }
.st-emo { font-size: 64px; line-height: 1.1; }
.st-anim > * { opacity: 0; transform: translateY(18px); animation: stIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
.st-anim > *:nth-child(2) { animation-delay: .15s; } .st-anim > *:nth-child(3) { animation-delay: .3s; } .st-anim > *:nth-child(4) { animation-delay: .45s; }
.st-anim > *:nth-child(5) { animation-delay: .6s; } .st-anim > *:nth-child(6) { animation-delay: .75s; } .st-anim > *:nth-child(7) { animation-delay: .9s; }
@keyframes stIn { to { opacity: 1; transform: none; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 45; background: rgba(8, 12, 30, .8); display: grid; place-items: center; backdrop-filter: blur(10px); }
.modal[hidden] { display: none; }
.modal-inner { text-align: center; color: #fff; }
.modal video { width: min(420px, 86vw); height: min(420px, 86vw); border-radius: 50%; object-fit: cover; background: #000; box-shadow: 0 0 0 4px rgba(255,255,255,.2), 0 30px 80px -20px #000; }
.modal p { font-size: 14px; opacity: .8; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .kpis, .kpis.small { grid-template-columns: repeat(2, 1fr); }
  .grid2, .signature, .reacts, .moments { grid-template-columns: 1fr; }
  .love { grid-template-columns: 1fr; }
  .archive { grid-template-columns: 1fr; }
  .archive-side { position: static; }
  .mc-day { aspect-ratio: auto; height: 32px; }
  .chat { height: 70vh; }
}
@media (max-width: 640px) {
  main { padding: 0 16px; }
  .section { padding-top: 70px; }
  .card { padding: 18px; }
  .timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 26px 58px; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; }
  .tl-item.big .tl-dot, .tl-item.big:nth-child(even) .tl-dot { left: -6px; }
  .vs-row { grid-template-columns: 70px 1fr 70px; gap: 8px; }
  .vs-num { font-size: 13px; }
  .heatmap { grid-template-columns: 20px repeat(24, 1fr); gap: 2px; }
  .hm-hour:nth-child(odd) { visibility: hidden; }
  .laughs { grid-template-columns: 1fr 1fr; }
  .laugh-mid { display: none; }
  .msg { max-width: 88%; }
  .navlinks a { padding: 6px 8px; }
}
