/* Love calculator (love-calculator.js). Face-off layout: two name cards with a heart between them,
   then a result hero (ring, tier, share) and the details. Tokens only, so dark mode works. */
.tool .lc-faceoff { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: start; gap: 6px; }
.tool .lc-person {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 10px; border-radius: 24px; min-width: 0;
  background: var(--surface); box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.77, 0, .175, 1);
}
.tool .lc-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tool .lc-avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--ramp); font-size: 26px; font-weight: 950; line-height: 1; user-select: none;
}
.tool .lc-avatar.is-empty { background: rgb(var(--accent) / .1); color: rgb(var(--accent) / .55); }
.tool .lc-avatar .tool-icon { width: 24px; height: 24px; }
.tool .lc-avatar.is-new { animation: lc-pop .3s var(--ease-out) both; }
@keyframes lc-pop { from { transform: scale(.85); } to { transform: scale(1); } }
.tool .lc-sign { font-size: 12px; line-height: 16px; font-weight: 850; color: var(--link); }
.tool .lc-name { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: center; }
.tool .lc-who { font-size: 13px; line-height: 18px; font-weight: 850; color: rgb(var(--ink) / .55); }
.tool .lc-person input[type="text"] { text-align: center; font-size: 18px; font-weight: 800; padding: 10px 8px; }
.tool .lc-person input[type="date"] { font-size: 16px; padding: 8px; min-height: 44px; text-align: center; }
.tool .lc-date { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: center; }
.tool .lc-add-date {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border-radius: 18px;
  font-size: 14px; font-weight: 800; color: var(--link); background: transparent; touch-action: manipulation;
}
.tool .lc-add-date .tool-icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .tool .lc-add-date:hover { background: rgb(var(--accent) / .1); } }
.tool .lc-heart { align-self: center; margin-top: -40px; display: grid; place-items: center; color: rgb(var(--accent)); }
.tool .lc-heart .tool-icon { width: 26px; height: 26px; fill: currentColor; }
.tool .lc-faceoff.is-calculating .lc-person:first-child { transform: translateX(8px) rotate(2deg); }
.tool .lc-faceoff.is-calculating .lc-person:last-child { transform: translateX(-8px) rotate(-2deg); }
.tool .lc-faceoff.is-calculating .lc-heart { animation: lc-beat .42s ease-in-out infinite alternate; }
@keyframes lc-beat { to { transform: scale(1.35); } }
.tool .tool-setup .lc-go { flex: none; width: 100%; height: 56px; }
.tool .lc-status { text-align: center; min-height: 20px; }
.tool .lc-status.is-err { color: #C0237A; }

.tool .lc-result { display: grid; gap: 16px; scroll-margin-top: 96px; }
.tool .lc-result.is-new { animation: card-in .45s var(--ease-out) both; }
.tool .lc-more { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.tool .lc-score { display: flex; align-items: center; gap: 18px; }
.tool .lc-ring-wrap { position: relative; flex: none; }
.tool .lc-score-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tool .lc-names { font-size: 15px; line-height: 20px; font-weight: 800; color: rgb(var(--ink) / .55); overflow-wrap: anywhere; }
.tool .lc-tier { font-size: 26px; line-height: 30px; font-weight: 950; letter-spacing: -.02em; color: rgb(var(--ink)); outline: 0; text-wrap: balance; }
.tool .lc-line { font-size: 16px; line-height: 23px; font-weight: 600; color: rgb(var(--ink) / .75); }
.tool .lc-shared { padding: 10px 14px; border-radius: 14px; background: rgb(var(--accent) / .12); font-size: 15px; font-weight: 750; color: rgb(var(--ink)); }
.tool .lc-result .tool-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool .lc-result .tool-actions .btn-primary { grid-column: 1 / -1; }
.tool .lc-result .tool-actions .btn { width: 100%; height: 52px; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.tool .lc-hide { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; margin-top: -6px; font-size: 14px; font-weight: 700; color: rgb(var(--ink) / .65); cursor: pointer; }
.tool .lc-hide input { width: 18px; height: 18px; accent-color: rgb(var(--accent)); }
.tool .lc-result.is-high .fun-ring-arc { filter: drop-shadow(0 0 6px rgb(var(--accent) / .6)); }

/* 90+ scores: a small burst of hearts from the ring (rare, so it may delight). */
.tool .lc-burst { position: absolute; inset: 0; pointer-events: none; }
.tool .lc-burst span { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; color: rgb(var(--accent)); opacity: 0; animation: lc-burst 1.1s cubic-bezier(.23, 1, .32, 1) calc(.6s + var(--i) * 40ms) both; --a: calc(var(--i) * 45deg); }
.tool .lc-burst .tool-icon { width: 18px; height: 18px; fill: currentColor; }
@keyframes lc-burst {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-86px) scale(1); }
}

.tool .lc-sec-head { font-size: 13px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--ink) / .5); margin-bottom: 10px; }
.tool .lc-meters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.tool .lc-meters > *, .tool .lc-meters .fun-meter-label { min-width: 0; }
.tool .lc-meters .fun-meter-row { grid-template-columns: minmax(0, 1fr); }
.tool .lc-meters .fun-meter-top { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
.tool .lc-meters .fun-meter-val { font-size: 22px; line-height: 26px; font-weight: 950; color: rgb(var(--ink)); letter-spacing: -.02em; }
.tool .lc-meters .fun-meter-label { font-size: 14px; line-height: 18px; font-weight: 800; color: rgb(var(--ink) / .6); }
.tool .lc-sum { font-size: 15px; line-height: 22px; font-weight: 600; color: rgb(var(--ink) / .7); margin-top: 12px; }
.tool .lc-sum b { font-weight: 850; color: rgb(var(--ink)); }
.tool .lc-math { display: grid; gap: 8px; }
.tool .lc-math .lc-sec-head { margin-bottom: 2px; }
.tool .lc-math-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool .lc-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 20px;
  background: var(--surface-2); font-size: 14px; line-height: 18px; font-weight: 700; color: rgb(var(--ink) / .8); text-decoration: none;
}
.tool .lc-chip b { font-weight: 900; color: rgb(var(--ink)); }
.tool button.lc-chip { color: var(--link); transition: transform .16s var(--ease-out); }
.tool .lc-chip .tool-icon { width: 16px; height: 16px; }
.tool button.lc-chip:active { transform: scale(.96); }
.tool .lc-zodiac {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--surface-2); text-decoration: none; transition: transform .16s var(--ease-out);
}
.tool .lc-zodiac:active { transform: scale(.98); }
.tool .lc-zodiac-glyphs { display: flex; gap: 2px; color: rgb(var(--ink)); }
.tool .lc-zodiac-text { display: grid; }
.tool .lc-zodiac-text b { font-size: 15px; font-weight: 900; color: rgb(var(--ink)); }
.tool .lc-zodiac-text span { font-size: 14px; font-weight: 650; color: var(--link); }
.tool .lc-zodiac > .tool-icon { width: 18px; height: 18px; color: var(--link); }
.tool .lc-idea { padding: 16px; border-radius: 20px; background: rgb(var(--accent) / .08); display: grid; gap: 6px; }
.tool .lc-idea-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tool .lc-idea-head { font-size: 13px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.tool .lc-idea-text { font-size: 18px; line-height: 26px; font-weight: 800; color: rgb(var(--ink)); }
.tool .lc-idea-text.is-new { animation: card-in .35s var(--ease-out) both; }

.tool .lc-recent { display: grid; gap: 10px; }
.tool .lc-recent-top { display: flex; justify-content: space-between; align-items: center; }
.tool .lc-clear { min-height: 40px; padding: 0 12px; border-radius: 20px; font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .55); background: transparent; }
.tool .lc-recent-list { display: grid; gap: 8px; }
.tool .lc-recent-list li { display: flex; gap: 8px; align-items: center; }
.tool .lc-recent-open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 18px; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .06); transition: transform .16s var(--ease-out);
}
.tool .lc-recent-open:active { transform: scale(.98); }
.tool .lc-recent-s { flex: none; width: 52px; font-size: 18px; font-weight: 950; color: var(--link); font-variant-numeric: tabular-nums; }
.tool .lc-recent-n { font-size: 16px; font-weight: 750; color: rgb(var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 600px) { .tool .lc-faceoff { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 8px; } }
/* Desktop: hero on the left, details on the right. */
@media (min-width: 900px) {
  .tool .lc-result { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }

}
@media (max-width: 599px) {
  .tool .lc-more { padding: 16px; }
  .tool .lc-score { gap: 14px; }
  .tool .fun-ring { width: 124px; height: 124px; }
  .tool .fun-ring-mid { padding-top: 38px; }
  .tool .fun-ring-num { font-size: 40px; line-height: 44px; }
  .tool .lc-tier { font-size: 22px; line-height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool .lc-person { transition: none; }
  .tool .lc-avatar.is-new, .tool .lc-result.is-new, .tool .lc-idea-text.is-new, .tool .lc-faceoff.is-calculating .lc-heart { animation: none; }
  .tool .lc-burst { display: none; }
}
/* Round 3: gradient hero (engine), left column = hero + actions + next move, right = breakdown and classics. */
.tool .lc-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tool .lc-left .tool-actions { margin-top: 4px; }
.tool .lc-rank { text-align: center; font-size: 14px; font-weight: 800; color: var(--link); }
.tool .lc-rank[hidden] { display: none; }
.tool .fun-hero .lc-burst span { top: 46%; color: #fff; }
.tool .lc-more { gap: 18px; }
.tool .lc-breakdown .lc-sum { margin-top: 0; }
.tool .lc-chip { font-size: 13px; min-height: 36px; }
@media (min-width: 900px) {
  .tool .lc-result { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tool .lc-left { position: sticky; top: 100px; }
  .tool .lc-faceoff { max-width: 640px; margin: 0 auto; width: 100%; }
  .tool .tool-setup .lc-go { max-width: 640px; margin: 0 auto; }
}
.tool[data-tool="love-calculator"] > .tool-cta, .tool[data-tool="zodiac-compatibility-calculator"] > .tool-cta { padding-top: 14px; border-top: 1px solid rgb(var(--ink) / .08); }
@media (max-width: 599px) { .tool .lc-person { padding: 14px 6px 8px; } .tool .lc-person input[type="text"] { padding: 10px 4px; } }
.tool .lc-examples { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: -6px; font-size: 13px; font-weight: 750; color: rgb(var(--ink) / .55); }
.tool .lc-examples[hidden] { display: none; }
.tool .lc-example { min-height: 32px; padding: 0 12px; border-radius: 16px; font-size: 13px; font-weight: 800; color: var(--link); background: rgb(var(--accent) / .1); transition: transform .16s var(--ease-out); }
.tool .lc-example:active { transform: scale(.96); }
.tool .lc-more .lc-recent { padding-top: 6px; border-top: 1px solid rgb(var(--ink) / .08); }
.tool .lc-more .lc-recent .tool-title { font-size: 13px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--ink) / .5); line-height: 18px; }
.tool .lc-more .lc-recent-open { background: var(--surface-2); box-shadow: none; }
.tool .lc-more .lc-recent[hidden] { display: none; }
/* Round 5 */
.tool .lc-bday-btn { align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; margin: -4px 0; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px rgb(var(--accent) / .3); color: var(--link); font-size: 14px; font-weight: 850; transition: transform .16s var(--ease-out); }
.tool .lc-bday-btn[hidden] { display: none; }
.tool .lc-bday-btn:active { transform: scale(.96); }
.tool .lc-bday-btn .tool-icon { width: 16px; height: 16px; }
.tool .lc-means { display: grid; gap: 12px; }
.tool .lc-mean { display: grid; gap: 2px; }
.tool .lc-mean-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 20px; }
.tool .lc-mean-top b { font-weight: 850; color: rgb(var(--ink)); }
.tool .lc-mean-top span { font-weight: 900; color: var(--link); font-variant-numeric: tabular-nums; }
.tool .lc-mean-text { font-size: 14px; line-height: 20px; font-weight: 600; color: rgb(var(--ink) / .65); }
@media (max-width: 599px) {
  .tool .lc-faceoff { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 4px; }
  .tool .lc-heart .tool-icon { width: 18px; height: 18px; }
  .tool .lc-person { padding: 14px 6px 10px; }
}
