:root {
  --accent: #D97757;
  --accent2: #C0623E;
  --accent-dim: rgba(217,119,87,0.12);
  --highlight: rgba(217,119,87,0.28);
  --radius: 16px;
  --radius-sm: 10px;
}
[data-theme="dark"] {
  --bg: #0E0C0A;
  --surface: #1A1714;
  --surface2: #242018;
  --text: #F0EBE3;
  --text-sub: #CEC6BE;
  --text-muted: #9A9088;
  --border: rgba(255,255,255,0.08);
}
[data-theme="light"] {
  --bg: #F5F2EE;
  --surface: #FFFFFF;
  --surface2: #EDE9E4;
  --text: #1A1512;
  --text-sub: #2E2925;
  --text-muted: #6B6059;
  --border: rgba(0,0,0,0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.8;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 360px; height: 360px; background: #D97757; top: -80px; right: -60px; }
.orb-2 { width: 260px; height: 260px; background: #C0623E; bottom: 15%; left: -80px; }

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,12,10,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
[data-theme="light"] .hdr { background: rgba(245,242,238,0.92); }
.hdr-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .15s;
  text-decoration: none;
}
.hdr-back:active { transform: scale(.88); }
.hdr-back svg { width: 18px; height: 18px; }
.hdr-info { flex: 1; overflow: hidden; }
.hdr-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1px;
}
.hdr-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdr-theme {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.hdr-ham {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--surface2); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .15s;
}
.hdr-ham:active { transform: scale(.88); }
.ham-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 200;
}
.ham-overlay.show { opacity: 1; pointer-events: all; }
.ham-drawer {
  position: fixed; top: 0; right: 0; width: min(80vw, 300px); height: 100%;
  background: var(--bg); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 201; overflow-y: auto; overflow-x: hidden;
}
.ham-drawer.show { transform: translateX(0); }
.ham-head { padding: 18px 18px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.ham-title { font-size: 15px; font-weight: 800; }
.ham-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--surface2); color: var(--text-muted); cursor: pointer; font-size: 16px; }
.ham-item { display: flex; align-items: center; gap: 12px; padding: 13px 18px; cursor: pointer; transition: background .15s; }
.ham-item:active { background: var(--surface2); }
.ham-item-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ham-item-icon svg { width: 18px; height: 18px; }
.ham-item-text { flex: 1; }
.ham-item-title { font-size: 14px; font-weight: 700; }
.ham-item-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.ham-section-label { padding: 16px 18px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.ham-section-label svg { width: 12px; height: 12px; flex-shrink: 0; }
.ham-divider { height: 1px; background: var(--border); margin: 4px 0; }

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 18px 80px;
  position: relative;
  z-index: 2;
}

.hero {
  padding: 28px 0 24px;
}
.hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(217,119,87,0.25);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-title .accent {
  background: linear-gradient(90deg, #D97757, #F0A875);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.85;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
}

.body { font-size: 15px; color: var(--text-sub); line-height: 1.9; font-weight: 500; }

.mark {
  background: linear-gradient(transparent 55%, var(--highlight) 55%);
  color: var(--text);
  font-weight: 700;
  padding: 0 2px;
}
.bold-accent { color: var(--accent); font-weight: 800; }

.section { margin: 28px 0; }

.problem-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}
.problem-box p { font-size: 14px; font-weight: 500; color: var(--text-sub); line-height: 1.85; margin-bottom: 12px; }
.problem-box p:last-child { margin-bottom: 0; }

.styled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
.styled-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.7;
}
.list-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(217,119,87,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.list-dot svg { width: 10px; height: 10px; stroke: var(--accent); }

.callout {
  background: var(--accent-dim);
  border: 1px solid rgba(217,119,87,0.25);
  border-radius: var(--radius);
  padding: 18px;
  margin: 20px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.85;
}
.callout strong { color: var(--text); }

.tip-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 16px;
}
.tip-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #D97757, #C0623E);
  color: white;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(217,119,87,0.35);
}
.tip-title {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tip-title .accent {
  background: linear-gradient(90deg, #D97757, #F0A875);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}
.tip-card p { font-size: 14px; font-weight: 500; color: var(--text-sub); line-height: 1.85; margin-bottom: 12px; }
.tip-card p:last-child { margin-bottom: 0; }

.example-list {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0;
}
.example-list-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.example-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.example-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
}
.example-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}

.mechanism {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 14px 0;
}
.mechanism-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mechanism-icon svg { width: 22px; height: 22px; }
.mechanism-text { font-size: 13px; font-weight: 500; color: var(--text-sub); line-height: 1.7; }
.mechanism-text strong { color: var(--text); }

.pull-quote {
  text-align: center;
  padding: 28px 16px;
  margin: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pull-quote-text {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.pull-quote-text .accent {
  background: linear-gradient(90deg, #D97757, #F0A875);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pull-quote-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.video-section { margin: 24px 0; }
.video-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 12px;
}
.video-label svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.video-embed {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-cta {
  background: linear-gradient(135deg, rgba(217,119,87,0.15), rgba(192,98,62,0.08));
  border: 1px solid rgba(217,119,87,0.25);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  margin-top: 32px;
}
.footer-cta-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.footer-cta-desc { font-size: 13px; color: var(--text-sub); margin-bottom: 16px; line-height: 1.7; }
.footer-cta-btn {
  display: block;
  background: linear-gradient(135deg, #D97757, #C0623E);
  color: white;
  font-size: 14px;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(217,119,87,0.35);
  transition: all .2s;
}
.footer-cta-btn:active { transform: scale(.97); }
.footer-cta-safe {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6,199,85,0.12);
  border: 1px solid rgba(6,199,85,0.3);
  color: #05A64A;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 20px;
  margin-bottom: 14px;
}
[data-theme="dark"] .gift-badge { color: #2FE07C; }

.footer-cta-safe::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(217,119,87,0.5);
  flex-shrink: 0;
}

/* ── 記事→仕事タブ(求人アフィリ)CTA ── */
.article-job-cta {
  background: var(--surface);
  border: 1px solid rgba(217,119,87,0.3);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-top: 28px;
  box-shadow: 0 2px 14px rgba(217,119,87,0.10);
}
.article-job-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.article-job-cta-badge svg { width: 13px; height: 13px; }
.article-job-cta-title { font-size: 16px; font-weight: 800; line-height: 1.5; margin-bottom: 6px; }
.article-job-cta-desc { font-size: 13px; color: var(--text-sub); line-height: 1.7; margin-bottom: 16px; }
.article-job-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #D97757, #C0623E);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(217,119,87,0.35);
  transition: all .2s;
}
.article-job-cta-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.article-job-cta-btn:active { transform: scale(.97); }
/* 🟡 控えめバリアント */
.article-job-cta.subtle {
  background: var(--accent-dim);
  border-color: rgba(217,119,87,0.2);
  box-shadow: none;
  padding: 16px 18px;
}
.article-job-cta.subtle .article-job-cta-title { font-size: 14px; }
.article-job-cta.subtle .article-job-cta-desc { margin-bottom: 14px; }
.article-job-cta.subtle .article-job-cta-btn {
  background: none;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
  padding: 11px;
}

/* ── 記事内アフィリエイトCTAカード（広告ラベル付き） ── */
.affiliate-cta-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(217,119,87,0.3);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  margin: 24px 0;
  box-shadow: 0 2px 14px rgba(217,119,87,0.10);
}
.affiliate-cta-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: .03em;
}
.affiliate-cta-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-right: 48px;
}
.affiliate-cta-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 14px;
}
.affiliate-cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.affiliate-cta-benefits li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.affiliate-cta-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97757' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.affiliate-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #D97757, #C0623E);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  padding: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(217,119,87,0.35);
  transition: all .2s;
}
.affiliate-cta-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.affiliate-cta-btn:active { transform: scale(.97); }

.save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(217,119,87,0.4);
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 16px;
  letter-spacing: .01em;
}
.save-btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: all .2s; }
.save-btn:active { transform: scale(.98); }
.save-btn.saved {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.save-btn.saved svg { fill: var(--accent); }

@keyframes save-bounce {
  0%   { transform: scale(1); }
  35%  { transform: scale(.92); }
  65%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.save-btn.bouncing { animation: save-bounce .45s cubic-bezier(.34,1.56,.64,1); }

.save-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3000;
  animation: particle-fly 1s ease-out forwards;
}
@keyframes particle-fly {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-90px) translateX(var(--dx, 0px)) scale(0); opacity: 0; }
}

.save-bubble {
  position: fixed;
  right: 12px;
  top: 62px;
  background: var(--surface, #1A1714);
  border: 1.5px solid rgba(217,119,87,0.45);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #F0EBE3;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .3s cubic-bezier(.34,1.56,.64,1), transform .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  max-width: 220px;
  line-height: 1.6;
}
.save-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 18px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid rgba(217,119,87,0.45);
}
.save-bubble::after {
  content: '';
  position: absolute;
  top: -6px;
  right: 19px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 7px solid #1A1714;
}
.save-bubble.show {
  opacity: 1;
  transform: translateY(0);
}
.save-bubble-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(217,119,87,0.2);
  border-radius: 6px;
  margin-right: 4px;
  vertical-align: middle;
}
.save-bubble strong { color: #D97757; }

.back-to-notes {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  margin-bottom: 16px;
  transition: all .2s;
}
.back-to-notes:hover { border-color: rgba(217,119,87,0.3); color: var(--text); }
.back-to-notes:active { transform: scale(.98); }

.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 80;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:active { transform: scale(.9); }
.scroll-top-btn svg { width: 18px; height: 18px; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0 28px;
}
.toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc-title svg { width: 12px; height: 12px; }
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.toc-item a:hover { background: var(--surface2); color: var(--text); }
.toc-item a:active { background: var(--accent-dim); color: var(--accent); }
.toc-num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(217,119,87,0.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toc-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 16px;
}

.scenario-picker {
  position: relative;
  background: linear-gradient(160deg, rgba(217,119,87,0.18) 0%, rgba(240,168,117,0.07) 55%, var(--surface) 100%);
  border: 2px solid rgba(217,119,87,0.4);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin: 26px 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(217,119,87,0.16);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.scenario-picker.in-view {
  opacity: 1;
  transform: translateY(0);
}
.scenario-picker::before {
  content: '';
  position: absolute;
  top: -55px;
  right: -45px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(217,119,87,0.25), transparent 70%);
  pointer-events: none;
}
.scenario-picker::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(240,168,117,0.18), transparent 70%);
  pointer-events: none;
}
.scenario-picker-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #D97757, #C0623E);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(217,119,87,0.45);
  position: relative;
  z-index: 1;
}
.scenario-picker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.scenario-picker-label svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.scenario-picker-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.scenario-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  position: relative;
  z-index: 1;
}
.scenario-option {
  position: relative;
  overflow: hidden;
  padding: 11px 16px;
  border-radius: 99px;
  border: 1.5px solid rgba(217,119,87,0.3);
  background: var(--surface);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  text-align: left;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.scenario-option:active { transform: scale(.95); }
.scenario-option.active {
  background: linear-gradient(135deg, #D97757, #C0623E);
  border-color: transparent;
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 5px 18px rgba(217,119,87,0.45);
}
.scenario-option-label,
.scenario-vote-pct {
  position: relative;
  z-index: 1;
}
.scenario-vote-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(217,119,87,0.18);
  transition: width .7s cubic-bezier(.16,1,.3,1);
  z-index: 0;
}
.scenario-option.active .scenario-vote-bar {
  background: rgba(255,255,255,0.22);
}
.scenario-vote-pct {
  display: none;
  margin-left: 6px;
  font-weight: 900;
  opacity: 0.9;
}
.scenario-picker.voted .scenario-vote-pct {
  display: inline;
}
.scenario-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .25s ease;
  position: relative;
  z-index: 1;
}
.scenario-answer.open {
  max-height: 600px;
  opacity: 1;
  transition: max-height .45s ease, opacity .4s ease .1s;
}
.scenario-answer-inner {
  background: var(--surface);
  border: 1px solid rgba(217,119,87,0.22);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.scenario-answer-inner strong { color: var(--accent); }

.related-articles {
  margin-top: 24px;
}
.related-articles-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.related-articles-title svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-article-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-decoration: none;
  transition: all .2s;
}
.related-article-card:active { transform: scale(.98); background: var(--surface2); }
.related-article-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface2);
}
.related-article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-article-info { flex: 1; min-width: 0; }
.related-article-cat {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 3px;
}
.related-article-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
