/* =========================================================================
   Us — a little world for two
   Design system: warm serif display, soft glass cards, rose accents.
   ========================================================================= */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 680px at 108% -8%, color-mix(in srgb, var(--a3) 58%, transparent), transparent 62%),
    radial-gradient(760px 600px at -12% 12%, color-mix(in srgb, var(--a3) 38%, transparent), transparent 58%),
    radial-gradient(1000px 700px at 50% 112%, color-mix(in srgb, var(--a2) 10%, transparent), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: color-mix(in srgb, var(--a1) 35%, transparent); }

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 200;
  background: var(--surface-solid);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--a2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- fonts & themes ---------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;

  --a1: #ff6b9d;
  --a2: #e82a63;
  --a3: #ffc2d4;
  --on-accent: #ffffff;
  --sheen: rgba(255, 255, 255, 0.22);
  --deco: rgba(255, 255, 255, 0.07);
  --hero-shadow: rgba(200, 30, 90, 0.42);

  --bg: #fff7f9;
  --bg-2: #ffeef3;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.5);
  --text: #2c1720;
  --muted: #8d6a78;
  --line: rgba(110, 55, 75, 0.14);
  --line-strong: rgba(110, 55, 75, 0.24);
  --shadow: 0 22px 50px -26px rgba(120, 30, 70, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(120, 30, 70, 0.35);
  --accent-text: var(--a2);
  --glass: blur(18px) saturate(1.5);
  --radius-lg: 30px;
  --radius: 22px;
  --radius-sm: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --sheet-max: 560px;
}

:root[data-theme="dark"] {
  --bg: #160e13;
  --bg-2: #1e1219;
  --surface: rgba(40, 25, 34, 0.66);
  --surface-solid: #241820;
  --surface-soft: rgba(58, 38, 50, 0.42);
  --text: #f8e9ef;
  --muted: #bda2ae;
  --line: rgba(255, 235, 245, 0.1);
  --line-strong: rgba(255, 235, 245, 0.2);
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.9);
  --shadow-soft: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
  --accent-text: var(--a1);
  --sheen: rgba(255, 255, 255, 0.16);
  --deco: rgba(255, 255, 255, 0.05);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #160e13;
    --bg-2: #1e1219;
    --surface: rgba(40, 25, 34, 0.66);
    --surface-solid: #241820;
    --surface-soft: rgba(58, 38, 50, 0.42);
    --text: #f8e9ef;
    --muted: #bda2ae;
    --line: rgba(255, 235, 245, 0.1);
    --line-strong: rgba(255, 235, 245, 0.2);
    --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.9);
    --shadow-soft: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
    --accent-text: var(--a1);
    --sheen: rgba(255, 255, 255, 0.16);
    --deco: rgba(255, 255, 255, 0.05);
    color-scheme: dark;
  }
}

/* accent palettes */
:root[data-accent="peach"] {
  --a1: #ffa474;
  --a2: #f0602a;
  --a3: #ffd9c4;
  --on-accent: #3b1505;
  --sheen: rgba(255, 255, 255, 0.34);
  --hero-shadow: rgba(200, 70, 20, 0.4);
}
:root[data-accent="lilac"] {
  --a1: #b78cff;
  --a2: #7a3df0;
  --a3: #e2d4ff;
  --hero-shadow: rgba(100, 40, 200, 0.4);
}
:root[data-accent="ocean"] {
  --a1: #59c3ff;
  --a2: #1476e8;
  --a3: #c8ecff;
  --hero-shadow: rgba(20, 90, 190, 0.4);
}
:root[data-accent="mint"] {
  --a1: #5bd8b7;
  --a2: #0e9c78;
  --a3: #c6f4e8;
  --on-accent: #03251d;
  --hero-shadow: rgba(10, 130, 100, 0.38);
}
:root[data-accent="sun"] {
  --a1: #ffd45e;
  --a2: #f59b00;
  --a3: #ffeab0;
  --on-accent: #372200;
  --sheen: rgba(255, 255, 255, 0.38);
  --hero-shadow: rgba(190, 120, 0, 0.36);
}

:root[data-theme="dark"][data-accent="sun"],
:root[data-theme="dark"][data-accent="mint"],
:root[data-theme="dark"][data-accent="peach"] {
  --accent-text: var(--a1);
}

/* ---------- utilities ---------- */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- boot ---------- */
.boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.boot-heart {
  font-size: 44px;
  color: var(--a2);
  animation: heartbeat 1.6s ease-in-out infinite;
}
.boot-brand {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.05em;
}
.boot-brand span { color: var(--a2); }
.boot p { color: var(--muted); font-size: 14px; }

/* ---------- onboarding ---------- */
.onboard {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(30px + var(--safe-t)) 20px calc(30px + var(--safe-b));
  overflow: hidden;
}
.onboard-inner {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: riseIn 0.7s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}
.onboard-art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.mini-couple { display: flex; align-items: center; }
.mini-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--on-accent);
  background: linear-gradient(145deg, var(--a1), var(--a2));
  border: 3px solid var(--bg);
  box-shadow: 0 12px 24px -12px var(--hero-shadow);
  font-family: var(--font-sans);
}
.mini-avatar:last-child {
  margin-left: -14px;
  background: linear-gradient(145deg, var(--a2), color-mix(in srgb, var(--a2) 62%, #4b1030));
}
.mini-heart {
  margin-left: -8px;
  z-index: 2;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--a2);
  font-size: 13px;
  animation: heartbeat 2.2s ease-in-out infinite;
}
.onboard .brand-hero {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--muted);
  margin-bottom: 10px;
}
.onboard .brand-hero span { color: var(--a2); }
.onboard h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 11.5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.onboard h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--a2), color-mix(in srgb, var(--a1) 70%, #ff9d5c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.onboard .lede {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 330px;
}
.onboard-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.onboard .fineprint {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.onboard-back {
  align-self: flex-start;
  margin-bottom: 18px;
}
.onboard-card {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.onboard-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.onboard-card .sub {
  margin-top: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.onboard-card .stack { gap: 13px; }
.onboard-card .btn { margin-top: 6px; }
.floating-hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fh {
  position: absolute;
  bottom: -40px;
  color: var(--a1);
  opacity: 0.16;
  animation: floatUp linear infinite;
  filter: blur(0.2px);
  user-select: none;
}
.fh:nth-child(2n) { color: var(--a2); opacity: 0.11; }
.fh:nth-child(3n) { opacity: 0.2; }

/* ---------- app shell ---------- */
.app-shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: calc(14px + var(--safe-t)) 16px calc(112px + var(--safe-b));
  animation: fadeIn 0.35s ease both;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 16px;
}
.brand {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
}
.brand span { color: var(--a2); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 999px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #38b46b;
  box-shadow: 0 0 0 3px color-mix(in srgb, #38b46b 18%, transparent);
  animation: breathe 2.6s ease-in-out infinite;
}
.status.is-offline .status-dot { background: #d9a128; box-shadow: 0 0 0 3px rgba(217, 161, 40, 0.18); animation: none; }
.status.is-offline { color: #a57a12; }

.view { display: flex; flex-direction: column; gap: 16px; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(10px + var(--safe-b));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 7px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -18px rgba(60, 15, 40, 0.32);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 7px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.tab svg { width: 21px; height: 21px; }
.tab:active { transform: scale(0.95); }
.tab.is-active {
  color: var(--accent-text);
  background: color-mix(in srgb, var(--a1) 13%, transparent);
}
.tab .badge {
  position: absolute;
  transform: translate(15px, -2px);
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--a2);
  color: #fff;
  font-size: 9px;
  display: grid; place-items: center;
  font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--btn-bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.005em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--a1) 0%, var(--a2) 92%);
  box-shadow: 0 16px 30px -14px var(--hero-shadow), inset 0 1px 0 var(--sheen);
}
.btn-primary:hover { box-shadow: 0 20px 36px -14px var(--hero-shadow), inset 0 1px 0 var(--sheen); }
.btn-soft {
  background: color-mix(in srgb, var(--a1) 12%, transparent);
  color: var(--accent-text);
  border-color: color-mix(in srgb, var(--a1) 18%, transparent);
}
.btn-soft:hover { background: color-mix(in srgb, var(--a1) 18%, transparent); }
.btn-ghost {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-danger {
  background: color-mix(in srgb, #e5484d 11%, transparent);
  border-color: color-mix(in srgb, #e5484d 20%, transparent);
  color: #d63a41;
}
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn-icon { width: 46px; padding: 0; flex: none; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--accent-text); background: color-mix(in srgb, var(--a1) 10%, transparent); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm svg { width: 16px; height: 16px; }

.link-btn {
  border: 0;
  background: none;
  padding: 4px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.link-btn svg { width: 14px; height: 14px; }

/* ---------- generic cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.card h2, .card h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.card h2 { font-size: 23px; }
.card h3 { font-size: 19px; }
.section { display: flex; flex-direction: column; gap: 11px; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; min-height: 28px; }
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}
.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 2px;
}
.view-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.view-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--a1) 13%, transparent);
  color: var(--accent-text);
  white-space: nowrap;
}
.pill svg { width: 11px; height: 11px; }
.dot-sep { opacity: 0.45; padding: 0 5px; }

/* ---------- hero / together ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  color: var(--on-accent);
  background:
    radial-gradient(120% 90% at 88% -18%, var(--sheen), transparent 58%),
    linear-gradient(145deg, var(--a1) 0%, var(--a2) 64%, color-mix(in srgb, var(--a2) 72%, #4b0a25) 100%);
  box-shadow: 0 28px 60px -28px var(--hero-shadow);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  right: -48px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid var(--sheen);
  opacity: 0.7;
  z-index: -1;
}
.hero::after {
  content: "♥";
  position: absolute;
  right: -18px;
  bottom: -82px;
  font-size: 220px;
  line-height: 1;
  color: var(--deco);
  transform: rotate(-10deg);
  z-index: -1;
  pointer-events: none;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero-badge .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: breathe 2s ease-in-out infinite;
}
.hero-date { font-size: 11.5px; opacity: 0.78; font-variant-numeric: tabular-nums; }

.pair-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 88px;
}
.avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 19px;
  font-weight: 700;
  background: color-mix(in srgb, #fff 22%, transparent);
  border: 1.5px solid color-mix(in srgb, #fff 55%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, #fff 8%, transparent);
  font-family: var(--font-sans);
}
.avatar.ghost { border-style: dashed; opacity: 0.68; font-size: 16px; }
.person .name {
  font-size: 13px;
  font-weight: 650;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person .name small { display: block; font-size: 9.5px; font-weight: 500; opacity: 0.7; letter-spacing: 0.06em; text-transform: uppercase; }
.heart-link {
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, #fff 16%, transparent);
  border: 1px solid color-mix(in srgb, #fff 26%, transparent);
  font-size: 16px;
  animation: heartbeat 2.3s ease-in-out infinite;
}
.together { text-align: center; margin-top: 14px; }
.days-number {
  font-family: var(--font-display);
  font-size: clamp(66px, 19vw, 104px);
  line-height: 0.8;
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.days-number small {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  transform: translateY(-4px);
}
.days-label {
  margin-top: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.82;
}
.clock-line {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, #000 12%, transparent);
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.since-line { margin-top: 12px; font-size: 11.5px; opacity: 0.78; }

/* couple photo above the names */
.hero-photo {
  position: relative;
  margin: -2px -2px 15px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, #000 18%, transparent);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.6);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, #000 34%, transparent);
  backdrop-filter: blur(8px);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.days-breakdown {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.hero-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, #fff 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  opacity: 0.88;
}
.hero-foot .row { gap: 6px; }
.hero-foot svg { width: 14px; height: 14px; }

/* ---------- spotlight ---------- */
.spotlight-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid color-mix(in srgb, var(--a1) 26%, var(--line));
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--a1) 18%, transparent), transparent 55%),
    radial-gradient(120% 100% at 0% 100%, color-mix(in srgb, var(--a2) 10%, transparent), transparent 55%);
  pointer-events: none;
}
.spotlight-card > * { position: relative; }
.spotlight-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.spotlight-title {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.spotlight-title .emoji {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 24px;
  background: color-mix(in srgb, var(--a1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 16%, transparent);
}
.spotlight-meta { margin-top: 7px; margin-left: 57px; color: var(--muted); font-size: 12px; }
.unit-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.unit {
  background: color-mix(in srgb, var(--a1) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 12%, transparent);
  border-radius: 16px;
  padding: 11px 3px 9px;
  text-align: center;
}
.unit b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 7.4vw, 34px);
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.unit span {
  display: block;
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.unit.is-past b { font-size: clamp(15px, 4.4vw, 19px); letter-spacing: 0; }
.spotlight-foot {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
}
.spotlight-foot .row { gap: 6px; }
.spotlight-foot svg { width: 13px; height: 13px; }

/* ---------- countdown cards ---------- */
.cd-list { display: flex; flex-direction: column; gap: 10px; }
.cd-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  overflow: hidden;
}
.cd-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, color-mix(in srgb, var(--tint) 7%, transparent), transparent 45%);
  pointer-events: none;
}
.cd-emoji {
  position: relative;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 23px;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 18%, transparent);
}
.cd-body { position: relative; flex: 1; min-width: 0; }
.cd-title {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cd-title .on-screen {
  flex: none;
  display: inline-flex;
  color: var(--tint);
}
.cd-title svg { width: 12px; height: 12px; }
.cd-meta {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cd-time {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--text);
}
.cd-time.is-now {
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cd-time.is-now::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: breathe 1.6s infinite;
}
.cd-bar {
  margin-top: 9px;
  height: 3px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  overflow: hidden;
}
.cd-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tint), color-mix(in srgb, var(--tint) 55%, var(--a2)));
  transition: width 0.8s ease;
}
.cd-actions { position: relative; display: flex; flex-direction: column; gap: 5px; }
.cd-actions .icon-btn { width: 30px; height: 30px; background: transparent; border-color: transparent; }
.cd-actions .icon-btn:hover { background: var(--surface-soft); }
.cd-actions .icon-btn.is-on { color: var(--accent-text); background: color-mix(in srgb, var(--a1) 12%, transparent); }
.cd-card.is-past { opacity: 0.72; }
.cd-card.is-past .cd-time { color: var(--muted); font-weight: 550; }

.tint-rose { --tint: #ff5c8f; }
.tint-peach { --tint: #f2823f; }
.tint-lilac { --tint: #9a6bff; }
.tint-ocean { --tint: #2f95f5; }
.tint-mint { --tint: #22b58d; }
.tint-sun { --tint: #e6a300; }

/* ---------- invite / pairing ---------- */
.invite-card {
  position: relative;
  overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--a1) 45%, var(--line));
  background:
    radial-gradient(100% 120% at 100% 0%, color-mix(in srgb, var(--a1) 13%, transparent), transparent 55%),
    var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass);
}
.invite-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 21px;
}
.invite-card p { margin-top: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.code-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.code {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 12px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--a1) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 16%, transparent);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.code span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
}
.code-actions { display: flex; gap: 8px; margin-top: 12px; }
.code-actions .btn { flex: 1; }

/* ---------- notes ---------- */
.notes-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.note-card {
  position: relative;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--tint) 20%, var(--line));
  background:
    linear-gradient(130deg, color-mix(in srgb, var(--tint) 8%, transparent), transparent 60%),
    var(--surface);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.note-card:hover { border-color: color-mix(in srgb, var(--tint) 38%, var(--line)); }
.note-card:active { transform: scale(0.99); }
.note-card.is-special { border-color: color-mix(in srgb, var(--tint) 42%, var(--line)); }
.note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.note-badges { display: flex; gap: 5px; align-items: center; color: var(--tint); }
.note-badges svg { width: 13px; height: 13px; }
.note-card h3 {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.note-body {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: var(--muted);
}
.note-foot .by { display: inline-flex; align-items: center; gap: 5px; }
.note-foot .by i {
  width: 17px; height: 17px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  background: color-mix(in srgb, var(--tint) 16%, transparent);
  color: var(--tint);
}
.notes-grid.cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.special-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--a1) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 14%, transparent);
  color: var(--muted);
  font-size: 12px;
}
.special-strip svg { width: 16px; height: 16px; color: var(--a2); flex: none; }
.special-strip b { color: var(--text); font-weight: 650; }

/* ---------- filters ---------- */
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  padding: 7px 12px;
  min-height: 34px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.16s ease;
}
.chip svg { width: 13px; height: 13px; }
.chip.is-active {
  background: color-mix(in srgb, var(--a1) 14%, transparent);
  border-color: color-mix(in srgb, var(--a1) 26%, transparent);
  color: var(--accent-text);
}

/* ---------- empty states ---------- */
.empty {
  text-align: center;
  padding: 34px 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: color-mix(in srgb, var(--surface-solid) 35%, transparent);
}
.empty .glyph {
  width: 62px; height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px;
  background: color-mix(in srgb, var(--a1) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 15%, transparent);
}
.empty h3 { font-family: var(--font-display); font-size: 22px; }
.empty p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 280px; margin-left: auto; margin-right: auto; }
.empty .btn { margin-top: 16px; }

/* ---------- settings ---------- */
.settings-card .settings-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px;
}
.settings-card h2 { font-size: 21px; }
.settings-card .sub { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.5; }
.settings-card + .settings-card { margin-top: 0; }

/* our photo */
.photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.photo-preview {
  flex: none;
  width: 106px;
  height: 106px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--a1) 10%, var(--surface-soft));
  border: 1px solid var(--line);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.photo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.photo-actions .hint { margin: 0; }

/* widget feed link */
.widget-link {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.widget-link code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.setting-row:first-of-type { border-top: 0; padding-top: 0; }
.setting-row:last-child { padding-bottom: 0; }
.setting-row .label { min-width: 0; }
.setting-row .label b { display: block; font-size: 14px; font-weight: 650; }
.setting-row .label span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; line-height: 1.4; }
.setting-row .value { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.setting-row select {
  min-width: 120px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 0 10px;
  font-size: 13px;
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .row { gap: 8px; }
.input, .textarea, select.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 68%, transparent);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
.input:focus, .textarea:focus, select.input:focus {
  border-color: color-mix(in srgb, var(--a1) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 14%, transparent);
  background: var(--surface-solid);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; padding-top: 12px; }
.input[type="date"], .input[type="time"] { min-width: 0; font-variant-numeric: tabular-nums; }
.date-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }
.hint { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.form-error {
  color: #d63a41;
  font-size: 12.5px;
  line-height: 1.45;
  background: color-mix(in srgb, #e5484d 9%, transparent);
  border: 1px solid color-mix(in srgb, #e5484d 16%, transparent);
  border-radius: 10px;
  padding: 9px 11px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 55%, transparent);
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  flex: none;
  margin: 0;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  display: grid;
  place-items: center;
  transition: 0.15s ease;
}
.check input:checked {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  border-color: transparent;
}
.check input:checked::after {
  content: "";
  width: 5px; height: 9px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg) translateY(-1px);
}
.check b { display: block; font-weight: 650; font-size: 12.5px; }
.check small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}
.emoji-choice {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 11px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--surface-solid) 45%, transparent);
  font-size: 19px;
  transition: 0.14s ease;
}
.emoji-choice:hover { background: color-mix(in srgb, var(--a1) 9%, transparent); }
.emoji-choice input { position: absolute; opacity: 0; pointer-events: none; }
.emoji-choice:has(input:checked) {
  background: color-mix(in srgb, var(--a1) 16%, transparent);
  border-color: color-mix(in srgb, var(--a1) 45%, transparent);
  transform: scale(1.04);
}
.swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--sw, #ff5c8f);
  cursor: pointer;
  transition: 0.15s ease;
}
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch:has(input:checked) {
  border-color: var(--surface-solid);
  box-shadow: 0 0 0 2px var(--sw, #ff5c8f);
  transform: scale(1.08);
}
.swatch.rose { --sw: #ff5c8f; }
.swatch.peach { --sw: #f2823f; }
.swatch.lilac { --sw: #9a6bff; }
.swatch.ocean { --sw: #2f95f5; }
.swatch.mint { --sw: #22b58d; }
.swatch.sun { --sw: #e6a300; }
.swatch.is-active {
  border-color: var(--surface-solid);
  box-shadow: 0 0 0 2px var(--sw, #ff5c8f);
  transform: scale(1.08);
}
.code-input {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.install-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.install-steps li {
  position: relative;
  counter-increment: step;
  padding: 12px 14px 12px 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 55%, transparent);
  font-size: 13px;
  line-height: 1.45;
}
.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 11px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--a1) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 20%, transparent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
}
.install-steps li b { display: block; font-weight: 650; }
.install-steps li span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
button.now-banner { border: 1px solid color-mix(in srgb, var(--a1) 16%, transparent); }

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.seg {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}
.seg.is-active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.4);
}

/* ---------- modal sheet ---------- */
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 8, 18, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sheet {
  position: relative;
  width: min(var(--sheet-max), 100%);
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface-solid);
  border-radius: 28px 28px 0 0;
  padding: 16px 20px calc(20px + var(--safe-b));
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.5);
  transform: translateY(102%);
  transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.24, 1);
  -webkit-overflow-scrolling: touch;
}
.sheet-wrap.is-open .sheet-backdrop { opacity: 1; }
.sheet-wrap.is-open .sheet { transform: translateY(0); }
.sheet-grab {
  width: 38px; height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
  margin: 0 auto 14px;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.sheet-head .titles { min-width: 0; }
.sheet-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 4px;
}
.sheet h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.sheet .sub { color: var(--muted); font-size: 12.5px; margin-top: 5px; line-height: 1.5; }
.sheet-form { display: flex; flex-direction: column; gap: 14px; }
.sheet-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.sheet-actions .btn-primary, .sheet-actions .btn-soft { flex: 1; }
.sheet-actions .btn-danger { flex: none; width: 48px; padding: 0; }
.sheet-actions .btn-danger svg { width: 18px; height: 18px; }
body.sheet-open { overflow: hidden; }

@media (min-width: 700px) {
  .sheet-wrap { align-items: center; padding: 26px; }
  .sheet {
    border-radius: 28px;
    padding: 22px 22px 22px;
    transform: translateY(14px) scale(0.97);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.2, 0.85, 0.24, 1), opacity 0.24s ease;
    max-height: 86dvh;
  }
  .sheet-wrap.is-open .sheet { transform: none; opacity: 1; }
  .sheet-grab { display: none; }
}

/* ---------- toast ---------- */
.toasts {
  position: fixed;
  z-index: 130;
  top: calc(12px + var(--safe-t));
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, calc(100% - 22px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(34, 15, 25, 0.93);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.toast .t-icon {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.toast .t-icon svg { width: 14px; height: 14px; }
.toast.is-out { animation: toastOut 0.24s ease forwards; }
.toast strong { font-weight: 650; }

/* ---------- spotlight moment flash ---------- */
.flash {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(100% 80% at 50% 0%, var(--sheen), transparent 60%),
    linear-gradient(155deg, var(--a1), var(--a2) 68%, color-mix(in srgb, var(--a2) 60%, #36061a));
  color: var(--on-accent);
  animation: flashIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  cursor: pointer;
  overflow: hidden;
}
.flash.is-out { animation: flashOut 0.3s ease forwards; }
.flash-inner {
  position: relative;
  width: min(420px, 100%);
  text-align: center;
  animation: riseIn 0.55s 0.08s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.flash-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, #000 14%, transparent);
  border: 1px solid color-mix(in srgb, #fff 16%, transparent);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.flash-emoji { font-size: 56px; margin: 22px 0 8px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.2)); }
.flash-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 10vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.flash-units {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.flash-unit {
  background: color-mix(in srgb, #fff 15%, transparent);
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  border-radius: 16px;
  padding: 12px 4px 10px;
  backdrop-filter: blur(8px);
}
.flash-unit b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 8vw, 38px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.flash-unit span {
  display: block;
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}
.flash-foot { margin-top: 22px; font-size: 12.5px; opacity: 0.85; }
.flash-x {
  position: absolute;
  top: calc(14px + var(--safe-t));
  right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, #fff 26%, transparent);
  background: color-mix(in srgb, #000 12%, transparent);
  color: inherit;
  display: grid; place-items: center;
}
.flash-x svg { width: 17px; height: 17px; }

/* ---------- heart burst ---------- */
.burst-heart {
  position: fixed;
  z-index: 140;
  pointer-events: none;
  font-size: var(--size, 18px);
  color: var(--color, var(--a2));
  animation: burst 1.15s cubic-bezier(0.15, 0.6, 0.35, 1) forwards;
  will-change: transform, opacity;
}

/* ---------- widget mode ---------- */
.widget-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: calc(20px + var(--safe-t)) 18px calc(24px + var(--safe-b));
  background:
    radial-gradient(90% 70% at 50% -10%, color-mix(in srgb, var(--a3) 50%, transparent), transparent 60%),
    var(--bg);
}
.widget-card {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  max-height: 72dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 34px;
  padding: 22px;
  color: var(--on-accent);
  background:
    radial-gradient(110% 80% at 90% 0%, var(--sheen), transparent 55%),
    linear-gradient(150deg, var(--a1), var(--a2) 62%, color-mix(in srgb, var(--a2) 65%, #3b0619));
  box-shadow: 0 40px 80px -34px var(--hero-shadow);
  isolation: isolate;
}
.widget-card::after {
  content: "♥";
  position: absolute;
  right: -26px;
  bottom: -60px;
  font-size: 210px;
  line-height: 1;
  color: var(--deco);
  z-index: -1;
}
.widget-photo {
  margin: -8px -8px 12px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, #000 16%, transparent);
}
.widget-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.widget-breakdown { margin-top: 7px; font-size: 11.5px; font-weight: 600; opacity: 0.86; }
.widget-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.widget-brand { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.05em; }
.widget-brand span { opacity: 0.65; }
.widget-names { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.82; }
.widget-together { margin-top: 4px; }
.widget-together b {
  font-family: var(--font-display);
  font-size: clamp(54px, 17vw, 78px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.widget-together span { display: block; margin-top: 8px; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8; }
.widget-countdown { margin-top: 18px; }
.widget-cd-kicker { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; font-weight: 700; }
.widget-cd-title { margin-top: 4px; font-family: var(--font-display); font-size: 23px; line-height: 1.1; letter-spacing: -0.02em; }
.widget-units { margin-top: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.widget-unit {
  padding: 8px 2px 7px;
  border-radius: 13px;
  background: color-mix(in srgb, #fff 14%, transparent);
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  text-align: center;
}
.widget-unit b { display: block; font-family: var(--font-display); font-size: clamp(20px, 6.4vw, 28px); line-height: 1; font-variant-numeric: tabular-nums; }
.widget-unit span { display: block; margin-top: 3px; font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.72; }
.widget-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.72; }
.widget-actions { width: min(420px, 100%); display: flex; flex-direction: column; gap: 8px; }
.widget-actions .row { gap: 8px; }
.widget-actions .btn { flex: 1; }
.widget-tip { text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.55; max-width: 340px; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }
.now-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--a1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 16%, transparent);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text);
}
.now-banner .glyph { font-size: 20px; }
.loading-lines { display: flex; flex-direction: column; gap: 10px; }
.loading-line {
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(100deg, var(--surface-soft) 30%, color-mix(in srgb, var(--a1) 10%, var(--surface-soft)) 50%, var(--surface-soft) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.noscript {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: #fff; color: #222; padding: 30px; text-align: center;
}

/* ---------- animations ---------- */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.16); }
  24% { transform: scale(1); }
  36% { transform: scale(1.09); }
  48% { transform: scale(1); }
}
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}
@keyframes floatUp {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: inherit; }
  100% { transform: translate3d(var(--drift, 30px), -112vh, 0) rotate(var(--rot, 20deg)); opacity: 0; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-8px) scale(0.98); }
}
@keyframes flashIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes flashOut {
  to { opacity: 0; }
}
@keyframes burst {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -120px)) scale(var(--s, 1)) rotate(var(--r, 40deg)); }
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
@keyframes skinPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a1) 40%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

/* ---------- responsive ---------- */
@media (min-width: 680px) {
  .app-shell { padding-top: calc(24px + var(--safe-t)); }
  .notes-grid.cols { grid-template-columns: 1fr 1fr; }
  .cd-card { padding: 16px; gap: 14px; }
  .cd-emoji { width: 52px; height: 52px; font-size: 25px; }
  .hero { padding: 24px 26px 22px; }
}

@media (max-width: 380px) {
  .app-shell { padding-left: 12px; padding-right: 12px; }
  .emoji-grid { grid-template-columns: repeat(7, 1fr); }
  .person { width: 74px; }
  .avatar { width: 48px; height: 48px; font-size: 17px; }
  .code { font-size: 21px; gap: 3px; }
  .clock-line { font-size: 12px; letter-spacing: 0.08em; }
  .tab { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .floating-hearts { display: none; }
}
