@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/_a/plus-jakarta-sans-400-latin.cd8db90cd9.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-tint: #f7f7f8;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #52525b;
  --primary: #c2410c;
  --primary-dk: #9a3412;
  --primary-soft: #fff4ed;
  --accent: #0f766e;
  --accent-dk: #115e59;
  --accent-soft: #f0fdfa;
  --line: #e4e4e7;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 12px 28px rgba(17, 24, 39, 0.09);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Per-quiz world tokens (populated dynamically at mount via script.js) */
  --t-bg: var(--bg-tint);
  --t-card: var(--surface);
  --t-card-alt: var(--bg-tint);
  --t-ink: var(--ink);
  --t-muted: var(--muted);
  --t-accent: var(--primary);
  --t-accent-ink: var(--surface);
  --t-accent-soft: var(--primary-soft);
  --t-secondary: var(--accent-dk);
  --t-secondary-ink: var(--surface);
  --t-line: var(--line);
  --t-radius: 16px;
  --t-shadow: var(--shadow-lg);
  --t-font-head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --t-font-mono: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dk); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}
h1 { font-size: 32px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 2px; border-radius: 8px; }

.qs-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.qs-narrow { max-width: 780px; }
.qs-quiz-wrap { max-width: 760px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* =========================================================================
   MINIMAL EDITORIAL HEADER (CLEAN WHITE LIKE AREALME + NEAL.FUN)
   ========================================================================= */
.qs-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.qs-header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px;
}
.qs-brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.qs-brand-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.qs-brand-word {
  font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink);
}
.qs-brand-word em { font-style: normal; color: var(--primary); }

.qs-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qs-header-util { display: flex; align-items: center; gap: 6px; }
.qs-header-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap; transition: background 0.14s ease, color 0.14s ease;
}
.qs-header-link:hover { background: var(--bg-tint); color: var(--ink); }
.qs-header-link.is-pill { background: var(--ink); color: var(--surface); font-weight: 700; }
.qs-header-link.is-pill:hover { background: var(--primary); color: var(--surface); }
.qs-mob-search-btn {
  display: none; width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-tint); color: var(--ink);
  place-items: center; cursor: pointer;
}

.qs-search { position: relative; flex: 1; max-width: 290px; min-width: 170px; }
.qs-search-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); display: inline-flex; pointer-events: none;
}
.qs-search-input {
  width: 100%; height: 38px; padding: 0 34px 0 36px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-tint);
  color: var(--ink); font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.qs-search-input::placeholder { color: var(--muted); }
.qs-search-input:focus { outline: none; background: var(--surface); border-color: var(--ink); }
.qs-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.qs-search-clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 18px; line-height: 1;
  cursor: pointer; display: inline-grid; place-items: center;
}
.qs-search-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 360px; overflow-y: auto;
}
.qs-search-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  text-decoration: none; color: var(--ink);
}
.qs-search-item:hover, .qs-search-item.is-hi { background: var(--bg-tint); color: var(--ink); }
.qs-search-thumb { width: 52px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--bg-tint); }
.qs-search-text { display: flex; flex-direction: column; min-width: 0; }
.qs-search-text strong { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-search-text span { font-size: 12px; color: var(--muted); }
.qs-search-empty { padding: 14px 12px; font-size: 13px; color: var(--muted); text-align: center; }

.qs-nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.qs-nav::-webkit-scrollbar { display: none; }
.qs-nav a {
  display: inline-flex; align-items: center; min-height: 36px;
  text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 600;
  padding: 0 11px; border-radius: 999px; white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}
.qs-nav a:hover { background: var(--bg-tint); color: var(--ink); }
.qs-nav a[aria-current="page"] { background: var(--bg-tint); color: var(--ink); font-weight: 700; }

/* Buttons */
.qs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.12s ease, filter 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
}
.qs-btn:active { transform: scale(0.97); }
.qs-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.qs-btn-primary { background: var(--t-accent); color: var(--t-accent-ink); }
.qs-btn-primary:hover { filter: brightness(1.06); color: var(--t-accent-ink); }
.qs-btn-accent { background: var(--t-card); color: var(--t-ink); border: 1.5px solid var(--t-ink); }
.qs-btn-accent:hover { background: var(--t-card-alt); color: var(--t-ink); }
.qs-btn-ghost { background: var(--t-card-alt); color: var(--t-ink); border-color: var(--t-line); }
.qs-btn-ghost:hover { border-color: var(--t-accent); color: var(--t-ink); }

/* =========================================================================
   HOMEPAGE — AREALME CLEAN WHITE HUB + 4-COL DESKTOP / 2-COL MOBILE GRID
   ========================================================================= */
.qs-hub-top { padding: 20px 0 8px; }
.qs-hero-box {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
}
.qs-hero-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.qs-hero-mark { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.qs-hero-head h1 { font-size: 28px; margin: 0 0 3px; letter-spacing: -0.03em; }
.qs-hub-sub { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.45; }

.qs-hero-search { position: relative; max-width: 480px; margin-bottom: 14px; }
.qs-hero-search-input {
  width: 100%; height: 44px; padding: 0 16px 0 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-family: var(--font-sans); font-size: 14.5px; font-weight: 500;
}
.qs-hero-search-input:focus { outline: none; border-color: var(--ink); }

.qs-cat-bar { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.qs-cat-bar::-webkit-scrollbar { display: none; }
.qs-cat-pill {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all 0.14s ease;
}
.qs-cat-pill:hover { border-color: var(--ink); }
.qs-cat-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* Trending & Category Poster Grids */
.qs-deck-sec { padding: 22px 0 44px; }
.qs-sec-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.qs-sec-heading h2 {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; margin: 0; letter-spacing: -0.025em;
}
.qs-sec-heading h2::before {
  content: ""; width: 4px; height: 20px; border-radius: 3px; background: var(--primary);
  display: inline-block; flex-shrink: 0;
}
.qs-sec-count { font-size: 13px; font-weight: 600; color: var(--muted); }
.qs-shelf-jump { font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; }
.qs-shelf-jump:hover { color: var(--primary); }

.qs-poster-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.qs-shelf { margin-top: 38px; }
.qs-shelf-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}

.qs-poster-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.qs-poster-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink); color: var(--ink);
}
.qs-poster-media {
  position: relative; aspect-ratio: 16 / 9; background: var(--bg-tint); overflow: hidden;
}
.qs-poster-media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease;
}
.qs-poster-card:hover .qs-poster-media img { transform: scale(1.04); }
.qs-rank-badge {
  position: absolute; top: 9px; left: 9px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: var(--surface);
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.28);
}
.qs-poster-body { padding: 12px 14px 14px; }
.qs-poster-title {
  font-size: 15px; font-weight: 700; color: var(--ink); margin: 0;
  line-height: 1.35; letter-spacing: -0.015em;
}

/* Editorial Guide & FAQ */
.qs-guide-stack { padding: 48px 0; background: var(--surface); border-top: 1px solid var(--line); }
.qs-guide-cover {
  margin: 0 0 22px; background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; max-width: 560px;
}
.qs-guide-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.qs-guide-cover figcaption { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.qs-prose { max-width: 72ch; font-size: 15px; color: var(--muted); }
.qs-prose strong { color: var(--ink); }
.qs-prose h2 { font-size: 22px; margin: 28px 0 10px; color: var(--ink); }
.qs-prose h2:first-child { margin-top: 0; }
.qs-prose h3 { font-size: 17px; margin: 20px 0 8px; color: var(--ink); }
.qs-prose ul, .qs-prose ol { padding-left: 20px; margin: 0 0 16px; }
.qs-prose li { margin-bottom: 6px; }
.qs-prose table {
  width: 100%; border-collapse: collapse; margin: 16px 0 22px;
  font-size: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.qs-prose th, .qs-prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.qs-prose th { background: var(--bg-tint); font-weight: 700; color: var(--ink); }
.qs-prose tr:last-child td { border-bottom: none; }

.qs-faq-stack { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.qs-faq-stack h2 { font-size: 22px; margin-bottom: 16px; }
.qs-faq-list { display: flex; flex-direction: column; gap: 10px; }
.qs-faq-item { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qs-faq-q {
  font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 48px; padding: 12px 16px;
}
.qs-faq-q::-webkit-details-marker { display: none; }
.qs-faq-q::after { content: "+"; font-size: 20px; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.qs-faq-item[open] .qs-faq-q::after { content: "−"; }
.qs-faq-a { padding: 0 16px 14px; color: var(--muted); font-size: 14px; }
.qs-faq-a p:last-child { margin-bottom: 0; }

/* =========================================================================
   FULL-BLEED IMMERSIVE QUIZ STAGE (NO BOX-IN-BOX CLUTTER!)
   ========================================================================= */
.qs-quiz-top {
  padding: 20px 0 36px;
  background: var(--t-bg);
  color: var(--t-ink);
  border-bottom: 1px solid var(--t-line);
}
.qs-crumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--t-muted); margin-bottom: 6px; }
.qs-crumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--t-muted); text-decoration: none; font-weight: 600; }
.qs-crumb a:hover { color: var(--t-accent); }

.qs-quiz-head { margin-bottom: 16px; text-align: center; }
.qs-quiz-head h1 {
  font-family: var(--t-font-head);
  color: var(--t-ink);
  font-size: 30px; margin: 0 0 6px; letter-spacing: -0.025em;
}
.qs-quiz-sub { font-size: 15px; color: var(--t-muted); max-width: 56ch; margin: 0 auto; line-height: 1.45; }
[data-qs-theme="rice-purity"] .qs-quiz-wrap { max-width: 960px; }

.qs-stage-card {
  background: var(--t-card);
  color: var(--t-ink);
  border: 1.5px solid var(--t-line);
  border-radius: var(--t-radius);
  padding: 24px 26px;
  box-shadow: var(--t-shadow);
  min-height: 320px;
}
.qs-stage-loading { color: var(--t-muted); padding: 48px 0; text-align: center; font-weight: 600; }
.qs-noscript { padding: 16px; background: var(--primary-soft); border-radius: 12px; color: var(--primary-dk); font-weight: 700; }

/* Friend Challenge Banner (?r=...) */
.qs-challenge-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px; border-radius: 12px;
  background: var(--t-accent-soft); border: 1.5px solid var(--t-accent);
  color: var(--t-ink); font-size: 13.5px; font-weight: 600; line-height: 1.35;
}
.qs-challenge-banner strong { color: var(--t-accent); }
.qs-challenge-badge {
  flex-shrink: 0; padding: 3px 9px; border-radius: 999px;
  background: var(--t-accent); color: var(--t-accent-ink);
  font-size: 12px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
}

/* Survival Live Arena HUD */
.qs-arena-hud {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; margin-bottom: 12px; border-radius: 8px;
  background: var(--t-card-alt); border: 1.5px solid var(--t-line);
  font-family: var(--t-font-mono); font-size: 12px; font-weight: 700; color: var(--t-ink);
  font-variant-numeric: tabular-nums;
}
.qs-hud-day { color: var(--t-accent); letter-spacing: 0.04em; }
.qs-hud-alive { color: var(--t-secondary); }
.qs-hud-odds { color: var(--t-ink); }

.qs-arena-flash {
  padding: 26px 20px; text-align: center; border-radius: 12px;
  background: var(--t-card-alt); border: 2px solid var(--t-accent);
  animation: qsPopIn 0.18s ease;
}
.qs-arena-flash-tag {
  display: inline-block; font-family: var(--t-font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-accent); margin-bottom: 10px;
}
.qs-arena-flash-msg {
  font-size: 18px; font-weight: 700; color: var(--t-ink); line-height: 1.4;
  max-width: 44ch; margin: 0 auto 14px;
}
.qs-arena-flash-delta {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  font-family: var(--t-font-mono); font-size: 13px; font-weight: 700;
}
.qs-arena-flash-delta.is-up { background: var(--t-accent-soft); color: var(--t-accent); }
.qs-arena-flash-delta.is-down { background: var(--t-card); border: 1px solid var(--t-secondary); color: var(--t-secondary); }

/* Claiming Ceremony */
.qs-claiming-stage {
  padding: 44px 20px; text-align: center; border-radius: 14px;
  background: var(--t-card-alt); border: 2px solid var(--t-accent);
  animation: qsPopIn 0.22s ease;
}
.qs-claiming-orb {
  width: 82px; height: 82px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 40px;
  background: var(--t-accent); color: var(--t-accent-ink);
  box-shadow: 0 0 0 10px var(--t-accent-soft);
  animation: qsPulseHalo 0.85s ease-in-out infinite alternate;
}
@keyframes qsPulseHalo { from { transform: scale(0.95); } to { transform: scale(1.06); } }
.qs-claiming-kicker {
  font-family: var(--t-font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--t-accent); margin-bottom: 8px;
}
.qs-claiming-text {
  font-family: var(--t-font-head); font-size: 21px; font-weight: 700; color: var(--t-ink);
  max-width: 34ch; margin: 0 auto;
}

.qs-vn-bar {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; margin-bottom: 10px;
  border-radius: 999px; background: var(--t-accent-soft); color: var(--t-accent);
  font-size: 12px; font-weight: 700;
}
[data-qs-theme="dere-type"] .qs-q-text {
  background: var(--t-card-alt); border-left: 4px solid var(--t-accent); padding: 14px 16px;
  border-radius: 12px; text-align: left; max-width: 700px;
}
.qs-decree-bar {
  font-family: var(--t-font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--t-accent); text-align: center; margin-bottom: 10px;
}

@keyframes qsPopIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.qs-q-anim { animation: qsPopIn 0.18s ease; }

.qs-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--t-muted); }
.qs-progress-pill { padding: 3px 10px; border-radius: 999px; background: var(--t-card-alt); color: var(--t-ink); border: 1px solid var(--t-line); font-variant-numeric: tabular-nums; }
.qs-progress-track { width: 100%; height: 6px; border-radius: 999px; background: var(--t-card-alt); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--t-line); }
.qs-progress-fill { height: 100%; border-radius: 999px; background: var(--t-accent); transition: width 0.22s ease; }

.qs-q-text {
  font-family: var(--t-font-head); font-size: 23px; font-weight: 800;
  color: var(--t-ink); line-height: 1.3; margin: 0 auto 22px; max-width: 36ch; text-align: center;
}

/* Likert Scale */
.qs-scale-wrap { max-width: 660px; margin: 0 auto 22px; }
.qs-scale-ends { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; padding: 0 4px; }
.qs-end-no { color: var(--t-accent); }
.qs-end-yes { color: var(--t-secondary); }

.qs-likert-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; align-items: center; }
.qs-likert-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  min-height: 82px; padding: 10px 5px; border-radius: 14px;
  border: 1.8px solid var(--t-line); background: var(--t-card-alt);
  color: var(--t-ink); font-family: var(--font-sans); cursor: pointer;
  transition: transform 0.12s ease, border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
  text-align: center;
}
.qs-likert-btn:active { transform: scale(0.95); }
.qs-likert-btn:hover { transform: translateY(-2px); border-color: var(--t-accent); }
.qs-likert-btn.is-disagree.is-selected { border-color: var(--t-accent); background: var(--t-accent); color: var(--t-accent-ink); }
.qs-likert-btn.is-neutral.is-selected { border-color: var(--t-ink); background: var(--t-ink); color: var(--t-card); }
.qs-likert-btn.is-agree.is-selected { border-color: var(--t-secondary); background: var(--t-secondary); color: var(--t-secondary-ink); }

.qs-likert-dot { display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--t-line); background: var(--t-card); font-size: 13px; font-weight: 700; color: var(--t-ink); }
.qs-likert-btn.is-disagree .qs-likert-dot { border-color: var(--t-accent); color: var(--t-accent); }
.qs-likert-btn.is-agree .qs-likert-dot { border-color: var(--t-secondary); color: var(--t-secondary); }
.qs-likert-btn.is-sz-lg .qs-likert-dot { width: 36px; height: 36px; }
.qs-likert-btn.is-sz-md .qs-likert-dot { width: 30px; height: 30px; }
.qs-likert-btn.is-sz-sm .qs-likert-dot { width: 26px; height: 26px; }
.qs-likert-btn.is-selected .qs-likert-dot { background: rgba(255, 255, 255, 0.24); border-color: currentColor; color: currentColor; }
.qs-likert-lbl { font-size: 12px; font-weight: 700; line-height: 1.18; }

/* Scenario / Survival / Age Options */
.qs-options-list { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin: 0 auto 18px; }
.qs-opt-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 12px 15px; border-radius: 12px;
  border: 1.5px solid var(--t-line); background: var(--t-card-alt);
  color: var(--t-ink); font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  text-align: left; cursor: pointer;
  transition: transform 0.1s ease, border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
  line-height: 1.38;
}
.qs-opt-btn:hover { border-color: var(--t-accent); background: var(--t-accent-soft); }
.qs-opt-btn:active { transform: scale(0.985); }
.qs-opt-btn.is-selected { border-color: var(--t-accent); background: var(--t-accent); color: var(--t-accent-ink); }
.qs-opt-key {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 7px; background: var(--t-card); border: 1px solid var(--t-line);
  font-size: 12px; font-weight: 800; color: var(--t-ink);
}
.qs-opt-btn.is-selected .qs-opt-key { background: rgba(255, 255, 255, 0.22); border-color: transparent; color: var(--t-accent-ink); }

[data-qs-theme="i-know-your-age"] .qs-opt-btn {
  background: var(--t-card); border: 2px solid var(--t-line); box-shadow: 3px 3px 0 var(--t-line);
}
[data-qs-theme="i-know-your-age"] .qs-opt-btn:active,
[data-qs-theme="i-know-your-age"] .qs-opt-btn.is-selected {
  transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--t-line);
}

.qs-stage-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--t-line); max-width: 680px; margin: 0 auto; }
.qs-key-hint { font-size: 12.5px; color: var(--t-muted); font-weight: 600; }

/* F1 Reflex Cockpit */
.qs-f1-gantry {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 16px;
  padding: 10px 16px; border-radius: 12px; background: var(--t-card-alt); border: 1.5px solid var(--t-line);
}
.qs-f1-light {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--t-card); border: 2px solid var(--t-line);
  transition: background 0.1s ease, box-shadow 0.1s ease;
}
.qs-f1-light.is-red { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 14px var(--primary); }
.qs-f1-light.is-green { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px var(--accent); }

.qs-reflex-pad {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 240px; border-radius: 14px; padding: 24px 18px; text-align: center;
  cursor: pointer; user-select: none; touch-action: manipulation; border: 2px solid var(--t-line);
  transition: background 0.08s ease, border-color 0.08s ease;
}
.qs-reflex-pad.is-idle { background: var(--t-card-alt); color: var(--t-ink); }
.qs-reflex-pad.is-hit { background: var(--t-accent-soft); border-color: var(--t-accent); color: var(--t-ink); }
.qs-reflex-pad.is-wait { background: var(--ink); border-color: var(--primary); color: var(--surface); }
.qs-reflex-pad.is-go { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.qs-reflex-pad.is-early { background: var(--primary); border-color: var(--primary); color: var(--surface); }
.qs-reflex-icon { font-size: 38px; line-height: 1; margin-bottom: 8px; }
.qs-reflex-title { font-family: var(--t-font-mono); font-size: 30px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.qs-reflex-sub { font-size: 15px; opacity: 0.92; margin: 0; }
.qs-reflex-dots { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.qs-reflex-chip { padding: 5px 11px; border-radius: 999px; font-family: var(--t-font-mono); font-size: 12.5px; font-weight: 700; background: var(--t-card-alt); color: var(--t-muted); border: 1px solid var(--t-line); }
.qs-reflex-chip.is-done { background: var(--t-accent-soft); color: var(--t-accent); border-color: var(--t-accent); }

/* 1-Screen Screenshot-Ready Result Card */
.qs-postcard {
  background: var(--t-card); color: var(--t-ink);
  border: 2px solid var(--t-line); border-radius: var(--t-radius);
  overflow: hidden; margin-bottom: 14px; box-shadow: var(--t-shadow);
}
.qs-postcard-head {
  background: var(--t-card-alt); border-bottom: 1px solid var(--t-line);
  padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.qs-postcard-brand { font-size: 15px; font-weight: 800; color: var(--t-ink); display: inline-flex; align-items: center; gap: 7px; }
.qs-postcard-logo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.qs-postcard-tag {
  font-family: var(--t-font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: var(--t-accent-soft); color: var(--t-accent); border: 1px solid var(--t-line);
}
.qs-postcard-hero {
  padding: 16px 18px 14px; border-bottom: 1px solid var(--t-line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.qs-res-kicker { font-family: var(--t-font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-secondary); margin-bottom: 3px; }
.qs-res-title { font-family: var(--t-font-head); font-size: 27px; font-weight: 800; color: var(--t-ink); margin: 0 0 4px; line-height: 1.14; }
.qs-res-roast { font-size: 13.5px; font-weight: 600; color: var(--t-muted); margin: 0; line-height: 1.38; }
.qs-res-badge-box {
  flex-shrink: 0; background: var(--t-accent-soft); border: 2px solid var(--t-accent);
  border-radius: 14px; padding: 8px 14px; text-align: center; min-width: 88px;
}
.qs-res-score { font-size: 28px; font-weight: 800; color: var(--t-accent); line-height: 1; }
.qs-res-score-lbl { font-family: var(--t-font-mono); font-size: 12px; font-weight: 700; color: var(--t-ink); margin-top: 3px; }
.qs-postcard-core { padding: 14px 18px; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 16px; align-items: center; }
.qs-chart-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--t-card-alt); border: 1px solid var(--t-line); border-radius: 12px; padding: 8px;
}
.qs-chart-box svg { width: 100%; max-width: 265px; height: auto; display: block; }
.qs-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qs-spec-tile {
  background: var(--t-card-alt); border: 1px solid var(--t-line); border-radius: 10px;
  padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.qs-spec-k { font-family: var(--t-font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--t-muted); }
.qs-spec-v { font-size: 13px; font-weight: 700; color: var(--t-ink); line-height: 1.25; }
.qs-vs-strip {
  margin: 0 18px 12px; padding: 9px 12px; border-radius: 10px;
  background: var(--t-accent-soft); border: 1.5px dashed var(--t-accent);
  font-size: 13px; font-weight: 700; color: var(--t-ink); text-align: center;
}
.qs-postcard-foot {
  background: var(--t-card-alt); border-top: 1px dashed var(--t-line);
  padding: 9px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-family: var(--t-font-mono); font-size: 12px; font-weight: 700; color: var(--t-muted);
}
.qs-postcard-foot strong { color: var(--t-accent); }

/* Retro Thermal Receipt (I Know Your Age) */
.qs-receipt-card {
  background: var(--t-card); color: var(--t-ink); border: 2px solid var(--t-line); border-radius: 12px;
  box-shadow: var(--t-shadow); overflow: hidden; margin-bottom: 14px; font-family: var(--t-font-mono);
}
.qs-receipt-top { background: var(--ink); color: var(--surface); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.qs-receipt-body { padding: 16px 18px 14px; }
.qs-receipt-center { text-align: center; padding-bottom: 12px; border-bottom: 2px dashed var(--t-line); margin-bottom: 12px; }
.qs-receipt-age-num { font-size: 54px; font-weight: 800; color: var(--t-accent); line-height: 1; margin: 4px 0; }
.qs-receipt-stamp { display: inline-block; padding: 3px 10px; border: 2px solid var(--t-secondary); color: var(--t-secondary); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; border-radius: 6px; margin-bottom: 6px; }
.qs-receipt-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12.5px; }
.qs-receipt-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 4px; }
.qs-receipt-roast-box { padding: 9px 11px; border-radius: 8px; background: var(--t-accent-soft); border: 1.5px solid var(--t-accent); font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--t-ink); text-align: center; }
.qs-receipt-foot { border-top: 2px dashed var(--t-line); padding: 9px 16px; background: var(--t-card-alt); display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }

.qs-age-check { margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; background: var(--t-card-alt); border: 2px solid var(--t-line); display: flex; flex-direction: column; gap: 10px; }
.qs-age-check-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qs-age-check-top strong { font-size: 14.5px; color: var(--t-ink); }
.qs-age-check-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qs-age-input { width: 78px; height: 40px; padding: 0 10px; border-radius: 10px; border: 2px solid var(--t-line); background: var(--t-card); color: var(--t-ink); font-family: var(--t-font-mono); font-size: 16px; font-weight: 800; text-align: center; }

.qs-align-stage { position: relative; width: 100%; max-width: 268px; margin: 0 auto; }
.qs-align-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.qs-align-cell { padding: 11px 4px; border-radius: 8px; text-align: center; background: var(--t-card); border: 1.5px solid var(--t-line); font-size: 12px; font-weight: 700; color: var(--t-muted); line-height: 1.2; }
.qs-align-cell.is-hit { background: var(--t-accent-soft); border-color: var(--t-accent); color: var(--t-accent); }
.qs-align-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--t-accent); border: 3px solid var(--t-card); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); transform: translate(-50%, -50%); pointer-events: none; }

/* Share Dock + Breakdown */
.qs-share-dock { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.qs-share-primary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qs-share-strip { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.qs-share-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 38px; padding: 0 13px; border-radius: 999px;
  border: 1.5px solid var(--t-line); background: var(--t-card-alt);
  color: var(--t-ink); font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.qs-share-pill:hover { border-color: var(--t-accent); background: var(--t-accent-soft); color: var(--t-accent); }
.qs-copy-toast { font-size: 13px; font-weight: 700; color: var(--t-secondary); min-height: 18px; }

.qs-breakdown-box { background: var(--t-card-alt); border: 1px solid var(--t-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.qs-breakdown-box h3 { font-size: 15px; color: var(--t-ink); margin: 0 0 10px; }
.qs-bars-list { display: flex; flex-direction: column; gap: 9px; }
.qs-bar-row { display: flex; flex-direction: column; gap: 4px; }
.qs-bar-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--t-ink); }
.qs-bar-track { height: 9px; border-radius: 999px; background: var(--t-card); border: 1px solid var(--t-line); overflow: hidden; }
.qs-bar-fill { height: 100%; border-radius: 999px; background: var(--t-accent); }
.qs-bar-row.is-low .qs-bar-fill { background: var(--t-secondary); }

.qs-res-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.qs-insight-card { background: var(--t-card-alt); border: 1px solid var(--t-line); border-radius: 14px; padding: 14px 16px; }
.qs-insight-card h3 { font-size: 15px; color: var(--t-ink); margin-bottom: 5px; }
.qs-insight-card p { font-size: 13.5px; color: var(--t-muted); margin: 0; line-height: 1.5; }

.qs-next-loop {
  padding: 14px 16px; border-radius: 14px;
  background: var(--t-accent-soft); border: 1.5px solid var(--t-line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.qs-next-loop strong { display: block; color: var(--t-ink); font-size: 15px; }
.qs-next-loop span { font-size: 13px; color: var(--t-muted); }

/* Interactive Profile Explorer (Dwell-Time Booster) */
.qs-explorer-box { margin-top: 16px; padding: 16px; border-radius: var(--t-radius); background: var(--t-card-alt); border: 1px solid var(--t-line); }
.qs-explorer-box h3 { margin: 0 0 10px; font-size: 15px; color: var(--t-ink); }
.qs-explorer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qs-explorer-chip {
  min-height: 36px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--t-line);
  background: var(--t-card); color: var(--t-ink); font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.qs-explorer-chip.is-active, .qs-explorer-chip:hover { background: var(--t-accent); color: var(--t-accent-ink); border-color: var(--t-accent); }
.qs-explorer-panel { padding: 12px 14px; border-radius: 12px; background: var(--t-card); border: 1px solid var(--t-line); }
.qs-explorer-panel strong { display: block; font-size: 15px; color: var(--t-ink); margin-bottom: 5px; }
.qs-explorer-panel p { margin: 0; font-size: 13.5px; color: var(--t-muted); line-height: 1.5; }
.qs-explorer-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.qs-explorer-meta span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: var(--t-card-alt); color: var(--t-ink); border: 1px solid var(--t-line); }

/* 100-Item Checklist Engine (Vintage Ivy League Sheet · Rice Purity Test) */
.qs-purity-masthead {
  text-align: center; padding: 6px 8px 14px; margin-bottom: 14px;
  border-bottom: 3px double var(--t-line);
}
.qs-purity-kicker {
  font-family: var(--t-font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-accent); margin-bottom: 4px;
}
.qs-purity-caution { margin: 0 0 6px; font-size: 13.5px; font-style: italic; color: var(--t-muted); }
.qs-purity-prompt { margin: 0; font-family: var(--t-font-head); font-size: 20px; font-weight: 800; color: var(--t-ink); }
.qs-purity-hud {
  position: sticky; top: 8px; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--t-card-alt); border: 1.5px solid var(--t-line); box-shadow: var(--shadow-sm);
}
.qs-purity-hud strong { display: block; font-size: 17px; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.qs-purity-hud span[data-p-count] { display: block; font-size: 12px; color: var(--t-muted); }
.qs-purity-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.qs-purity-pill {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--t-line); background: var(--t-card-alt); color: var(--t-ink); font-size: 12px; font-weight: 700; text-decoration: none;
}
.qs-purity-pill:hover { border-color: var(--t-accent); color: var(--t-accent); }
.qs-purity-group { margin-bottom: 18px; }
.qs-purity-group h3 { font-family: var(--t-font-head); font-size: 16px; color: var(--t-ink); margin: 0 0 8px; padding-bottom: 5px; border-bottom: 1.5px solid var(--t-line); }
.qs-purity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.qs-purity-row {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; min-height: 40px; border-radius: 8px;
  border: 1px solid var(--t-line); background: var(--t-card); color: var(--t-ink); font-size: 13.5px; line-height: 1.35; cursor: pointer;
}
.qs-purity-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--t-accent); flex: 0 0 auto; cursor: pointer; }
.qs-purity-row.is-checked { background: var(--t-accent-soft); border-color: var(--t-accent); font-weight: 600; }
.qs-purity-num { font-weight: 700; color: var(--t-muted); min-width: 24px; font-variant-numeric: tabular-nums; }
.qs-purity-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--t-line); }

/* Pairwise "This vs. That" Forced-Choice Cards (Love Language Test) */
.qs-vs-kicker {
  text-align: center; font-family: var(--t-font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-accent); margin-bottom: 8px;
}
.qs-vs-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px;
  margin: 0 auto 18px; max-width: 720px;
}
.qs-vs-or {
  align-self: center; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--t-card-alt); border: 1.5px solid var(--t-line); color: var(--t-muted);
  font-family: var(--t-font-mono); font-size: 12px; font-weight: 800;
}
.qs-vs-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  min-height: 176px; padding: 20px 18px; border-radius: 16px; border: 2px solid var(--t-line);
  background: var(--t-card-alt); color: var(--t-ink); font-family: var(--font-sans); font-size: 15.5px; font-weight: 700; line-height: 1.38;
  cursor: pointer; transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.qs-vs-card:hover { border-color: var(--t-accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); background: var(--t-card); }
.qs-vs-card.is-selected { border-color: var(--t-accent); background: var(--t-accent); color: var(--t-accent-ink); }
.qs-vs-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: var(--t-card); border: 1.5px solid var(--t-line);
}
.qs-vs-card.is-selected .qs-vs-icon { background: var(--t-card); border-color: var(--t-card); }

/* DDLC Visual Novel Dialogue Stage & Poem Minigame Grid */
.qs-vn-scene-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--t-font-mono); font-size: 12px; font-weight: 700; color: var(--t-accent); margin-bottom: 10px;
}
.qs-vn-dialogue {
  position: relative; margin: 16px auto 18px; padding: 22px 20px 18px; border-radius: 14px;
  background: var(--t-card-alt); border: 1.5px solid var(--t-line); border-left: 4px solid var(--t-accent);
  box-shadow: var(--shadow-sm);
}
.qs-vn-dialogue.is-glitch { border-color: var(--t-secondary); box-shadow: -4px 4px 0 var(--t-accent), 4px -3px 0 var(--t-secondary); }
.qs-vn-speaker {
  position: absolute; top: -14px; left: 16px; padding: 3px 12px; border-radius: 8px;
  background: var(--t-accent); color: var(--t-accent-ink);
  font-family: var(--t-font-mono); font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
}
.qs-vn-dialogue.is-glitch .qs-vn-speaker { background: var(--t-secondary); }
.qs-vn-text { margin: 0; font-size: 18px; font-weight: 700; color: var(--t-ink); line-height: 1.42; text-align: left; }
.qs-vn-choices { display: flex; flex-direction: column; gap: 9px; max-width: 620px; margin: 0 auto 16px; }
.qs-vn-choice {
  width: 100%; text-align: center; padding: 12px 16px; min-height: 48px; border-radius: 10px;
  border: 2px solid var(--t-line); background: var(--t-card); color: var(--t-ink);
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 700; line-height: 1.35; cursor: pointer;
  box-shadow: 0 3px 0 var(--t-line); transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.qs-vn-choice:hover { border-color: var(--t-accent); background: var(--t-accent-soft); transform: translateY(-1px); }
.qs-vn-choice.is-selected { border-color: var(--t-accent); background: var(--t-accent); color: var(--t-accent-ink); }
.qs-poem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 auto 16px; }
.qs-poem-card {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 86px; padding: 14px 12px;
  border-radius: 12px; border: 2px dashed var(--t-accent); background: var(--t-card); color: var(--t-ink);
  font-family: Georgia, serif; font-size: 15px; font-weight: 700; line-height: 1.35; cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-style 0.12s ease;
}
.qs-poem-card:hover { background: var(--t-accent-soft); transform: translateY(-2px); border-style: solid; }
.qs-poem-card.is-selected { background: var(--t-accent); color: var(--t-accent-ink); border-style: solid; }

@media (max-width: 720px) {
  .qs-purity-list { grid-template-columns: 1fr; gap: 5px; }
  .qs-vs-grid { grid-template-columns: 1fr; gap: 8px; }
  .qs-vs-or { margin: -2px auto; width: 32px; height: 32px; }
  .qs-vs-card { flex-direction: row; text-align: left; justify-content: flex-start; min-height: 82px; padding: 13px 14px; font-size: 14.5px; }
  .qs-vs-icon { width: 42px; height: 42px; font-size: 21px; flex: 0 0 auto; }
  .qs-poem-grid { grid-template-columns: 1fr; gap: 8px; }
  .qs-poem-card { min-height: 60px; padding: 11px 12px; font-size: 14px; }
  .qs-vn-text { font-size: 16px; }
}

/* Engage Row */
.qs-engage-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.qs-engage-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--t-line); background: var(--t-card);
  color: var(--t-ink); font-family: var(--font-sans); font-size: 13px; font-weight: 700; cursor: pointer;
}
.qs-engage-btn:hover { border-color: var(--t-accent); }
.qs-engage-btn[data-gf-liked] { background: var(--t-accent-soft); border-color: var(--t-accent); color: var(--t-accent); }
.qs-heart { color: var(--t-accent); }
.qs-engage-count { font-variant-numeric: tabular-nums; color: var(--t-muted); }
.qs-share-msg { font-size: 13px; font-weight: 700; color: var(--accent-dk); }

/* Related Strip */
.qs-related-section { padding: 34px 0; border-top: 1px solid var(--line); background: var(--bg-tint); }
.qs-related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.qs-related-head h2 { font-size: 20px; margin: 0; }
.qs-related-head a { font-size: 14px; font-weight: 700; text-decoration: none; }
.qs-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.qs-related-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, transform 0.15s ease; }
.qs-related-card:hover { border-color: var(--ink); transform: translateY(-3px); color: var(--ink); }
.qs-related-thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--bg-tint); }
.qs-related-info { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 3px; }
.qs-related-tag { font-size: 12px; font-weight: 700; color: var(--primary-dk); }
.qs-related-card strong { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.qs-related-card span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* Legal Pages */
.qs-page-section { padding: 36px 0 56px; }
.qs-page-head { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.qs-page-sub { font-size: 16px; color: var(--muted); max-width: 62ch; margin: 0; }
.qs-legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; max-width: 820px; box-shadow: var(--shadow-sm); }

/* Comments */
.qs-comments-section { padding: 44px 0; border-top: 1px solid var(--line); background: var(--bg-tint); }
.qs-comments-head { margin-bottom: 18px; }
.qs-comments-head h2 { font-size: 22px; margin-bottom: 4px; }
.qs-comments-head p { color: var(--muted); margin: 0; font-size: 14.5px; }
.qs-comment-form { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.qs-reply-bar { display: none; align-items: center; justify-content: space-between; padding: 8px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dk); font-size: 13px; font-weight: 700; }
.qs-comment-form[data-gf-replying] .qs-reply-bar { display: flex; }
.qs-reply-cancel { background: none; border: none; color: var(--primary-dk); font-weight: 700; cursor: pointer; text-decoration: underline; min-height: 44px; padding: 0 8px; }
.qs-comment-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.qs-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink); }
.qs-field input, .qs-field textarea { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-tint); font-family: var(--font-sans); font-size: 15px; color: var(--ink); }
.qs-field input:focus, .qs-field textarea:focus { border-color: var(--ink); background: var(--surface); outline: none; }
.qs-comment-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qs-comment-msg { font-size: 14px; font-weight: 700; color: var(--accent-dk); }

.qs-comment-list { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.qs-comment-list[data-gf-empty]::before { content: "No comments yet—drop your result or tell us which quiz to build next!"; display: block; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; background: var(--surface); }
.qs-comment-item { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.qs-comment-item[data-gf-owner] { border-color: var(--accent); background: var(--accent-soft); }
.qs-comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.qs-comment-meta strong { color: var(--ink); font-size: 14px; }
.qs-owner-badge { display: none; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--surface); font-size: 12px; font-weight: 700; }
[data-gf-owner] > .qs-comment-meta .qs-owner-badge { display: inline-block; }
.qs-comment-body { margin: 0 0 8px; font-size: 15px; color: var(--ink); white-space: pre-wrap; }
.qs-reply-btn { background: none; border: none; padding: 8px 0; min-height: 44px; color: var(--primary-dk); font-size: 13px; font-weight: 700; cursor: pointer; }
.qs-replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.qs-reply-item { font-size: 14px; }
.qs-reply-at { color: var(--primary-dk); font-weight: 700; }

/* =========================================================================
   NEAL.FUN-INSPIRED WARM CREATOR FOOTER + RICH CONTACT CHANNELS
   ========================================================================= */
.qs-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 28px; }
.qs-creator-bar {
  text-align: center; max-width: 680px; margin: 0 auto 34px; padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.qs-creator-note { font-size: 15px; color: var(--muted); margin: 0 0 16px; line-height: 1.55; }
.qs-creator-note strong { color: var(--ink); }
.qs-channel-row {
  display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap;
}
.qs-channel-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 15px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color 0.14s ease, transform 0.12s ease, background 0.14s ease;
}
.qs-channel-pill:hover { border-color: var(--ink); background: var(--bg-tint); color: var(--ink); transform: translateY(-1px); }

.qs-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 26px; }
.qs-footer-title { font-size: 13.5px; font-weight: 800; color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em; }
.qs-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.qs-footer-col a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13.5px; color: var(--muted); text-decoration: none; font-weight: 500; }
.qs-footer-col a:hover { color: var(--ink); text-decoration: underline; }
.qs-footer-bottom { padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.qs-footer-bottom p { margin: 0; }

/* =========================================================================
   RESPONSIVE — CRISP 2-COL MOBILE POSTER WALL & 1-SCREEN QUIZ PLAY
   ========================================================================= */
@media (max-width: 960px) {
  .qs-header-row { flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  .qs-search { order: 3; flex: 1 1 100%; max-width: none; }
  .qs-poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qs-shelf-row, .qs-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qs-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .qs-header { position: static; }
  .qs-wrap { padding: 0 12px; }
  h1 { font-size: 23px; }
  h2 { font-size: 19px; }

  .qs-header-row { min-height: 52px; padding: 6px 0; gap: 8px; flex-wrap: wrap; }
  .qs-brand-logo { width: 28px; height: 28px; border-radius: 7px; }
  .qs-brand-word { font-size: 18px; }
  .qs-mob-search-btn { display: inline-grid; }
  .qs-search { display: none; order: 3; flex: 1 1 100%; max-width: none; margin-top: 4px; }
  .qs-header.is-search-open .qs-header-right { flex-wrap: wrap; width: 100%; justify-content: flex-end; }
  .qs-header.is-search-open .qs-search { display: block; }
  .qs-search-input { height: 42px; font-size: 16px; }

  /* Mobile Homepage: Clean ARealMe 2-Col Visual Poster Wall Above the Fold */
  .qs-hub-top { padding: 12px 0 4px; }
  .qs-hero-box { padding: 16px 14px; border-radius: 16px; }
  .qs-hero-head { gap: 10px; margin-bottom: 12px; }
  .qs-hero-mark { width: 38px; height: 38px; border-radius: 10px; }
  .qs-hero-head h1 { font-size: 20px; }
  .qs-hub-sub { font-size: 13px; }
  .qs-hero-search { margin-bottom: 10px; }
  .qs-hero-search-input { height: 40px; font-size: 14px; }

  .qs-deck-sec { padding: 16px 0 32px; }
  .qs-poster-grid, .qs-shelf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qs-poster-body { padding: 9px 10px 11px; }
  .qs-poster-title { font-size: 13.5px; line-height: 1.28; }
  .qs-rank-badge { top: 7px; left: 7px; width: 22px; height: 22px; font-size: 12px; }
  .qs-shelf { margin-top: 26px; }

  .qs-related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qs-related-info { padding: 9px 10px; }
  .qs-related-card strong { font-size: 13.5px; }
  .qs-related-card span:last-child { display: none; }

  /* Mobile Quiz Stage: 1-SECOND ENTRY, ZERO PILL CLUTTER */
  .qs-quiz-top { padding: 10px 0 22px; }
  .qs-crumb { display: none; }
  .qs-quiz-head { margin-bottom: 10px; }
  .qs-quiz-head h1 { font-size: 20px; margin: 0; line-height: 1.2; }
  .qs-quiz-sub { display: none; }

  .qs-stage-card { padding: 14px 13px 15px; min-height: 0; }
  .qs-challenge-banner { padding: 8px 10px; font-size: 12px; margin-bottom: 10px; }
  .qs-arena-hud { padding: 6px 9px; font-size: 12px; margin-bottom: 10px; }
  .qs-progress-row { margin-bottom: 6px; font-size: 12px; }
  .qs-progress-track { height: 6px; margin-bottom: 13px; }
  .qs-q-text { font-size: 18.5px; line-height: 1.28; margin-bottom: 14px; }

  .qs-options-list { gap: 8px; margin-bottom: 12px; }
  .qs-opt-btn { min-height: 46px; padding: 10px 11px; font-size: 14px; gap: 10px; line-height: 1.32; }
  .qs-opt-key { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }

  .qs-likert-grid { gap: 5px; }
  .qs-likert-btn { min-height: 70px; padding: 7px 2px; border-radius: 12px; gap: 5px; }
  .qs-likert-lbl { font-size: 12px; }
  .qs-stage-nav { padding-top: 10px; }
  .qs-key-hint { display: none; }

  /* Mobile 1-Screen Screenshot-Ready Result Card */
  .qs-postcard-head { padding: 8px 12px; }
  .qs-postcard-hero { padding: 12px 13px; gap: 10px; }
  .qs-res-title { font-size: 22px; }
  .qs-res-roast { font-size: 12.5px; }
  .qs-res-badge-box { padding: 7px 10px; min-width: 74px; border-radius: 12px; }
  .qs-res-score { font-size: 24px; }
  .qs-postcard-core { grid-template-columns: 1fr; padding: 11px 13px; gap: 10px; }
  .qs-chart-box { padding: 4px; }
  .qs-chart-box svg { max-width: 215px; }
  .qs-spec-grid { gap: 6px; }
  .qs-spec-tile { padding: 7px 9px; }
  .qs-spec-v { font-size: 12.5px; }
  .qs-vs-strip { margin: 0 13px 10px; font-size: 12px; padding: 7px 10px; }
  .qs-postcard-foot { padding: 8px 13px; font-size: 12px; }

  .qs-receipt-body { padding: 12px 13px; }
  .qs-receipt-age-num { font-size: 46px; }
  .qs-receipt-lines { font-size: 12px; gap: 5px; }

  .qs-share-primary-row { gap: 8px; }
  .qs-share-primary-row .qs-btn { padding: 0 10px; font-size: 13.5px; min-height: 44px; }
  .qs-res-insights, .qs-footer-grid { grid-template-columns: 1fr; }
  .qs-legal-card { padding: 20px 16px; }
  .qs-prose table { display: block; overflow-x: auto; }
}
