/* === MOODIQ Shared Styles === */

/* ---------------------------------------------------------------
 * Theme tokens
 * ---------------------------------------------------------------
 * Mood-specific styling is driven by CSS custom properties on :root.
 * Each `body.mood-X` block only needs to override these tokens —
 * not re-declare every component rule.
 *
 * `:root` defaults define the **MOODIQ brand / catalog** theme —
 * a clean, neutral look used on index.html (catalog) and on any
 * page where no mood class is applied. Test-specific moods live
 * in `body.mood-<name>` blocks at the bottom of this file.
 *
 * To add a new mood: append a `body.mood-<name>` block (~25 token
 * overrides). Do NOT add new top-level selectors.
 * --------------------------------------------------------------- */

:root {
  /* Base palette (shared raw colors — referenced by themes below) */
  --ink: #1a1310;
  --ink-soft: #2d2118;
  --paper: #ede1c7;
  --paper-warm: #e0d2b1;
  --paper-dark: #c9b890;
  --crimson: #8b1a1a;
  --crimson-deep: #5c0e0e;
  --gold: #b8893d;
  --gold-soft: #d4a85a;

  /* Themed tokens — DEFAULT = MOODIQ brand / catalog (clean) */
  --bg: linear-gradient(180deg, #ffffff 0%, #f6f4ee 100%);
  --text: #1a1310;
  --text-soft: #5a5048;
  --surface: #ffffff;
  --surface-alt: #f5f3ee;
  --surface-input: #ffffff;
  --border: #e6e1d6;
  --divider: #ede8dc;
  --accent: #1a1310;
  --accent-deep: #000000;
  --accent-soft: rgba(184, 137, 61, 0.4);
  --accent-text: #8a6f3a;
  --brand-bg: #1a1310;
  --brand-fg: #ffffff;
  --selected-bg: #1a1310;
  --selected-fg: #ffffff;
  --cta-bg: #1a1310;
  --shadow: rgba(26, 19, 16, 0.08);
  --card-shadow: 0 4px 20px var(--shadow);
  --noise-display: none;
}

/* historical-ink: 단종 시대 (king) — 한지/먹/주인장 도장 */
body.mood-historical-ink {
  --bg:
    radial-gradient(circle at 15% 20%, rgba(184, 137, 61, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(139, 26, 26, 0.06) 0%, transparent 45%),
    repeating-linear-gradient(
      92deg,
      transparent 0px, transparent 2px,
      rgba(101, 76, 50, 0.025) 2px, rgba(101, 76, 50, 0.025) 3px
    ),
    var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --surface: var(--paper-warm);
  --surface-alt: var(--paper);
  --surface-input: var(--paper-warm);
  --border: var(--paper-dark);
  --divider: var(--paper-dark);
  --accent: var(--crimson);
  --accent-deep: var(--crimson-deep);
  --accent-soft: var(--gold-soft);
  --accent-text: var(--gold);
  --brand-bg: var(--ink);
  --brand-fg: var(--paper);
  --selected-bg: var(--ink);
  --selected-fg: var(--paper);
  --cta-bg: var(--ink);
  --shadow: rgba(26, 19, 16, 0.4);
  --noise-display: block;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Gowun Batang', 'Nanum Myeongjo', 'Noto Serif KR', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body { position: relative; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.2  0 0 0 0.18 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
  z-index: 1;
  display: var(--noise-display);
}

.stage {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  min-height: 100vh;
}

/* === Loading === */
.loading {
  text-align: center;
  padding: 120px 0;
  animation: fadeInUp 0.6s ease;
}
.loading-char {
  font-family: 'Song Myung', serif;
  font-size: 64px;
  color: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
.loading-text {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--text-soft);
}

.error-message {
  text-align: center;
  padding: 80px 20px;
  animation: fadeInUp 0.6s ease;
}
.error-message h2 {
  font-family: 'Song Myung', serif;
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 16px;
}
.error-message p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* === Intro === */
.intro {
  text-align: center;
  animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.seal {
  display: inline-block;
  width: 88px;
  height: 88px;
  background: var(--accent);
  color: var(--brand-fg);
  border-radius: 4px;
  font-family: 'Song Myung', serif;
  font-size: 56px;
  line-height: 88px;
  margin-bottom: 36px;
  box-shadow:
    0 4px 20px var(--shadow),
    inset 0 0 0 3px var(--brand-fg),
    inset 0 0 0 4px var(--accent);
  transform: rotate(-3deg);
  position: relative;
}
.seal::after {
  content: '';
  position: absolute;
  inset: -2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3'/></filter><rect width='90' height='90' filter='url(%23n)' opacity='0.4'/></svg>");
  mix-blend-mode: screen;
  border-radius: 4px;
  pointer-events: none;
}

.title-vertical {
  font-family: 'Song Myung', 'Nanum Myeongjo', serif;
  font-size: 14px;
  letter-spacing: 0.8em;
  color: var(--text-soft);
  margin-bottom: 18px;
}

h1 {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
h1 .accent {
  display: block;
  font-size: 0.55em;
  font-weight: 400;
  color: var(--accent);
  margin-top: 8px;
  letter-spacing: 0.3em;
}

.ornament {
  width: 60px;
  height: 1px;
  background: var(--text);
  margin: 28px auto;
  position: relative;
}
.ornament::before, .ornament::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.ornament::before { left: -16px; }
.ornament::after { right: -16px; }

.intro-text {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-soft);
  margin: 0 auto 28px;
  max-width: 460px;
}
.intro-text em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.meta-items {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--text-soft);
}
.meta-items span {
  padding: 6px 14px;
  border: 1px solid var(--border);
}

/* === Button === */
.btn {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2em;
  background: var(--brand-bg);
  color: var(--brand-fg);
  border: none;
  padding: 18px 48px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  box-shadow: 0 4px 0 var(--accent-deep), 0 8px 24px var(--shadow);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--accent-deep), 0 12px 32px var(--shadow);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent-deep), 0 4px 12px var(--shadow);
}
.btn::before {
  content: '\25C6';
  margin-right: 12px;
  color: var(--accent-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  box-shadow: 0 4px 0 var(--border), 0 8px 24px var(--shadow);
  border: 2px solid var(--text);
}
.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
}
.btn-secondary::before { color: var(--accent); }

.btn-small {
  font-size: 14px;
  padding: 12px 28px;
  letter-spacing: 0.15em;
}

/* === Quiz === */
.quiz { display: none; animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.3, 1); }
.quiz.active { display: block; }

.progress-wrap { margin-bottom: 48px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.progress-label .num {
  font-family: 'Song Myung', serif;
  color: var(--accent);
  font-size: 16px;
}
.progress-bar {
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.progress-fill {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--brand-bg);
  transition: right 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.question-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 60%),
    var(--surface);
  padding: 44px 36px;
  margin-bottom: 32px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -1px 0 rgba(0,0,0,0.08) inset,
    var(--card-shadow);
  border-left: 3px solid var(--accent);
}
.question-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.18;
}

.question-text {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 24px);
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 8px;
}
.question-sub {
  font-size: 14px;
  color: var(--text-soft);
  opacity: 0.8;
  letter-spacing: 0.1em;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option {
  background: var(--surface-input);
  border: 1.5px solid var(--border);
  padding: 20px 24px 20px 56px;
  text-align: left;
  font-family: 'Gowun Batang', serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}
.option::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text-soft);
  border-radius: 50%;
  transition: all 0.25s ease;
}
.option:hover {
  background: var(--surface-alt);
  border-color: var(--text);
  transform: translateX(4px);
}
.option:hover::before { border-color: var(--accent); }
.option.selected {
  background: var(--selected-bg);
  color: var(--selected-fg);
  border-color: var(--selected-bg);
}
.option.selected::before {
  background: var(--accent);
  border-color: var(--selected-fg);
  box-shadow: 0 0 0 3px var(--selected-bg);
}

/* === Result === */
.result { display: none; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); }
.result.active { display: block; }

.result-header {
  text-align: center;
  margin-bottom: 40px;
}
.result-label {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.result-name {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--text);
  margin-bottom: 6px;
}
.result-title {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--accent-text);
  font-weight: 700;
}

.result-card {
  background: var(--surface);
  padding: 36px 32px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--text);
  border-bottom: 3px solid var(--text);
  position: relative;
}
.result-card h3 {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--divider);
}
.result-card p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-soft);
}

.traits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.trait {
  background: var(--brand-bg);
  color: var(--brand-fg);
  padding: 14px 16px;
  text-align: center;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  position: relative;
}
.trait::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px solid var(--accent-soft);
  pointer-events: none;
}

.quote {
  font-family: 'Nanum Myeongjo', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  color: var(--text);
  padding: 28px 16px;
  margin: 8px 0 32px;
  position: relative;
}
.quote::before, .quote::after {
  content: '\201C';
  font-family: 'Song Myung', serif;
  font-size: 60px;
  color: var(--accent);
  position: absolute;
  line-height: 1;
}
.quote::before { top: 0; left: 50%; transform: translateX(-50%); }
.quote::after { bottom: -30px; left: 50%; transform: translateX(-50%) rotate(180deg); }

/* === Compatibility === */
.compat-section { margin-top: 8px; }
.compat-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.compat-card {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.compat-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.compat-name {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.compat-title {
  font-size: 12px;
  color: var(--accent-text);
  margin-top: 4px;
}

/* === Share Actions === */
.actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.share-btn {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 16px;
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.share-btn:hover {
  border-color: var(--brand-bg);
  background: var(--brand-bg);
  color: var(--brand-fg);
}

/* === Character Grid (result.html) === */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.char-card {
  padding: 20px 12px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  cursor: pointer;
  transition: all 0.2s ease;
}
.char-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}
.char-card-name {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.char-card-title {
  font-size: 11px;
  color: var(--accent-text);
  margin-top: 4px;
  letter-spacing: 0.1em;
}

/* === CTA Banner === */
.cta-banner {
  text-align: center;
  margin: 48px 0 32px;
  padding: 36px 24px;
  background: var(--cta-bg);
  color: var(--brand-fg);
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px solid var(--accent-soft);
  pointer-events: none;
}
.cta-banner p {
  font-size: 16px;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  line-height: 1.6;
}
.cta-banner .btn {
  background: var(--accent);
  color: var(--brand-fg);
  box-shadow: 0 4px 0 var(--accent-deep), 0 8px 24px rgba(0,0,0,0.3);
}

/* === Index / Catalog === */
.catalog-header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease;
}
.catalog-header h1 { font-size: clamp(32px, 6vw, 48px); }
.catalog-desc {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.8;
  margin-top: 16px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--brand-bg);
  color: var(--brand-fg);
  border-color: var(--brand-bg);
}

.test-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.test-card {
  background: var(--surface);
  padding: 32px 24px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 20px var(--shadow);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}
.test-card-label {
  font-family: 'Song Myung', serif;
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 12px;
}
.test-card-title {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--text);
}
.test-card-subtitle {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.test-card-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}
.test-card-meta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-soft);
}
.test-card-meta span {
  padding: 4px 10px;
  border: 1px solid var(--border);
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--brand-bg);
  color: var(--brand-fg);
  padding: 14px 28px;
  font-family: 'Nanum Myeongjo', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

/* ---------------------------------------------------------------
 * Mood Themes — token overrides only
 * (historical-ink is defined right after :root, since it's the
 *  most-used legacy theme. Other moods follow alphabetically.)
 * --------------------------------------------------------------- */

/* dark-supernatural: 한국 요괴 (ghost) */
body.mood-dark-supernatural {
  --bg:
    radial-gradient(circle at 20% 30%, rgba(45, 27, 78, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(60, 20, 60, 0.2) 0%, transparent 50%),
    #1a1520;
  --text: #e0d8e8;
  --text-soft: #b0a8c0;
  --surface: #231a2e;
  --surface-alt: #2d2240;
  --surface-input: #231a2e;
  --border: #3a2d4a;
  --divider: #3a2d4a;
  --accent: #9D7FE0;
  --accent-deep: #1a0e30;
  --accent-soft: rgba(157, 127, 224, 0.5);
  --accent-text: #d4a85a;
  --brand-bg: #2D1B4E;
  --brand-fg: #e0d8e8;
  --selected-bg: #7B68AE;
  --selected-fg: #ffffff;
  --cta-bg: #2D1B4E;
  --shadow: rgba(0, 0, 0, 0.5);
  --noise-display: none;
}

/* finance-clean: 주식 성향 (stock) */
body.mood-finance-clean {
  --bg:
    radial-gradient(circle at 10% 20%, rgba(13, 59, 102, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(46, 139, 87, 0.05) 0%, transparent 40%),
    #f5f7fa;
  --text: #1a2332;
  --text-soft: #3a4a5c;
  --surface: #ffffff;
  --surface-alt: #f0f4f8;
  --surface-input: #ffffff;
  --border: #e0e5eb;
  --divider: #e0e5eb;
  --accent: #0D3B66;
  --accent-deep: #082840;
  --accent-soft: rgba(46, 139, 87, 0.5);
  --accent-text: #2E8B57;
  --brand-bg: #0D3B66;
  --brand-fg: #ffffff;
  --selected-bg: #0D3B66;
  --selected-fg: #ffffff;
  --cta-bg: #0D3B66;
  --shadow: rgba(13, 30, 54, 0.15);
  --noise-display: none;
}

/* horror-bloody: 공포 영화 인물 유형 (horror) */
body.mood-horror-bloody {
  --bg:
    radial-gradient(circle at 30% 10%, rgba(120, 0, 0, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 90%, rgba(20, 0, 0, 0.5) 0%, transparent 60%),
    #0d0808;
  --text: #d8cfc8;
  --text-soft: #8a7a72;
  --surface: #1a1010;
  --surface-alt: #241616;
  --surface-input: #160c0c;
  --border: #3a1f1f;
  --divider: #3a1f1f;
  --accent: #c41e1e;
  --accent-deep: #4a0808;
  --accent-soft: rgba(196, 30, 30, 0.5);
  --accent-text: #e8a060;
  --brand-bg: #1f0e0e;
  --brand-fg: #e8d8d0;
  --selected-bg: #8a0e0e;
  --selected-fg: #ffffff;
  --cta-bg: #2a0808;
  --shadow: rgba(0, 0, 0, 0.7);
  --noise-display: block;
}

/* stadium-grass: KBO 야구팀 매칭 (baseball) */
body.mood-stadium-grass {
  --bg:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 60px,
      transparent 60px, transparent 120px
    ),
    #1a3d1f;
  --text: #f0f5e8;
  --text-soft: #b8c8a8;
  --surface: #234a28;
  --surface-alt: #2d5a32;
  --surface-input: #1f4222;
  --border: #3d6a3d;
  --divider: #3d6a3d;
  --accent: #d92020;
  --accent-deep: #6a0a0a;
  --accent-soft: rgba(255, 220, 80, 0.6);
  --accent-text: #ffdc50;
  --brand-bg: #0f2a14;
  --brand-fg: #f5fae8;
  --selected-bg: #d92020;
  --selected-fg: #ffffff;
  --cta-bg: #0f2a14;
  --shadow: rgba(0, 0, 0, 0.5);
  --noise-display: none;
}

/* stadium-night: 해외 축구 빅클럽 매칭 (football) */
body.mood-stadium-night {
  --bg:
    radial-gradient(ellipse at 50% 30%, rgba(180, 220, 255, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 15% 90%, rgba(0, 80, 50, 0.2) 0%, transparent 50%),
    #050a18;
  --text: #e8eef5;
  --text-soft: #8898b0;
  --surface: #0e1828;
  --surface-alt: #162538;
  --surface-input: #0a1422;
  --border: #1f3050;
  --divider: #1f3050;
  --accent: #4d9eff;
  --accent-deep: #0a2548;
  --accent-soft: rgba(255, 215, 100, 0.55);
  --accent-text: #ffd76a;
  --brand-bg: #0a1830;
  --brand-fg: #f0f4fa;
  --selected-bg: #1d5fc4;
  --selected-fg: #ffffff;
  --cta-bg: #0a1830;
  --shadow: rgba(0, 0, 0, 0.6);
  --noise-display: none;
}

/* === Legal footer === */
.legal-footer {
  margin-top: 64px;
  padding: 24px 16px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-soft);
  text-align: center;
  opacity: 0.7;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}

/* === Hidden utility === */
.hidden { display: none !important; }

/* === Responsive === */
@media (max-width: 480px) {
  .stage { padding: 40px 20px 60px; }
  .question-card { padding: 32px 22px; }
  .option { padding: 18px 18px 18px 50px; font-size: 15px; }
  .result-card { padding: 28px 22px; }
  .share-grid { grid-template-columns: 1fr; }
  .compat-row { flex-direction: column; }
  .meta-items { gap: 12px; }
  .meta-items span { padding: 4px 10px; font-size: 12px; }
  /* fixed SVG noise overlay는 모바일에서 합성 비용이 큼 */
  body::before { display: none; }
}

/* 데이터 절약 모드 사용자 존중 */
@media (prefers-reduced-data: reduce) {
  body::before { display: none; }
}
