:root {
  /* Core 13-color master palette (light anime + twilight stage + cosmic obsidian) */
  --bg: #f7f8fc;
  --surface: #ffffff;
  --text: #16142b;
  --muted: #525673;
  --stage-bg: #242148;
  --stage-text: #f8f9ff;
  --stage-muted: #c2c6e2;
  --primary: #e11d64;
  --primary-hover: #be124f;
  --accent: #14b8a6;
  --obs-bg: #090814;
  --obs-gold: #eab955;
  --obs-violet: #7c5cff;

  /* Derived structural & theme tokens (zero extra raw colors) */
  --border: color-mix(in srgb, var(--muted) 22%, var(--surface));
  --focus-ring: color-mix(in srgb, var(--accent) 60%, var(--obs-bg));
  --stage-card: color-mix(in srgb, var(--surface) 8%, var(--stage-bg));
  --stage-border: color-mix(in srgb, var(--stage-muted) 26%, var(--stage-bg));
  --radius: 12px;
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--text) 6%, transparent);
  --shadow-md: 0 10px 28px color-mix(in srgb, var(--text) 10%, transparent);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Cosmic Obsidian derived tokens */
  --obs-surface: color-mix(in srgb, var(--stage-bg) 42%, var(--obs-bg));
  --obs-surface-alt: color-mix(in srgb, var(--stage-bg) 22%, var(--obs-bg));
  --obs-stage-bg: color-mix(in srgb, var(--stage-bg) 56%, var(--obs-bg));
  --obs-stage-card: color-mix(in srgb, var(--stage-bg) 78%, var(--obs-bg));
  --obs-stage-border: color-mix(in srgb, var(--stage-muted) 26%, var(--obs-stage-bg));
  --obs-text: var(--stage-text);
  --obs-muted: var(--stage-muted);
  --obs-border: color-mix(in srgb, var(--stage-muted) 20%, var(--obs-surface));
  --obs-gold-hover: color-mix(in srgb, var(--surface) 26%, var(--obs-gold));
  --obs-crimson: var(--primary);
  --obs-ink-dark: var(--obs-bg);
  --obs-shadow: 0 16px 40px color-mix(in srgb, var(--obs-bg) 72%, transparent);
  --obs-aura-color: var(--obs-gold);
  --light-orb-lavender: var(--obs-violet);
  --light-orb-peach: color-mix(in srgb, var(--surface) 44%, var(--primary));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* Keep slot widths stable as streamed content starts to overflow. */
  overflow-y: scroll;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--text);
}

h1 { font-size: 36px; font-weight: 700; }

@media (min-width: 1024px) {
  .hero-bar h1 { font-size: 34px; max-width: none; }
}
h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }

@media (max-width: 768px) {
  h2 { font-size: 24px; }
}
h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
p { margin: 0 0 16px; }

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.dtq-shell,
.dtq-share-modal,
.rshare-card,
.home-sins-strip,
.site-footer {
  --focus-ring: var(--accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--surface);
  padding: 8px 16px;
  font-weight: 600;
  z-index: 50;
}
.skip-link:focus { left: 16px; top: 16px; border-radius: var(--radius); }

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.brand-mark:empty { display: none; }
.brand-mark img,
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); text-decoration: none; }

.lang-switch {
  position: relative;
  margin-left: 14px;
  flex-shrink: 0;
}
.lang-btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:hover, .lang-switch[open] .lang-btn {
  border-color: var(--primary);
  color: var(--primary-hover);
}
.lang-globe { color: var(--primary-hover); flex-shrink: 0; }
.lang-caret { font-size: 12px; color: var(--muted); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 192px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.lang-opt:hover {
  background: var(--bg);
  color: var(--primary-hover);
  text-decoration: none;
}
.lang-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}


.hero-stage {
  padding: 16px 0 48px;
}

.hero-bar {
  margin-bottom: 12px;
}

.hero-bar h1 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 6px;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 84ch;
}

.dtq-shell {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: transparent;
  color: var(--stage-text);
  border: 1px solid color-mix(in srgb, var(--stage-text) 16%, var(--stage-border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--stage-text) 22%, transparent),
    inset 0 -1px 0 color-mix(in srgb, var(--obs-bg) 42%, transparent),
    0 22px 54px color-mix(in srgb, var(--stage-bg) 26%, transparent),
    0 0 0 4px color-mix(in srgb, var(--primary) 6%, transparent);
  padding: 28px;
}
.dtq-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--stage-text) 9%, transparent) 1px, transparent 0),
    radial-gradient(ellipse 68% 58% at 14% 8%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 68%),
    radial-gradient(ellipse 62% 56% at 88% 92%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%),
    radial-gradient(ellipse 52% 48% at 54% 44%, color-mix(in srgb, var(--obs-violet) 12%, transparent), transparent 72%),
    linear-gradient(155deg, color-mix(in srgb, var(--stage-bg) 88%, transparent) 0%, color-mix(in srgb, var(--stage-bg) 93%, transparent) 100%);
  background-size: 22px 22px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
}
.dtq-shell::after {
  content: "";
  position: absolute;
  inset: 0 0 -360px 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 11% 84%, color-mix(in srgb, var(--stage-text) 56%, transparent), transparent 70%),
    radial-gradient(4px 4px at 24% 62%, color-mix(in srgb, var(--primary) 54%, transparent), transparent 72%),
    radial-gradient(2.5px 2.5px at 39% 90%, color-mix(in srgb, var(--accent) 62%, transparent), transparent 70%),
    radial-gradient(3.5px 3.5px at 54% 48%, color-mix(in srgb, var(--stage-text) 44%, transparent), transparent 72%),
    radial-gradient(4.5px 4.5px at 69% 76%, color-mix(in srgb, var(--obs-violet) 54%, transparent), transparent 72%),
    radial-gradient(2.5px 2.5px at 82% 34%, color-mix(in srgb, var(--accent) 56%, transparent), transparent 70%),
    radial-gradient(3.5px 3.5px at 91% 66%, color-mix(in srgb, var(--primary) 48%, transparent), transparent 72%),
    radial-gradient(2px 2px at 17% 28%, color-mix(in srgb, var(--stage-text) 48%, transparent), transparent 70%),
    radial-gradient(3px 3px at 61% 18%, color-mix(in srgb, var(--stage-text) 46%, transparent), transparent 70%);
  background-size: 360px 360px;
  opacity: 0.72;
  will-change: transform;
  animation: shellMotesRise 18s linear infinite;
}
.dtq-shell > :not(dialog) {
  position: relative;
  z-index: 1;
}
@keyframes shellMotesRise {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(14px, -360px, 0); }
}

.dtq-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dtq-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.dtq-count {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--stage-text);
}

.dtq-bar-track {
  width: 100%;
  height: 11px;
  background: var(--stage-card);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.dtq-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 35%, transparent);
  transition: width 0.25s ease;
}

.dtq-question {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--stage-text);
  margin: 0 0 16px;
}

@media (min-width: 1024px) {
  .dtq-question {
    font-size: 26px;
    line-height: 1.35;
  }
}

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

.dtq-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--stage-text) 9%, color-mix(in srgb, var(--stage-card) 72%, transparent)) 0%, color-mix(in srgb, var(--stage-card) 62%, transparent) 100%);
  color: var(--stage-text);
  border: 1px solid color-mix(in srgb, var(--stage-text) 14%, var(--stage-border));
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--stage-text) 14%, transparent),
    0 4px 14px color-mix(in srgb, var(--obs-bg) 18%, transparent);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dtq-opt:hover {
  border-color: color-mix(in srgb, var(--accent) 78%, var(--stage-text));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, color-mix(in srgb, var(--stage-card) 82%, transparent)) 0%, color-mix(in srgb, var(--stage-card) 74%, transparent) 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--accent) 30%, transparent),
    0 8px 20px color-mix(in srgb, var(--obs-bg) 24%, transparent);
}

.dtq-opt.is-selected {
  border-color: color-mix(in srgb, var(--primary) 82%, var(--stage-text));
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 28%, var(--stage-card)) 0%, color-mix(in srgb, var(--primary) 16%, var(--stage-card)) 100%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--primary) 42%, var(--stage-text)),
    0 8px 22px color-mix(in srgb, var(--primary) 22%, transparent);
}
.dtq-opt.is-selected:hover {
  background: var(--stage-border);
}

.dtq-key {
  flex: 0 0 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stage-bg);
  color: var(--accent);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.dtq-opt.is-selected .dtq-key {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}


.dtq-quiz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.dtq-quiz-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dtq-quiz-grid > .dtq-shell {
  max-width: 760px;
  margin-inline: auto;
}

.dtq-companion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.dtq-vn-card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--stage-text) 16%, var(--stage-border));
  background: color-mix(in srgb, var(--stage-card) 82%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--stage-text) 14%, transparent), 0 10px 26px color-mix(in srgb, var(--obs-bg) 28%, transparent);
  transition: border-color 0.25s ease;
}
.dtq-vn-card.is-pulse {
  border-color: var(--accent);
}

.dtq-hero-frame {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 420px;
  overflow: hidden;
  background: var(--stage-bg);
}

.dtq-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.24s ease, transform 0.35s ease;
}
.dtq-hero-img[data-scene-type="portrait"] {
  object-position: center 16%;
}
.dtq-hero-img.is-swapping {
  opacity: 0.22;
  transform: scale(1.03);
}

.dtq-scene-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--stage-bg) 76%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--stage-text);
  border: 1px solid color-mix(in srgb, var(--stage-border) 80%, transparent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.dtq-mood-box {
  position: static;
  padding: 11px 14px;
  background: color-mix(in srgb, var(--stage-bg) 82%, var(--stage-card));
  border-top: 1px solid var(--stage-border);
}

.dtq-mood-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.dtq-mood-text {
  margin: 0;
  font-size: 14px;
  color: var(--stage-text);
  line-height: 1.5;
}


.dtq-hint {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.dtq-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.dtq-btn, .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dtq-btn-primary, .cta-btn {
  background: var(--primary);
  color: var(--surface);
}
.dtq-btn-primary:hover, .cta-btn:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.dtq-btn-secondary {
  background: var(--stage-card);
  color: var(--stage-text);
  border-color: var(--stage-border);
}
.dtq-btn-secondary:hover {
  border-color: var(--accent);
}

.dtq-btn-ghost {
  background: var(--stage-border);
  color: var(--stage-text);
  border-color: var(--stage-border);
}
.dtq-btn-ghost:hover:not(:disabled) {
  color: var(--stage-text);
  border-color: var(--stage-muted);
}
.dtq-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.dtq-btn-full { width: 100%; }


.dtq-res-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.dtq-res-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.dtq-res-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.dtq-res-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--stage-text);
  margin: 0;
}

.dtq-res-kana {
  font-size: 18px;
  font-weight: 600;
  color: var(--stage-muted);
}

.dtq-res-match {
  padding: 4px 12px;
  background: var(--primary);
  color: var(--surface);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.dtq-res-tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.dtq-res-runner {
  font-size: 14px;
  color: var(--stage-muted);
  margin-bottom: 16px;
}

.dtq-res-summary {
  color: var(--stage-text);
  max-width: 70ch;
}

.dtq-res-quote {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--stage-card);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  font-size: 16px;
  font-style: italic;
  color: var(--stage-text);
}

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

.dtq-insight-card {
  padding: 16px;
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
}

.dtq-insight-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.dtq-insight-text {
  margin: 0;
  font-size: 14px;
  color: var(--stage-text);
}

.dtq-res-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.dtq-chip {
  padding: 4px 12px;
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--stage-text);
}


.dtq-axes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.dtq-axis-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.dtq-axis-val {
  font-family: var(--font-mono);
  color: var(--accent);
}
.dtq-axis-track {
  height: 8px;
  background: var(--stage-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.dtq-axis-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius);
}

.dtq-compat-box {
  padding: 16px;
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  margin: 16px 0;
}
.dtq-compat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.dtq-compat-text { margin: 0; font-size: 14px; color: var(--stage-text); }

.dtq-chars-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--stage-text);
  margin: 16px 0 12px;
}
.dtq-chars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dtq-char-card {
  padding: 12px;
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
}
.dtq-char-name { font-weight: 700; font-size: 16px; color: var(--stage-text); margin: 0 0 4px; }
.dtq-char-series { font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.dtq-char-note { font-size: 14px; color: var(--stage-muted); margin: 0; }


.dtq-share-card {
  background: var(--stage-card);
  border: 2px solid var(--dtq-type-color, var(--primary));
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.dtq-share-card:hover,
.dtq-share-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: 2px solid var(--dtq-type-color, var(--primary));
  outline-offset: 2px;
}
.dtq-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.dtq-card-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--stage-muted);
}
.dtq-card-badge {
  padding: 4px 8px;
  background: color-mix(in srgb, var(--primary) 48%, var(--primary-hover));
  color: var(--surface);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.dtq-card-media {
  margin: 0 auto 12px;
  width: 184px;
  height: 184px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--dtq-type-color, var(--primary));
  background: var(--stage-bg);
}
.dtq-card-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.dtq-card-type {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--stage-text);
}
.dtq-card-kana { font-size: 14px; font-weight: 600; color: var(--dtq-type-color, var(--accent)); margin: 0 0 8px; }
.dtq-card-quote { font-size: 12px; font-style: italic; color: var(--stage-text); margin: 0 0 12px; }
.dtq-card-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.dtq-card-tag {
  padding: 4px 8px;
  background: var(--stage-bg);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--stage-text);
}
.dtq-card-chars {
  text-align: left;
  padding: 12px;
  background: var(--stage-bg);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.dtq-card-chars-label { font-family: var(--font-mono); font-size: 12px; color: var(--stage-muted); margin: 0 0 8px; }
.dtq-card-char-line { font-size: 14px; color: var(--stage-text); margin: 0 0 4px; }
.dtq-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}


.dtq-actions { display: flex; flex-direction: column; gap: 12px; }
.dtq-actions-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dtq-actions-row .dtq-btn { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
.dtq-action-status { margin: 0; font-size: 14px; color: var(--accent); min-height: 24px; text-align: center; }

.dtq-explore { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--stage-border); }
.dtq-explore-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.dtq-explore-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0; color: var(--stage-text); }
.dtq-explore-jump { font-size: 14px; font-weight: 600; color: var(--accent); }
.dtq-type-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dtq-type-pill {
  padding: 8px 12px;
  min-height: 44px;
  background: var(--stage-card);
  color: var(--stage-text);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.dtq-type-pill.is-yours { border-color: var(--accent); }
.dtq-type-pill.is-active { background: var(--primary); border-color: var(--primary); color: var(--surface); }
.dtq-explore-preview {
  margin-top: 16px;
  padding: 16px;
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
}
.dtq-ep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.dtq-ep-name { font-weight: 700; color: var(--stage-text); margin: 0; }
.dtq-ep-close {
  background: transparent;
  color: var(--stage-muted);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.dtq-ep-body { display: flex; gap: 16px; align-items: flex-start; }
.dtq-ep-img {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--stage-border);
}
.dtq-ep-quote { font-size: 14px; font-style: italic; color: var(--stage-muted); margin: 0 0 8px; }
.dtq-ep-desc { font-size: 14px; color: var(--stage-text); margin: 0 0 8px; }
.dtq-ep-chars { font-size: 14px; color: var(--accent); margin: 0; }


.editorial-section { padding: 48px 0; }
.editorial-alt { background: color-mix(in srgb, var(--surface) 78%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); max-width: 70ch; margin-bottom: 24px; }
.subpage-grid > * { min-width: 0; }
.prose { max-width: 70ch; min-width: 0; }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prose th, .prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.prose tbody tr:last-child td {
  border-bottom: none;
}

.split-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 32px; align-items: start; }
.split-grid-home { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.split-grid-home .split-main { display: flex; flex-direction: column; justify-content: space-between; }
.split-grid-home .prose { max-width: 100%; }
.split-grid-home .prose p { font-size: 15px; line-height: 1.72; color: var(--muted); }
.intro-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.intro-hl-card {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.intro-hl-title {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.intro-hl-text {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.intro-hl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.facts-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.facts-kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--primary-hover); margin: 0 0 12px; }
.facts-list { margin: 0; }
.fact-row { padding: 12px 0; border-top: 1px solid var(--border); }
.fact-row:first-child { border-top: 0; padding-top: 0; }
.fact-row dt { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.fact-row dd { margin: 0; font-weight: 700; color: var(--text); }
.split-grid-home .facts-panel {
  display: flex;
  flex-direction: column;
}
.split-grid-home .facts-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}
.split-grid-home .fact-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 0;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.split-grid-home .fact-row:first-child { padding-top: 14px; }
.split-grid-home .fact-row dd { font-size: 16px; line-height: 1.3; font-family: var(--font-display); }

.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.step-card, .type-card, .aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.editorial-alt .step-card { background: var(--surface); padding: 20px 22px; }
.step-num { display: inline-block; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--primary-hover); margin-bottom: 6px; }
.step-card h3 { margin: 0 0 6px; }
.step-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.types-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.type-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border-color: var(--border); }
.type-card:hover { border-color: var(--primary); }
.type-card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.type-avatar {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--stage-bg);
}
.type-card-meta { flex: 1; min-width: 0; }
.type-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.type-kana { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; letter-spacing: 0.03em; white-space: nowrap; }
.type-tagline { font-weight: 500; font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; }
.type-desc { color: var(--muted); font-size: 16px; max-width: 68ch; margin-bottom: 12px; }
.type-chars { margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.5; color: var(--text); }
.type-card-links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 2px; }
.type-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--primary-hover); }
.type-more:hover { text-decoration: underline; }
.type-test-link { display: inline-flex; align-items: center; padding: 5px 11px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.type-test-link:hover { border-color: var(--primary); color: var(--primary-hover); text-decoration: none; }
.types-section-cta { margin-top: 24px; text-align: center; }
.types-guide-link { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; font-weight: 700; color: var(--primary-hover); box-shadow: var(--shadow-sm); }
.types-guide-link:hover { border-color: var(--primary); text-decoration: none; }


.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}
.faq-q {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.faq-a { margin-top: 12px; color: var(--muted); }
.faq-a p { margin: 0; }

.subpage-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.subpage-sub, .legal-meta { color: var(--muted); margin: 0; }
.subpage-body { padding: 48px 0; }
.subpage-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: 32px; align-items: start; }
.aside-kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--primary); margin: 0 0 8px; }
.aside-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.aside-text { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.legal-wrap { max-width: 820px; }
.legal-nav-box {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-quick-links { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 600; font-size: 14px; }

/* ---- Friend Compare Banner & Duo Chemistry Card ---- */
.dtq-compare-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: var(--stage-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.dtq-compare-banner[hidden] { display: none; }
.dtq-compare-banner-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dtq-compare-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.dtq-compare-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--stage-text);
}

.dtq-duo-card {
  background: var(--stage-bg);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 14px;
  color: var(--stage-text);
}
.dtq-duo-banner {
  margin-top: 0;
  margin-bottom: 20px;
  border-color: var(--accent);
}
.dtq-res-aside .dtq-compat-box {
  margin-top: 10px;
  margin-bottom: 0;
}
.dtq-chars-full {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--stage-border);
}

/* ---- Result Share Modal ---- */
.dtq-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
}
.dtq-modal-backdrop::backdrop { background: transparent; }
.dtq-modal-backdrop::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--stage-bg);
  opacity: 0.84;
  z-index: 0;
}
.dtq-modal-backdrop[hidden] { display: none; }

.dtq-share-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--stage-bg);
  color: var(--stage-text);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.dtq-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stage-border);
}
.dtq-modal-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}
.dtq-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--stage-text);
}
.dtq-modal-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stage-card);
  color: var(--stage-text);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.dtq-modal-close:hover { border-color: var(--accent); color: var(--accent); }

.dtq-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 20px;
  align-items: stretch;
}
.dtq-modal-preview-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.dtq-modal-card {
  padding: 16px;
  background: var(--stage-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
}
.dtq-modal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dtq-modal-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--stage-muted);
}
.dtq-modal-badge {
  padding: 3px 10px;
  background: var(--primary);
  color: var(--surface);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.dtq-modal-img {
  width: 148px;
  height: 148px;
  margin: 0 auto 10px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid var(--accent);
}
.dtq-modal-type {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--stage-text);
}
.dtq-modal-kana {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.dtq-modal-quote {
  margin: 0 0 8px;
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
  color: var(--stage-muted);
}
.dtq-modal-blend {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.dtq-modal-card-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--stage-border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stage-muted);
}

.dtq-modal-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}
.dtq-modal-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dtq-modal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dtq-modal-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--stage-muted);
}
.dtq-modal-copy-row {
  display: flex;
  gap: 8px;
}
.dtq-modal-input, .dtq-modal-textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  background: var(--stage-card);
  color: var(--stage-text);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
}
.dtq-modal-textarea {
  font-family: var(--font-body);
  resize: none;
}
.dtq-modal-copy-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 14px;
  white-space: nowrap;
}
.dtq-modal-inline-copy {
  background: transparent;
  border: none;
  padding: 2px 0;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dtq-modal-inline-copy:hover { text-decoration: underline; }

.dtq-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dtq-channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--stage-card);
  color: var(--stage-text);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.dtq-channel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.dtq-ch-icon { flex-shrink: 0; }
.dtq-ch-arrow {
  font-size: 12px;
  color: var(--stage-muted);
}
.dtq-channel-btn:hover .dtq-ch-arrow { color: var(--accent); }

.dtq-modal-og-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
}
.dtq-modal-og-thumb {
  flex: 0 0 152px;
  width: 152px;
  height: auto;
  aspect-ratio: 1200 / 630;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--accent);
}
.dtq-modal-og-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dtq-modal-og-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--stage-text);
}
.dtq-modal-og-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--stage-muted);
}
.dtq-modal-og-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.dtq-modal-og-btn {
  padding: 6px 12px;
  min-height: 34px;
  font-size: 13px;
}

.dtq-modal-status {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.dtq-modal-status:empty { display: none; }

.rshare-section {
  padding: 40px 0 64px;
  background: var(--bg);
}
.rshare-card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--stage-bg);
  color: var(--stage-text);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.rshare-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rshare-kicker {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: var(--stage-bg);
  color: var(--accent);
  border: 1px solid var(--stage-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.rshare-portrait {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
}
.rshare-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.rshare-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.rshare-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  color: var(--stage-text);
}
.rshare-kana {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.rshare-tagline {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--stage-text);
}
.rshare-quote {
  margin: 4px 0;
  padding: 12px 16px;
  background: var(--stage-card);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  font-size: 15px;
  font-style: italic;
  color: var(--stage-muted);
}
.rshare-chars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
.rshare-chars-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--stage-muted);
}
.rshare-chars-list {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--stage-text);
}
.rshare-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.rshare-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  background: var(--primary);
  color: var(--surface);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.rshare-cta:hover {
  background: var(--primary-hover);
  color: var(--surface);
  text-decoration: none;
}
.rshare-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.dtq-duo-card[hidden] { display: none; }
.dtq-duo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.dtq-duo-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--stage-muted);
  text-transform: uppercase;
}
.dtq-duo-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--stage-bg);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.dtq-duo-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dtq-duo-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dtq-duo-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--stage-border);
  flex-shrink: 0;
}
.dtq-duo-label {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--stage-muted);
}
.dtq-duo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--stage-text);
}
.dtq-duo-x {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.dtq-duo-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--stage-text);
}
.dtq-duo-desc {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--stage-muted);
}

/* ---- Hybrid Blend Notice, 10-Dere Breakdown & Card Blend ---- */
.dtq-hybrid-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--stage-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  color: var(--stage-text);
}
.dtq-hybrid-note[hidden] { display: none; }

.dtq-spectrum {
  margin: 18px 0 20px;
  padding: 16px;
  background: var(--stage-bg);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
}
.dtq-spectrum-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.dtq-spectrum-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.dtq-spectrum-sub {
  font-size: 12px;
  color: var(--stage-muted);
}
.dtq-spectrum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.dtq-spec-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dtq-spec-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dtq-spec-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--stage-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dtq-spec-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--stage-muted);
  flex-shrink: 0;
}
.dtq-spec-row.is-top .dtq-spec-name,
.dtq-spec-row.is-top .dtq-spec-pct { color: var(--stage-text); }
.dtq-spec-row.is-second .dtq-spec-pct,
.dtq-spec-row.is-hybrid .dtq-spec-pct { color: var(--accent); }
.dtq-spec-track {
  height: 8px;
  background: var(--stage-card);
  border-radius: 999px;
  overflow: hidden;
}
.dtq-spec-fill {
  height: 100%;
  background: var(--stage-muted);
  border-radius: 999px;
}
.dtq-spec-row.is-top .dtq-spec-fill { background: var(--primary); }
.dtq-spec-row.is-second .dtq-spec-fill,
.dtq-spec-row.is-hybrid .dtq-spec-fill { background: var(--accent); }

.dtq-card-blend {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--accent);
  text-align: center;
}

/* ---- /dere-types Visual Archetype Cards & FAQ ---- */
.guide-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 28px;
}
.guide-type-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scroll-margin-top: 84px;
}
.guide-type-img {
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
}
.guide-type-body {
  min-width: 0;
  flex: 1;
}
.guide-type-body h3 { margin: 0 0 8px; }
.guide-type-body p { margin: 0 0 10px; }
.guide-type-chars {
  font-size: 14px;
  color: var(--muted);
}
.guide-type-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}
.subpage-faq { margin-top: 32px; }

/* ---- Community Engagement & Comments Panel ---- */
.dtq-community {
  border-top: 1px solid var(--border);
}
.dtq-engage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dtq-engage-head .section-lead { margin-bottom: 0; }
.dtq-engage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.dtq-engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.dtq-engage-btn:hover { border-color: var(--primary); color: var(--primary-hover); }
.dtq-engage-btn[data-gf-liked],
.dtq-engage-btn[aria-pressed="true"] {
  border-color: var(--primary);
  color: var(--primary-hover);
  background: var(--surface);
}
.dtq-engage-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-hover);
}
.dtq-c-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.dtq-c-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.dtq-c-form:not([data-gf-replying]) [data-gf-reply-to],
.dtq-c-form:not([data-gf-replying]) [data-gf-reply-cancel] {
  display: none;
}
.dtq-reply-banner {
  padding: 8px 12px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
}
.dtq-c-row { display: flex; flex-direction: column; }
.dtq-c-field { display: flex; flex-direction: column; gap: 6px; }
.dtq-c-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.dtq-c-input, .dtq-c-textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}
.dtq-c-input:focus-visible, .dtq-c-textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.dtq-c-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.dtq-c-msg {
  font-size: 14px;
  color: var(--primary-hover);
}
.dtq-c-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.dtq-c-list[data-gf-empty]::after {
  content: "No results posted yet—be the first to drop your top dere mix!";
  font-size: 14px;
  color: var(--muted);
}
.dtq-c-list[data-gf-empty][data-empty-msg]::after {
  content: attr(data-empty-msg);
}
.dtq-c-list[data-gf-off] { display: none; }
.dtq-c-item {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dtq-c-item[data-gf-owner] {
  border-color: var(--accent);
}
.dtq-c-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.dtq-c-author { font-size: 14px; color: var(--text); }
.dtq-c-owner {
  padding: 2px 8px;
  background: var(--accent);
  color: var(--stage-bg);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.dtq-c-to { font-size: 13px; color: var(--primary-hover); font-weight: 600; }
.dtq-c-time { font-size: 12px; color: var(--muted); }
.dtq-c-body { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--text); }
.dtq-c-foot { display: flex; justify-content: flex-start; }
.dtq-c-reply-btn {
  background: transparent;
  border: none;
  padding: 4px 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dtq-c-reply-btn:hover { color: var(--primary); }
.dtq-c-replies {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

/* ---- Quick/Deep Mode Switcher, Mini-Quizzes & Rare Dere Grid ---- */
.dtq-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.dtq-mode-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  margin-bottom: 0;
  background: var(--stage-bg);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
}
.dtq-start-cue {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.dtq-stage.is-mode-flash {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: var(--radius);
}
.dtq-btn-compare {
  background: var(--stage-card);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.dtq-btn-compare:hover {
  background: var(--stage-bg);
  color: var(--stage-text);
}
.dtq-mode-btn {
  padding: 6px 12px;
  min-height: 36px;
  background: transparent;
  color: var(--stage-muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.dtq-mode-btn:hover { color: var(--stage-text); }
.dtq-mode-btn.is-active {
  background: var(--primary);
  color: var(--surface);
}

.dtq-more-strip {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--stage-border);
}
.dtq-more-strip-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--stage-text);
}
.dtq-more-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dtq-more-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  color: var(--stage-text);
}
.dtq-more-mini:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.dtq-more-mini strong { font-size: 14px; color: var(--stage-text); }
.dtq-more-mini span { font-size: 12px; color: var(--stage-muted); line-height: 1.4; }

.breadcrumb-dark {
  color: var(--muted);
  margin-bottom: 10px;
}
.breadcrumb-dark a { color: var(--primary-hover); }

.mtq-res-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}
.mtq-res-main, .mtq-res-side { min-width: 0; }
.mtq-card {
  padding: 18px;
  margin-bottom: 14px;
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  text-align: center;
}
.mtq-portrait {
  width: 196px;
  height: 196px;
  margin: 0 auto 12px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid var(--accent);
}
.mtq-card-score {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--stage-text);
}
.mtq-card-sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.mtq-split-box {
  margin: 16px 0 18px;
  padding: 14px 16px;
  background: var(--stage-bg);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
}
.mtq-split-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.mtq-split-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.mtq-split-summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--stage-text);
}
.mtq-split-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--stage-card);
  margin-bottom: 8px;
}
.mtq-split-a { background: var(--primary); height: 100%; }
.mtq-split-b { background: var(--accent); height: 100%; }
.mtq-split-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stage-muted);
}

.dtq-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dtq-more-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.dtq-more-card:hover {
  border-color: var(--primary);
  text-decoration: none;
}
.dtq-more-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-hover);
}
.dtq-more-card strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
}
.dtq-more-card span:last-child {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.rare-types-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}
.rare-type-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.rare-type-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.rare-type-head h3 { margin: 0; font-size: 17px; }
.rare-type-kana {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.rare-type-desc {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.rare-type-ex {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer {
  background: var(--stage-bg);
  color: var(--stage-muted);
  padding: 48px 0;
}
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--stage-text); }
.footer-tagline { margin: 4px 0 0; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-link { color: var(--stage-text); font-size: 14px; font-weight: 600; }
.footer-link:hover { color: var(--accent); }
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--stage-border); }
.footer-langs-label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--stage-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-lang-link { color: var(--stage-text); font-size: 13px; font-weight: 600; padding: 4px 10px; background: var(--stage-card); border: 1px solid var(--stage-border); border-radius: 999px; }
.footer-lang-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.footer-copy { margin: 0; font-size: 14px; }
.footer-email { color: var(--stage-text); text-decoration: underline; text-underline-offset: 3px; }
.footer-email:hover { color: var(--accent); }

@media (max-width: 900px) {
  .dtq-quiz-grid, .dtq-res-layout, .dtq-chars-grid, .mtq-res-grid, .split-grid-home { grid-template-columns: 1fr; }
  .dtq-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtq-more-strip-grid { grid-template-columns: 1fr; }
  .dtq-companion { order: 1; }
  .dtq-hero-img { height: 120px; width: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 24%; }
}

@media (max-width: 768px) {
  .site-nav { gap: 20px; }
  .site-nav .nav-link { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 8px; }
  .hero-stage { padding: 12px 0 24px; }
  .hero-bar { margin-bottom: 10px; }
  .hero-bar h1 { font-size: clamp(24px, 6vw, 36px); margin-bottom: 4px; }
  .hero-sub { font-size: 14px; line-height: 1.45; }
  .dtq-companion, .dtq-hero-frame, .dtq-mood-box { display: none; }
  .types-grid { grid-template-columns: 1fr; gap: 16px; }
  .prose { max-width: 100%; min-width: 0; }
  .prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dtq-compare-banner { flex-direction: column; align-items: flex-start; }
  .dtq-duo-card { padding: 12px 14px; }
}

@media (max-width: 640px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .header-inner { min-height: 48px; gap: 4px 10px; flex-wrap: wrap; padding-block: 4px; }
  .brand { font-size: 15px; gap: 6px; order: 1; }
  .brand-mark { width: 22px; height: 22px; }
  .lang-switch { order: 2; margin-left: auto; }
  .lang-btn { min-height: 44px; padding: 6px 12px; font-size: 13px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; justify-content: center; gap: 20px; border-top: 1px solid var(--border); }
  .nav-link { font-size: 13px; }
  .dtq-shell { padding: 16px; }
  .dtq-quiz-grid { gap: 12px; }
  .dtq-bar-track { margin-bottom: 10px; }
  .dtq-question { font-size: 18px; margin-bottom: 10px; }
  .dtq-options { grid-template-columns: 1fr; gap: 8px; }
  .dtq-opt { min-height: 44px; padding: 8px 12px; font-size: 14px; }
  .dtq-nav { margin-top: 12px; }
  .dtq-res-layout, .split-grid, .steps-grid, .types-grid, .subpage-grid, .dtq-chars-grid, .dtq-axes, .dtq-insights-grid {
    grid-template-columns: 1fr;
  }
  .dtq-ep-body { flex-direction: column; }
  .dtq-res-name { font-size: 28px; }
  .dtq-actions-row { grid-template-columns: 1fr; }
  .dtq-btn, .cta-btn { width: 100%; }
  .dtq-nav .dtq-btn { width: auto; flex: 1; white-space: nowrap; font-size: 14px; padding: 8px 12px; }
  .editorial-section, .subpage-body { padding: 32px 0; }
  .dtq-spectrum-grid { grid-template-columns: 1fr; }
  .guide-type-card { flex-direction: column; }
  .guide-type-img { width: 88px; height: 88px; flex: 0 0 auto; }
  .dtq-engage-head { flex-direction: column; align-items: flex-start; }
  .dtq-c-panel { padding: 16px; }
  .dtq-more-grid, .rare-types-grid, .intro-highlights, .split-grid-home .facts-list, .dtq-modal-body, .rshare-card { grid-template-columns: 1fr; }
  .dtq-modal-og-box { flex-direction: column; align-items: flex-start; }
  .dtq-modal-og-thumb { width: 100%; flex: 0 0 auto; }
  .dtq-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtq-share-modal { padding: 18px; }
  .dtq-modal-copy-row { flex-direction: column; }
  .dtq-mode-bar { width: 100%; }
  .dtq-mode-btn { flex: 1; text-align: center; }
}

/* ---- SCENE MOOD 底部贴合信息条（0遮挡图片） / 手机点按区 / 手机首屏密度 ---- */
.dtq-mood-box {
  background: color-mix(in srgb, var(--stage-bg) 88%, var(--stage-card));
  color: var(--stage-text);
  border-color: var(--stage-border);
}
.dtq-mood-box :is(span, p, strong, em, small, div) { color: var(--stage-text); }
.dtq-mood-box :is(.dtq-mood-kicker, .dtq-mood-label) { color: var(--accent); }

@media (max-width: 768px) {
  .site-nav { gap: 22px; }
  .site-nav .nav-link { padding-inline: 10px; font-size: 13.5px; }
}

@media (max-width: 640px) {
  .site-nav { column-gap: 26px; }
  .hero-stage { padding: 8px 0 18px; }
  .hero-bar { margin-bottom: 6px; }
  .hero-sub { margin-top: 2px; }
  .dtq-shell { padding: 14px; }
  .dtq-question { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
  .dtq-options { gap: 7px; }
  .dtq-opt { padding: 7px 11px; }
}

/* 补充（2026-11-22 第二轮审稿）：未选中模式按钮补边框、手机选项行高收紧 */
.dtq-mode-btn {
  padding: 8px 16px;
  border-radius: 999px;
}
.dtq-mode-btn:not(.is-active) {
  border: 1px solid color-mix(in srgb, var(--stage-text) 20%, transparent);
  background: transparent;
}
.dtq-mood-box .dtq-mood-kicker { font-weight: 700; }

@media (max-width: 640px) {
  .dtq-opt-text { line-height: 1.42; }
  .dtq-progress-meta { margin-bottom: 8px; }
}

/* ---- Topbar Quizzes Quick-Switcher ---- */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}
.header-actions .lang-switch {
  margin-left: 0;
}
.quiz-switch {
  position: relative;
  flex-shrink: 0;
}
.quiz-btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.quiz-btn::-webkit-details-marker { display: none; }
.quiz-btn:hover,
.quiz-switch[open] .quiz-btn {
  border-color: var(--primary);
  color: var(--primary-hover);
}
.quiz-icon {
  color: var(--primary);
  flex-shrink: 0;
}
.quiz-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: 288px;
  max-width: calc(100vw - 24px);
  max-height: 76vh;
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quiz-group-label {
  padding: 8px 10px 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.quiz-group-label:not(:first-child) {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.quiz-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.quiz-opt-virtues[href="/personality-tests/heavenly-virtues-test"] > .quiz-virtues-local,
.quiz-opt-virtues:not([href="/personality-tests/heavenly-virtues-test"]) > .quiz-virtues-english {
  display: none;
}
.quiz-opt:hover {
  background: var(--bg);
  color: var(--primary-hover);
  text-decoration: none;
}
.quiz-opt-featured {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
}
.quiz-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.quiz-tag-new {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--primary-hover);
  color: var(--surface);
}
.quiz-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .header-actions {
    order: 2;
    margin-left: auto;
    gap: 6px;
  }
  .quiz-btn {
    min-height: 44px;
    padding: 6px 10px;
    font-size: 13px;
  }
  .quiz-menu {
    right: -52px;
    width: min(304px, calc(100vw - 24px));
  }
}

/* ---- Personality Tests Hub & Editorial Cards ---- */
.hub-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hub-featured-media {
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background: var(--stage-bg);
}
.hub-featured-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  height: auto;
  object-fit: cover;
}
.hub-featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.hub-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hub-featured-body h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
}
.hub-featured-body h2 a {
  color: var(--text);
  text-decoration: none;
}
.hub-featured-body h2 a:hover {
  color: var(--primary);
}
.hub-featured-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.hub-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hub-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--stage-card));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hub-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.hub-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.hub-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.hub-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hub-card-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.hub-card-body h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}
.hub-card-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hub-featured {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Full-Page Obsidian Dark Theme (Personality Tests Section) ---- */
body.theme-obsidian {
  --bg: var(--obs-bg);
  --surface: var(--obs-surface);
  --stage-bg: var(--obs-stage-bg);
  --stage-card: var(--obs-stage-card);
  --stage-border: var(--obs-stage-border);
  --text: var(--obs-text);
  --muted: var(--obs-muted);
  --stage-text: var(--obs-text);
  --stage-muted: var(--obs-muted);
  --primary: var(--obs-gold);
  --primary-hover: var(--obs-gold-hover);
  --accent: var(--obs-gold);
  --focus-ring: var(--obs-gold);
  --border: var(--obs-border);
  --shadow-md: var(--obs-shadow);
  background-color: var(--obs-bg);
  color: var(--obs-text);
  position: relative;
}

body.theme-obsidian .site-header {
  position: relative;
  z-index: 30;
  background: color-mix(in srgb, var(--obs-surface) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--obs-gold) 22%, var(--obs-border));
}
body.theme-obsidian .nav-link {
  color: var(--obs-muted);
}
body.theme-obsidian .nav-link:hover {
  color: var(--obs-gold);
}
body.theme-obsidian .quiz-btn,
body.theme-obsidian .lang-btn {
  background: color-mix(in srgb, var(--obs-stage-card) 86%, var(--obs-bg));
  border-color: color-mix(in srgb, var(--obs-gold) 28%, var(--obs-border));
  color: var(--obs-text);
}
body.theme-obsidian .quiz-btn:hover,
body.theme-obsidian .quiz-switch[open] .quiz-btn,
body.theme-obsidian .lang-btn:hover,
body.theme-obsidian .lang-switch[open] .lang-btn {
  border-color: var(--obs-gold);
  color: var(--obs-gold-hover);
}
body.theme-obsidian .quiz-icon,
body.theme-obsidian .lang-globe {
  color: var(--obs-gold);
}
body.theme-obsidian .quiz-menu,
body.theme-obsidian .lang-menu {
  background: var(--obs-surface);
  border-color: color-mix(in srgb, var(--obs-gold) 26%, var(--obs-border));
}
body.theme-obsidian .quiz-opt:hover,
body.theme-obsidian .lang-opt:hover {
  background: var(--obs-stage-card);
  color: var(--obs-gold-hover);
}
body.theme-obsidian .quiz-opt-featured {
  background: color-mix(in srgb, var(--obs-gold) 12%, var(--obs-stage-card));
  border-color: color-mix(in srgb, var(--obs-gold) 36%, var(--obs-border));
}
body.theme-obsidian .quiz-tag-new {
  background: var(--obs-gold);
  color: var(--obs-ink-dark);
}

body.theme-obsidian main,
body.theme-obsidian .site-footer {
  position: relative;
  z-index: 2;
}
body.theme-obsidian .obs-layer {
  position: relative;
  z-index: 2;
}
body.theme-obsidian .subpage-hero {
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--obs-gold) 18%, var(--obs-border));
}
body.theme-obsidian .subpage-hero h1,
body.theme-obsidian .hero-bar h1 {
  color: var(--obs-text);
}
body.theme-obsidian .subpage-sub,
body.theme-obsidian .hero-sub {
  color: var(--obs-muted);
}
body.theme-obsidian .breadcrumb-dark,
body.theme-obsidian .breadcrumb-dark a {
  color: var(--obs-muted);
}
body.theme-obsidian .breadcrumb-dark a:hover {
  color: var(--obs-gold);
}

body.theme-obsidian .editorial-section {
  background: transparent;
}
body.theme-obsidian .editorial-alt {
  background: color-mix(in srgb, var(--obs-surface-alt) 72%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--obs-gold) 12%, var(--obs-border));
  border-bottom: 1px solid color-mix(in srgb, var(--obs-gold) 12%, var(--obs-border));
}

body.theme-obsidian .dtq-shell {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--obs-aura-color) 36%, var(--obs-stage-border));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--obs-gold-hover) 24%, transparent),
    inset 0 -1px 0 color-mix(in srgb, var(--obs-bg) 60%, transparent),
    0 24px 56px color-mix(in srgb, var(--obs-bg) 84%, transparent),
    0 0 40px color-mix(in srgb, var(--obs-aura-color) 18%, transparent);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
body.theme-obsidian .dtq-shell::before {
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--obs-gold-hover) 11%, transparent) 1px, transparent 0),
    radial-gradient(ellipse 68% 58% at 16% 6%, color-mix(in srgb, var(--obs-aura-color) 18%, transparent), transparent 66%),
    radial-gradient(ellipse 62% 54% at 86% 94%, color-mix(in srgb, var(--obs-violet) 16%, transparent), transparent 68%),
    linear-gradient(155deg, color-mix(in srgb, var(--obs-stage-bg) 86%, transparent) 0%, color-mix(in srgb, var(--obs-bg) 90%, transparent) 100%);
  background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;
}
body.theme-obsidian .dtq-shell::after {
  background-image:
    radial-gradient(3px 3px at 12% 84%, color-mix(in srgb, var(--obs-gold-hover) 72%, transparent), transparent 70%),
    radial-gradient(3.5px 3.5px at 28% 58%, color-mix(in srgb, var(--obs-aura-color) 64%, transparent), transparent 72%),
    radial-gradient(2.5px 2.5px at 44% 88%, color-mix(in srgb, var(--obs-text) 56%, transparent), transparent 70%),
    radial-gradient(3.5px 3.5px at 62% 46%, color-mix(in srgb, var(--obs-gold) 68%, transparent), transparent 72%),
    radial-gradient(4px 4px at 78% 76%, color-mix(in srgb, var(--obs-violet) 58%, transparent), transparent 72%),
    radial-gradient(2.5px 2.5px at 88% 32%, color-mix(in srgb, var(--obs-gold-hover) 66%, transparent), transparent 70%),
    radial-gradient(3px 3px at 20% 24%, color-mix(in srgb, var(--obs-text) 50%, transparent), transparent 70%);
  opacity: 0.78;
}
body.theme-obsidian .dtq-opt {
  background: color-mix(in srgb, var(--obs-stage-card) 86%, var(--obs-bg));
  border-color: color-mix(in srgb, var(--obs-gold) 18%, var(--obs-stage-border));
}
body.theme-obsidian .dtq-opt:hover {
  border-color: var(--obs-gold);
  background: color-mix(in srgb, var(--obs-gold) 10%, var(--obs-stage-card));
}
body.theme-obsidian .dtq-opt.is-picked,
body.theme-obsidian .dtq-opt.is-selected {
  border-color: var(--obs-gold);
  background: color-mix(in srgb, var(--obs-gold) 18%, var(--obs-stage-card));
}
body.theme-obsidian .dtq-btn-primary,
body.theme-obsidian .cta-btn {
  background: var(--obs-gold);
  color: var(--obs-ink-dark);
  border-color: var(--obs-gold);
}
body.theme-obsidian .dtq-btn-primary:hover,
body.theme-obsidian .cta-btn:hover {
  background: var(--obs-gold-hover);
  color: var(--obs-ink-dark);
}
body.theme-obsidian .dtq-bar-fill {
  background: linear-gradient(90deg, var(--obs-crimson), var(--obs-gold));
}
body.theme-obsidian .dtq-spec-row.is-top .dtq-spec-fill {
  background: var(--obs-gold);
}
body.theme-obsidian .dtq-match-badge,
body.theme-obsidian .dtq-res-match {
  background: var(--obs-stage-card);
  color: var(--obs-gold-hover);
  border: 1px solid color-mix(in srgb, var(--obs-gold) 55%, var(--obs-stage-border));
}
body.theme-obsidian .hub-featured,
body.theme-obsidian .hub-card,
body.theme-obsidian .type-card,
body.theme-obsidian .facts-panel,
body.theme-obsidian .faq-item,
body.theme-obsidian .dtq-more-card,
body.theme-obsidian .dtq-c-panel {
  background: color-mix(in srgb, var(--obs-surface) 88%, var(--obs-bg));
  border-color: color-mix(in srgb, var(--obs-gold) 20%, var(--obs-border));
}
body.theme-obsidian .hub-card:hover,
body.theme-obsidian .dtq-more-card:hover {
  border-color: var(--obs-gold);
}
body.theme-obsidian .hub-pill {
  background: var(--obs-stage-card);
  border-color: color-mix(in srgb, var(--obs-gold) 42%, var(--obs-border));
  color: var(--obs-gold-hover);
}
body.theme-obsidian .dtq-more-kicker {
  color: var(--obs-gold);
}
body.theme-obsidian .prose strong,
body.theme-obsidian .prose th {
  color: var(--obs-text);
}
body.theme-obsidian .prose th {
  background: var(--obs-stage-card);
}
body.theme-obsidian .prose td,
body.theme-obsidian .prose th {
  border-color: var(--obs-border);
}
body.theme-obsidian .site-footer {
  background: color-mix(in srgb, var(--obs-bg) 92%, var(--obs-surface));
  border-top: 1px solid color-mix(in srgb, var(--obs-gold) 18%, var(--obs-border));
}

/* ---- Universal Animated Ambient Background (Light Anime + Dark Obsidian) ---- */
.site-header {
  position: relative;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
main,
.site-footer {
  position: relative;
  z-index: 2;
}
.page-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 55% at 50% 0%, color-mix(in srgb, var(--light-orb-peach) 14%, transparent), transparent 72%),
              linear-gradient(180deg, var(--bg) 0%, var(--surface) 52%, var(--bg) 100%);
}
.amb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform, opacity;
}
.amb-orb-1 {
  width: 560px;
  height: 560px;
  top: -150px;
  left: -120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 26%, transparent), transparent 68%);
  animation: ambDriftA 18s ease-in-out infinite alternate;
}
.amb-orb-2 {
  width: 520px;
  height: 520px;
  top: 18%;
  right: -140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 68%);
  animation: ambDriftB 22s ease-in-out infinite alternate;
}
.amb-orb-3 {
  width: 500px;
  height: 500px;
  bottom: -160px;
  left: 26%;
  background: radial-gradient(circle, color-mix(in srgb, var(--light-orb-lavender) 24%, transparent), transparent 68%);
  animation: ambDriftC 20s ease-in-out infinite alternate;
}
.amb-sparks {
  position: absolute;
  inset: -40px;
  background-image:
    radial-gradient(3px 3px at 10% 22%, color-mix(in srgb, var(--primary) 42%, transparent), transparent),
    radial-gradient(2.5px 2.5px at 26% 68%, color-mix(in srgb, var(--accent) 44%, transparent), transparent),
    radial-gradient(3.2px 3.2px at 44% 18%, color-mix(in srgb, var(--light-orb-lavender) 46%, transparent), transparent),
    radial-gradient(2.6px 2.6px at 66% 32%, color-mix(in srgb, var(--primary) 38%, transparent), transparent),
    radial-gradient(3px 3px at 86% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent),
    radial-gradient(2.8px 2.8px at 92% 70%, color-mix(in srgb, var(--light-orb-lavender) 44%, transparent), transparent),
    radial-gradient(3px 3px at 34% 86%, color-mix(in srgb, var(--primary) 36%, transparent), transparent),
    radial-gradient(2.4px 2.4px at 64% 80%, color-mix(in srgb, var(--accent) 42%, transparent), transparent);
  background-size: 380px 380px;
  opacity: 0.65;
  animation: ambTwinkle 7.5s ease-in-out infinite alternate;
}
.amb-motes {
  position: absolute;
  inset: 0 0 -460px 0;
  background-image:
    radial-gradient(5px 3px at 14% 84%, color-mix(in srgb, var(--primary) 34%, transparent), transparent),
    radial-gradient(4px 4px at 48% 92%, color-mix(in srgb, var(--accent) 34%, transparent), transparent),
    radial-gradient(5px 3px at 78% 76%, color-mix(in srgb, var(--light-orb-peach) 44%, transparent), transparent),
    radial-gradient(4px 4px at 30% 46%, color-mix(in srgb, var(--light-orb-lavender) 36%, transparent), transparent),
    radial-gradient(5px 3px at 88% 38%, color-mix(in srgb, var(--primary) 32%, transparent), transparent);
  background-size: 460px 460px;
  opacity: 0.58;
  animation: ambRise 24s linear infinite;
}

/* Dark Obsidian Theme Ambient Override */
body.theme-obsidian .page-ambient {
  background: radial-gradient(ellipse 80% 55% at 50% 0%, color-mix(in srgb, var(--obs-aura-color) 18%, transparent), transparent 70%),
              linear-gradient(180deg, var(--obs-bg) 0%, var(--obs-surface-alt) 50%, var(--obs-bg) 100%);
}
body.theme-obsidian .amb-orb-1 {
  background: radial-gradient(circle, color-mix(in srgb, var(--obs-aura-color) 52%, transparent), transparent 68%);
}
body.theme-obsidian .amb-orb-2 {
  background: radial-gradient(circle, color-mix(in srgb, var(--obs-violet) 48%, transparent), transparent 68%);
}
body.theme-obsidian .amb-orb-3 {
  background: radial-gradient(circle, color-mix(in srgb, var(--obs-crimson) 42%, transparent), transparent 68%);
}
body.theme-obsidian .amb-sparks {
  background-image:
    radial-gradient(1.6px 1.6px at 14% 18%, var(--obs-gold-hover), transparent),
    radial-gradient(1.2px 1.2px at 28% 64%, var(--obs-text), transparent),
    radial-gradient(1.8px 1.8px at 46% 24%, var(--obs-gold), transparent),
    radial-gradient(1.2px 1.2px at 68% 36%, var(--obs-text), transparent),
    radial-gradient(1.6px 1.6px at 84% 16%, var(--obs-gold-hover), transparent),
    radial-gradient(1.4px 1.4px at 90% 72%, var(--obs-text), transparent),
    radial-gradient(1.6px 1.6px at 36% 84%, var(--obs-gold), transparent),
    radial-gradient(1.2px 1.2px at 62% 78%, var(--obs-text), transparent);
  background-size: 420px 420px;
  opacity: 0.48;
}
body.theme-obsidian .amb-motes {
  inset: 0 0 -520px 0;
  background-image:
    radial-gradient(2.2px 2.2px at 18% 82%, var(--obs-gold), transparent),
    radial-gradient(2px 2px at 52% 90%, var(--obs-aura-color), transparent),
    radial-gradient(2.4px 2.4px at 78% 76%, var(--obs-gold-hover), transparent),
    radial-gradient(1.8px 1.8px at 32% 48%, var(--obs-violet), transparent),
    radial-gradient(2px 2px at 88% 42%, var(--obs-crimson), transparent);
  background-size: 520px 520px;
  opacity: 0.36;
  animation: ambRiseDark 30s linear infinite;
}

@keyframes ambDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate3d(76px, 48px, 0) scale(1.14); opacity: 0.82; }
  100% { transform: translate3d(28px, 92px, 0) scale(0.96); opacity: 0.62; }
}
@keyframes ambDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate3d(-82px, 56px, 0) scale(1.16); opacity: 0.78; }
  100% { transform: translate3d(-34px, -42px, 0) scale(0.98); opacity: 0.58; }
}
@keyframes ambDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.48; }
  50% { transform: translate3d(58px, -64px, 0) scale(1.12); opacity: 0.75; }
  100% { transform: translate3d(-46px, -28px, 0) scale(0.95); opacity: 0.54; }
}
@keyframes ambTwinkle {
  0% { opacity: 0.38; transform: translate3d(0, 0, 0); }
  100% { opacity: 0.78; transform: translate3d(-12px, -10px, 0); }
}
@keyframes ambRise {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(18px, -460px, 0); }
}
@keyframes ambRiseDark {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -520px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .amb-orb,
  .amb-sparks,
  .amb-motes,
  .dtq-shell::after {
    animation: none !important;
  }
}

/* ---- Prominent Homepage & Post-Quiz Personality Tests Cross-Links ---- */
.home-sins-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 22px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--obs-stage-bg) 0%, var(--stage-bg) 100%);
  border: 1px solid color-mix(in srgb, var(--obs-gold) 38%, var(--obs-stage-border));
  box-shadow: var(--shadow-md);
  color: var(--obs-text);
}
.home-sins-thumb-link {
  display: block;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--obs-gold) 36%, var(--obs-border));
}
.home-sins-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  height: auto;
  object-fit: cover;
}
.home-sins-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-sins-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--obs-gold);
}
.home-sins-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}
.home-sins-title a {
  color: var(--obs-text);
  text-decoration: none;
}
.home-sins-title a:hover {
  color: var(--obs-gold-hover);
}
.home-sins-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--obs-muted);
}
.home-sins-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}
.home-sins-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: var(--radius);
  background: var(--obs-gold);
  color: var(--obs-ink-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.home-sins-cta:hover {
  background: var(--obs-gold-hover);
  color: var(--obs-ink-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.home-sins-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--obs-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-sins-all:hover {
  color: var(--obs-gold-hover);
}

.dtq-more-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dtq-more-strip-head .dtq-more-strip-title {
  margin: 0;
}
.dtq-more-strip-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--obs-gold);
  text-decoration: none;
}
.dtq-more-strip-all:hover {
  color: var(--obs-gold-hover);
  text-decoration: underline;
}
.dtq-more-strip-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dtq-more-mini-featured {
  background: color-mix(in srgb, var(--obs-gold) 12%, var(--stage-card));
  border-color: color-mix(in srgb, var(--obs-gold) 48%, var(--stage-border));
}
.dtq-more-mini-featured:hover {
  border-color: var(--obs-gold);
}
.dtq-more-mini strong .dtq-mini-badge,
.dtq-mini-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--obs-gold);
  color: var(--obs-ink-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}
.dtq-more-card-featured {
  background: linear-gradient(135deg, var(--obs-stage-bg) 0%, var(--stage-bg) 100%);
  border-color: color-mix(in srgb, var(--obs-gold) 46%, var(--obs-border));
  color: var(--obs-text);
}
.dtq-more-card-featured .dtq-more-kicker {
  color: var(--obs-gold);
}
.dtq-more-card-featured strong {
  color: var(--obs-text);
}
.dtq-more-card-featured span:last-child {
  color: var(--obs-muted);
}
.dtq-more-card-featured:hover {
  border-color: var(--obs-gold);
}
.dtq-btn-sins {
  background: var(--obs-stage-card);
  color: var(--obs-gold-hover);
  border: 1px solid color-mix(in srgb, var(--obs-gold) 55%, var(--stage-border));
}
.dtq-btn-sins:hover {
  background: var(--obs-gold);
  color: var(--obs-ink-dark);
  border-color: var(--obs-gold);
  text-decoration: none;
}

@media (max-width: 860px) {
  .home-sins-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .home-sins-thumb-link {
    max-width: 280px;
  }
  .home-sins-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .dtq-more-strip-grid-4 {
    grid-template-columns: 1fr;
  }
  .home-sins-thumb-link {
    max-width: 100%;
  }
  .home-sins-cta {
    width: 100%;
  }
}

.dere-adsterra {
  --dere-ad-gap: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  min-width: 0;
}
.dere-adsterra-frame {
  display: var(--dere-ad-display, none);
  padding-block: var(--dere-ad-gap);
}
.dere-adsterra[data-dere-adsterra="native"] > .dere-adsterra-frame {
  --dere-ad-format: native;
  --dere-ad-height: clamp(200px, 20vw, 250px);
  display: block;
}
.dere-adsterra-quiz, .dere-adsterra-bottom { container: dere-ad / inline-size; }
@container dere-ad (min-width: 300px) {
  .dere-adsterra-quiz > .dere-adsterra-frame,
  .dere-adsterra-bottom:where([data-dere-ad-formats~="300x250"]) > .dere-adsterra-frame {
    --dere-ad-format: 300x250;
    --dere-ad-height: 250px;
    display: block;
  }
}
@container dere-ad (min-width: 320px) {
  .dere-adsterra-bottom > .dere-adsterra-frame {
    --dere-ad-format: 320x50;
    --dere-ad-height: 50px;
    display: block;
  }
}
@container dere-ad (min-width: 468px) {
  .dere-adsterra-quiz > .dere-adsterra-frame {
    --dere-ad-format: 468x60;
    --dere-ad-height: 60px;
    display: block;
  }
}
@container dere-ad (min-width: 728px) {
  .dere-adsterra-bottom > .dere-adsterra-frame {
    --dere-ad-format: 728x90;
    --dere-ad-height: 90px;
    display: block;
  }
}
.dere-adsterra[data-dere-ad-reserved] > .dere-adsterra-frame { visibility: hidden; }
.rshare-info > .dere-adsterra {
  --dere-ad-gap: 1.25rem;
  width: 100%;
  padding-inline: 0;
}
html[data-dere-ad-suppressed] .dere-adsterra, .dere-adsterra[hidden],
.dere-adsterra-preview[hidden], .dere-adsterra-placement [hidden],
.dere-adsterra-placement[hidden], .dere-adsterra-consent[hidden] { display: none; }
.dere-adsterra-label {
  margin: 0 0 .55rem;
  color: inherit;
  font-size: .78rem;
  letter-spacing: .025em;
}
.dere-adsterra-placement, .dere-adsterra-preview {
  block-size: var(--dere-ad-height);
  box-sizing: border-box;
  min-width: 0;
}
.dere-adsterra-placement { overflow: hidden; }
.dere-adsterra[data-dere-adsterra="native"] > .dere-adsterra-frame > :is(.dere-adsterra-placement,.dere-adsterra-preview) {
  block-size: auto;
  min-block-size: var(--dere-ad-height);
}
.dere-adsterra-quiz {
  width: min(max(100%, 300px), calc(100vw - 12px));
  inset-inline-start: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.dere-adsterra-bottom {
  width: min(calc(100% - 12px), 1120px);
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 0;
  text-align: center;
}
.dere-adsterra-preview {
  display: grid;
  place-items: center;
  padding-inline: .75rem;
  border: 1px dashed currentColor;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  text-align: center;
}
.dere-adsterra-footer { margin: 0; font-size: .85rem; }
.dere-adsterra-footer [data-dere-ad-notice] { display: none; }
html[data-dere-ad-live-notice] .dere-adsterra-footer [data-dere-ad-notice] { display: inline-block; margin-inline-start: .65rem; }
.dere-adsterra-settings {
  margin-block: 2rem;
  padding: 1.25rem;
  border: 1px solid currentColor;
  border-radius: 12px;
  scroll-margin-top: 5rem;
}
.dere-adsterra-settings fieldset { padding: .75rem 1rem; }
.dere-adsterra-settings label { display: block; margin-block: .5rem; }
.dere-adsterra-settings [role="status"] { min-height: 1.5em; margin-block-end: 0; }
.dere-adsterra-consent {
  width: min(calc(100% - 24px), 38rem);
  padding: 1rem;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: 12px;
  font-size: .92rem;
  background: var(--bg);
  color: var(--text);
}
.dere-adsterra > .dere-adsterra-consent {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 50%;
  transform: translateY(-50%);
}
.dere-adsterra-consent[data-dere-ad-consent-floating] {
  position: fixed;
  inset-inline-end: 12px;
  inset-block-end: 12px;
  z-index: 20;
}
.dere-adsterra-consent p { margin-block: 0 .65rem; }
.dere-adsterra-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.dere-adsterra-consent-actions button {
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.quiz-result-newsletter {
  display: none;
}

.quiz-stage-wrap:has(.dtq-result-panel:not([hidden])) + .quiz-result-newsletter {
  display: block;
  margin-block: 1.25rem;
}

.quiz-list-newsletter {
  margin-block: 1.25rem 2rem;
}

.quiz-newsletter {
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.quiz-newsletter h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--text);
}

.quiz-newsletter p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.quiz-newsletter a {
  color: var(--primary-hover);
  text-decoration: underline;
}

.quiz-newsletter label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.quiz-newsletter-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 30rem;
}

.quiz-newsletter-input input,
.quiz-newsletter-input button {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  font: inherit;
}

.quiz-newsletter-input input {
  flex: 1 1 13rem;
  min-width: 0;
  border: 1px solid var(--muted);
  background: var(--bg);
  color: var(--text);
}

.quiz-newsletter-input button {
  flex: 1 0 auto;
  border: 1px solid var(--primary-hover);
  background: var(--primary-hover);
  color: var(--bg);
  cursor: pointer;
  font-weight: 700;
}

.quiz-newsletter-input button:hover:not(:disabled) {
  background: var(--text);
  border-color: var(--text);
}

.quiz-newsletter-input input:disabled,
.quiz-newsletter-input button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.quiz-newsletter form[data-gf-done] .quiz-newsletter-fields {
  display: none;
}

.quiz-newsletter [role="status"],
.quiz-newsletter-noscript {
  margin: 0.65rem 0 0;
}
