:root {
  --twilight-950: #1b1634;
  --twilight-900: #251f42;
  --twilight-800: #352a5c;
  --twilight-700: #48387a;
  --canvas: #f8f4fc;
  --surface: #ffffff;
  --ink: #2c2447;
  --ink-soft: #5a5275;
  --ink-muted: #847ba3;
  --pink-light: #ff94c2;
  --pink: #ff5e9e;
  --pink-deep: #e84388;
  --pink-soft: #fff0f6;
  --violet: #7c3aed;
  --violet-soft: #f3ecff;
  --border: #ebe2f8;
  --shadow-card: 0 10px 28px rgba(68, 49, 114, 0.08);
  --shadow-hover: 0 18px 38px rgba(68, 49, 114, 0.14);
  --shadow-pink: 0 12px 28px rgba(255, 86, 156, 0.42);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--canvas);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.anime-title,
h1,
h2,
h3 {
  font-family: "Outfit", "Nunito", -apple-system, sans-serif;
}

.script-sub {
  font-family: "Caveat", cursive;
  font-weight: 700;
}

/* Dark Twilight Top Navigation */
.site-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(90deg, #251f42 0%, #352a5c 52%, #292149 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 24px rgba(20, 14, 42, 0.22);
}

.site-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 19px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.nav-brand span.brand-pink {
  color: var(--pink-light);
}

.nav-brand-badge {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(255, 126, 179, 0.42);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-link.active {
  background: rgba(155, 135, 245, 0.36);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  border: 0;
  background: transparent;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(90vw, 390px);
  max-height: 62vh;
  overflow-y: auto;
  background: #ffffff;
  color: var(--ink);
  border-radius: 18px;
  padding: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 22px 54px rgba(27, 22, 52, 0.24);
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  z-index: 220;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.nav-dropdown-item:hover {
  background: var(--pink-soft);
}

.nav-dropdown-item strong {
  font-size: 13.5px;
  color: var(--ink);
}

.nav-dropdown-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Full-Bleed Twilight Sakura Hero Banner */
.hero-banner {
  position: relative;
  min-height: 520px;
  background-color: #241e44;
  background-image: url("/assets/images/hero-banner.webp");
  background-position: right 18%;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(31, 25, 61, 0.94) 0%,
    rgba(36, 29, 68, 0.84) 44%,
    rgba(36, 29, 68, 0.16) 72%,
    rgba(36, 29, 68, 0) 100%
  );
}

.hero-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 46px 24px 50px;
}

.hero-banner-copy {
  max-width: 560px;
}

.hero-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 190, 220, 0.4);
  color: #ffd6e8;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-banner .hero-title {
  font-size: clamp(38px, 5vw, 58px);
  color: #ffffff;
  text-shadow: 0 6px 24px rgba(15, 10, 35, 0.45);
}

.hero-title span {
  color: var(--pink-deep);
}

.hero-banner .hero-title span {
  color: var(--pink-light);
}

.hero-script {
  margin: 6px 0 14px;
  font-family: "Caveat", cursive;
  font-size: clamp(30px, 3.8vw, 40px);
  font-weight: 700;
  color: #ffe6f2;
  line-height: 1.1;
  text-shadow: 0 4px 14px rgba(15, 10, 35, 0.4);
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 15.5px;
  color: rgba(244, 238, 255, 0.92);
  max-width: 500px;
}

.hero-vibe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.vibe-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(24, 18, 52, 0.56);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  font-weight: 800;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.vibe-chip.selected {
  background: rgba(255, 94, 158, 0.26);
  border-color: var(--pink-light);
  color: #ffffff;
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(20, 15, 44, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e9e1ff;
  font-size: 12.5px;
  font-weight: 700;
}

.hero-speech-bubble {
  position: absolute;
  right: 42px;
  bottom: 54px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  color: #3a2f5c;
  padding: 12px 18px;
  border-radius: 22px;
  border: 2px solid #f7c7dc;
  box-shadow: 0 12px 26px rgba(24, 18, 48, 0.28);
  max-width: 210px;
  text-align: center;
}

.hero-speech-bubble p {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: 21px;
  line-height: 1.15;
}

/* Glossy Sakura Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8ec0 0%, #ff5e9e 58%, #f0488c 100%);
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-pink), inset 0 2px 3px rgba(255, 255, 255, 0.45);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--twilight-900), var(--twilight-700));
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid #e2d5f5;
  border-radius: 999px;
  background: #ffffff;
  color: #4f3b86;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(79, 59, 134, 0.07);
}

.btn-soft:hover {
  background: var(--violet-soft);
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.latest-result-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffd6e8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Containers & Cards */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.card-solid {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--violet-soft);
  color: var(--twilight-700);
}

.eyebrow-pink {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

/* Centered Anime Section Titles (> The Dere Types <) */
.section-block {
  margin-top: 44px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 26px;
}

.sec-head {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px 10px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sec-head span.hl {
  color: #f25e98;
}

.sec-mark {
  color: #ff79b0;
  font-size: 0.85em;
  font-weight: 900;
}

.sec-sub {
  margin: 8px auto 0;
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 15px;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}

/* Dere Cards with Full-Bleed Portrait + Overlapping Colored Pill */
.dere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.dere-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(235, 226, 248, 0.7);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dere-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.dere-portrait-frame {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
}

.dere-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dere-pill {
  display: inline-block;
  margin: -18px auto 10px;
  padding: 5px 18px;
  border-radius: 999px;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 800;
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 14px rgba(44, 36, 71, 0.16);
  position: relative;
  z-index: 2;
}

.dere-card-body {
  padding: 0 14px 18px;
}

.dere-card .jp {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.dere-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.48;
}

/* How It Works / 4-Axis Step Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 18px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  position: absolute;
  top: -11px;
  left: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7eb3, #f0488c);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(240, 72, 140, 0.35);
}

.step-card strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 15.5px;
  margin-bottom: 6px;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Comparison Table (Deep Twilight Header) */
.table-scroll {
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 13.5px;
  min-width: 640px;
}

.compare-table th {
  background: linear-gradient(90deg, #352b5e, #48387a);
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  text-align: left;
  padding: 14px 16px;
}

.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0eaf8;
  color: var(--ink-soft);
  vertical-align: top;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table td:first-child {
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

/* Pair Compatibility Shortcut Cards */
.pair-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.pair-chip-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.pair-chip-card:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
}

.pair-chip-card .pair-tag {
  font-size: 11px;
  font-weight: 900;
  color: #f25e98;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pair-chip-card strong {
  font-family: "Outfit", sans-serif;
  font-size: 15.5px;
  color: var(--ink);
}

.pair-chip-card span {
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* Bottom Full-Bleed Starry Anime CTA Banner */
.cta-banner {
  position: relative;
  min-height: 360px;
  margin-top: 52px;
  background-color: #262048;
  background-image: url("/assets/images/cta-banner.webp");
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(34, 27, 66, 0.94) 0%,
    rgba(38, 30, 72, 0.84) 48%,
    rgba(38, 30, 72, 0.16) 76%,
    rgba(38, 30, 72, 0) 100%
  );
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 44px 24px;
  display: flex;
  justify-content: flex-end;
}

.cta-banner-copy {
  max-width: 540px;
  text-align: center;
}

.cta-banner-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.12;
  text-shadow: 0 4px 18px rgba(15, 10, 35, 0.45);
}

.cta-banner-copy h2 span {
  color: var(--pink-light);
}

.cta-banner-copy p {
  margin: 0 0 24px;
  color: rgba(242, 235, 255, 0.9);
  font-size: 15.5px;
}

/* Visual Novel Dialogue Quiz Overlay */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: radial-gradient(circle at 50% 0%, rgba(56, 40, 104, 0.96), rgba(24, 18, 46, 0.98));
  backdrop-filter: blur(12px);
  overflow-y: auto;
  display: none;
  padding: 20px 16px 40px;
}

.quiz-overlay.open {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-shell {
  width: 100%;
  max-width: 660px;
  margin: auto 0;
}

.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #fff;
}

.quiz-exit-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 999px;
}

.quiz-progress-text {
  font-family: "Outfit", sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pink-light);
}

.progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  width: 5%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7eb3, #a855f7);
  transition: width 0.25s ease;
}

.quiz-question-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 26px;
  border: 2px solid rgba(255, 182, 216, 0.65);
  box-shadow: 0 26px 60px rgba(10, 6, 28, 0.45);
}

.quiz-question-text {
  margin: 14px 0 24px;
  font-size: clamp(19px, 2.8vw, 23px);
  font-weight: 800;
  line-height: 1.42;
  color: var(--ink);
  min-height: 68px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option-btn {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--canvas);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.quiz-option-btn:hover {
  border-color: var(--pink);
  background: var(--pink-soft);
}

.quiz-option-btn.active {
  border-color: var(--pink);
  background: linear-gradient(90deg, #ff7eb3, #f0488c);
  color: #fff;
}

.quiz-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Result Dossier & Inner Pages */
.result-sheet {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
}

.result-avatar-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 3.5px solid #ffffff;
  box-shadow: 0 16px 34px rgba(68, 49, 114, 0.18);
}

.result-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-catchphrase {
  margin: 14px 0 0;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--pink-soft);
  border: 1.5px solid #fbcce0;
  color: #9f1239;
  font-family: "Caveat", cursive;
  font-size: 24px;
  line-height: 1.2;
}

.result-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-toast {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--violet);
  min-height: 18px;
}

.browse-banner {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--violet-soft);
  border: 1px solid #ddd6fe;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.browse-banner p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
}

.blend-banner {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fef9c3;
  border: 1.5px solid #fde047;
  color: #713f12;
  font-size: 13.5px;
  font-weight: 700;
}

.reasons-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.reasons-list li {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

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

.resume-banner {
  margin-top: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 190, 220, 0.35);
  color: #ffe6f2;
  font-size: 13px;
  font-weight: 800;
}

.resume-banner button {
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.match-bar-list {
  display: grid;
  gap: 10px;
}

.match-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.match-bar-track {
  height: 11px;
  border-radius: 999px;
  background: #f0eaf8;
  overflow: hidden;
}

.match-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.traits-grid {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.traits-grid li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.traits-grid li::before {
  content: "✦";
  color: var(--pink);
  font-size: 12px;
}

.dark-hub {
  background: linear-gradient(135deg, #251f42 0%, #3b2d69 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dark-hub h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.dark-hub p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
}

.dark-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Filter Tabs, Compatibility & Guides */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-tab {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.filter-tab.active {
  background: linear-gradient(90deg, #352b5e, #48387a);
  border-color: transparent;
  color: #fff;
}

.pair-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.select-box label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--twilight-700);
  margin-bottom: 6px;
}

.select-box select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 800;
}

.pair-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  background: var(--canvas);
  border: 1px solid var(--border);
  text-align: center;
}

.pair-avatar-box {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-card);
}

.pair-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pair-score {
  font-family: "Outfit", sans-serif;
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 900;
  color: var(--pink);
  line-height: 1;
}

.pair-level {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--pink-soft);
  border: 1px solid #fbcce0;
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 800;
}

.detail-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.detail-list li {
  margin-bottom: 6px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
}

.guide-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.guide-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.prose h2 {
  margin: 26px 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 15px;
}

.tldr-box {
  background: var(--violet-soft);
  border-left: 4px solid var(--violet);
  padding: 16px 18px;
  border-radius: 0 16px 16px 0;
  margin: 18px 0 24px;
  font-size: 14.5px;
  color: var(--ink);
}

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

.faq-item {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(68, 49, 114, 0.05);
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: #1d1736;
  color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.2fr 0.9fr;
  gap: 24px;
}

.footer-heading {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(235, 228, 255, 0.78);
}

.footer-types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(235, 228, 255, 0.78);
}

.footer-links a:hover,
.footer-types-grid a:hover {
  color: var(--pink-light);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(220, 212, 245, 0.65);
}

@media (max-width: 900px) {
  .hero-speech-bubble {
    display: none;
  }
  .steps-grid,
  .result-sheet,
  .analytics-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .result-avatar-wrap {
    max-width: 240px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .hero-banner::before {
    background: linear-gradient(180deg, rgba(31, 25, 61, 0.78) 0%, rgba(31, 25, 61, 0.92) 100%);
  }
  .cta-banner::before {
    background: linear-gradient(180deg, rgba(31, 25, 61, 0.8) 0%, rgba(31, 25, 61, 0.94) 100%);
  }
  .cta-banner-inner {
    justify-content: center;
  }
  .traits-grid,
  .pair-selectors,
  .pair-stage {
    grid-template-columns: 1fr;
  }
  .footer-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
