/* Couples compatibility test (couples-compatibility-test.js). Tokens only, so dark mode works. */
.tool.cmp .u5-stage { min-height: 460px; }
.tool .cmp-q { gap: 16px; }
.tool .cmp-bar { height: 8px; }
.tool .cmp-bar > span { transition: width .3s var(--ease-out); }
.tool .cmp-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.tool .cmp-area { align-self: flex-start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 14px; background: var(--surface); font-size: 13px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; color: var(--link); }
.tool .cmp-who { font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .7); }
.tool .cmp-question { min-height: 64px; display: flex; align-items: center; font-size: 24px; line-height: 32px; font-weight: 850; letter-spacing: -.015em; text-wrap: balance; color: rgb(var(--ink)); }
.tool .cmp-opts { display: grid; gap: 10px; }
.tool .cmp-opt {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border-radius: 20px; text-align: left;
  background: var(--surface); color: rgb(var(--ink)); font-size: 17px; line-height: 24px; font-weight: 750;
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08); transition: box-shadow .15s ease, background-color .15s ease, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.tool .cmp-opt:active { transform: scale(.98); }
.tool .cmp-key { flex: none; width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; font-weight: 900; color: rgb(var(--ink) / .55); transition: background-color .15s ease, color .15s ease; }
.tool .cmp-opt[aria-checked="true"] { background: rgb(var(--accent) / .14); box-shadow: inset 0 0 0 2px rgb(var(--accent)); }
.tool .cmp-opt[aria-checked="true"] .cmp-key { background: rgb(var(--accent)); color: var(--surface); }
@media (hover: hover) { .tool .cmp-opt:hover { box-shadow: inset 0 0 0 2px rgb(var(--accent) / .45); } }

.tool .cmp-lock { width: 64px; height: 64px; border-radius: 32px; display: grid; place-items: center; background: var(--ramp); color: #fff; box-shadow: 0 8px 24px rgb(121 35 192 / .3); animation: cmp-pop .45s var(--ease-out) both; }
.tool .cmp-lock .tool-icon { width: 30px; height: 30px; }
@keyframes cmp-pop { from { transform: scale(.6); opacity: 0; } }

.tool .cmp-diffs, .tool .cmp-all { display: grid; gap: 10px; }
.tool .cmp-diff, .tool .cmp-all li { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface-2); }
.tool .cmp-diff .cmp-area { background: var(--surface); }
.tool .cmp-diff-q, .tool .cmp-all-q { font-size: 17px; line-height: 24px; font-weight: 850; color: rgb(var(--ink)); }
.tool .cmp-all-q { font-size: 16px; }
.tool .cmp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool .cmp-pair span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface); font-size: 15px; line-height: 20px; font-weight: 700; color: rgb(var(--ink) / .85); }
.tool .cmp-pair b { font-size: 12px; line-height: 16px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; color: var(--link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool .cmp-pair span + span b { color: rgb(var(--ink) / .55); }
.tool .cmp-talk { font-size: 16px; line-height: 24px; font-weight: 650; color: rgb(var(--ink) / .85); }
.tool .cmp-talk b { color: rgb(var(--ink)); font-weight: 850; }
.tool .cmp-all li { position: relative; padding-left: 22px; }
.tool .cmp-all li::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 2px 2px 0; background: rgb(214 70 110 / .6); }
.tool .cmp-all li.is-same::before { background: rgb(31 157 98 / .7); }
.tool .cmp-all li.is-near::before { background: rgb(230 160 40 / .8); }
@media (max-width: 599px) { .tool .cmp-question { font-size: 22px; line-height: 30px; } .tool .cmp-pair span { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .tool .cmp-lock { animation: none; } }

.tool .cmp-best { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 15px; line-height: 22px; font-weight: 700; color: rgb(var(--ink) / .75); text-align: center; }
.tool .cmp-best b { color: rgb(var(--ink)); font-weight: 900; }
.tool .cmp-meters .u5-meter.is-mid > span { background: linear-gradient(180deg, #D9A9FF, #B46BF2); }
.tool .cmp-meters .u5-meter.is-low > span { background: linear-gradient(180deg, #E5CCFA, #C79AF0); }
.tool .cmp-hand .u5-banner, .tool .cmp-sent .u5-banner { margin-top: 4px; }

.tool .cmp-names { margin: 0; font-size: 30px; line-height: 36px; font-weight: 950; letter-spacing: -.02em; color: rgb(var(--ink)); text-align: center; text-wrap: balance; outline: 0; overflow-wrap: anywhere; }
.tool .cmp-verdict { margin-top: -10px; font-size: 18px; line-height: 24px; font-weight: 850; color: var(--link); text-align: center; text-wrap: balance; }
.tool .cmp-imgrow { justify-content: center; margin-top: -6px; }
.tool .cmp-imgrow .btn { flex: 0 0 auto; width: auto; height: 44px; padding: 0 18px; font-size: 15px; }
.tool .cmp-all li .u5-badge { margin-bottom: -4px; }
@media (max-width: 599px) { .tool .cmp-meters { grid-template-columns: 1fr 1fr; gap: 12px 16px; } .tool .cmp-meters .u5-meterlabel { font-size: 14px; } }

.tool .cmp-same { display: grid; gap: 8px; }
.tool .cmp-same li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; font-weight: 650; color: rgb(var(--ink) / .85); }
.tool .cmp-same .tool-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #1F9D62; }
.tool .cmp-same b { color: rgb(var(--ink)); font-weight: 850; }
.tool .cmp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.tool .cmp-dot.is-diff { background: rgb(214 70 110 / .8); } .tool .cmp-dot.is-near { background: rgb(230 160 40 / .9); } .tool .cmp-dot.is-same { background: rgb(31 157 98 / .8); }

@media (max-width: 599px) { .tool .cmp-names-row { grid-template-columns: 1fr 1fr; } }
.tool .cmp-talked { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 22px; background: var(--surface); font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .8); transition: background-color .15s ease, transform .16s var(--ease-out); }
.tool .cmp-talked:active { transform: scale(.96); }
.tool .cmp-tick { width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgb(var(--ink) / .25); transition: background-color .12s ease, box-shadow .12s ease; }
.tool .cmp-tick .tool-icon { width: 14px; height: 14px; color: var(--surface); opacity: 0; transform: scale(.25); transition: opacity .12s cubic-bezier(.2, 0, 0, 1), transform .12s cubic-bezier(.2, 0, 0, 1); }
.tool .cmp-talked[aria-pressed="true"] .cmp-tick { background: #1F9D62; box-shadow: none; }
.tool .cmp-talked[aria-pressed="true"] .tool-icon { opacity: 1; transform: none; }
@media (max-width: 599px) { .tool.is-asking .cmp-question { flex: 1 1 auto; } }
