/* =========================================================================
   关于你 · 伴侣忠诚度
   Relationship mirror · wine / cream / sage
   ========================================================================= */

.loyalty-page,
.loyalty-test-page,
.loyalty-result-page {
  --wine: #5c2430;
  --wine-deep: #3a151d;
  --wine-soft: #f0dee1;
  --rose: #a65562;
  --sage: #6f7b5e;
  --sage-soft: #e8e8d9;
  --ly-gold: #b8862c;
  --ly-gold-soft: #f3e7c8;
  --ly-ink: #241d1c;
  --ly-ink-soft: #554945;
  --ly-muted: #82756e;
  --ly-line: #d9cdc1;
  --ly-line-dark: #bcae9f;
  --ly-paper: #fbf7ef;
  --ly-paper-strong: #fffdf8;
  --ly-bg: #f4eee2;
}

.loyalty-page .brand-mark,
.loyalty-test-page .brand-mark,
.loyalty-result-page .brand-mark {
  background: var(--wine);
}

.loyalty-page .platform-brand:hover .brand-mark {
  background: var(--wine-deep);
}

/* =========================================================================
   Platform strip (shared with activation)
   ========================================================================= */
.platform-strip {
  background: #142019;
  color: rgba(251, 247, 239, 0.58);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.platform-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 32px;
}

.platform-strip-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: rgba(251, 247, 239, 0.76);
  transition: color 0.2s ease;
}

.platform-strip-brand:hover {
  color: var(--gold);
}

.platform-strip-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.platform-strip-mark svg {
  width: 13px;
  height: 13px;
}

.platform-strip-name {
  color: var(--paper);
}

.platform-strip-brand em {
  padding-left: 7px;
  border-left: 1px solid rgba(251, 247, 239, 0.18);
  color: rgba(251, 247, 239, 0.36);
  font-style: normal;
}

.platform-strip-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: rgba(251, 247, 239, 0.56);
  transition: color 0.2s ease;
}

.platform-strip-back:hover {
  color: var(--gold);
}

/* =========================================================================
   Landing · hero
   ========================================================================= */
.loyalty-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: clamp(38px, 5vw, 82px);
  align-items: center;
  padding: clamp(52px, 6vw, 86px) 0 clamp(56px, 7vw, 96px);
}

.loyalty-hero h1 {
  margin: 20px 0 24px;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.loyalty-hero h1 em {
  color: var(--rose);
  font-style: italic;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(166, 85, 98, 0.3);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.hero-lead {
  max-width: 560px;
  margin: 0;
  color: var(--ly-ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.loyalty-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
}

.loyalty-hero .hero-meta {
  margin-top: 24px;
}

.loyalty-hero .hero-meta li::before {
  color: var(--rose);
}

.license-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--ly-muted);
  font-size: 9.5px;
}

.license-note::before {
  content: "✳";
  color: var(--rose);
  font-size: 8px;
}

.loyalty-art {
  position: relative;
  min-height: 560px;
}

.mirror-back {
  position: absolute;
  inset: 34px 4px 0 38px;
  border-radius: 24px;
  background: var(--wine);
  transform: rotate(2.7deg);
  box-shadow: 0 32px 65px rgba(58, 21, 29, 0.18);
}

.mirror-card {
  position: relative;
  z-index: 1;
  padding: 18px 20px 16px;
  border: 1px solid var(--ly-line);
  border-radius: 4px;
  background: var(--ly-paper);
  box-shadow: 0 22px 50px rgba(36, 29, 28, 0.12);
  transform: rotate(-1.2deg);
}

.mirror-head,
.mirror-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.mirror-head {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ly-line);
}

.mirror-card svg {
  width: 100%;
  height: auto;
  margin: 8px 0 2px;
}

.mirror-bars {
  display: grid;
  gap: 6px;
  padding: 10px 2px 12px;
  border-top: 1px solid var(--ly-line);
}

.mirror-bars div {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 9px;
}

.mirror-bars span {
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.mirror-bars i {
  display: block;
  width: var(--v);
  height: 3px;
  background: linear-gradient(90deg, var(--wine), var(--rose));
}

.mirror-bars div:nth-child(2n) i {
  background: linear-gradient(90deg, #9a6b21, var(--ly-gold));
}

.mirror-foot {
  padding-top: 11px;
  border-top: 1px solid var(--ly-line);
}

.mirror-note {
  position: absolute;
  top: 12px;
  right: -12px;
  z-index: 2;
  padding: 12px 15px;
  border: 1px solid rgba(36, 29, 28, 0.12);
  background: var(--ly-gold-soft);
  color: var(--wine-deep);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transform: rotate(4deg);
  box-shadow: 0 10px 24px rgba(36, 29, 28, 0.08);
}

/* =========================================================================
   Landing · sections
   ========================================================================= */
.lens-section {
  padding: clamp(58px, 7vw, 88px) 0;
  border-top: 1px solid var(--ly-line);
  border-bottom: 1px solid var(--ly-line);
  background:
    radial-gradient(circle at 88% 6%, rgba(166, 85, 98, 0.06), transparent 26%),
    #efe4d8;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-head h2 em {
  color: var(--rose);
  font-style: italic;
  font-weight: 500;
}

.section-note {
  max-width: 340px;
  margin: 0;
  color: var(--ly-muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lens-card {
  --lens: var(--wine);
  --lens-soft: var(--wine-soft);
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 30px 30px 26px;
  border: 1px solid var(--ly-line);
  border-top: 4px solid var(--lens);
  background: var(--ly-paper);
  color: var(--ly-ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.lens-card--female {
  --lens: var(--sage);
  --lens-soft: var(--sage-soft);
}

.lens-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px rgba(36, 29, 28, 0.1);
}

.lens-index {
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
}

.lens-badge {
  align-self: flex-start;
  margin: 14px 0 18px;
  padding: 5px 10px;
  background: var(--lens-soft);
  color: var(--lens);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.lens-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lens-card p {
  max-width: 450px;
  margin: 0;
  color: var(--ly-ink-soft);
  font-size: 11.5px;
  line-height: 1.85;
}

.lens-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 18px 0 26px;
  padding: 0;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  list-style: none;
}

.lens-card ul li::before {
  content: "·";
  margin-right: 6px;
  color: var(--lens);
}

.lens-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--ly-line);
  color: var(--lens);
  font-size: 11px;
  font-weight: 600;
}

.lens-demo,
.lens-note {
  margin: 22px 0 0;
  color: var(--ly-muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.lens-demo a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lens-demo span {
  margin: 0 5px;
  opacity: 0.5;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(38px, 6vw, 86px);
  padding: clamp(64px, 8vw, 104px) 0;
}

.about-copy h2 {
  margin: 16px 0 22px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.about-copy h2 em {
  color: var(--rose);
  font-style: italic;
  font-weight: 500;
}

.about-copy p {
  max-width: 540px;
  margin: 0 0 14px;
  color: var(--ly-ink-soft);
  font-size: 13px;
  line-height: 1.95;
}

.about-rules {
  border-top: 1px solid var(--ly-line);
}

.about-rules > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0 18px;
  border-bottom: 1px solid var(--ly-line);
}

.about-rules span {
  padding-top: 2px;
  color: var(--rose);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.about-rules strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.about-rules p {
  grid-column: 2;
  margin: 5px 0 0;
  color: var(--ly-muted);
  font-size: 10.5px;
  line-height: 1.75;
}

.signals-section {
  padding: clamp(58px, 7vw, 86px) 0;
  border-top: 1px solid var(--ly-line);
  border-bottom: 1px solid var(--ly-line);
  background: #efe4d8;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.signal-grid article {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  grid-column: span 2;
  padding: 22px 22px 20px;
  border: 1px solid var(--ly-line);
  border-top: 3px solid var(--signal);
  background: var(--ly-paper);
}

.signal-grid article:nth-child(4) {
  grid-column: 2 / span 2;
}

.signal-grid article:nth-child(5) {
  grid-column: 4 / span 2;
}

.signal-num {
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.signal-en {
  margin-top: 6px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.signal-grid h3 {
  margin: 22px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.signal-grid p {
  margin: 0;
  color: var(--ly-ink-soft);
  font-size: 10.5px;
  line-height: 1.8;
}

.signal-grid small {
  margin-top: auto;
  padding-top: 16px;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}

.method-section {
  padding: clamp(58px, 7vw, 88px) 0 32px;
}

.method-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(30px, 4vw, 48px);
  background:
    radial-gradient(circle at 92% 12%, rgba(184, 134, 44, 0.15), transparent 28%),
    var(--wine-deep);
  color: var(--paper);
}

.method-panel h2 {
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.method-panel > div > p:not(.eyebrow) {
  max-width: 450px;
  margin: 0;
  color: rgba(251, 247, 239, 0.68);
  font-size: 11px;
  line-height: 1.85;
}

.method-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(251, 247, 239, 0.18);
}

.method-steps > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(251, 247, 239, 0.18);
}

.method-steps span {
  color: var(--ly-gold);
  font-family: var(--mono);
  font-size: 8px;
}

.method-steps strong {
  font-size: 12px;
  font-weight: 600;
}

.method-steps p {
  grid-column: 2;
  margin: 4px 0 0;
  color: rgba(251, 247, 239, 0.58);
  font-size: 10px;
}

.method-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 0 0;
}

.method-note p {
  margin: 0;
  color: var(--ly-muted);
  font-size: 9.5px;
  line-height: 1.75;
}

.method-note strong {
  color: var(--ly-ink-soft);
  font-weight: 600;
}

.final-section {
  padding: clamp(54px, 7vw, 82px) 0;
  background: var(--wine-deep);
  color: var(--paper);
}

.final-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.final-inner h2 {
  max-width: 760px;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.final-inner h2 em {
  color: var(--ly-gold);
  font-style: italic;
  font-weight: 500;
}

.final-side {
  max-width: 340px;
}

.final-side p {
  margin: 0 0 18px;
  color: rgba(251, 247, 239, 0.68);
  font-size: 11px;
  line-height: 1.8;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.final-note {
  display: block;
  margin-top: 12px;
  color: rgba(251, 247, 239, 0.42);
  font-size: 8.5px;
}

/* =========================================================================
   Test page
   ========================================================================= */
.loyalty-test-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(166, 85, 98, 0.05), transparent 24%),
    var(--ly-bg);
}

.ly-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--ly-line);
  background: rgba(251, 247, 239, 0.94);
  backdrop-filter: blur(14px);
}

.ly-header-inner {
  display: flex;
  width: min(980px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.ly-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.ly-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--wine);
  color: var(--paper);
}

.ly-brand-mark svg {
  width: 19px;
  height: 19px;
}

.ly-brand-type {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ly-brand-type strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ly-brand-type small {
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.ly-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ly-header-actions .ly-text-link {
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.ly-header-actions .ly-text-link:hover {
  border-color: var(--ly-ink-soft);
  color: var(--ly-ink);
}

.ly-overview-btn {
  padding: 7px 12px;
  border: 1px solid var(--ly-line-dark);
  background: transparent;
  color: var(--ly-ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.ly-overview-btn:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.ly-main {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 34px 24px 72px;
}

.ly-lens {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--wine);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.ly-lens::before {
  content: "✳";
  font-size: 8px;
}

.ly-mode {
  margin-left: auto;
  color: var(--ly-muted);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.ly-test-note {
  margin: -10px 0 18px;
  color: var(--ly-muted);
  font-size: 9px;
  line-height: 1.7;
}

.ly-progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.ly-progress-row strong {
  color: var(--ly-ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ly-progress-track {
  height: 2px;
  margin: 9px 0 0;
  overflow: hidden;
  background: var(--ly-line);
}

.ly-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--rose));
  transition: width 0.35s var(--ease);
}

.ly-chapters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 18px 0 0;
  border-top: 1px solid var(--ly-line);
  border-bottom: 1px solid var(--ly-line);
}

.ly-chapter {
  min-width: 0;
  padding: 11px 10px 12px;
  border-right: 1px solid var(--ly-line);
}

.ly-chapter:last-child {
  border-right: 0;
}

.ly-chapter span {
  display: block;
  overflow: hidden;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ly-chapter strong {
  display: block;
  margin-top: 4px;
  color: var(--ly-ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.ly-chapter.is-active {
  background: rgba(240, 222, 225, 0.55);
}

.ly-chapter.is-active span,
.ly-chapter.is-active strong {
  color: var(--wine);
}

.ly-chapter.is-done strong {
  color: var(--sage);
}

.ly-question-card {
  margin-top: 22px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--ly-line);
  background: var(--ly-paper);
  box-shadow: 0 18px 42px rgba(36, 29, 28, 0.06);
}

.ly-question-kicker {
  margin: 0 0 12px;
  color: var(--rose);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.ly-question-story {
  max-width: 680px;
  margin: 0 0 16px;
  color: var(--ly-muted);
  font-size: 11.5px;
  line-height: 1.85;
}

.ly-question-prompt {
  max-width: 740px;
  text-wrap: balance;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.ly-question-hint {
  margin: 0 0 24px;
  color: var(--ly-muted);
  font-size: 9.5px;
}

.ly-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ly-choice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 82px;
  padding: 14px 15px;
  border: 1px solid var(--ly-line);
  background: var(--ly-paper-strong);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.ly-choice:hover {
  border-color: var(--rose);
  transform: translateY(-1px);
}

.ly-choice.is-selected {
  border-color: var(--wine);
  background: #fbefee;
  box-shadow: inset 0 0 0 1px var(--wine);
}

.ly-choice-letter {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--ly-line);
  border-radius: 50%;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 9px;
}

.ly-choice.is-selected .ly-choice-letter {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--paper);
}

.ly-choice-copy strong {
  display: block;
  color: var(--ly-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.ly-choice-copy small {
  display: block;
  margin-top: 4px;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.ly-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--ly-line);
}

.ly-control {
  padding: 10px 16px;
  border: 1px solid var(--ly-line-dark);
  background: transparent;
  color: var(--ly-ink-soft);
  font-size: 10.5px;
}

.ly-control:hover:not(:disabled) {
  border-color: var(--wine);
  color: var(--wine);
}

.ly-control:disabled {
  opacity: 0.36;
  cursor: default;
}

.ly-control--next {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--paper);
}

.ly-control--next:hover:not(:disabled) {
  background: var(--wine-deep);
  color: var(--paper);
}

.ly-stage-note {
  margin: 14px 0 0;
  color: var(--ly-muted);
  font-size: 8.5px;
  text-align: center;
}

.ly-kbd {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 7.5px;
}

.ly-kbd kbd {
  padding: 1px 4px;
  border: 1px solid var(--ly-line);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 7px;
}

/* Completion */
.ly-completion {
  display: grid;
  min-height: calc(100vh - 100px);
  place-items: center;
  padding: 36px 24px 70px;
}

.ly-completion-card {
  width: min(760px, 100%);
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at 92% 8%, rgba(184, 134, 44, 0.18), transparent 26%),
    var(--wine-deep);
  color: var(--paper);
}

.ly-completion-kicker {
  margin: 0 0 18px;
  color: var(--ly-gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.ly-completion-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(251, 247, 239, 0.58);
  font-family: var(--mono);
  font-size: 9px;
}

.ly-completion-count strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
}

.ly-completion h1 {
  max-width: 560px;
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ly-completion p {
  max-width: 520px;
  margin: 0;
  color: rgba(251, 247, 239, 0.64);
  font-size: 11.5px;
  line-height: 1.85;
}

.ly-completion-stats {
  display: flex;
  gap: 38px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 247, 239, 0.18);
}

.ly-completion-stats span {
  display: block;
  color: rgba(251, 247, 239, 0.42);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.ly-completion-stats strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.ly-completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}

.ly-completion .btn-light {
  background: var(--paper);
  color: var(--wine-deep);
}

.ly-completion .btn-ghost {
  border-color: rgba(251, 247, 239, 0.3);
  color: var(--paper);
}

/* Dialogs */
.ly-modal {
  width: min(620px, calc(100% - 36px));
  padding: 0;
  border: 1px solid var(--ly-line);
  background: transparent;
  color: var(--ly-ink);
}

.ly-modal::backdrop {
  background: rgba(26, 19, 18, 0.55);
  backdrop-filter: blur(3px);
}

.ly-modal-card {
  position: relative;
  padding: 28px;
  background: var(--ly-paper);
}

.ly-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ly-line);
  background: transparent;
  color: var(--ly-muted);
  font-size: 16px;
  line-height: 1;
}

.ly-modal h2 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ly-modal p {
  margin: 0;
  color: var(--ly-muted);
  font-size: 11px;
  line-height: 1.75;
}

.ly-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.ly-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  max-height: 48vh;
  overflow: auto;
  margin: 18px 0;
}

.ly-grid-cell {
  aspect-ratio: 1;
  border: 1px solid var(--ly-line);
  background: var(--ly-paper-strong);
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 9px;
}

.ly-grid-cell.is-answered {
  border-color: var(--rose);
  background: var(--wine-soft);
  color: var(--wine);
}

.ly-grid-cell.is-current {
  box-shadow: inset 0 0 0 1px var(--wine);
}

.ly-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ly-modal-actions .btn {
  flex: 1;
}

/* Generating */
.ly-generating {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-content: center;
  gap: 18px;
  background: rgba(58, 21, 29, 0.94);
  color: var(--paper);
  text-align: center;
}

.ly-generating[hidden] {
  display: none !important;
}

.ly-gen-star {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  color: var(--ly-gold);
  animation: ly-spin 2.4s linear infinite;
}

@keyframes ly-spin {
  to {
    transform: rotate(360deg);
  }
}

.ly-generating h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.ly-generating p {
  margin: 0;
  color: rgba(251, 247, 239, 0.58);
  font-family: var(--mono);
  font-size: 8px;
}

/* Toast */
.ly-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 700;
  padding: 9px 15px;
  background: var(--ly-ink);
  color: var(--paper);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ly-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.access-check {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ly-bg, #f4eee2);
  color: var(--ly-muted, #82756e);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.access-check[hidden] {
  display: none !important;
}

.access-check-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose, #a65562);
  animation: ly-pulse 1.1s infinite ease-in-out;
}

@keyframes ly-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================================
   Result page
   ========================================================================= */
.loyalty-result-page {
  background: var(--ly-bg);
}

.ly-result-hero {
  padding: clamp(42px, 6vw, 72px) 0 clamp(46px, 6vw, 76px);
  background:
    radial-gradient(circle at 88% 12%, rgba(184, 134, 44, 0.16), transparent 26%),
    radial-gradient(circle at 4% 90%, rgba(166, 85, 98, 0.18), transparent 28%),
    var(--wine-deep);
  color: var(--paper);
}

.ly-result-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.ly-result-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: rgba(251, 247, 239, 0.55);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.ly-result-kicker .dot {
  background: var(--ly-gold);
}

.ly-result-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6.4vw, 80px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ly-result-band {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 5px 10px;
  border: 1px solid rgba(251, 247, 239, 0.22);
  color: var(--ly-gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.ly-result-band::before {
  content: "✳";
  font-size: 8px;
}

.ly-result-summary {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(251, 247, 239, 0.72);
  font-size: 12px;
  line-height: 1.9;
}

.ly-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: rgba(251, 247, 239, 0.4);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.ly-result-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ly-result-ring {
  position: relative;
  width: min(310px, 100%);
}

.ly-result-ring svg {
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}

.ly-ring-track {
  fill: none;
  stroke: rgba(251, 247, 239, 0.12);
  stroke-width: 6;
}

.ly-ring-value {
  fill: none;
  stroke: var(--ly-gold);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease);
}

.ly-ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ly-ring-center strong {
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 96px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.ly-ring-center strong span {
  margin-left: 2px;
  color: var(--ly-gold);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
}

.ly-ring-center small {
  display: block;
  margin-top: 10px;
  color: rgba(251, 247, 239, 0.46);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.ly-demo-banner {
  padding: 10px 20px;
  background: var(--ly-gold-soft);
  color: var(--ly-ink-soft);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.ly-demo-banner a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ly-result-body {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 58px 24px 90px;
}

.ly-result-section {
  margin-top: 54px;
}

.ly-result-section:first-child {
  margin-top: 0;
}

.ly-result-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.ly-result-section-head h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.ly-result-section-head p {
  max-width: 380px;
  margin: 0;
  color: var(--ly-muted);
  font-size: 10px;
  line-height: 1.8;
}

.ly-dimension-list {
  border-top: 1px solid var(--ly-line);
}

.ly-dimension-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 64px;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--ly-line);
}

.ly-dimension-name strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.ly-dimension-name span {
  display: block;
  margin-top: 3px;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.ly-dimension-bar {
  grid-column: 2;
  grid-row: 1;
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--ly-line);
}

.ly-dimension-bar span {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--dim-color);
}

.ly-dimension-insight {
  grid-column: 2;
  grid-row: 2;
  margin: 6px 0 0;
  color: var(--ly-ink-soft);
  font-size: 10.5px;
  line-height: 1.8;
}

.ly-dimension-score {
  grid-column: 3;
  grid-row: 1;
  color: var(--dim-color);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  text-align: right;
  line-height: 1;
}

.ly-dimension-score span {
  margin-left: 1px;
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.75;
}

.ly-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ly-analysis-card {
  padding: 24px 24px 22px;
  border: 1px solid var(--ly-line);
  background: var(--ly-paper);
}

.ly-analysis-card.is-wide {
  grid-column: 1 / -1;
}

.ly-analysis-card span {
  color: var(--rose);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.ly-analysis-card h3 {
  margin: 10px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ly-analysis-card p {
  margin: 0;
  color: var(--ly-ink-soft);
  font-size: 11px;
  line-height: 1.85;
}

.ly-analysis-card strong {
  color: var(--ly-ink);
  font-weight: 600;
}

.ly-prompt-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: prompt;
}

.ly-prompt-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--ly-line);
  background: var(--ly-paper);
  color: var(--ly-ink-soft);
  font-size: 12px;
  line-height: 1.75;
  counter-increment: prompt;
}

.ly-prompt-list li::before {
  content: "0" counter(prompt);
  color: var(--rose);
  font-family: var(--mono);
  font-size: 8px;
  padding-top: 3px;
}

.ly-gender-note {
  padding: 24px 26px;
  border-left: 3px solid var(--rose);
  background: var(--wine-soft);
}

.ly-gender-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--wine);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.ly-gender-note p {
  margin: 0;
  color: var(--ly-ink-soft);
  font-size: 11.5px;
  line-height: 1.9;
}

.ly-result-disclaimer {
  margin-top: 42px;
  padding: 16px 18px;
  border: 1px dashed var(--ly-line-dark);
  color: var(--ly-muted);
  font-size: 9px;
  line-height: 1.8;
}

.ly-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.ly-result-foot {
  margin-left: auto;
  align-self: center;
  color: var(--ly-muted);
  font-family: var(--mono);
  font-size: 8px;
}

.ly-empty {
  width: min(620px, 100%);
  margin: 70px auto;
  padding: 36px;
  border: 1px solid var(--ly-line);
  background: var(--ly-paper);
  text-align: center;
}

.ly-empty h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
}

.ly-empty p {
  margin: 0 0 22px;
  color: var(--ly-muted);
  font-size: 11px;
  line-height: 1.8;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .loyalty-hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 42px;
  }

  .loyalty-art {
    min-height: 0;
    max-width: 560px;
    width: 100%;
    justify-self: center;
  }

  .mirror-note {
    right: 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-note {
    max-width: 560px;
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-grid article,
  .signal-grid article:nth-child(4),
  .signal-grid article:nth-child(5) {
    grid-column: auto;
  }

  .signal-grid article:last-child {
    grid-column: 1 / -1;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .method-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .final-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .ly-result-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ly-result-ring-wrap {
    justify-content: flex-start;
  }

  .ly-result-ring {
    width: 260px;
  }
}

@media (max-width: 760px) {
  .loyalty-hero h1 {
    font-size: clamp(42px, 11vw, 58px);
  }

  .lens-grid {
    grid-template-columns: 1fr;
  }

  .lens-card {
    min-height: 0;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid article:last-child {
    grid-column: auto;
  }

  .about-rules > div {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .method-note {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ly-header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .ly-brand-mark {
    width: 34px;
    height: 34px;
  }

  .ly-brand-type strong {
    font-size: 16px;
  }

  .ly-header-actions {
    gap: 10px;
  }

  .ly-header-actions .ly-text-link {
    display: none;
  }

  .ly-main {
    padding: 24px 16px 56px;
  }

  .ly-chapters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ly-chapter {
    border-bottom: 1px solid var(--ly-line);
  }

  .ly-chapter:nth-child(3n) {
    border-right: 0;
  }

  .ly-chapter:nth-child(n + 4) {
    border-bottom: 0;
  }

  .ly-choices {
    grid-template-columns: 1fr;
  }

  .ly-question-card {
    padding: 24px 20px;
  }

  .ly-controls {
    flex-wrap: wrap;
  }

  .ly-control {
    flex: 1;
  }

  .ly-completion {
    padding: 24px 16px 50px;
  }

  .ly-result-hero-inner {
    padding: 0 18px;
  }

  .ly-result-body {
    padding: 42px 18px 70px;
  }

  .ly-result-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ly-dimension-row {
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 10px;
  }

  .ly-dimension-name {
    grid-column: 1;
  }

  .ly-dimension-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ly-dimension-insight {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .ly-dimension-score {
    grid-column: 2;
    grid-row: 1;
  }

  .ly-analysis-grid {
    grid-template-columns: 1fr;
  }

  .ly-analysis-card.is-wide {
    grid-column: auto;
  }

  .ly-result-actions .btn {
    flex: 1;
  }

  .ly-result-foot {
    flex-basis: 100%;
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .platform-strip-inner {
    height: 28px;
    font-size: 7.5px;
  }

  .platform-strip-brand em {
    display: none;
  }

  .loyalty-page .header-actions .btn {
    display: none;
  }

  .loyalty-hero .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .loyalty-art {
    padding: 0 6px;
  }

  .mirror-card {
    padding: 14px 14px 12px;
  }

  .mirror-note {
    top: 2px;
    right: 2px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .lens-card {
    padding: 24px 20px 22px;
  }

  .about-section {
    padding: 50px 0;
  }

  .signals-section,
  .lens-section {
    padding: 50px 0;
  }

  .method-section {
    padding: 50px 0 24px;
  }

  .method-panel {
    padding: 24px 20px;
  }

  .final-side {
    max-width: none;
  }

  .final-actions {
    flex-direction: column;
  }

  .final-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .ly-overview-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ly-modal-card {
    padding: 24px 18px;
  }

  .ly-completion-count strong {
    font-size: 38px;
  }

  .ly-completion-stats {
    gap: 24px;
  }

  .ly-result-hero h1 {
    font-size: 46px;
  }

  .ly-result-ring {
    width: 230px;
  }

  .ly-result-actions {
    flex-direction: column;
  }

  .ly-result-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lens-card,
  .ly-choice,
  .ly-progress-track span,
  .ly-ring-value,
  .ly-toast {
    transition: none;
  }

  .ly-gen-star {
    animation: none;
  }

  .access-check-dot {
    animation: none;
  }
}

@media print {
  .platform-strip,
  .ly-header,
  .ly-demo-banner,
  .ly-result-actions,
  .site-footer {
    display: none !important;
  }

  .ly-result-hero {
    background: #fff !important;
    color: #111 !important;
    padding: 20px 0;
    border-bottom: 2px solid #111;
  }

  .ly-result-hero h1,
  .ly-result-summary,
  .ly-result-kicker,
  .ly-result-meta {
    color: #111 !important;
  }

  .ly-result-ring-value {
    stroke: #111 !important;
  }

  .ly-result-body {
    padding: 20px 0;
  }
}

/* ---------- Depth switch ---------- */
.lens-mode-switch {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid var(--ly-line);
  background: var(--ly-paper);
}

.lens-mode-switch button {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 13px;
  border: 0;
  background: transparent;
  color: var(--ly-muted);
  text-align: left;
}

.lens-mode-switch button strong {
  color: var(--ly-ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.lens-mode-switch button small {
  font-family: var(--mono);
  font-size: 7.5px;
}

.lens-mode-switch button.is-active {
  background: var(--wine);
  color: rgba(251, 247, 239, 0.7);
}

.lens-mode-switch button.is-active strong {
  color: var(--paper);
}

@media (max-width: 520px) {
  .lens-mode-switch {
    display: flex;
    width: 100%;
  }

  .lens-mode-switch button {
    flex: 1;
    flex-direction: column;
    gap: 2px;
  }
}
