:root {
  color-scheme: light;
  --bg: #fff7fb;
  --panel: #ffffff;
  --ink: #221426;
  --muted: #725c75;
  --line: #f0ddea;
  --brand: #e11d73;
  --brand-2: #7c3aed;
  --soft: #fff0f7;
  --soft-2: #f5f0ff;
  --shadow: 0 22px 60px rgba(91, 33, 82, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(225, 29, 115, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 14%, rgba(124, 58, 237, 0.14), transparent 30rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 247, 251, 0.86);
  border-bottom: 1px solid rgba(240, 221, 234, 0.9);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 26px rgba(225, 29, 115, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--brand);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  gap: 28px;
  align-items: center;
  padding-top: 62px;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.055em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(42px, 7vw, 78px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.lead {
  font-size: 19px;
  color: #654565;
}

.hero-card,
.quiz-card,
.side-card,
.type-card,
.article,
.ad-box {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(240, 221, 234, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
}

.score-preview {
  min-height: 190px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32), transparent 12rem),
    linear-gradient(135deg, var(--brand), var(--brand-2));
}

.score-preview span,
.score-preview strong {
  display: block;
  text-align: center;
  letter-spacing: -0.06em;
}

.score-preview span {
  font-size: 28px;
  font-weight: 800;
}

.score-preview strong {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.9;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}

.button.secondary {
  background: var(--soft);
  color: var(--brand);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.section {
  margin-top: 42px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading p {
  margin-bottom: 0;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.test-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(240, 221, 234, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(91, 33, 82, 0.10);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.test-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 115, 0.34);
  box-shadow: 0 22px 54px rgba(91, 33, 82, 0.14);
}

.test-card.featured {
  color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 12rem),
    linear-gradient(135deg, var(--brand), var(--brand-2));
}

.test-card p {
  flex: 1;
}

.test-card.featured p {
  color: rgba(255, 255, 255, 0.84);
}

.test-card strong {
  color: var(--brand);
}

.test-card.featured strong {
  color: white;
}

.test-tag {
  width: max-content;
  padding: 7px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
}

.featured .test-tag {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.quiz-card,
.side-card,
.type-card,
.article {
  padding: 28px;
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.progress-text {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 900;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  margin: 8px 0 26px;
  border-radius: 999px;
  background: var(--soft-2);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 180ms ease;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.plain-list {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 700;
}

.answer-list {
  display: grid;
  gap: 12px;
}

.answer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: white;
  color: var(--ink);
  text-align: left;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.answer:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 115, 0.35);
  box-shadow: 0 14px 30px rgba(91, 33, 82, 0.10);
}

.answer span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--soft);
  color: var(--brand);
}

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

.balance-choice {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.balance-choice:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 115, 0.36);
  box-shadow: 0 18px 42px rgba(91, 33, 82, 0.12);
}

.balance-choice span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 950;
}

.balance-choice strong {
  font-size: 21px;
  line-height: 1.28;
}

.result-badge {
  display: inline-flex;
  padding: 8px 13px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-summary {
  font-size: 18px;
  color: #654565;
}

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

.result-grid > div {
  padding: 18px;
  border-radius: 22px;
  background: var(--soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.type-card {
  box-shadow: none;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 17px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 950;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related a,
.related span {
  display: inline-flex;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  text-decoration: none;
  font-weight: 850;
}

.recommend-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.recommend-list a {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  text-decoration: none;
}

.recommend-list strong {
  color: var(--ink);
}

.recommend-list span {
  color: var(--muted);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.keyword-cloud span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--muted);
  font-weight: 850;
}

.ad-box {
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: none;
}

.ad-label {
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.page {
  max-width: 880px;
}

.footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
}

.footer a {
  margin-left: 12px;
  color: inherit;
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero,
  .quiz-shell,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .grid,
  .result-grid,
  .balance-options,
  .test-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
}
