:root {
  color-scheme: light;
  --dc-bg: #f8f6ff;
  --dc-surface: #ffffff;
  --dc-surface-soft: var(--dc-bg);
  --dc-ink: #1e1b3a;
  --dc-muted: #504b72;
  --dc-subtle: var(--dc-muted);
  --dc-border: #e6e0f8;
  --dc-border-strong: var(--dc-border);
  --dc-rose: #e11d69;
  --dc-rose-hover: var(--dc-rose);
  --dc-rose-deep: #b3124a;
  --dc-rose-soft: #fff0f6;
  --dc-indigo: #4b3fbf;
  --dc-indigo-soft: #f0edff;
  --dc-indigo-deep: var(--dc-indigo);
  --dc-on-dark: var(--dc-border);
  --dc-stage-bg: var(--dc-ink);
  --dc-radius-sm: 12px;
  --dc-radius-md: 18px;
  --dc-radius-lg: 26px;
  --dc-shadow-sm: 0 4px 14px rgba(30, 27, 58, 0.05);
  --dc-shadow-md: 0 18px 44px rgba(30, 27, 58, 0.14);
  --dc-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--dc-font); font-size: 16px; line-height: 1.7; color: var(--dc-ink); background: var(--dc-bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--dc-indigo); text-underline-offset: 3px; }
a:hover { color: var(--dc-rose); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--dc-indigo); outline-offset: 3px; }

.dc-skip { position: absolute; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: var(--dc-radius-sm); background: var(--dc-ink); color: var(--dc-surface); font-weight: 700; text-decoration: none; transform: translateY(-220%); }
.dc-skip:focus { transform: translateY(0); }

.dc-wrap { width: min(100% - 32px, 1040px); margin-inline: auto; }

/* Header */
.dc-header { position: sticky; top: 0; z-index: 80; background: rgba(248, 246, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--dc-border); }
.dc-header-inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dc-brand { display: inline-flex; align-items: center; gap: 9px; flex: none; text-decoration: none; color: var(--dc-ink); font-weight: 850; font-size: 1.18rem; letter-spacing: -0.03em; }
.dc-brand:hover { color: var(--dc-ink); }
.dc-brand-mark { flex: none; display: inline-flex; }
.dc-brand-accent { color: var(--dc-rose); }
.dc-nav { display: flex; align-items: center; gap: 4px; }
.dc-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--dc-muted); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.dc-nav a:hover { background: var(--dc-surface); color: var(--dc-rose-hover); }

/* Hero & Quiz Stage */
.dc-hero { padding: 18px 0 10px; }
.dc-hero-head { margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.dc-hero-head h1 { margin: 0; font-size: clamp(1.48rem, 3.2vw, 2.25rem); line-height: 1.14; letter-spacing: -0.035em; font-weight: 850; }
.dc-hero-sub { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--dc-subtle); }

.dc-stage-frame { padding: 6px; border-radius: 30px; background: linear-gradient(135deg, var(--dc-indigo-soft) 0%, var(--dc-rose-soft) 50%, var(--dc-indigo-soft) 100%); box-shadow: var(--dc-shadow-md); }
.dc-stage { position: relative; width: 100%; aspect-ratio: 16 / 10.8; min-height: 670px; border-radius: 24px; overflow: hidden; isolation: isolate; background: var(--dc-stage-bg); }
.dc-stage:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; min-height: 100vh; border-radius: 0; }
.dc-stage > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--dc-bg); }

/* Mystery Silhouette Cover */
.dc-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 28px 24px 36px; overflow: hidden; }
.dc-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.dc-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 27, 58, 0.08) 0%, rgba(30, 27, 58, 0.22) 48%, rgba(30, 27, 58, 0.88) 76%, rgba(30, 27, 58, 0.97) 100%);
}
.dc-cover-bottom { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 600px; }
.dc-cover-title { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 850; color: var(--dc-surface); text-shadow: 0 2px 16px rgba(30, 27, 58, 0.7); }
.dc-play-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 36px; border: 0; border-radius: 999px; background: var(--dc-rose-hover); color: var(--dc-surface); font-size: 1.06rem; font-weight: 850; box-shadow: 0 12px 30px rgba(225, 29, 105, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform 0.14s ease, filter 0.14s ease; }
.dc-play-btn:hover { transform: translateY(-2px) scale(1.015); filter: brightness(1.06); }
.dc-cover-meta { margin: 0; font-size: 0.88rem; font-weight: 650; color: var(--dc-on-dark); }

/* Loader */
.dc-loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 42%, var(--dc-indigo) 0%, var(--dc-stage-bg) 72%); }
.dc-loader-emblem { position: relative; width: 72px; height: 72px; display: grid; place-items: center; }
.dc-loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.16); border-top-color: var(--dc-rose); border-right-color: var(--dc-indigo); animation: dc-spin 0.9s linear infinite; }
.dc-loader-pulse { width: 26px; height: 26px; border-radius: 8px; transform: rotate(45deg); background: linear-gradient(135deg, var(--dc-rose), var(--dc-indigo)); animation: dc-beat 1.1s ease-in-out infinite; }
.dc-loader-bar { width: min(220px, 64vw); height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.dc-loader-bar span { display: block; width: 46%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--dc-rose), var(--dc-indigo), var(--dc-indigo-deep)); animation: dc-slide 1s ease-in-out infinite; }
.dc-loader p { margin: 0; color: var(--dc-on-dark); font-weight: 700; font-size: 0.95rem; }
@keyframes dc-spin { to { transform: rotate(360deg); } }
@keyframes dc-beat { 0%, 100% { transform: rotate(45deg) scale(0.92); opacity: 0.85; } 50% { transform: rotate(45deg) scale(1.12); opacity: 1; } }
@keyframes dc-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(240%); } }

/* Toolbar */
.dc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.dc-tool-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--dc-border); background: var(--dc-surface); color: var(--dc-ink); font-size: 0.9rem; font-weight: 700; box-shadow: var(--dc-shadow-sm); }
.dc-tool-btn:hover { border-color: var(--dc-rose-hover); color: var(--dc-rose-hover); }
.dc-tool-btn[data-gf-liked], .dc-tool-btn[aria-pressed="true"] { background: var(--dc-rose-hover); border-color: var(--dc-rose-hover); color: var(--dc-surface); }
.dc-count { font-variant-numeric: tabular-nums; font-weight: 800; }
.dc-share-msg { font-size: 0.84rem; font-weight: 700; color: var(--dc-indigo); }
.dc-share-msg:empty { display: none; }

/* Below-the-fold Airy Rhythm */
.dc-content-stack { display: grid; gap: 36px; padding: 34px 0 60px; }
.dc-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.dc-section-head h2 { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.75rem); line-height: 1.2; letter-spacing: -0.025em; font-weight: 850; }
.dc-mystery-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--dc-indigo-soft); color: var(--dc-indigo-deep); font-size: 0.78rem; font-weight: 800; }

/* 3-Step Visual Strip */
.dc-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dc-step-card { background: var(--dc-surface); border: 1px solid var(--dc-border); border-radius: var(--dc-radius-md); padding: 18px 20px; box-shadow: var(--dc-shadow-sm); display: flex; flex-direction: column; gap: 6px; }
.dc-step-num { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 0.86rem; font-weight: 850; color: var(--dc-surface); background: linear-gradient(135deg, var(--dc-rose-hover), var(--dc-indigo-deep)); margin-bottom: 4px; }
.dc-step-card h3 { margin: 0; font-size: 1.02rem; font-weight: 800; }
.dc-step-card p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--dc-muted); }

/* Compact 12-Archetype Mystery Teaser Grid */
.dc-type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dc-type-pill { background: var(--dc-surface); border: 1px solid var(--dc-border); border-radius: var(--dc-radius-md); padding: 14px 16px; box-shadow: var(--dc-shadow-sm); display: flex; flex-direction: column; gap: 5px; }
.dc-type-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dc-type-name-row { display: inline-flex; align-items: center; gap: 8px; }
.dc-type-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--type-accent, var(--dc-indigo)); }
.dc-type-pill h3 { margin: 0; font-size: 0.98rem; font-weight: 800; }
.dc-type-link { color: var(--dc-ink); text-decoration: none; }
.dc-type-link:hover { color: var(--dc-rose); text-decoration: underline; }
.dc-type-jp { font-size: 0.76rem; color: var(--dc-subtle); font-weight: 700; }
.dc-type-pill p { margin: 0; font-size: 0.85rem; line-height: 1.42; color: var(--dc-muted); }
.dc-types-more { margin: 14px 0 0; font-size: 0.94rem; font-weight: 700; color: var(--dc-muted); }
.dc-types-more a { font-weight: 800; }

/* Card & Modes */
.dc-card { background: var(--dc-surface); border: 1px solid var(--dc-border); border-radius: var(--dc-radius-lg); padding: clamp(22px, 3.4vw, 36px); box-shadow: var(--dc-shadow-sm); }
.dc-card h2 { margin: 0 0 12px; font-size: clamp(1.3rem, 2.5vw, 1.75rem); line-height: 1.2; letter-spacing: -0.025em; font-weight: 850; }
.dc-card h3 { margin: 20px 0 8px; font-size: 1.08rem; line-height: 1.3; font-weight: 800; }
.dc-card p { margin: 0 0 13px; color: var(--dc-ink); }
.dc-card p:last-child { margin-bottom: 0; }
.dc-lead { font-size: 1.02rem; color: var(--dc-muted); }

.dc-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.dc-mode-box { padding: 18px 20px; border-radius: var(--dc-radius-md); background: var(--dc-bg); border: 1px solid var(--dc-border); }
.dc-mode-tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--dc-indigo-soft); color: var(--dc-indigo-deep); }
.dc-mode-tag--rose { background: var(--dc-rose-soft); color: var(--dc-rose-deep); }
.dc-mode-box h3 { margin: 0 0 6px; }
.dc-mode-box p { margin: 0; font-size: 0.92rem; color: var(--dc-muted); }

.dc-figure { margin: 20px 0 0; }
.dc-figure img { width: 100%; border-radius: var(--dc-radius-md); border: 1px solid var(--dc-border); }
.dc-figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--dc-subtle); text-align: center; }

.dc-qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.dc-qa-item { padding: 16px 18px; border-radius: var(--dc-radius-md); background: var(--dc-bg); border: 1px solid var(--dc-border); }
.dc-qa-item h3 { margin: 0 0 5px; font-size: 0.98rem; }
.dc-qa-item p { margin: 0; font-size: 0.9rem; color: var(--dc-muted); }

.dc-faq-list { display: grid; gap: 10px; margin-top: 14px; }
.dc-faq-list details { border: 1px solid var(--dc-border); border-radius: var(--dc-radius-md); background: var(--dc-bg); padding: 14px 18px; }
.dc-faq-list summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dc-faq-list summary::-webkit-details-marker { display: none; }
.dc-faq-list summary::after { content: "+"; font-size: 1.25rem; font-weight: 700; color: var(--dc-rose); }
.dc-faq-list details[open] summary::after { content: "\2212"; }
.dc-faq-list details p { margin: 10px 0 0; font-size: 0.94rem; color: var(--dc-muted); }

.dc-cta-box { margin-top: 18px; padding: 20px 24px; border-radius: var(--dc-radius-md); background: linear-gradient(135deg, var(--dc-stage-bg) 0%, var(--dc-indigo) 100%); color: var(--dc-surface); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dc-cta-box h3 { margin: 0 0 4px; color: var(--dc-surface); font-size: 1.15rem; }
.dc-cta-box p { margin: 0; color: var(--dc-on-dark); font-size: 0.92rem; }
.dc-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dc-cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 999px; text-decoration: none; background: var(--dc-rose-hover); color: var(--dc-surface); font-weight: 800; }
.dc-cta-btn:hover { background: var(--dc-rose-hover); color: var(--dc-surface); }
.dc-cta-link { color: var(--dc-rose-soft); font-weight: 750; font-size: 0.9rem; text-decoration: none; }
.dc-cta-link:hover { color: var(--dc-surface); text-decoration: underline; }

/* Comments */
.dc-comment-form { display: grid; gap: 12px; margin: 16px 0 22px; padding: 18px; border-radius: var(--dc-radius-md); background: var(--dc-bg); border: 1px solid var(--dc-border); }
.dc-comment-form label { display: block; font-size: 0.86rem; font-weight: 750; margin-bottom: 4px; }
.dc-comment-form input, .dc-comment-form textarea { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--dc-border-strong); background: var(--dc-surface); color: var(--dc-ink); }
.dc-comment-form input:focus, .dc-comment-form textarea:focus { border-color: var(--dc-indigo); outline: none; box-shadow: 0 0 0 3px rgba(75, 63, 191, 0.16); }
.dc-reply-bar { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--dc-indigo-soft); color: var(--dc-indigo-deep); font-size: 0.86rem; font-weight: 700; }
.dc-comment-form[data-gf-replying] .dc-reply-bar { display: flex; }
.dc-reply-cancel { border: 0; background: transparent; color: var(--dc-rose-deep); font-weight: 800; padding: 4px 8px; }
.dc-submit-btn { justify-self: start; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--dc-ink); color: var(--dc-surface); font-weight: 800; }
.dc-submit-btn:hover { background: var(--dc-indigo-deep); }
.dc-comment-msg { margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--dc-indigo); }
.dc-comments-list { display: grid; gap: 12px; }
.dc-comment-card { padding: 15px 18px; border-radius: var(--dc-radius-md); background: var(--dc-bg); border: 1px solid var(--dc-border); }
.dc-comment-card[data-gf-owner] { background: var(--dc-rose-soft); border-color: var(--dc-border-strong); }
.dc-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.88rem; }
.dc-owner-badge { display: none; padding: 2px 8px; border-radius: 999px; background: var(--dc-rose-deep); color: var(--dc-surface); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.dc-comment-card[data-gf-owner] .dc-owner-badge { display: inline-block; }
.dc-comment-time { color: var(--dc-subtle); font-size: 0.8rem; }
.dc-comment-body { margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; }
.dc-reply-btn { border: 0; background: transparent; padding: 4px 0; color: var(--dc-indigo); font-size: 0.84rem; font-weight: 750; }
.dc-replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--dc-border-strong); display: grid; gap: 10px; }
.dc-reply-to-tag { color: var(--dc-rose-deep); font-weight: 750; font-size: 0.84rem; margin-right: 6px; }
.dc-empty-state { display: none; padding: 18px; border-radius: var(--dc-radius-md); border: 1px dashed var(--dc-border-strong); color: var(--dc-muted); text-align: center; }
.dc-comments-list[data-gf-empty] + .dc-empty-state { display: block; }

/* Article, Type Dossier & Legal */
.dc-page-main { padding: 28px 0 60px; }
.dc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 0.86rem; color: var(--dc-subtle); }
.dc-breadcrumb a { color: var(--dc-muted); text-decoration: none; font-weight: 600; }
.dc-breadcrumb a:hover { color: var(--dc-rose); text-decoration: underline; }
.dc-article-shell { max-width: 820px; margin-inline: auto; background: var(--dc-surface); border: 1px solid var(--dc-border); border-radius: var(--dc-radius-lg); padding: clamp(24px, 4.5vw, 48px); box-shadow: var(--dc-shadow-sm); }
.dc-article-shell h1 { margin: 0 0 14px; font-size: clamp(1.75rem, 3.6vw, 2.45rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 850; }
.dc-article-meta { margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--dc-border); font-size: 0.92rem; color: var(--dc-muted); }

.dc-type-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.dc-type-portrait-wrap { flex: none; width: 96px; height: 96px; border-radius: var(--dc-radius-md); overflow: hidden; border: 2px solid var(--dc-border); background: var(--dc-bg); box-shadow: var(--dc-shadow-sm); }
.dc-type-portrait { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-type-hero-copy { min-width: 0; flex: 1; }
.dc-type-hero-copy h1 { margin: 4px 0 8px; }
.dc-type-kana { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--dc-rose-soft); color: var(--dc-rose-deep); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; }
.dc-type-traits { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-type-trait { padding: 3px 10px; border-radius: 999px; background: var(--dc-indigo-soft); color: var(--dc-indigo); font-size: 0.78rem; font-weight: 750; }

.dc-prose { font-size: 16px; line-height: 1.72; }
.dc-prose h2 { margin: 36px 0 12px; font-size: 1.4rem; letter-spacing: -0.02em; font-weight: 850; }
.dc-prose h2:first-child { margin-top: 0; }
.dc-prose h3 { margin: 24px 0 10px; font-size: 1.1rem; font-weight: 800; }
.dc-prose p { margin: 0 0 16px; color: var(--dc-ink); line-height: 1.75; }
.dc-prose ul, .dc-prose ol { margin: 0 0 16px; padding-left: 1.35rem; color: var(--dc-ink); }
.dc-prose li { margin: 6px 0; }
.dc-prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.94rem; }
.dc-prose th, .dc-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--dc-border); vertical-align: top; }
.dc-prose th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dc-subtle); background: var(--dc-bg); }
.dc-chart-page .dc-prose table td:nth-child(2) { font-feature-settings: "palt"; letter-spacing: 0.02em; }

/* Footer */
.dc-footer { border-top: 1px solid var(--dc-border); background: var(--dc-surface); padding: 40px 0 28px; }
.dc-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.dc-footer-note { margin: 10px 0 0; font-size: 0.9rem; color: var(--dc-muted); max-width: 40ch; }
.dc-footer-heading { margin: 0 0 10px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dc-subtle); }
.dc-footer-col nav { display: grid; gap: 8px; }
.dc-footer-col a { text-decoration: none; color: var(--dc-muted); font-size: 0.92rem; font-weight: 600; }
.dc-footer-col a:hover { color: var(--dc-rose); }
.dc-footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--dc-border); font-size: 0.84rem; color: var(--dc-subtle); }
.dc-footer-bottom p { margin: 0; }

/* Embedded Visual-Novel Quiz App */
.dc-embed-html, .dc-embed-body { height: 100%; background: var(--dc-bg); }
.dc-embed-body { overflow-y: auto; }
.dc-quiz-app { min-height: 100%; padding: 12px 16px 14px; display: flex; flex-direction: column; max-width: 680px; margin-inline: auto; }
.dc-q-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dc-q-back { flex: none; border: 1px solid var(--dc-border); background: var(--dc-surface); color: var(--dc-muted); border-radius: 999px; padding: 5px 12px; font-size: 0.8rem; font-weight: 800; }
.dc-q-back:hover:not(:disabled) { border-color: var(--dc-indigo); color: var(--dc-indigo); }
.dc-q-back:disabled { opacity: 0.4; cursor: not-allowed; }
.dc-q-progress-track { flex: 1; height: 8px; border-radius: 999px; background: var(--dc-border); overflow: hidden; }
.dc-q-progress-fill { height: 100%; width: 5%; border-radius: 999px; background: linear-gradient(90deg, var(--dc-rose) 0%, var(--dc-indigo) 100%); transition: width 0.25s ease; }
.dc-q-top-right { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.dc-q-counter { font-size: 0.82rem; font-weight: 850; color: var(--dc-muted); font-variant-numeric: tabular-nums; }
.dc-mode-switch { display: inline-flex; background: var(--dc-surface-soft); padding: 2px; border-radius: 999px; gap: 2px; }
.dc-mode-pill { border: 0; border-radius: 999px; padding: 3px 9px; font-size: 0.72rem; font-weight: 800; background: transparent; color: var(--dc-muted); }
.dc-mode-pill[aria-pressed="true"] { background: var(--dc-surface); color: var(--dc-ink); box-shadow: 0 1px 4px rgba(30, 27, 58, 0.12); }

.dc-saved-bar { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-radius: 12px; background: var(--dc-indigo-soft); border: 1px solid var(--dc-border); font-size: 0.79rem; font-weight: 750; color: var(--dc-indigo-deep); }
.dc-saved-btn { border: 0; background: var(--dc-indigo-deep); color: var(--dc-surface); border-radius: 999px; padding: 3px 11px; font-size: 0.74rem; font-weight: 800; }

.dc-q-card { background: var(--dc-surface); border: 1px solid var(--dc-border); border-radius: 24px; padding: 18px 22px 14px; box-shadow: 0 12px 32px rgba(30, 27, 58, 0.06); display: flex; flex-direction: column; align-items: center; }
.dc-q-art-wrap { width: 176px; height: 176px; border-radius: 22px; overflow: hidden; border: 2px solid var(--dc-border); box-shadow: 0 10px 24px rgba(75, 63, 191, 0.14); margin-bottom: 12px; background: var(--dc-surface-soft); flex: none; }
.dc-q-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-q-text { margin: 0 0 4px; font-size: clamp(1.08rem, 2.5vw, 1.35rem); line-height: 1.26; font-weight: 850; text-align: center; max-width: 30ch; }
.dc-q-vibe { margin: 0 0 12px; font-size: 0.82rem; font-weight: 700; color: var(--dc-subtle); text-align: center; }
.dc-q-options { width: 100%; display: grid; gap: 8px; }
.dc-q-opt { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--dc-border); background: var(--dc-surface); color: var(--dc-ink); font-size: 0.92rem; line-height: 1.35; font-weight: 650; transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.1s ease; }
.dc-q-opt:hover { border-color: var(--dc-rose); background: var(--dc-rose-soft); }
.dc-q-opt.is-picked { border-color: var(--dc-rose); background: var(--dc-rose-soft); transform: scale(0.992); }
.dc-q-radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--dc-border-strong); background: var(--dc-surface); transition: all 0.12s ease; }
.dc-q-opt:hover .dc-q-radio { border-color: var(--dc-rose); }
.dc-q-opt.is-picked .dc-q-radio { border-color: var(--dc-rose); background: var(--dc-rose); box-shadow: inset 0 0 0 3px var(--dc-surface); }
.dc-q-privacy { margin: 11px 0 0; font-size: 0.76rem; font-weight: 650; color: var(--dc-subtle); text-align: center; }

/* Result Card Reveal */
@keyframes dcRevealPop { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.dc-reveal-pop { animation: dcRevealPop 0.35s ease-out both; }
.dc-result-card { border-radius: 22px; overflow: hidden; border: 2px solid var(--res-border, var(--dc-border)); background: var(--dc-surface); box-shadow: 0 14px 34px rgba(30, 27, 58, 0.1); }
.dc-result-banner { padding: 14px 18px 16px; background: linear-gradient(135deg, var(--dc-stage-bg) 0%, var(--dc-indigo) 100%); color: var(--dc-surface); }
.dc-result-toprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dc-on-dark); margin-bottom: 10px; }
.dc-result-hero { display: flex; align-items: center; gap: 16px; }
.dc-res-portrait-ring { flex: none; width: 112px; height: 112px; border-radius: 22px; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.85); box-shadow: 0 8px 20px rgba(30, 27, 58, 0.28); background: var(--dc-stage-bg); }
.dc-res-portrait { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-res-hero-copy { min-width: 0; }
.dc-result-headline { margin: 0 0 4px; font-size: clamp(1.12rem, 2.8vw, 1.5rem); line-height: 1.18; font-weight: 850; color: var(--dc-surface); }
.dc-result-headline em { font-style: normal; color: var(--dc-rose-soft); }
.dc-result-jp { margin: 0 0 8px; font-size: 0.8rem; color: var(--dc-on-dark); font-weight: 600; }
.dc-trait-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.dc-trait-pill { padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; background: rgba(255, 255, 255, 0.14); color: var(--dc-surface); border: 1px solid rgba(255, 255, 255, 0.25); }
.dc-result-body { padding: 14px 18px 16px; display: grid; gap: 11px; }
.dc-result-summary { margin: 0; font-size: 0.88rem; line-height: 1.46; color: var(--dc-ink); }
.dc-bars { display: grid; gap: 6px; }
.dc-bar-row { display: grid; gap: 3px; }
.dc-bar-label { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 800; }
.dc-bar-track { height: 7px; border-radius: 999px; background: var(--dc-surface-soft); overflow: hidden; }
.dc-bar-fill { height: 100%; border-radius: 999px; }
.dc-res-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dc-res-mini { padding: 8px 11px; border-radius: 10px; background: var(--dc-bg); border: 1px solid var(--dc-border); font-size: 0.8rem; line-height: 1.35; }
.dc-res-mini strong { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dc-subtle); margin-bottom: 2px; }
.dc-res-community { margin: 0; font-size: 0.79rem; font-weight: 700; color: var(--dc-indigo); }
.dc-res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dc-res-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; border: 1px solid var(--dc-border); background: var(--dc-surface); color: var(--dc-ink); text-decoration: none; }
.dc-res-btn--primary { background: var(--dc-rose-hover); border-color: var(--dc-rose-hover); color: var(--dc-surface); }
.dc-res-btn--indigo { background: var(--dc-indigo-deep); border-color: var(--dc-indigo-deep); color: var(--dc-surface); }
.dc-res-status { font-size: 0.8rem; font-weight: 700; color: var(--dc-indigo); min-height: 1.1em; margin: 5px 0 0; }

@media (max-width: 900px) {
  .dc-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dc-footer-grid { grid-template-columns: 1fr 1fr; }
  .dc-header-inner { gap: 10px; }
  .dc-nav { display: flex; margin-left: auto; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; }
  .dc-nav::-webkit-scrollbar { display: none; }
  .dc-nav a { flex: 0 0 auto; padding-inline: 10px; }
}

@media (max-width: 760px) {
  .dc-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dc-chart-page .dc-prose table { display: block; width: 100%; border: 0; overflow-x: visible; }
  .dc-chart-page .dc-prose thead { display: none; }
  .dc-chart-page .dc-prose tbody { display: grid; gap: 12px; }
  .dc-chart-page .dc-prose tr { display: block; padding: 14px 16px; border: 1px solid var(--dc-border); border-radius: var(--dc-radius-sm); background: var(--dc-surface); }
  .dc-chart-page .dc-prose td { display: block; padding: 0; border: 0; font-size: 0.92rem; line-height: 1.55; }
  .dc-chart-page .dc-prose td + td { margin-top: 6px; }
  .dc-chart-page .dc-prose td:first-child { font-size: 1.04rem; margin-bottom: 6px; }
  .dc-chart-page .dc-prose td:nth-child(2)::before { content: "Kanji: "; font-weight: 800; color: var(--dc-muted); }
  .dc-chart-page .dc-prose td:nth-child(3)::before { content: "Core drive: "; font-weight: 800; color: var(--dc-muted); }
  .dc-chart-page .dc-prose td:nth-child(4)::before { content: "In real life: "; font-weight: 800; color: var(--dc-muted); }
}

@media (max-width: 720px) {
  .dc-header-inner { flex-wrap: wrap; row-gap: 6px; }
  .dc-nav { width: 100%; margin-left: 0; min-width: 0; }
  .dc-nav a { padding-inline: 0; margin-right: 14px; font-size: 0.82rem; font-weight: 700; }
  .dc-nav a:last-child { margin-right: 0; }
  .dc-page-main h1, .dc-article-shell h1 { font-size: 1.85rem; line-height: 1.2; }
  .dc-prose h2 { margin-top: 30px; }
}

@media (max-width: 680px) {
  .dc-wrap { width: min(100% - 20px, 1040px); }
  .dc-header-inner { flex-direction: column; align-items: flex-start; gap: 4px; min-height: auto; padding-block: 8px 6px; }
  .dc-nav { width: 100%; justify-content: space-between; gap: 2px; border-top: 1px solid var(--dc-border); padding-top: 4px; }
  .dc-nav a { min-height: 34px; padding: 4px 6px; font-size: 0.81rem; margin-right: 0; }
  .dc-hero { padding-top: 10px; }
  .dc-hero-sub { font-size: 0.84rem; }
  .dc-stage-frame { padding: 4px; border-radius: 24px; }
  .dc-stage { aspect-ratio: auto; min-height: 648px; border-radius: 20px; }
  .dc-cover { padding: 20px 16px 26px; }
  .dc-cover-img { object-position: center 25%; }
  .dc-steps-grid, .dc-mode-grid, .dc-qa-grid, .dc-res-meta-grid, .dc-footer-grid { grid-template-columns: 1fr; }
  .dc-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dc-type-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dc-type-portrait-wrap { width: 84px; height: 84px; }
  .dc-quiz-app { padding: 10px 10px 12px; }
  .dc-q-card { padding: 13px 13px 11px; border-radius: 18px; }
  .dc-q-art-wrap { width: 118px; height: 118px; border-radius: 16px; margin-bottom: 10px; }
  .dc-q-text { font-size: 1.06rem; }
  .dc-q-vibe { margin-bottom: 10px; font-size: 0.78rem; }
  .dc-q-options { gap: 7px; }
  .dc-q-opt { padding: 9px 12px; font-size: 0.86rem; gap: 10px; }
  .dc-q-privacy { margin-top: 9px; font-size: 0.74rem; }
  .dc-result-hero { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dc-res-portrait-ring { width: 92px; height: 92px; }
}