:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --stage-bg: #16142b;
  --stage-card: #211e3f;
  --stage-border: #332f5c;
  --text: #141328;
  --muted: #525673;
  --stage-text: #f8f9ff;
  --stage-muted: #b8bdd8;
  --primary: #e11d64;
  --primary-hover: #be124f;
  --accent: #14b8a6;
  --border: #e2e5f1;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 19, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 19, 40, 0.08);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

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

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: 24ch; }
}
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(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #ffffff;
  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; }

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


.hero-stage {
  padding: 24px 0 64px;
}

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

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

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

.dtq-shell {
  background: var(--stage-bg);
  color: var(--stage-text);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.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: var(--stage-card);
  color: var(--stage-text);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dtq-opt:hover {
  border-color: var(--accent);
  background: var(--stage-border);
}

.dtq-opt.is-selected {
  border-color: var(--primary);
  background: #33193f;
}
.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 var(--stage-border);
  background: var(--stage-card);
  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: 12px;
  left: 12px;
  padding: 5px 12px;
  background: var(--stage-bg);
  color: var(--stage-text);
  border: 1px solid var(--stage-border);
  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: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--stage-bg) 74%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid color-mix(in srgb, var(--stage-border) 70%, transparent);
}

.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: #ffffff;
}
.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: #ffffff;
  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;
}
.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: var(--dtq-type-color, var(--primary));
  color: #ffffff;
  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: #ffffff; }
.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: var(--surface); 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-more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--primary-hover); }
.type-more:hover { text-decoration: underline; }
.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;
  padding: 16px;
}
.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-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-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  background: var(--stage-bg);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
}
.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-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: 8px; }
  .brand { font-size: 14px; gap: 6px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .site-nav { gap: 20px; }
  .nav-link { font-size: 12px; }
  .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; }
}
