:root {
  --bg-page: #f6f5f0;
  --bg-surface: #ffffff;
  --bg-subtle: #efede6;
  --bg-tint-teal: #f0fdfa;

  --text-primary: #1c1e21;
  --text-secondary: #525860;
  --text-muted: #858b94;

  --border-color: #e4e2da;
  --border-strong: #cbc8bc;
  --border-subtle: #eceae2;

  --brand-primary: #0f766e;
  --brand-primary-hover: #115e59;
  --accent-primary: #0f766e;
  --accent-primary-soft: #f0fdfa;

  --accent-warm: #d95d39;
  --accent-warm-hover: #c2410c;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 8px rgba(28, 30, 33, 0.04);
  --shadow-float: 0 10px 26px rgba(28, 30, 33, 0.08);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.tiny-muted-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.anchor-target {
  scroll-margin-top: 118px;
}

/* Interactive Footnote Links & Tooltip */
.fn-link {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 3px;
  cursor: pointer;
  vertical-align: super;
  line-height: 1;
}

.fn-link:hover {
  color: var(--accent-warm);
}

.fn-tooltip {
  position: fixed;
  z-index: 9500;
  max-width: 320px;
  background: #1c1e21;
  color: #ffffff;
  font-size: 0.74rem;
  line-height: 1.45;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.fn-tooltip.visible {
  opacity: 1;
}

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  padding: 2px 4px;
  border-radius: 6px;
  transition: opacity 0.15s ease;
}

.brand-link:hover {
  opacity: 0.8;
}

.brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: var(--brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
}

.brand-name {
  font-weight: 800;
  font-size: 0.94rem;
}

.header-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Main Container */
.main-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 18px 56px;
  flex: 1;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.18s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   VIEW 1: START SCREEN
   ========================================== */
.start-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.start-title {
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 24px;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-warm);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  padding: 15px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn-primary-large:hover {
  background: var(--accent-warm-hover);
  transform: translateY(-1px);
}

.sample-header {
  margin-bottom: 10px;
}

.sample-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.sample-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sample-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: inherit;
}

.sample-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-float);
}

.sample-card-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-tint-teal);
  padding: 2px 8px;
  border-radius: 5px;
}

.sample-card-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sample-card-desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sample-card-cta {
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================
   VIEW 2: WIZARD
   ========================================== */
.wizard-container {
  max-width: 580px;
  margin: 0 auto;
}

.wizard-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.btn-text-nav {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-text-nav:hover {
  background: var(--bg-subtle);
}

.wizard-step-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-bar-track {
  height: 5px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand-primary);
  transition: width 0.2s ease;
}

.wizard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.wizard-question-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice-grid.cols-1 {
  grid-template-columns: 1fr;
}

.choice-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.choice-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.choice-btn:hover,
.choice-btn.selected {
  border-color: var(--brand-primary);
  background: var(--bg-tint-teal);
}

.wizard-income-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 12px;
}

.wizard-income-big {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--brand-primary);
  margin: 4px 0;
}

.range-slider {
  width: 100%;
  accent-color: var(--brand-primary);
  margin: 8px 0 4px;
  height: 6px;
  cursor: pointer;
}

/* ==========================================
   VIEW 3: STICKY STATUS BAR & COLLAPSIBLE FILTER
   ========================================== */
.sticky-status-wrapper {
  position: sticky;
  top: 48px;
  z-index: 35;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(28, 30, 33, 0.08);
}

.sticky-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sticky-current-values {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sticky-val-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sticky-val-pill:hover {
  border-color: var(--brand-primary);
  background: var(--bg-tint-teal);
}

.sticky-val-pill small {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.sticky-val-pill strong {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.sticky-val-pill.asset-pill strong {
  color: var(--accent-warm);
}

.pill-caret {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.sticky-cond-summary {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jump-nav-group {
  display: inline-flex;
  background: var(--bg-page);
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.btn-jump {
  background: none;
  border: none;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
}

.btn-jump.active,
.btn-jump:hover {
  background: var(--brand-primary);
  color: #fff;
}

.btn-toggle-filter {
  background: var(--bg-surface);
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-toggle-filter:hover {
  background: var(--bg-tint-teal);
}

/* Collapsible Filter Drawer inside Sticky Wrapper */
.collapsible-filter-drawer {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.collapsible-filter-drawer.open {
  display: block;
}

/* Top Drawer Sliders (Income & Financial Assets in Sticky Header) */
.top-drawer-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.drawer-slider-card {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.drawer-slider-card.highlight-focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

.drawer-slider-card.asset-theme .range-slider {
  accent-color: var(--accent-warm);
}

.drawer-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.drawer-slider-head label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.drawer-slider-val-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-slider-val-wrap strong {
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.control-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mode-switch-inline {
  display: inline-flex;
  background: var(--bg-page);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.mode-pill {
  background: none;
  border: none;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
}

.mode-pill.active {
  background: var(--brand-primary);
  color: #fff;
}

.btn-reset-filters {
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-reset-filters:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.filters-always-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.filter-cell label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.form-select-compact {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: inherit;
}

/* Self-employed Reference Banner */
.self-employed-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

/* Inline Slider Bar inside Income & Asset Cards */
.inline-slider-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.inline-slider-box.asset-slider-theme .range-slider {
  accent-color: var(--accent-warm);
}

.inline-slider-box.asset-slider-theme .inline-slider-big {
  color: var(--accent-warm);
}

.inline-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-slider-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
}

.inline-slider-val-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-slider-big {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.form-input-compact {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 0.8rem;
  width: 84px;
  text-align: right;
  font-weight: 700;
}

.tiny-unit {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Section Divider Banner */
.section-divider-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
}

.section-divider-banner::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

/* Result Cards */
.result-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.section-title-compact {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Headline Score Panels */
.headline-score-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.primary-score-panel {
  background: var(--bg-tint-teal);
  border: 1.5px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.score-panel-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.rank-big-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.rank-prefix {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.rank-huge {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1.05;
}

.rank-top-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.score-sub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.score-sub-badges strong {
  color: var(--text-primary);
}

.secondary-score-panel {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.secondary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
}

.secondary-row:last-child {
  border-bottom: none;
}

.secondary-row span {
  color: var(--text-secondary);
  white-space: nowrap;
}

.secondary-row strong {
  font-size: 0.84rem;
  text-align: right;
}

/* 2-Column Visual Charts */
.charts-two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.chart-col-main,
.chart-col-side {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 14px;
}

.mini-chart-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.chart-box {
  position: relative;
  height: 215px;
  width: 100%;
}

.doughnut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.doughnut-canvas-box {
  position: relative;
  width: 140px;
  height: 140px;
}

.doughnut-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  padding: 3px 6px;
  border-radius: 4px;
}

.legend-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

/* KPI Numbers & Overtake Cards */
.numbers-grid-3,
.overtake-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.num-box,
.overtake-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.num-box-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.num-box-val {
  font-size: 1.12rem;
  font-weight: 900;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.num-box-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.overtake-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.overtake-plus {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.overtake-Next {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-warm);
}

.overtake-main {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* Step-by-Step Bars */
.step-bars-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-bar-row {
  padding: 9px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 170px 1fr 185px;
  align-items: center;
  gap: 10px;
}

.step-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-bar-track {
  height: 7px;
  background: #dfddd4;
  border-radius: 999px;
  overflow: hidden;
}

.step-bar-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 999px;
}

.step-bar-meta {
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-align: right;
}

/* Tables & Global Chips */
.pref-compare-picker {
  min-width: 185px;
}

.global-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.chip-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 480px;
}

.clean-table th,
.clean-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.clean-table th {
  font-size: 0.71rem;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-page);
}

.clean-table tr.row-current {
  background: var(--bg-tint-teal);
  font-weight: 700;
}

/* Ad Slot */
.ad-slot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ad-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 1px 6px;
  border-radius: 4px;
}

.ad-text-wrap {
  flex: 1;
}

.ad-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.ad-btn {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* Bottom Return & Footnotes */
.bottom-actions-area {
  text-align: center;
  margin: 22px 0 18px;
}

.btn-return-start {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-return-start:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.footnotes-block {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footnote-item {
  padding: 4px 6px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.footnote-item.flash-highlight {
  background-color: #fef3c7;
  color: var(--text-primary);
}

/* Interstitial Modal */
.interstitial-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(28, 30, 33, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.interstitial-overlay.open,
.interstitial-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.interstitial-modal {
  max-width: 440px;
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.interstitial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.interstitial-close {
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.interstitial-body {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin-bottom: 14px;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================
   MOBILE RESPONSIVE (< 680px)
   ========================================== */
@media (max-width: 680px) {
  .main-container {
    padding: 12px 10px 44px;
  }

  .start-hero {
    padding: 28px 16px;
  }

  .btn-primary-large {
    width: 100%;
  }

  .sample-cards-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .choice-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .sticky-status-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sticky-actions {
    justify-content: space-between;
  }

  .top-drawer-sliders {
    grid-template-columns: 1fr;
  }

  .filters-always-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .headline-score-grid,
  .charts-two-col,
  .numbers-grid-3,
  .overtake-row-grid {
    grid-template-columns: 1fr;
  }

  .step-bar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .step-bar-meta {
    text-align: left;
  }

  .result-section-card {
    padding: 16px 12px;
  }
}
