/* No More Heartbreak: compact 40:21 hero and artwork-backed catalogue link. */
.lf-sr-quiz{--wr-red:#e0ad6a;--wr-dark:#19364a;max-width:920px;margin-inline:auto}
.lf-sr-quiz .lf-sr-hero{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);align-items:center;gap:clamp(14px,2.5vw,26px);padding:clamp(15px,2.5vw,24px);margin-bottom:22px;border:1px solid #8a9ba7;border-radius:19px;background:radial-gradient(circle at 92% 4%,#e5ac6c30,transparent 48%),linear-gradient(125deg,#101e31,#1d2a4f 55%,#343452);box-shadow:0 14px 35px #0f1c2f29}
.lf-sr-quiz .lf-sr-hero .lf-wr-cover{position:relative;display:block;width:100%;min-width:0;min-height:0;height:auto;max-height:none;aspect-ratio:511/268;float:none;margin:0;overflow:hidden;border-radius:13px;border:1px solid #ffddb661;background:#091e32;box-shadow:0 10px 28px #050d1a73}
.lf-sr-quiz .lf-sr-hero .lf-wr-cover img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.lf-sr-quiz .lf-wr-hero-copy{min-width:0;width:100%}
.lf-sr-quiz .lf-wr-hero-copy .lf-survey-overline{color:#ebccad;letter-spacing:.13em}
.lf-sr-quiz .lf-wr-hero-copy h2{color:#fff4df;font:700 clamp(22px,2.9vw,32px)/1.45 "Noto Serif TC","Songti TC",serif;margin:8px 0 12px}
.lf-sr-quiz .lf-wr-hero-copy p{color:#e4e8f0;font-size:13px;line-height:1.7;margin:7px 0}
.lf-sr-quiz .lf-wr-hero-copy .lf-wr-subnote{font-size:11px;color:#c9d1dc}
.lf-sr-quiz .lf-survey-progress-line>div{background:linear-gradient(90deg,#2c7791,#d8aa8c,#f1d5a1)}
.lf-sr-quiz .lf-survey-question-card{border-color:#c8d6df;background:linear-gradient(140deg,#fffefa,#f5f9fc)}
.lf-sr-quiz .lf-survey-choice.is-selected{border-color:#438aa3;background:#edf7fb}
.lf-sr-quiz .lf-survey-choice.is-selected .lf-survey-choice-dot{border-color:#438aa3}
.lf-sr-quiz .lf-wr-character{border-color:#a5b9ca}
.lf-sr-hearttest-promo{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.17fr);align-items:center;overflow:hidden;margin:22px 0 30px;border:1px solid #d6b1918c;border-radius:19px;background:radial-gradient(circle at 92% 0%,#e1857d40,transparent 45%),linear-gradient(130deg,#102238,#1d2a4f 50%,#443146);box-shadow:0 16px 38px #101f3533;color:#fff4e6}
.lf-sr-promo-art{display:block;align-self:center;line-height:0;margin:17px 0 17px 17px;border-radius:11px;overflow:hidden;border:1px solid #ffe2ba59;box-shadow:0 9px 22px #030e1e59}
.lf-sr-promo-art img{display:block;width:100%;height:auto;aspect-ratio:511/268;object-fit:cover;transition:transform .3s ease}
.lf-sr-promo-art:hover img{transform:scale(1.025)}
.lf-sr-promo-content{display:flex;flex-direction:column;align-items:flex-start;gap:11px;min-width:0;padding:21px clamp(16px,3vw,28px) 24px}
.lf-sr-promo-overline{color:#e7c9a7;font-size:10px;font-weight:800;letter-spacing:.15em}
.lf-sr-promo-content h3{color:#fff3dc;font:700 clamp(21px,2.6vw,29px)/1.45 "Noto Serif TC","Songti TC",serif;margin:0}
.lf-sr-promo-content p{color:#e0e5ea;font-size:13px;line-height:1.75;margin:0}
.lf-sr-promo-pills{display:flex;flex-wrap:wrap;gap:7px}
.lf-sr-promo-pills span{border:1px solid #e8c6a754;border-radius:999px;padding:5px 9px;background:#ffffff11;color:#f5dfcb;font-size:10px;line-height:1.4}
.lf-sr-promo-cta{display:inline-flex;justify-content:center;align-items:center;gap:24px;margin-top:3px;border-radius:11px;padding:11px 19px;background:linear-gradient(110deg,#f4d6ad,#eebc9a);color:#253343!important;text-decoration:none!important;font-size:14px;font-weight:800;box-shadow:0 6px 20px #060f1b3d;transition:transform .2s,box-shadow .2s}
.lf-sr-promo-cta:hover{transform:translateY(-2px);box-shadow:0 9px 24px #060f1b57}
.lf-sr-promo-content small{font-size:10px;line-height:1.5;color:#c6d0dd}
.lf-sr-promo-art:focus-visible,.lf-sr-promo-cta:focus-visible{outline:3px solid #ffe1a8;outline-offset:3px}
@media(max-width:760px){
 .lf-sr-quiz .lf-sr-hero{grid-template-columns:minmax(0,1fr);padding:14px;gap:13px}
 .lf-sr-quiz .lf-sr-hero .lf-wr-cover{width:min(100%,620px);margin-inline:auto;aspect-ratio:511/268}
 .lf-sr-quiz .lf-wr-hero-copy h2{font-size:clamp(21px,4.5vw,29px)}
 .lf-sr-hearttest-promo{grid-template-columns:minmax(0,1fr);border-radius:14px}
 .lf-sr-promo-art{margin:13px 13px 0}
 .lf-sr-promo-content{padding:15px 16px 20px;gap:10px}
 .lf-sr-promo-content h3{font-size:clamp(21px,5vw,27px)}
 .lf-sr-promo-cta{width:100%}
}
@media(prefers-reduced-motion:reduce){.lf-sr-promo-art img,.lf-sr-promo-cta{transition:none}}

/* Show selected priority ranks without enlarging the overall quiz. */
.lf-sr-order{margin-left:auto;flex:none;min-width:25px;height:25px;line-height:25px;text-align:center;border-radius:50%;background:#f2d8a0;color:#253049;font-size:12px;font-weight:800}
.lf-sr-order:empty{display:none}
.lf-sr-quiz .lf-survey-choice{gap:10px}

.lf-sr-quiz{--wr-red:#ed814e;--wr-dark:#29160f}
.lf-sr-quiz .lf-sr-hero{background:linear-gradient(115deg,#171211,#311c13 67%,#5e2818);border-color:#c76e47}
.lf-sr-quiz .lf-wr-hero-copy h2{color:#ffe4ba}
.lf-sr-quiz .lf-survey-progress-line>div{background:linear-gradient(90deg,#ab251b,#fa7c32,#ffe2ac)}
.lf-sr-quiz .lf-survey-choice.is-selected{background:#fff3e8;border-color:#da6934}
.lf-sr-hearttest-promo{border:1px solid #dc784d;border-radius:18px;background:linear-gradient(125deg,#151111,#351c12 62%,#51200e);box-shadow:0 15px 32px #1e100c40;margin:22px 0;overflow:hidden}
.lf-sr-promo-art{display:block;overflow:hidden;line-height:0;margin:13px 13px 0;border-radius:11px}
.lf-sr-promo-art img{display:block;width:100%;height:auto;aspect-ratio:511/268;object-fit:cover;transition:transform .3s}
.lf-sr-promo-art:hover img{transform:scale(1.02)}
.lf-sr-promo-content{padding:18px 22px 23px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.lf-sr-promo-overline{color:#ffceaa;letter-spacing:.16em;font-size:11px;font-weight:800}
.lf-sr-promo-content h3{color:#ffe7c7;font:700 clamp(24px,3vw,31px)/1.4 "Noto Serif TC",serif;margin:0}
.lf-sr-promo-content p{color:#f8d9c5;font-size:13px;line-height:1.7;margin:0}
.lf-sr-promo-pills{display:flex;flex-wrap:wrap;gap:7px}
.lf-sr-promo-pills span{color:#ffe1c9;background:#ffffff16;border-radius:99px;font-size:11px;padding:5px 10px}
.lf-sr-promo-cta{display:inline-flex;background:linear-gradient(115deg,#ffe4ae,#f4a077);padding:12px 18px;border-radius:12px;color:#3a1b0d!important;text-decoration:none!important;font-size:14px;font-weight:800}
.lf-sr-promo-cta:hover{filter:brightness(1.06)}
@media(max-width:650px){.lf-sr-promo-content{padding:16px}.lf-sr-promo-cta{width:100%;justify-content:center}}

/* 2026-11-13: exact approved 511 × 268 banner frame; compact portrait results.
   These rules are scoped, so the other script heart tests remain unchanged. */
.lf-sr-quiz .lf-sr-hero .lf-wr-cover {
  width:100%; aspect-ratio:511/268; min-height:0; max-height:none;
}
.lf-sr-quiz .lf-sr-hero .lf-wr-cover img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center center;
}
.lf-survey-card[href="/surveys?quiz=second-rate-hearttest"] .lf-survey-card-art.has-image {
  aspect-ratio:511/268; height:auto; min-height:0;
}
.lf-survey-card[href="/surveys?quiz=second-rate-hearttest"] .lf-survey-card-image {
  width:100%; height:100%; object-fit:cover; object-position:center;
}
.lf-sr-quiz .lf-wr-winner {
  display:grid; grid-template-columns:minmax(0,186px) minmax(0,1fr);
  align-items:start; gap:20px; padding:18px;
}
.lf-sr-quiz .lf-wr-winner > .lf-wr-character {
  width:100%; max-width:186px; height:auto; aspect-ratio:8/11;
  justify-self:center; align-self:start;
}
.lf-sr-quiz .lf-wr-character {
  aspect-ratio:8/11; overflow:hidden;
}
.lf-sr-quiz .lf-wr-character img {
  display:block; width:100%; height:100%; object-fit:contain; object-position:center top;
}
.lf-sr-quiz .lf-wr-rank .lf-wr-character.small {
  width:50px; flex:0 0 50px; aspect-ratio:8/11; border-radius:7px;
}
.lf-sr-quiz .lf-wr-ranking { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.lf-sr-quiz .lf-wr-rank { display:flex; align-items:center; gap:10px; padding:11px; min-width:0; }
.lf-sr-quiz .lf-wr-character { display:block; border-radius:11px; border:1px solid #c89b8b; box-shadow:0 9px 22px #2912122b; background:#211716; }
.lf-sr-quiz .lf-wr-rank .lf-wr-character.small { box-shadow:none; }
.lf-sr-quiz .lf-wr-results > h2 { font-size:clamp(22px,3.6vw,33px); }

/* A full, artwork-led script-detail invitation, in the same visual family as the title. */
.lf-sr-hearttest-promo {
  position:relative; isolation:isolate; display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);
  align-items:center; gap:0; width:100%; max-width:900px;
  margin:24px auto 30px; overflow:hidden;
  border:1px solid #e17b43; border-radius:19px;
  background:radial-gradient(circle at 94% -12%,#af492b55,transparent 48%),
    linear-gradient(118deg,#110f12 0%,#261817 54%,#471f15 100%);
  color:#f9e4d5; box-shadow:0 16px 36px #20100936;
}
.lf-sr-promo-art {
  display:block; position:relative; width:calc(100% - 16px);
  margin:14px 0 14px 16px; aspect-ratio:511/268;
  align-self:center; border:1px solid #e2a17b80;
  border-radius:11px; overflow:hidden; line-height:0;
  background:#110e0b; box-shadow:0 9px 26px #0007;
}
.lf-sr-promo-art img {
  display:block; width:100%; height:100%; aspect-ratio:511/268;
  object-fit:cover; object-position:center; transition:transform .35s ease;
}
.lf-sr-promo-art:hover img { transform:scale(1.025); }
.lf-sr-promo-content { display:flex; flex-direction:column; align-items:flex-start;
  gap:11px; min-width:0; padding:clamp(17px,2.8vw,29px);
}
.lf-sr-promo-overline { color:#f6b78a; font-size:10px; font-weight:800; letter-spacing:.16em; }
.lf-sr-promo-content h3 { color:#ffe9cc; font:700 clamp(21px,2.5vw,31px)/1.36 "Noto Serif TC","Songti TC",serif; margin:0; }
.lf-sr-promo-content p { max-width:40ch; color:#f2d0bc; font-size:13px; line-height:1.8; margin:0; }
.lf-sr-promo-pills { display:flex; flex-wrap:wrap; gap:7px; }
.lf-sr-promo-pills span { border:1px solid #f6b88855; border-radius:999px; padding:5px 9px; background:#ffffff0d; color:#f6d2b5; font-size:11px; }
.lf-sr-promo-cta {
  display:inline-flex; align-items:center; justify-content:space-between; gap:20px;
  margin-top:2px; padding:12px 17px; border-radius:11px; text-decoration:none!important;
  color:#30170e!important; background:linear-gradient(110deg,#ffe0ad,#ec985f);
  font-size:14px; font-weight:800; box-shadow:0 6px 19px #0005;
  transition:transform .2s ease,box-shadow .2s ease;
}
.lf-sr-promo-cta:hover { transform:translateY(-2px); box-shadow:0 10px 24px #0006; }
.lf-sr-promo-content small { color:#c9a99e; font-size:10px; line-height:1.6; }
.lf-sr-promo-art:focus-visible,.lf-sr-promo-cta:focus-visible { outline:3px solid #ffca82; outline-offset:3px; }
@media(max-width:760px) {
  .lf-sr-hearttest-promo { grid-template-columns:minmax(0,1fr); border-radius:15px; }
  .lf-sr-promo-art { width:calc(100% - 28px); margin:14px 14px 0; }
  .lf-sr-promo-content { padding:18px 18px 22px; }
  .lf-sr-promo-cta { width:100%; }
}
@media(max-width:520px) {
  .lf-sr-quiz .lf-wr-winner { grid-template-columns:minmax(0,1fr); gap:14px; padding:15px; }
  .lf-sr-quiz .lf-wr-winner > .lf-wr-character { width:min(100%,168px); max-width:168px; margin-inline:auto; }
  .lf-sr-quiz .lf-wr-ranking { grid-template-columns:minmax(0,1fr); }
  .lf-sr-quiz .lf-wr-rank .lf-wr-character.small { width:46px; flex-basis:46px; }
}
@media(prefers-reduced-motion:reduce) {
  .lf-sr-promo-art img,.lf-sr-promo-cta { transition:none; }
}
