.legacy-page {
  --legacy-ink: #211d2a;
  --legacy-muted: #6d6675;
  --legacy-accent: #6f4af2;
  --legacy-accent-soft: #eee9ff;
  --legacy-line: rgba(63, 47, 80, 0.13);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 217, 61, 0.25), transparent 28rem),
    radial-gradient(circle at 92% 25%, rgba(111, 74, 242, 0.12), transparent 24rem),
    #fbfaf7;
  color: var(--legacy-ink);
}

.legacy-main {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 32px 0 72px;
}

.legacy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--legacy-muted);
  font-size: 0.9rem;
}

.legacy-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.legacy-breadcrumb a:hover,
.legacy-breadcrumb a:focus-visible {
  color: var(--legacy-accent);
  text-decoration: underline;
}

.legacy-hero,
.legacy-result-hero,
.legacy-play-card,
.legacy-section,
.legacy-terms-card {
  border: 1px solid var(--legacy-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 55px rgba(46, 35, 61, 0.08);
}

.legacy-hero,
.legacy-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
}

.legacy-kicker,
.legacy-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--legacy-accent-soft);
  color: #5136b2;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legacy-hero h1,
.legacy-result-hero h1,
.legacy-play-card h1,
.legacy-terms-card h1 {
  margin: 12px 0 14px;
  color: var(--legacy-ink);
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.legacy-lead,
.legacy-result-lead {
  margin: 0;
  color: #4f4858;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.75;
}

.legacy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.legacy-meta li {
  padding: 7px 11px;
  border-radius: 12px;
  background: #f7f5f1;
  color: #625a69;
  font-size: 0.88rem;
  font-weight: 700;
}

.legacy-hero-media,
.legacy-result-media {
  min-height: 240px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff6bd, #efeaff 72%);
  overflow: hidden;
}

.legacy-hero-media img,
.legacy-result-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 410px;
  object-fit: contain;
}

.legacy-fallback-art {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 44px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 20px 40px rgba(86, 62, 139, .12);
  font-size: 4.6rem;
}

.legacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legacy-primary,
.legacy-secondary,
.legacy-choice,
.legacy-back {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.legacy-primary {
  padding: 12px 20px;
  border: 1px solid #5f3de1;
  background: linear-gradient(135deg, #7653f5, #5935d7);
  color: #fff;
  box-shadow: 0 12px 24px rgba(89, 53, 215, .2);
}

.legacy-secondary,
.legacy-back {
  padding: 11px 18px;
  border: 1px solid var(--legacy-line);
  background: #fff;
  color: #443b50;
}

.legacy-primary:hover,
.legacy-primary:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.legacy-primary:focus-visible,
.legacy-secondary:focus-visible,
.legacy-choice:focus-visible,
.legacy-back:focus-visible {
  outline: 3px solid #5f3de1;
  outline-offset: 3px;
}

.legacy-section {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 36px);
}

.legacy-section h2,
.legacy-terms-card h2 {
  margin: 0 0 16px;
  color: var(--legacy-ink);
  font-size: clamp(1.28rem, 3vw, 1.7rem);
  letter-spacing: -0.035em;
}

.legacy-section h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.legacy-section p,
.legacy-section li,
.legacy-terms-card p,
.legacy-terms-card li {
  color: #514a59;
  line-height: 1.75;
}

.legacy-result-grid,
.legacy-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.legacy-result-link,
.legacy-related-link {
  display: block;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--legacy-line);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.legacy-result-link:hover,
.legacy-result-link:focus-visible,
.legacy-related-link:hover,
.legacy-related-link:focus-visible {
  border-color: #5f3de1;
  box-shadow: 0 12px 25px rgba(68, 48, 104, .08);
  transform: translateY(-2px);
}

.legacy-result-link:focus-visible,
.legacy-related-link:focus-visible {
  outline: 3px solid #5f3de1;
  outline-offset: 3px;
}

.legacy-result-link strong,
.legacy-related-link strong {
  display: block;
  margin-top: 8px;
  color: #2c2633;
  line-height: 1.4;
}

.legacy-result-link span,
.legacy-related-link span {
  display: block;
  margin-top: 6px;
  color: var(--legacy-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legacy-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.legacy-quote {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--legacy-accent);
  border-radius: 0 16px 16px 0;
  background: #f8f6ff;
  color: #44365c;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.65;
}

.legacy-detail-list {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.legacy-detail-list li + li {
  margin-top: 7px;
}

.legacy-play-card {
  padding: clamp(24px, 5vw, 48px);
}

.legacy-play-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.legacy-progress-copy {
  margin: 0;
  color: var(--legacy-muted);
  font-weight: 750;
}

.legacy-progress-track {
  height: 10px;
  margin: 0 0 28px;
  border-radius: 999px;
  background: #ece9e4;
  overflow: hidden;
}

.legacy-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd93d, #7653f5);
  transition: width .22s ease;
}

.legacy-question-kicker {
  margin: 0 0 8px;
  color: #7a7181;
  font-size: .92rem;
  font-weight: 750;
}

.legacy-question-title {
  margin: 0 0 22px;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.45;
  letter-spacing: -.035em;
}

.legacy-question-quote {
  margin: -8px 0 22px;
  color: #503d68;
  font-size: 1.12rem;
  font-weight: 800;
}

.legacy-choice-list {
  display: grid;
  gap: 10px;
}

.legacy-choice {
  width: 100%;
  justify-content: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--legacy-line);
  background: #fff;
  color: #322b3b;
  text-align: left;
  line-height: 1.55;
}

.legacy-choice:hover {
  border-color: rgba(111, 74, 242, .42);
  background: #faf9ff;
}

.legacy-choice[aria-pressed="true"] {
  border-color: #6f4af2;
  background: var(--legacy-accent-soft);
}

.legacy-play-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.legacy-error {
  padding: 18px;
  border: 1px solid rgba(173, 50, 50, .25);
  border-radius: 16px;
  background: #fff5f5;
  color: #8d2727;
  line-height: 1.6;
}

.legacy-noscript {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #fff7db;
  color: #65531e;
}

.legacy-terms-card {
  padding: clamp(24px, 5vw, 48px);
}

.legacy-terms-card section + section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--legacy-line);
}

@media (max-width: 720px) {
  .legacy-main {
    width: min(100% - 20px, 920px);
    padding-top: 20px;
  }

  .legacy-hero,
  .legacy-result-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    border-radius: 22px;
  }

  .legacy-hero-media,
  .legacy-result-media {
    order: -1;
    min-height: 180px;
  }

  .legacy-hero-media img,
  .legacy-result-media img {
    max-height: 280px;
  }

  .legacy-result-grid,
  .legacy-related-grid {
    grid-template-columns: 1fr;
  }

  .legacy-play-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-primary,
  .legacy-result-link,
  .legacy-related-link,
  .legacy-progress-bar {
    transition: none;
  }
}
