/* Us · हम — night plum, rose gold, one crimson thread. Phone first, iPhone notch safe. */
@font-face { font-family: "Cormorant"; src: url("/fonts/Cormorant.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Hand"; src: url("/fonts/Caveat.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Tiro"; src: url("/fonts/TiroDevanagariHindi-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Tiro"; src: url("/fonts/TiroDevanagariHindi-Italic.ttf") format("truetype"); font-style: italic; font-display: swap; }

:root {
  --bg: #140a14; --bg2: #1d1020; --card: rgba(44, 24, 44, 0.66); --line: rgba(255, 214, 222, 0.10); --line2: rgba(255, 214, 222, 0.22);
  --ink: #fff4f6; --ink2: #f1dbe0; --muted: #c9aab3; --dim: #9a7f88;
  --rose: #ff2d55; --rose2: #ff6f8e; --gold: #f2c38b; --gold2: #e9a96b; --plum: #3a1a3c;
  --serif: "Cormorant", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --hand: "Hand", "Bradley Hand", cursive;
  --dev: "Tiro", "Noto Serif Devanagari", serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: radial-gradient(900px 600px at 50% -10%, #3b1638 0%, transparent 60%), var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: 0.01em; }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
.dev { font-family: var(--dev); }
[hidden] { display: none !important; }
.view { display: none; min-height: 100%; }
body[data-view="gate"] #gate, body[data-view="app"] #app { display: block; }

/* ----------------------------------------------------------------- buttons */
.btn { border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: 600 15px var(--sans); padding: 12px 18px; border-radius: 999px; min-height: 46px; cursor: pointer; transition: transform 0.15s var(--ease), background 0.2s; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(135deg, #ff2d55, #c2185b); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(255, 45, 85, 0.9); }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; font-size: 17px; min-height: 54px; }
.btn.wide { width: 100%; }
.link { background: none; border: none; color: var(--gold); font: 500 15px var(--sans); padding: 12px; cursor: pointer; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- gate */
#gate { position: relative; min-height: 100vh; display: none; }
body[data-view="gate"] #gate { display: flex; flex-direction: column; justify-content: flex-end; }
.gate-sky { position: absolute; inset: 0 0 45% 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.gate-sky .sky { background: linear-gradient(180deg, #0b1026, #2a1b45 70%, #4a2047); }
.gate-sky .s2 { background: linear-gradient(180deg, #f6a37a, #c4587a 70%, #4a2047); }
.gate-sky .thread { position: absolute; left: 0; right: 0; top: 55%; width: 100%; height: 80px; }
.gate-sky .thread path { fill: none; stroke: #ff2d55; stroke-width: 2; filter: drop-shadow(0 0 6px #ff2d55); }
.gate-card { position: relative; z-index: 2; margin: 0 14px calc(18px + var(--safe-b)); padding: 28px 22px 22px; border-radius: 28px; background: rgba(29, 16, 32, 0.92); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); text-align: center; }
.logo { font-size: 54px; line-height: 1; }
.logo .dev { font-size: 40px; color: var(--gold); margin-left: 6px; }
.gate-sub { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); margin: 6px 0 22px; }
.gate-msg { min-height: 1.4em; color: var(--gold); margin: 12px 0 0; font-size: 14px; }
.gate-msg.err { color: #ff8aa0; }
.setup-hi { font-family: var(--serif); font-size: 26px; margin: 0 0 4px; }
.who { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.who-btn { flex: 1; max-width: 140px; padding: 12px; border-radius: 16px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font: 600 16px var(--sans); }
.who-btn.on { background: rgba(255, 45, 85, 0.18); border-color: var(--rose); }
.dots { display: flex; gap: 14px; justify-content: center; margin: 14px 0 18px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--gold); transition: background 0.15s; }
.dots i.f { background: var(--gold); }
.dots.shake { animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px 22px; justify-content: center; }
.pad button { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.05); color: var(--ink); font: 400 28px var(--sans); }
.pad button:active { background: rgba(255, 45, 85, 0.25); }
.pad button.k-empty { visibility: hidden; }
.pad button.k-del { font-size: 18px; border: none; background: none; }

/* ----------------------------------------------------------------- screens + tabs */
#screens { padding-bottom: calc(96px + var(--safe-b)); }
.screen { display: none; padding: 0 14px; animation: fadeUp 0.35s var(--ease); }
.screen.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.top { padding: calc(18px + var(--safe-t)) 4px 12px; }
.top h2 { font-size: 36px; }
.tabs { position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 26px; background: rgba(29, 16, 32, 0.86); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tabs button { background: none; border: none; color: var(--dim); font: 600 10.5px var(--sans); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 18px; }
.tabs button span { font-size: 19px; line-height: 1.1; }
.tabs button.on { color: var(--ink); background: rgba(255, 45, 85, 0.16); }
.fab { position: fixed; right: 20px; bottom: calc(92px + var(--safe-b)); z-index: 21; width: 58px; height: 58px; border-radius: 50%; border: none; color: #fff; font: 300 34px/1 var(--sans); background: linear-gradient(135deg, #ff2d55, #c2185b); box-shadow: 0 12px 30px -8px rgba(255, 45, 85, 0.9); }
body[data-tab="home"] .fab, body[data-tab="more"] .fab { display: none; }

/* ----------------------------------------------------------------- the two skies */
.skies { position: relative; height: calc(250px + var(--safe-t)); margin: 0 -14px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 0 0 34px 34px; }
.sky-pane { position: relative; overflow: hidden; transition: background 2s; }
.sky-pane .stars { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 2s; }
.orb { position: absolute; width: 34px; height: 34px; border-radius: 50%; transform: translate(-50%, -50%); transition: left 2s, top 2s; }
.orb.sun { background: radial-gradient(circle, #fff7d6 0 35%, #ffd27a 60%, rgba(255, 210, 122, 0) 72%); box-shadow: 0 0 40px 12px rgba(255, 200, 110, 0.45); }
.orb.moon { background: radial-gradient(circle at 35% 35%, #fffaf0 0 50%, #e9e2cf 70%); box-shadow: 0 0 30px 6px rgba(255, 250, 230, 0.25); }
.sky-pane::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(180deg, rgba(20, 10, 20, 0), rgba(20, 10, 20, 0.55)); pointer-events: none; }
.sky-text { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 2; text-align: center; display: flex; flex-direction: column; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.35); }
.city { font: 700 11.5px var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.clock { font: 600 38px/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.clock .ampm { font: 700 12px var(--sans); letter-spacing: 0.14em; vertical-align: 0.55em; margin-left: 1px; opacity: 0.92; }
.day { font-size: 13px; font-weight: 500; }
.thread-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; filter: drop-shadow(0 0 5px rgba(255, 45, 85, 0.8)); }
.heart { position: absolute; z-index: 3; left: 50%; top: 68%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; border: none; background: radial-gradient(circle, rgba(255, 45, 85, 0.35), rgba(255, 45, 85, 0) 70%); display: grid; place-items: center; }
.heart svg { width: 34px; height: 31px; fill: #ff2d55; filter: drop-shadow(0 0 10px #ff2d55); animation: beat 1.1s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } 36% { transform: scale(1.12); } 48% { transform: scale(1); } }

/* ----------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; margin-top: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card h3 { font-size: 22px; margin-bottom: 6px; }
.kicker { font: 700 10.5px var(--sans); letter-spacing: 0.2em; color: var(--gold); }
.together { text-align: center; margin-top: -22px; position: relative; z-index: 3; }
.ymd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ymd .unit { display: flex; flex-direction: column; align-items: center; }
.ymd b { font: 600 52px/1 var(--serif); color: var(--rose2); font-variant-numeric: lining-nums tabular-nums; }
.ymd span { font: 600 11px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.hms { font: 500 15px var(--sans); letter-spacing: 0.08em; color: var(--ink2); font-variant-numeric: tabular-nums; margin-top: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.fact { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.fact b { display: block; font: 600 24px var(--serif); color: var(--gold); font-variant-numeric: lining-nums; }
.fact span { font-size: 12px; color: var(--muted); }
.ping-card { text-align: center; }
.beat { display: inline-block; }
.pinging .beat { animation: beat 0.8s 3; }
.daily { position: relative; background: linear-gradient(160deg, rgba(255, 241, 230, 0.96), rgba(250, 222, 214, 0.96)); color: #4a2030; border: none; }
.daily .kicker { color: #b4566c; }
.hand { font: 500 26px/1.25 var(--hand); margin: 8px 0 6px; white-space: pre-wrap; }
.hand.devtext { font: italic 21px/1.6 var(--dev); }
.sig { font: 500 20px var(--hand); color: #b4566c; display: block; text-align: right; }
.meet { text-align: center; }
.count { display: flex; justify-content: center; gap: 8px; margin: 10px 0 6px; }
.count div { min-width: 64px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 16px; padding: 8px 4px; }
.count b { display: block; font: 600 30px var(--serif); font-variant-numeric: tabular-nums; }
.count span { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.lockline { font-size: 14px; color: var(--gold); margin-top: 8px; }
.reveal { background: rgba(255, 45, 85, 0.1); border: 1px dashed var(--rose2); border-radius: 18px; padding: 14px; margin-top: 12px; white-space: pre-wrap; text-align: left; }
.reveal img { width: 100%; border-radius: 14px; margin-top: 10px; }
.special { margin-top: 14px; padding: 14px 16px; border-radius: 20px; text-align: center; background: linear-gradient(135deg, rgba(242, 195, 139, 0.18), rgba(255, 45, 85, 0.18)); border: 1px solid rgba(242, 195, 139, 0.4); font-family: var(--serif); font-size: 21px; }

/* ----------------------------------------------------------------- memories */
.filters { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.filters button { flex: none; border: 1px solid var(--line2); background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 14px; font: 600 13px var(--sans); }
.filters button.on { color: var(--ink); background: rgba(255, 45, 85, 0.18); border-color: var(--rose); }
.masonry { columns: 2; column-gap: 10px; }
.mem { break-inside: avoid; margin-bottom: 10px; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.mem img { width: 100%; display: block; }
.mem .mtext { padding: 10px 12px 12px; font-size: 14px; color: var(--ink2); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.mem.shayari .mtext { font: italic 16px/1.6 var(--dev); text-align: center; color: #ffe6ec; }
.mem.thought .mtext { font: 500 21px/1.25 var(--hand); }
.mem.textonly { background: linear-gradient(160deg, #3a1a3c, #2a1430); }
.mem .mmeta { display: flex; justify-content: space-between; padding: 0 12px 10px; font-size: 11.5px; color: var(--dim); }
.badge { font: 700 9.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-family: var(--serif); font-size: 20px; font-style: italic; }

/* ----------------------------------------------------------------- letters */
.sec { font-size: 15px; font-family: var(--sans); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 18px 4px 10px; }
.envelopes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.env { position: relative; aspect-ratio: 1.45; border-radius: 16px; background: linear-gradient(160deg, #f7e6d5, #e8cdb6); color: #5a2a36; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: none; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 10px 24px -14px #000; }
.env::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%; background: linear-gradient(160deg, #efd8c2, #dfbea3); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform 0.6s var(--ease); transform-origin: top; }
.env .seal { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6f8e, #b3123b); color: #fff; display: grid; place-items: center; font-size: 15px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); }
.env .etitle { position: relative; font: 600 17px/1.15 var(--serif); }
.env .esub { position: relative; font-size: 11.5px; color: #8a5a63; }
.env.locked { filter: saturate(0.6) brightness(0.85); }
.env.opened { background: linear-gradient(160deg, #fff6ee, #f1e0cf); }
.env.opened::before { transform: rotateX(180deg); opacity: 0.6; }
.sent { display: flex; flex-direction: column; gap: 8px; }
.sent-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sent-row b { font-family: var(--serif); font-size: 18px; }
.sent-row span { font-size: 12px; color: var(--muted); }

/* ----------------------------------------------------------------- notes */
.notes { columns: 2; column-gap: 10px; }
.note { break-inside: avoid; margin-bottom: 10px; border-radius: 18px; padding: 14px; color: #3a1d26; cursor: pointer; box-shadow: 0 10px 22px -16px #000; }
.note.rose { background: #ffd9e0; } .note.peach { background: #ffe1c9; } .note.lilac { background: #e7dcff; } .note.mint { background: #d6f3e4; } .note.sky { background: #d6ebff; }
.note h4 { margin: 0 0 4px; font: 600 18px var(--serif); }
.note p { margin: 0; font-size: 14.5px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.note .nmeta { margin-top: 8px; font-size: 11px; opacity: 0.6; }
.note.pinned { outline: 2px solid var(--gold2); }

/* ----------------------------------------------------------------- forms + sheets */
textarea, input[type="text"], input[type="datetime-local"], input[type="date"] { width: 100%; background: rgba(0, 0, 0, 0.25); color: var(--ink); border: 1px solid var(--line2); border-radius: 14px; padding: 12px; font: 16px var(--sans); outline: none; color-scheme: dark; margin: 6px 0 10px; }
textarea:focus, input:focus { border-color: var(--rose2); }
.lbl { display: block; font-size: 13px; color: var(--muted); }
.lbl.file input { margin-top: 6px; color: var(--muted); font-size: 13px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 40; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92vh; overflow-y: auto; background: #241327; border-radius: 28px 28px 0 0; padding: 10px 18px calc(24px + var(--safe-b)); border-top: 1px solid var(--line2); animation: up 0.3s var(--ease); }
@keyframes up { from { transform: translateY(100%); } }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line2); margin: 0 auto 14px; }
.sheet h3 { font-size: 26px; margin-bottom: 10px; }
.seg { display: flex; gap: 6px; background: rgba(0, 0, 0, 0.25); padding: 4px; border-radius: 14px; margin: 6px 0 12px; }
.seg button { flex: 1; border: none; background: none; color: var(--muted); padding: 9px 4px; border-radius: 10px; font: 600 13px var(--sans); }
.seg button.on { background: rgba(255, 45, 85, 0.25); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.chips button { border: 1px solid var(--line2); background: transparent; color: var(--ink2); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.photo-pick { display: block; border: 1.5px dashed var(--line2); border-radius: 18px; padding: 14px; text-align: center; color: var(--muted); margin: 6px 0 12px; position: relative; overflow: hidden; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; }
.photo-pick img { max-width: 100%; max-height: 240px; border-radius: 12px; display: block; margin: 0 auto; }
.colors { display: flex; gap: 10px; margin: 6px 0 12px; }
.colors button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; }
.colors button.on { border-color: var(--ink); }

/* ----------------------------------------------------------------- viewer (memory / letter) */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(12, 6, 12, 0.96); overflow-y: auto; padding: calc(16px + var(--safe-t)) 16px calc(30px + var(--safe-b)); animation: fade 0.25s; }
.viewer .close { position: sticky; top: 0; float: right; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(0, 0, 0, 0.5); color: var(--ink); font-size: 20px; z-index: 2; }
.viewer img { width: 100%; border-radius: 20px; margin-top: 10px; }
.viewer .vtext { font-size: 17px; line-height: 1.6; white-space: pre-wrap; margin-top: 14px; }
.viewer .vtext.shayari { font: italic 21px/1.8 var(--dev); text-align: center; color: #ffe6ec; }
.viewer .vtext.thought { font: 500 28px/1.3 var(--hand); }
.viewer .vmeta { color: var(--muted); font-size: 13px; margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.paper { background: linear-gradient(180deg, #fff8f0, #f6e7d6); color: #3e1e28; border-radius: 6px 6px 22px 22px; padding: 26px 22px; margin-top: 50px; box-shadow: 0 30px 60px -20px #000; animation: letter 0.9s var(--ease); }
@keyframes letter { from { transform: translateY(60px) scale(0.92); opacity: 0; } }
.paper h3 { font-size: 28px; color: #8a2140; }
.paper .ltext { font: 500 24px/1.35 var(--hand); white-space: pre-wrap; margin-top: 12px; }
.paper img { margin-top: 14px; }
.paper .from { text-align: right; font: 500 22px var(--hand); color: #b4566c; margin-top: 14px; }
.heart-btn { border: 1px solid var(--line2); background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 15px; }
.heart-btn.on { background: rgba(255, 45, 85, 0.25); border-color: var(--rose); }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 70; background: rgba(36, 19, 39, 0.96); border: 1px solid var(--line2); padding: 11px 18px; border-radius: 999px; font-size: 14px; transition: all 0.3s var(--ease); pointer-events: none; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 700px) {
  #screens { max-width: 560px; margin: 0 auto; }
  .tabs { max-width: 540px; margin: 0 auto; }
  .gate-card { max-width: 420px; margin: 0 auto 40px; }
  .sheet { max-width: 560px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ----------------------------------------------------------------- in-app browser nudge + home screen guide */
.inapp { position: fixed; left: 8px; right: 8px; top: calc(8px + var(--safe-t)); z-index: 80; background: linear-gradient(135deg, #ff2d55, #c2185b); color: #fff; border-radius: 18px; padding: 12px 16px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8); display: flex; gap: 10px; align-items: flex-start; }
.inapp b { font-weight: 700; }
.inapp .x { background: none; border: none; color: rgba(255, 255, 255, 0.85); font-size: 17px; padding: 0 0 0 6px; }
.guide-bg { position: fixed; inset: 0; z-index: 90; background: rgba(8, 4, 8, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.25s; }
.guide { position: fixed; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); z-index: 91; max-height: 88vh; overflow-y: auto; background: linear-gradient(170deg, #2b1630, #1b0f1e); border: 1px solid var(--line2); border-radius: 26px; padding: 24px 20px calc(20px + var(--safe-b)); animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-46%) scale(0.94); } }
.guide h3 { font-size: 27px; line-height: 1.15; }
.guide .gkick { font: 700 10.5px var(--sans); letter-spacing: 0.2em; color: var(--gold); }
.guide .lead { color: var(--muted); font-size: 14.5px; margin: 6px 0 16px; }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: g; }
.guide li { counter-increment: g; position: relative; padding: 0 0 14px 40px; font-size: 15px; line-height: 1.45; }
.guide li::before { content: counter(g); position: absolute; left: 0; top: -2px; width: 27px; height: 27px; border-radius: 50%; background: rgba(255, 45, 85, 0.2); border: 1px solid var(--rose); color: #ffd6de; font: 700 13px var(--sans); display: grid; place-items: center; }
.guide li b { color: var(--ink); }
.guide .tip { background: rgba(242, 195, 139, 0.1); border: 1px solid rgba(242, 195, 139, 0.3); border-radius: 16px; padding: 12px 14px; font-size: 13.5px; color: #f6dfc4; margin: 4px 0 18px; line-height: 1.45; }
.guide .icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); vertical-align: -7px; margin: 0 2px; font-size: 14px; }
.guide .done { margin-top: 4px; }
.guide .later { display: block; width: 100%; text-align: center; }

.addhome { display: flex; align-items: center; gap: 9px; width: 100%; margin: 12px 0 0; padding: 13px 16px; border-radius: 18px; border: 1px solid rgba(242, 195, 139, 0.28); background: linear-gradient(120deg, rgba(242, 195, 139, 0.16), rgba(255, 45, 85, 0.10)); color: #f8e3ca; font: 600 14px var(--sans); text-align: left; }
.addhome:not([hidden]) + .together { margin-top: 14px; }
.addhome span { font-size: 16px; }
.addhome b { margin-left: auto; font-size: 18px; color: var(--gold); }
.addhome:active { background: rgba(242, 195, 139, 0.18); }
.guide .again { font-size: 12.5px; color: var(--dim); text-align: center; margin-top: 10px; }
