/* ==========================================================================
   책의 벌집 (독자성향검사) — Literary & Tactile Bookshop Aesthetic
   Nano Banana Character Edition (Anti-AI-Slop Curation Style)
   ========================================================================== */

:root {
  color-scheme: light;
  
  /* Archetypal Bookshop & Paper Palette */
  --bg: #FAF7F2;                /* Unbleached warm cream parchment */
  --bg-warm: #F4EFE6;           /* Deeper paper tint */
  --paper: #FFFDF9;             /* Clean book page paper */
  --paper-elevated: #FFFFFF;    /* Pure card white */
  
  /* Archival Inks */
  --ink: #1C2024;               /* Deep charcoal printing ink */
  --ink-soft: #383F48;          /* Body copy soft ink */
  --muted: #6E7682;             /* Editorial caption grey */
  --line: #E5DEC9;              /* Warm deckled edge paper line */
  --line-strong: #D4CAAF;       /* Double border line */
  
  /* Literary Accents (Warm & Tactile) */
  --accent: #9E3A24;            /* Antique book cloth terracotta red */
  --accent-hover: #832F1C;
  --accent-gold: #C98A2C;       /* Bookmark ribbon gold / brass */
  --accent-olive: #4E6348;      /* Library green */
  --blue: #4A6B82;              /* Muted blueprint blue */
  
  /* Board Likeness 5 Colors (Strictly according to spec) */
  --green: #1B7F4B;             /* Level 4: 짙은 녹색 */
  --lime: #A8D86E;              /* Level 3: 연두 */
  --white: #FFFFFF;             /* Level 2: 백색 (표시 없음) */
  --pink: #F5A3C7;              /* Level 1: 분홍 */
  --red: #E0443E;               /* Level 0: 홍색 */
  --oat: #EFE6D5;               /* 내 추천 도서 / 오트밀 */
  --claimed-bg: #E4E0D7;        /* 타인 확정 / 슬레이트 회색 */
  --claimed-ink: #656960;
  
  /* Layout & Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-card: 24px;
  --shadow-subtle: 0 2px 8px rgba(45, 35, 20, 0.04);
  --shadow-card: 0 4px 20px rgba(40, 30, 15, 0.07);
  --shadow-elevated: 0 12px 32px rgba(35, 25, 10, 0.12);
  
  /* Fonts */
  --font-serif: "Noto Serif KR", "MaruBuri", "Batang", Georgia, serif;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  
  font-family: var(--font-sans);
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--line) 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base interactive elements */
button, input, textarea {
  font: inherit;
}
a {
  color: inherit;
}
button, a, input, textarea {
  touch-action: manipulation;
}
button {
  min-height: 46px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 600;
  transition: all 0.15s ease;
}
button:hover:not(:disabled) {
  border-color: var(--accent);
  background: #FFF;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
input, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(158, 58, 36, 0.12);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

/* Site Header */
.site-header {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-symbol {
  font-size: 16px;
  color: var(--accent-gold);
}
.header-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  background: var(--bg-warm);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

/* Main Container */
main {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 120px;
}

/* Panels (Warm tactile cards) */
.panel {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}
@media (min-width: 600px) {
  .panel {
    padding: 34px 30px;
  }
}

/* Typography elements */
.serif-title {
  font-family: var(--font-serif);
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(26px, 5.5vw, 34px);
  line-height: 1.3;
  margin: 10px 0 16px;
  color: var(--ink);
}
h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 6px 0 14px;
}
h3 {
  font-size: 16px;
  margin: 14px 0 8px;
}
p {
  margin: 10px 0;
  color: var(--ink-soft);
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 6px;
}
.muted {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Buttons */
.primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(158, 58, 36, 0.2);
}
.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.danger {
  border-color: var(--red);
  color: #A12C26;
  background: #FFF5F4;
}
.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.actions > * {
  flex: 1;
  min-width: 120px;
}

/* Decorative Hero Motifs */
.book-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-warm);
  border: 1.5px solid var(--line-strong);
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 16px;
}
.facts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  margin: 20px 0;
  padding: 12px 14px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.facts span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--muted);
}

/* Notices & Alerts */
.notice {
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  margin: 14px 0;
  background: #F2F6F9;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
}
.warning {
  border-color: var(--accent);
  background: #FCF4F0;
  color: var(--accent);
}

/* Progress indicator */
.progress-container {
  margin-bottom: 16px;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress-row strong {
  color: var(--accent);
}
.progress-track {
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.25s ease;
}

/* Question Area */
.question-card {
  margin: 20px 0 26px;
  min-height: 90px;
}
.question-text {
  font-family: var(--font-serif);
  font-size: clamp(19px, 4.5vw, 22px);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 700;
  margin: 0;
}

/* Likert 5-point scale (Tactile circles / pills) */
.likert {
  display: grid;
  gap: 8px;
}
.answer {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: #FFFFFF;
  transition: all 0.15s ease;
  font-size: 15px;
}
.answer .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.answer[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(158, 58, 36, 0.25);
}
.answer[aria-pressed="true"] .num {
  background: rgba(255, 255, 255, 0.25);
  border-color: transparent;
  color: #FFFFFF;
}

/* Forced Choice (25~28) */
.choice {
  display: grid;
  gap: 12px;
}
.choice .answer {
  min-height: 84px;
  line-height: 1.5;
  padding: 16px 20px;
}

/* ==========================================================================
   Nano Banana Character Result Card (독서 장서표 / Ex Libris)
   ========================================================================== */
.result-card-panel {
  border: 2px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: -6px;
  padding: 30px 20px;
  background: var(--paper);
}
@media (min-width: 600px) {
  .result-card-panel {
    padding: 40px 36px;
  }
}

.card-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.user-greeting {
  font-size: 14px;
  color: var(--ink);
}
.user-greeting strong {
  color: var(--accent);
  font-size: 16px;
}

/* Nano Banana Character Stage */
.character-stage {
  text-align: center;
  margin: 10px 0 24px;
}
.character-pedestal {
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  background: radial-gradient(circle, #F8F4EC 0%, #EDE5D6 100%);
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.03), 0 6px 20px rgba(40, 30, 15, 0.06);
  padding: 14px;
  overflow: hidden;
}
.character-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(45, 35, 15, 0.14));
  transition: transform 0.3s ease;
}
.character-img:hover {
  transform: scale(1.03);
}

.character-badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.code-pill {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 20px;
}
.work-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-warm);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.card-title-group {
  text-align: center;
  margin: 18px 0 20px;
}
.type-name-hero {
  font-family: var(--font-serif);
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 900;
  color: var(--accent);
  margin: 4px 0 8px;
  letter-spacing: -0.03em;
}
.character-name-hero {
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
  margin: 0;
}

/* Card Narrative */
.card-narrative {
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 20px 0 28px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.02);
}
.card-narrative p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink);
  margin: 0;
  word-break: keep-all;
}

/* 4 Axes Section */
.axes-container {
  margin: 28px 0 24px;
  border-top: 1px dashed var(--line-strong);
  padding-top: 24px;
}
.section-subtitle {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-subtitle::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.axis {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.axis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.axis-score-badge {
  font-size: 12px;
  color: var(--accent);
  background: #FFFFFF;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.meter-wrapper {
  position: relative;
  width: 100%;
  height: 12px;
  background: #E8E0CF;
  border-radius: 6px;
  overflow: hidden;
  margin: 6px 0;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-gold) 100%);
  border-radius: 6px;
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
}
.axis-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Axis Insights List */
.axis-lines {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 10px;
}
.axis-lines li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}
.bullet-gem {
  color: var(--accent-gold);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Closing Recommendation Banner */
.closing-banner {
  background: #FDF9F2;
  border: 1.5px solid #E4D8C4;
  border-left: 4px solid var(--accent-gold);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  margin-top: 24px;
}
.closing-banner p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
}

/* My Recommended Books Section */
.own-books-card {
  background: var(--bg-warm);
}
.own-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  gap: 8px;
}
.own-list li {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.own-list li::before {
  content: "📖";
  font-size: 14px;
}

/* ==========================================================================
   The Honeycomb Book Board (책의 벌집 보드)
   ========================================================================== */
.board-section {
  margin-top: 36px;
}
.board-header-group {
  margin-bottom: 16px;
}
.board-header-group h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 6px;
}

.legend {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 24px;
  font-size: 12.5px;
}
.legend-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.legend-color {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.swatch {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.s4 { background: var(--green); }
.s3 { background: var(--lime); }
.s2 { background: var(--white); }
.s1 { background: var(--pink); }
.s0 { background: var(--red); }
.legend-text {
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.5;
}

/* 21 Honeycomb Cells Geometry */
.honey {
  --step: calc(100% / 5.5);
  padding: 10px 0 20px;
  width: 100%;
}
.honey-row {
  display: flex;
  gap: 0;
  width: 100%;
  margin-top: -12px;
}
.honey-row:nth-child(odd) {
  padding-left: calc(100% / 11);
}

.hex {
  position: relative;
  width: var(--step);
  flex-shrink: 0;
  height: auto;
  aspect-ratio: 0.92;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  min-height: 52px;
  isolation: isolate;
  transition: transform 0.18s ease;
}
.hex:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  z-index: 2;
}
.hex:before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -2;
  background: var(--line-strong);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.hex:after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  background: var(--cell, var(--white));
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.hex-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 10% 12%;
  height: 100%;
  color: var(--cell-ink, var(--ink));
  font-size: clamp(9px, 2.2vw, 12px);
  line-height: 1.25;
}
.hex-title {
  font-weight: 800;
  font-family: var(--font-serif);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.hex-author {
  font-size: 0.82em;
  color: var(--cell-ink, var(--muted));
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90%;
}
.hex-level {
  font-size: 0.78em;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  margin-top: 1px;
}

/* Cell Themes by Level */
.l4 { --cell: var(--green); --cell-ink: #FFFFFF; }
.l3 { --cell: var(--lime); --cell-ink: #1C2024; }
.l2 { --cell: var(--white); --cell-ink: #1C2024; }
.l1 { --cell: var(--pink); --cell-ink: #1C2024; }
.l0 { --cell: var(--red); --cell-ink: #FFFFFF; }

.hex.claimed {
  --cell: var(--claimed-bg);
  --cell-ink: var(--claimed-ink);
  opacity: 0.75;
}
.hex.mine {
  --cell: var(--oat);
  --cell-ink: var(--ink);
}
.hex.selected:before,
.hex.my-claim:before {
  background: var(--accent);
  inset: 0;
}
.hex.selected:after,
.hex.my-claim:after {
  inset: 4px;
}

/* Floating Bottom Action Bar */
.board-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-top: 1.5px solid var(--line-strong);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 -4px 20px rgba(40, 30, 15, 0.08);
}
.board-actions span {
  max-width: 360px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-actions button {
  flex-shrink: 0;
  padding: 10px 22px;
}

/* Dialog & Bottom Sheet */
dialog {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  background: var(--paper);
  color: var(--ink);
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: 85vh;
  overflow: auto;
  box-shadow: var(--shadow-elevated);
}
dialog::backdrop {
  background: rgba(28, 32, 36, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
dialog h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--accent);
  margin-top: 0;
}

/* Toast */
.toast {
  position: fixed;
  z-index: 50;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  background: #1C2024;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-elevated);
  animation: toastFade 0.2s ease;
}
@keyframes toastFade {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.error {
  color: #B3281E;
  font-size: 13.5px;
  font-weight: 600;
}

/* Spinner Loader */
.loader::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  vertical-align: middle;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .loader::after { animation: none; }
  .hex { transition: none; }
}

/* Responsive Overrides */
@media (min-width: 600px) {
  .likert {
    grid-template-columns: repeat(5, 1fr);
  }
  .likert .answer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 13.5px;
    min-height: 94px;
    padding: 14px 8px;
  }
  .hex-body {
    font-size: 13px;
  }
  .honey-row {
    margin-top: -18px;
  }
}

/* Semantic Differential (28 items situation & contrasting statements) */
.semantic-guide-text {
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.situation-box {
  margin-bottom: 18px;
}
.situation-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.situation-title {
  font-family: var(--font-serif);
  font-size: clamp(19px, 4.5vw, 22px);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.45;
}
.semantic-statements-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  margin: 20px 0 24px;
}
@media (max-width: 600px) {
  .semantic-statements-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .statement-vs {
    display: none;
  }
}
.statement-card {
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.2s ease;
  position: relative;
}
.statement-card.active {
  border-color: var(--accent);
  background: #FAF7F2;
  box-shadow: 0 4px 12px rgba(184, 80, 66, 0.08);
}
.statement-pill {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: var(--bg-warm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.statement-card.active .statement-pill {
  background: var(--accent);
  color: #FFFFFF;
}
.statement-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.statement-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  padding: 0 4px;
}
.semantic-steps-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 10px 0 24px;
}
@media (max-width: 550px) {
  .semantic-steps-container {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.step-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
@media (max-width: 550px) {
  .step-button {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 14px;
    gap: 12px;
    text-align: left;
  }
}
.step-button:hover {
  border-color: var(--ink);
  background: #FAF8F5;
}
.step-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #FFFFFF;
}
.step-button .step-num {
  font-size: 0.82rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--ink);
  margin-bottom: 6px;
}
@media (max-width: 550px) {
  .step-button .step-num {
    margin-bottom: 0;
  }
}
.step-button.active .step-num {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}
.step-button .step-label {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink-secondary);
  word-break: keep-all;
}
.step-button.active .step-label {
  color: #FFFFFF;
  font-weight: 600;
}

[hidden] {
  display: none !important;
}
