/* Love calculator (/love-calculator). Phone first: the whole tool fits one phone screen, thumb-sized buttons, 16px+ inputs. */
.page-love { --lv-pink: #E0457B; --lv-pink2: #FF7AA8; --lv-ink: #1B1116; --lv-soft: #8B6F7C; --lv-line: #F2D3DF; background: #FFF8FA; }
.lv-page { padding: 0 16px 28px; background: radial-gradient(520px 420px at 50% 0, #FFE1EC, rgba(255, 248, 250, 0) 75%); }
.lv-app { max-width: 420px; margin: 0 auto; position: relative; }
.lv-step { min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; padding: 14px 0 18px; }
.lv-step[hidden] { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.lv-h { font: 700 clamp(30px, 8.6vw, 40px)/1.06 "Playfair Display", "Playfair Fallback", serif; text-align: center; color: var(--lv-ink); margin: 0; }
.lv-h em { color: var(--lv-pink); }
.lv-ru { text-align: center; font: 700 22px/1.2 Caveat, cursive; color: #B24A72; margin: 6px 0 0; }

.lv-heart { position: relative; width: 132px; height: 124px; margin: 14px auto 0; }
.lv-heart svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 22px rgba(224, 69, 123, .32)); }
.lv-hbg { fill: #F7C2D4; } .lv-hfg { fill: var(--lv-pink); }
.lv-heart b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 10%; font: 800 28px Inter, sans-serif; color: #fff; text-shadow: 0 2px 10px rgba(120, 20, 60, .35); }
.lv-demo { text-align: center; min-height: 20px; margin: 6px 0 0; font: 600 13px Inter, sans-serif; color: var(--lv-soft); }

.lv-in { display: block; margin-top: 10px; }
.lv-in input { width: 100%; height: 56px; border: 1.5px solid var(--lv-line); border-radius: 16px; background: #fff; padding: 0 16px; font: 600 18px Inter, sans-serif; color: var(--lv-ink); outline: none; -webkit-appearance: none; }
.lv-in input::placeholder { color: #C9A3B3; font-weight: 500; }
.lv-in input:focus { border-color: var(--lv-pink); box-shadow: 0 0 0 4px rgba(224, 69, 123, .14); }
.lv-plus { text-align: center; font: 800 18px Inter, sans-serif; color: var(--lv-pink); margin: 4px 0 -6px; }
.lv-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 14px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #E0457B, #FF6E9C); color: #fff; font: 800 17px Inter, sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 12px 24px -10px rgba(224, 69, 123, .6); -webkit-tap-highlight-color: transparent; }
.lv-btn:active { transform: scale(.98); }
.lv-ok { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 12px; font: 600 12px Inter, sans-serif; color: var(--lv-soft); }
.lv-try { margin: 14px 0 0; background: #fff; border: 1px solid #F4E1E8; border-radius: 16px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; color: #6B5A63; }
.lv-try b { color: var(--lv-ink); }
.lv-from { text-align: center; margin: 12px 0 0; }
.lv-from span { display: inline-block; background: #FFF0F5; border: 1px solid var(--lv-line); border-radius: 12px; padding: 8px 12px; font: 700 15px Inter, sans-serif; margin: 0 3px; }

/* reveal: full-bleed dark screen */
.lv-dark { position: relative; margin: 0 -16px; padding: 0 16px; background: radial-gradient(420px 420px at 50% 42%, #5A1636, #200815); color: #fff; overflow: hidden; }
.lv-names { text-align: center; font: 700 28px/1.2 "Playfair Display", serif; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; animation: lv-in .6s ease both; }
.lv-names i { color: var(--lv-pink2); font-style: normal; font-size: 22px; animation: lv-beat .9s ease-in-out infinite; }
.lv-big { width: 220px; height: 206px; margin-top: 26px; }
.lv-big .lv-hbg { fill: #4A1830; } .lv-big .lv-hfg { fill: #FF5C93; }
.lv-big svg { filter: drop-shadow(0 0 30px rgba(255, 92, 147, .35)); }
.lv-big b { font-size: 52px; }
.lv-roll { text-align: center; color: #E5B6C8; font: 600 14px Inter, sans-serif; letter-spacing: .04em; margin: 16px 0 0; }
.lv-sp { position: absolute; color: #FF9CC0; font-style: normal; font-size: 20px; animation: lv-tw 1.6s ease-in-out infinite; }
.lv-sp:nth-of-type(2n) { animation-delay: .8s; }
@keyframes lv-tw { 50% { opacity: .2; transform: scale(.7); } }
@keyframes lv-beat { 50% { transform: scale(1.25); } }
@keyframes lv-in { from { opacity: 0; transform: translateY(10px); } }

/* result */
#lv-result { justify-content: flex-start; padding-top: 16px; }
.lv-card { background: #fff; border-radius: 24px; padding: 18px 16px 12px; text-align: center; box-shadow: 0 16px 34px -20px rgba(90, 20, 50, .45); animation: lv-in .5s ease both; }
.lv-pct { font: 900 64px/1 Inter, sans-serif; color: var(--lv-pink); letter-spacing: -.02em; }
.lv-vd { font: 700 24px/1.2 "Playfair Display", serif; margin-top: 6px; color: var(--lv-ink); }
.lv-nm { font: 600 14px Inter, sans-serif; color: var(--lv-soft); margin-top: 4px; overflow-wrap: anywhere; }
.lv-read { display: grid; gap: 7px; margin-top: 14px; text-align: left; }
.lv-read div { display: flex; justify-content: space-between; gap: 10px; background: #FFF4F8; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.lv-read b { color: var(--lv-pink); text-align: right; overflow-wrap: anywhere; }
.lv-fun { font-size: 11.5px; color: #AA93A0; margin: 10px 0 0; }
.lv-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.lv-a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 16px; border: 0; padding: 8px; font: 800 14.5px Inter, sans-serif; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lv-a:active { transform: scale(.98); }
.lv-wa { background: #25D366; color: #fff; }
.lv-st { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); color: #fff; }
.lv-ag { grid-column: 1 / -1; background: #fff; border: 1.5px solid var(--lv-line); color: var(--lv-ink); }
.lv-cta { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 20px; background: #1B1116; color: #fff; text-decoration: none; }
.lv-cta img { width: 58px; height: 104px; border-radius: 10px; object-fit: cover; flex: none; }
.lv-cta b { display: block; font: 800 15px Inter, sans-serif; overflow-wrap: anywhere; }
.lv-cta small { display: block; font-size: 12.5px; color: #D8C2CC; margin: 4px 0 10px; }
.lv-pill { display: inline-block; background: var(--lv-pink); border-radius: 999px; padding: 8px 14px; font: 800 13px Inter, sans-serif; }
.lv-cta2 { display: block; margin-top: 10px; padding: 13px 14px; border-radius: 16px; background: #E9F6EF; color: #0A5A35; font-size: 13.5px; line-height: 1.4; text-decoration: none; }
.lv-cta2 b { color: #073F25; }

/* story card dialog */
.lv-dlg { border: 0; padding: 0; background: transparent; max-width: min(92vw, 380px); width: 100%; }
.lv-dlg::backdrop { background: rgba(20, 5, 12, .82); }
.lv-dlg img { display: block; width: 100%; height: auto; max-height: 64svh; object-fit: contain; border-radius: 18px; }
.lv-dlg-b { background: #fff; border-radius: 18px; padding: 12px; margin-top: 10px; text-align: center; }
.lv-dlg-b .lv-btn { margin-top: 0; }
.lv-hint { font-size: 13px; color: #6B5A63; margin: 10px 0 4px; }
.lv-close { background: none; border: 0; font: 700 15px Inter, sans-serif; color: var(--lv-soft); padding: 10px 20px; min-height: 44px; cursor: pointer; }

.lv-more h2 { font-size: 22px; margin: 18px 0 8px; }
.lv-more p { color: #4E3F47; line-height: 1.6; }
@media (min-width: 700px) { .lv-step { min-height: calc(100vh - 90px); } .lv-dark { margin: 24px 0; border-radius: 32px; min-height: 640px; } }
@media (prefers-reduced-motion: reduce) { .lv-names i, .lv-sp, .lv-card, .lv-names { animation: none; } }
@media (max-height: 700px) { .lv-heart:not(.lv-big) { width: 96px; height: 90px; margin-top: 8px; } .lv-heart:not(.lv-big) b { font-size: 22px; } .lv-try { display: none; } .lv-step { justify-content: flex-start; } }
