/* ==========================================================================
   《셔터는 내렸지만 고지서는 온다》 — v6 Calm Paper + Impact Stylesheet
   Fable UX Blueprint · Calm 85% Warm Paper / Vivid 15% Impact Moments
   ========================================================================== */

:root {
  /* 바탕 · 면 (평소 85% 차분한 종이 장부) */
  --paper: #F5F2EB;
  --surface: #FFFFFF;
  --surface-sunk: #EFEBE2;
  --line: #E2DCCF;
  --line-strong: #CFC7B6;

  /* 글자 */
  --ink: #1E2925;
  --ink-sub: #5C6661;
  --ink-faint: #68716C;

  /* 단 하나의 행동색 */
  --action: #1F5C4A;
  --action-hover: #184A3B;
  --action-soft: #E6EFEA;

  /* 상태색: 숫자 · 얇은 선 · 막대에만 */
  --danger: #B3372F;
  --warn: #96600F;
  --good: #1F7A57;

  /* 임팩트 전용: 평소 화면 사용 금지 */
  --fx-night: #14110F;
  --fx-night-card: #1F1B18;
  --fx-night-line: #3A332C;
  --fx-night-ink: #F1EDE4;
  --fx-night-sub: #B5ADA0;
  --fx-gold: #C9A24D;
  --fx-gold-hi: #F0D58A;
  --fx-red: #D9382E;
  --fx-pink: #D9588A;

  --radius: 12px;
  --shadow-card: 0 1px 2px rgba(30, 41, 37, 0.06);
  --font-sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-serif: "Noto Serif KR", Georgia, serif;
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.35vw + 14.5px, 17.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.game-stage.is-desaturating {
  filter: grayscale(0.75);
  transition: filter 0.6s ease;
}

button, input, select { font-family: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: var(--action); }
.tabular-nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* ── Top Navigation Bar (Quiet Brand + Sound + Menu) ────────────────────── */
.game-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem clamp(1rem, 2vw, 1.75rem);
  background: rgba(245, 242, 235, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.game-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.game-brand__mark {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  padding: 0 0.42rem;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid var(--action);
  background: var(--surface);
  color: var(--action);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.82rem;
}
.game-brand__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.game-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.35rem 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.top-btn:hover { border-color: var(--action); background: var(--action-soft); }

.top-menu-wrap { position: relative; }
.top-menu-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  padding: 0.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(30, 41, 37, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 60;
}
.top-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.top-menu-item:hover { background: var(--surface-sunk); }

/* ── Main Container (Single-Column Calm Focus) ──────────────────────────── */
.game-stage {
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem clamp(0.9rem, 2vw, 1.5rem) 5.5rem;
}
.screen { display: none; }
.screen.is-active { display: block; animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── 3 Button Variants Only (Filled Primary · Outline · Text) ───────────── */
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.g-btn:hover:not(:disabled) { border-color: var(--action); background: var(--action-soft); }
.g-btn:disabled { opacity: 0.42; cursor: not-allowed; }

.g-btn--primary {
  border-color: var(--action);
  background: var(--action);
  color: var(--surface);
  font-weight: 700;
}
.g-btn--primary:hover:not(:disabled) {
  border-color: var(--action-hover);
  background: var(--action-hover);
  color: var(--surface);
}
.g-btn--text {
  min-height: 40px;
  padding: 0.4rem 0.5rem;
  border-color: transparent;
  background: transparent;
  color: var(--action);
  font-weight: 600;
}
.g-btn--text:hover:not(:disabled) {
  border-color: transparent;
  background: var(--action-soft);
}
.g-btn--sm { min-height: 38px; padding: 0.4rem 0.85rem; font-size: 0.84rem; }
.g-btn--lg { min-height: 52px; padding: 0.8rem 1.5rem; font-size: 1rem; }

/* ── Inline Glossary Term (Quiet Dotted Underline Only!) ────────────────── */
.tax-term {
  display: inline;
  padding: 0 0.06rem;
  margin: 0;
  border: none;
  border-bottom: 1.5px dotted var(--ink-sub);
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  cursor: pointer;
}
.tax-term:hover {
  color: var(--action);
  border-bottom-color: var(--action);
}
.tax-term__q { display: none; }

/* ==========================================================================
   SCREEN 1: CALM TITLE & 2-STEP SETUP
   ========================================================================== */
.title-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.15rem;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  background: var(--fx-night);
}
.title-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: brightness(0.45);
}
.title-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.25) 0%, rgba(20, 17, 15, 0.86) 100%);
}
.title-hero__content {
  position: relative;
  z-index: 2;
  padding: 1.35rem 1.5rem;
}
.title-meta {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--fx-night-sub);
}
.title-heading {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fx-night-ink);
}
.title-lead {
  margin: 0;
  font-size: 0.94rem;
  color: var(--fx-night-ink);
  opacity: 0.9;
}

.resume-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.15rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--action);
  box-shadow: var(--shadow-card);
}
.resume-strip__title { display: block; font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.resume-strip__info { font-size: 0.84rem; color: var(--ink-sub); }

.setup-section {
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.setup-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.setup-section__head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}
.setup-section__head span { font-size: 0.84rem; color: var(--ink-sub); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.ind-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.ind-card:hover { border-color: var(--action); }
.ind-card.is-selected {
  border: 2px solid var(--action);
  background: var(--action-soft);
}
.ind-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ind-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.ind-card__dots {
  font-size: 0.82rem;
  color: var(--ink-sub);
  white-space: nowrap;
}
.ind-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-sub);
}
.ind-card__detail {
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.ind-card__detail-row { color: var(--ink-sub); }
.ind-card__detail-row strong { color: var(--ink); font-weight: 600; }
.ind-card__trap {
  padding-left: 0.6rem;
  border-left: 3px solid var(--warn);
  color: var(--ink-sub);
  font-size: 0.82rem;
}

.boss-setup-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.85rem;
  align-items: end;
}
.gender-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.gender-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}
.gender-card:hover { border-color: var(--action); }
.gender-card.is-selected {
  border: 2px solid var(--action);
  background: var(--action-soft);
}
.gender-card__img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  flex: 0 0 auto;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-sub);
}
.g-input, .g-select {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.96rem;
}
.g-input:focus, .g-select:focus {
  outline: 2px solid var(--action);
  outline-offset: 1px;
  border-color: var(--action);
}

.setup-more {
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.setup-more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--action);
}
.setup-more summary::-webkit-details-marker { display: none; }
.setup-more__summary { color: var(--ink-sub); font-weight: 400; font-size: 0.84rem; }
.setup-more__body {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.85rem;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.mode-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.mode-card strong { font-size: 0.9rem; font-weight: 700; }
.mode-card span { font-size: 0.82rem; color: var(--ink-sub); }
.mode-card.is-selected {
  border: 2px solid var(--action);
  background: var(--action-soft);
}

.title-links-row {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}

.game-footer-note {
  margin: 0.5rem 0 1.2rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-align: center;
}

.title-start-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 0.75rem 1rem;
  background: rgba(245, 242, 235, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.title-start-bar__inner {
  max-width: 920px;
  margin: 0 auto;
}
.title-start-bar .g-btn { width: 100%; }

/* ==========================================================================
   SCREEN 2: SINGLE-COLUMN CALM PLAY STAGE
   ========================================================================== */
.status-row {
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 280px);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.05rem;
  margin-bottom: 0.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.status-date strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.status-date span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.status-cash {
  padding: 0 0.85rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.status-cash .lbl, .status-meter .lbl {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.status-cash strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.status-cash.is-negative strong { color: var(--danger); }
.status-cash .sub {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-sub);
}
.status-cash .sub.is-danger { color: var(--danger); }

.status-meters {
  display: grid;
  gap: 0.45rem;
}
.status-meter__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.status-meter__txt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-sub);
}
.status-meter__txt[data-level="danger"] { color: var(--danger); }
.status-meter__txt[data-level="warn"] { color: var(--warn); }

.meter {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-sunk);
  overflow: hidden;
  margin-top: 0.2rem;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--good);
  transition: width 0.25s ease;
}
.meter i[data-level="warn"] { background: var(--warn); }
.meter i[data-level="danger"] { background: var(--danger); }

/* Single-Line Next Tax Bar */
.next-tax {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  text-align: left;
}
.next-tax:hover { border-color: var(--action); }
.next-tax .lbl {
  font-size: 0.8rem;
  color: var(--ink-faint);
  flex: 0 0 auto;
}
.next-tax strong {
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}
.next-tax__when {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-sub);
  white-space: nowrap;
}
.next-tax.is-tax-month .next-tax__when { color: var(--warn); }
.next-tax__arrow { color: var(--ink-faint); font-size: 1.1rem; }

/* Live 2D Pixel Stage (Dark Window Framed Quietly on Paper) */
.live-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
  height: clamp(248px, 29vw, 320px);
  background: var(--fx-night);
  cursor: pointer;
  user-select: none;
}
.live-stage--audit {
  height: clamp(220px, 25vw, 265px);
  border-color: var(--fx-night-line);
  cursor: default;
}
.live-stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: brightness(0.76);
}
.live-stage__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.62) 0%, rgba(20, 17, 15, 0.12) 40%, rgba(20, 17, 15, 0.68) 100%);
  pointer-events: none;
}
.live-stage__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 0.65rem 1rem;
  pointer-events: none;
}
.live-stage__headline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: var(--fx-night-ink);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}
.live-stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

/* Comic Speech Bubbles Inside Stage */
.stage-bubbles {
  position: absolute;
  top: 15%;
  left: 3.5%;
  right: 3.5%;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  pointer-events: none;
}
.live-stage--audit .stage-bubbles { top: 6%; }
.stage-bubble {
  position: relative;
  max-width: min(46%, 350px);
  padding: 0.5rem 0.78rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  animation: fadeIn 0.2s ease-out;
}
.stage-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}
.stage-bubble--boss { margin-left: 10%; }
.stage-bubble--boss.is-solo { margin: 0 auto; }
.stage-bubble--boss::after { left: 26%; }
.stage-bubble--boss.is-solo::after { left: 48%; }
.stage-bubble--npc { margin-left: auto; margin-right: 4%; }
.stage-bubble--npc::after { right: 24%; }
.stage-bubble.is-danger { border-color: var(--fx-red); }
.stage-bubble.is-danger::after { border-right-color: var(--fx-red); border-bottom-color: var(--fx-red); }
.stage-bubble.is-pink { border-color: var(--fx-pink); }
.stage-bubble.is-pink::after { border-right-color: var(--fx-pink); border-bottom-color: var(--fx-pink); }
.stage-bubble__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-sub);
  margin-bottom: 0.08rem;
}
.stage-bubble.is-danger .stage-bubble__name { color: var(--danger); }
.stage-bubble.is-pink .stage-bubble__name { color: var(--fx-pink); }
.stage-bubble__text {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* ── Turn Card: THE SINGLE FOCUS ON SCREEN ──────────────────────────────── */
.turn-card {
  padding: 1.25rem;
  margin-bottom: 0.9rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.turn-card.is-bill { border-left: 3px solid var(--danger); }

.turn-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.turn-steps li {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--ink-faint);
}
.turn-steps li.is-done { color: var(--ink-sub); }
.turn-steps li.is-current {
  color: var(--action);
  font-weight: 700;
}

.turn-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}
.turn-card__meta {
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.turn-card__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.38;
}
.turn-card__amount {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--danger);
}
.turn-card__body {
  font-size: 0.95rem;
  color: var(--ink);
}
.turn-card__text {
  margin: 0 0 1rem;
  white-space: pre-line;
  color: var(--ink);
}

.turn-banner {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
}

/* Mentor 1-Line Tip (Quiet White Box, Left 3px Line) */
.mentor-tip-box {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--action);
  background: var(--surface);
}
.mentor-tip-box summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.mentor-tip-box summary::-webkit-details-marker { display: none; }
.mentor-tip__label { color: var(--action); font-weight: 700; }
.mentor-tip__toggle { color: var(--ink-faint); font-size: 0.82rem; white-space: nowrap; }
.mentor-tip__toggle::after { content: '더 보기'; }
.mentor-tip-box[open] .mentor-tip__toggle::after { content: '접기'; }
.mentor-tip-box__body {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-sub);
  line-height: 1.55;
}

/* Choices & Monthly Action Cards (Calm White, Min-Height 56px) */
.event-choices {
  display: grid;
  gap: 0.6rem;
}
.choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  min-height: 58px;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.choice-btn:hover { border-color: var(--action); background: var(--action-soft); }
.choice-btn__main { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.choice-btn__hint { font-size: 0.84rem; color: var(--ink-sub); }

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.action-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 76px;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.action-tile:hover:not(:disabled) { border-color: var(--action); background: var(--action-soft); }
.action-tile:disabled { opacity: 0.42; cursor: not-allowed; background: var(--surface-sunk); }
.action-tile__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}
.action-tile__tag { font-size: 0.8rem; font-weight: 400; color: var(--ink-faint); }
.action-tile__desc { font-size: 0.84rem; color: var(--ink-sub); }
.action-tile__num { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.15rem; }

.picks-dots {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--action);
}

/* Step C: 3-Line Practical Tax Lesson Inside Turn Card */
.bite-list {
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--action);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bite-list li { font-size: 0.9rem; color: var(--ink); }
.bite-list strong { color: var(--action); font-weight: 700; }

.bite-codex-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  color: var(--ink-sub);
}

/* Step E: Month Wrap Summary */
.wrap-summary {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--surface-sunk);
  font-size: 0.88rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.wrap-summary__sub { font-size: 0.84rem; color: var(--ink-sub); }

.turn-card__cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.turn-card__cta .g-btn { width: 100%; }

/* ── Quiet Bottom 5-Item Navigation Bar ─────────────────────────────────── */
.quiet-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.quiet-nav__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-height: 54px;
  padding: 0.35rem 0.25rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-sub);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.quiet-nav__btn:hover { background: var(--surface-sunk); color: var(--ink); }
.quiet-nav__ico { width: 20px; height: 20px; }
.nav-count {
  position: absolute;
  top: 5px;
  right: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-faint);
}
.nav-dot {
  position: absolute;
  top: 8px;
  right: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--action);
}

/* ==========================================================================
   SLIDE-OVER DRAWER (Right 500px Desktop / Bottom 88vh Mobile)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(20, 17, 15, 0.45);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(500px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(30, 41, 37, 0.14);
  animation: slideLeft 0.2s ease-out;
}
@keyframes slideLeft { from { transform: translateX(24px); opacity: 0.4; } to { transform: none; opacity: 1; } }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}

.drawer__tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.drawer-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-sub);
  font-size: 0.84rem;
  font-weight: 600;
}
.drawer-tab.is-active {
  border-color: var(--action);
  background: var(--action-soft);
  color: var(--action);
  font-weight: 700;
}

.drawer__body {
  padding: 1rem 1.15rem 2rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Drawer Shared Cards */
.d-card {
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.d-card--note { border-left: 3px solid var(--action); }
.d-card--warn { border-left: 3px solid var(--warn); }
.d-card--danger { border-left: 3px solid var(--danger); }
.d-card h4 {
  margin: 0 0 0.55rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.d-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--surface-sunk);
  font-size: 0.88rem;
  color: var(--ink-sub);
}
.d-kv:last-child { border-bottom: none; }
.d-kv strong { color: var(--ink); font-weight: 600; }
.d-kv strong.is-danger { color: var(--danger); }

.bank-balance {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.2rem 0 0.6rem;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.86rem;
}
.ledger-row__meta { font-size: 0.8rem; color: var(--ink-faint); }
.ledger-row__amt { font-weight: 700; white-space: nowrap; }
.ledger-row__amt.is-plus { color: var(--good); }
.ledger-row__amt.is-minus { color: var(--danger); }

/* Showroom & Mall Inside Drawer */
.showroom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.showroom-slot {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-sunk);
}
.showroom-slot__img { width: 100%; height: 76px; object-fit: cover; }
.showroom-slot__cap {
  padding: 0.35rem 0.55rem;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plate-green {
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  background: var(--action-soft);
  color: var(--action);
  font-size: 0.8rem;
  font-weight: 700;
}
.seizure-sticker {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 17, 15, 0.55);
}
.seizure-sticker span {
  transform: rotate(-10deg);
  padding: 0.2rem 0.6rem;
  border: 2px solid var(--fx-red);
  background: var(--fx-red);
  color: var(--surface);
  font-weight: 700;
  font-size: 0.82rem;
}

.mall-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.mall-list { display: grid; gap: 0.8rem; }
.item-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.item-card.is-owned { border-color: var(--action); }
.item-card__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.item-card__body { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.item-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.item-card__name { margin: 0; font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.item-card__price { font-size: 0.88rem; font-weight: 700; color: var(--action); white-space: nowrap; }
.item-card__buffs { font-size: 0.82rem; color: var(--ink-sub); }
.item-card__pitch { margin: 0; font-size: 0.86rem; color: var(--ink-sub); }
.item-card__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--ink);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: var(--surface-sunk);
}

/* Vault Docs, Chat, SNS, Calendar, Codex, Glossary */
.doc-card {
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--good);
}
.doc-card--bad { border-left-color: var(--danger); }
.doc-card--faded { border-left-color: var(--warn); }
.doc-card__type { font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); margin-bottom: 0.2rem; display: block; }
.doc-card__title { font-size: 0.92rem; font-weight: 700; color: var(--ink); margin-bottom: 0.15rem; }
.doc-card__detail { font-size: 0.84rem; color: var(--ink-sub); }

.chat-msg {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.chat-msg--me { background: var(--action-soft); border-color: var(--line); margin-left: 1.5rem; }
.chat-msg--danger { border-left: 3px solid var(--danger); }
.chat-msg__head { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 0.2rem; }
.chat-msg__body { font-size: 0.88rem; color: var(--ink); white-space: pre-line; }

.sns-post {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sns-post__img { width: 100%; height: 170px; object-fit: cover; }
.sns-post__inner { padding: 0.85rem 0.95rem; }
.sns-post__head { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 0.25rem; }
.sns-post__text { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--ink); }
.sns-post__likes { font-size: 0.82rem; font-weight: 600; color: var(--action); margin-bottom: 0.25rem; }
.sns-post__comments { font-size: 0.82rem; color: var(--ink-sub); padding-top: 0.35rem; border-top: 1px solid var(--surface-sunk); }

.cal-list { display: flex; flex-direction: column; gap: 0.5rem; }
.cal-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.cal-item:hover { border-color: var(--action); }
.cal-item.is-current { border: 2px solid var(--action); background: var(--action-soft); }
.cal-item--danger { border-left: 3px solid var(--danger); }
.cal-item--warn { border-left: 3px solid var(--warn); }
.cal-item--good { border-left: 3px solid var(--good); }
.cal-item__m { font-weight: 700; min-width: 40px; }
.cal-item__t { flex: 1; font-size: 0.88rem; }
.cal-item__tag { font-size: 0.82rem; color: var(--ink-sub); white-space: nowrap; }

.codex-list { display: flex; flex-direction: column; gap: 0.65rem; }
.codex-card {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.codex-card.is-highlighted { border: 2px solid var(--action); background: var(--action-soft); }
.codex-card.is-locked { background: var(--surface-sunk); }
.codex-card__meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-faint); }
.codex-card__title { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.codex-card__summary { margin: 0; font-size: 0.88rem; color: var(--ink); }
.codex-card__box {
  padding: 0.45rem 0.7rem;
  border-left: 3px solid var(--line-strong);
  font-size: 0.84rem;
  color: var(--ink-sub);
}
.codex-card__box--mistake { border-left-color: var(--danger); }
.codex-card__box--sol { border-left-color: var(--good); }
.codex-card__hint { font-size: 0.82rem; color: var(--ink-sub); }
.codex-card__link { font-size: 0.86rem; font-weight: 600; color: var(--action); text-decoration: none; }
.codex-card__link:hover { text-decoration: underline; }

.glossary-list { display: flex; flex-direction: column; gap: 0.4rem; }
.glossary-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}
.glossary-row:hover { border-color: var(--action); background: var(--action-soft); }

.feed-item {
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  font-size: 0.86rem;
  color: var(--ink);
}
.feed-item--good { border-left-color: var(--good); }
.feed-item--warn { border-left-color: var(--warn); }
.feed-item--danger { border-left-color: var(--danger); }

/* ==========================================================================
   SCREEN 3: TAX AUDIT (THE ONLY DARK SCREEN — body[data-theme="audit"])
   ========================================================================== */
body[data-theme="audit"] {
  --paper: #14110F;
  --surface: #1E1A17;
  --surface-sunk: #29241F;
  --line: #3A332C;
  --line-strong: #4F463D;
  --ink: #F1EDE4;
  --ink-sub: #B5ADA0;
  --ink-faint: #9E9689;
  --action: #379A74;
  --action-hover: #2E8262;
  --action-soft: rgba(55, 154, 116, 0.16);
  --danger: #EA645B;
}
body[data-theme="audit"] .game-topbar {
  background: rgba(20, 17, 15, 0.94);
}
body[data-theme="audit"] .stage-bubble,
body[data-theme="audit"] .stage-bubble__text {
  color: #1E2925;
}
body[data-theme="audit"] .stage-bubble__name {
  color: #5C6661;
}
body[data-theme="audit"] .stage-bubble.is-danger .stage-bubble__name {
  color: #B3372F;
}

.audit-shell {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.audit-sticky-head {
  position: sticky;
  top: 54px;
  z-index: 28;
  background: var(--paper);
  padding: 0.45rem 0 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.audit-kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-sub);
}
.audit-progress {
  margin: 0.1rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}
.audit-header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.audit-penalty { text-align: right; }
.audit-penalty .lbl { display: block; font-size: 0.8rem; color: var(--ink-sub); }
.audit-penalty strong { font-size: 1.15rem; font-weight: 700; color: var(--ink); }

.audit-timer {
  min-width: 78px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.audit-timer.is-critical {
  border-color: var(--danger);
  color: var(--danger);
}

.audit-timerbar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-sunk);
  overflow: hidden;
}
.audit-timerbar i {
  display: block;
  height: 100%;
  background: var(--ink-sub);
  transition: width 0.95s linear, background-color 0.2s;
}
.audit-timerbar i.is-critical { background: var(--danger); }

.audit-paper {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: #F5F2EB;
  color: #1E2925;
  border-left: 4px solid var(--fx-red);
  margin-bottom: 0.85rem;
}
.audit-paper h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #8C1F1A;
}
.audit-paper p { margin: 0; font-size: 0.95rem; }

.audit-stamp {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-weight: 700;
  font-size: 0.94rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  animation: stampSlam 0.2s ease-out;
}
.audit-stamp--ok { border-color: var(--action); color: var(--action); }
@keyframes stampSlam { from { transform: scale(1.7); opacity: 0; } to { transform: none; opacity: 1; } }

.audit-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.audit-check-row { display: flex; justify-content: space-between; gap: 0.5rem; }
.audit-check-row.is-ok { color: #7EE2B8; }
.audit-check-row.is-fail { color: #F5A39D; }

.audit-evidence-title {
  margin: 0 0 0.65rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}
.audit-evidence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.evidence-pick {
  text-align: left;
  min-height: 64px;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.evidence-pick:hover:not(:disabled) { border-color: var(--action); background: var(--action-soft); }
.evidence-pick:disabled { opacity: 0.4; cursor: not-allowed; }
.evidence-pick__tag { font-size: 0.8rem; color: var(--ink-sub); margin-bottom: 0.15rem; }
.evidence-pick__title { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.evidence-pick__desc { font-size: 0.82rem; color: var(--ink-sub); margin-top: 0.12rem; }

/* ==========================================================================
   SCREEN 4: ENDING & CALM PAPER REPORT
   ========================================================================== */
.ending-shell { display: flex; flex-direction: column; gap: 1rem; }

.ending-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  background: var(--fx-night);
}
.ending-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) grayscale(0.45);
}
.ending-hero--true .ending-hero__bg { filter: brightness(0.55); }
.ending-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.25) 0%, rgba(20, 17, 15, 0.88) 100%);
}
.ending-hero__content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}
.ending-code {
  display: block;
  font-size: 0.84rem;
  color: var(--fx-night-sub);
  margin-bottom: 0.35rem;
}
.ending-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 700;
  color: var(--fx-night-ink);
}
.ending-hero--true .ending-title { color: var(--fx-gold-hi); }
.ending-epilogue {
  margin: 0;
  font-size: 0.94rem;
  color: var(--fx-night-ink);
  opacity: 0.9;
  white-space: pre-line;
  max-width: 720px;
}

.autopsy-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.autopsy-kpi {
  padding: 0.95rem 1rem;
  border-right: 1px solid var(--line);
}
.autopsy-kpi:last-child { border-right: none; }
.autopsy-kpi span { display: block; font-size: 0.82rem; color: var(--ink-faint); }
.autopsy-kpi strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-top: 0.2rem; }
.autopsy-kpi--danger strong { color: var(--danger); }

.report-card {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.report-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}
.report-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.report-card__head h3 { margin: 0; }
.report-card--collapse summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
}
.report-card--collapse[open] summary { margin-bottom: 0.8rem; }

.mistake-item {
  padding: 0.75rem 0.95rem;
  border-left: 3px solid var(--danger);
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-sub);
}
.mistake-item:last-child { margin-bottom: 0; }
.mistake-item--ok { border-left-color: var(--good); }
.mistake-item strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }

.tomorrow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.tomorrow-card {
  padding: 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--action);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tomorrow-card__num { font-size: 0.8rem; font-weight: 700; color: var(--action); }
.tomorrow-card__title { margin: 0; font-size: 0.94rem; font-weight: 700; color: var(--ink); }
.tomorrow-card__desc { margin: 0; font-size: 0.86rem; color: var(--ink-sub); flex: 1; }

.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.55rem; }
.col-badge {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-sunk);
  font-size: 0.84rem;
}
.col-badge.is-unlocked { background: var(--surface); border-color: var(--action); }
.col-badge__title { font-weight: 700; color: var(--ink); margin-bottom: 0.15rem; }
.col-badge__desc { color: var(--ink-sub); font-size: 0.82rem; }

.inwoo-bridge {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--action);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.inwoo-bridge h3 { margin: 0 0 0.3rem; font-family: var(--font-serif); font-size: 1.08rem; color: var(--ink); }
.inwoo-bridge p { margin: 0; font-size: 0.9rem; color: var(--ink-sub); }
.inwoo-bridge__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* ==========================================================================
   VIVID IMPACT OVERLAY & MODALS (THE ONLY 15% DRAMATIC MOMENTS!)
   ========================================================================== */
.impact-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 17, 15, 0.84);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: blackout 0.28s ease-out;
}
@keyframes blackout { from { opacity: 0; } to { opacity: 1; } }

.impact-bill {
  width: min(92vw, 480px);
  padding: 1.75rem 1.65rem;
  border-radius: 10px;
  background: #F5F2EB;
  color: #1E2925;
  border-top: 6px solid var(--fx-red);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  text-align: center;
  animation: billDrop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes billDrop { from { transform: translateY(-48px) scale(0.95); opacity: 0; } to { transform: none; opacity: 1; } }
.impact-bill__agency { font-size: 0.84rem; font-weight: 700; color: #B3372F; letter-spacing: 0.06em; }
.impact-bill__title { margin: 0.4rem 0 0.9rem; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: #1E2925; }
.impact-bill__amt {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  color: #B3372F;
  margin: 0.2rem 0 0.85rem;
}
.impact-bill__stamp {
  display: inline-block;
  padding: 0.22rem 0.85rem;
  border: 2.5px solid #B3372F;
  color: #B3372F;
  font-weight: 700;
  font-size: 0.9rem;
  transform: rotate(-5deg);
  margin-bottom: 1.15rem;
  animation: stampSlam 0.22s ease-out 0.75s both;
}
.impact-bill .g-btn { width: 100%; }

.impact-audit-intro {
  text-align: center;
  color: var(--fx-night-ink);
  animation: fadeIn 0.25s ease-out;
}
.impact-audit-intro span {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: #EA645B;
  margin-bottom: 0.5rem;
}
.impact-audit-intro h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 17, 15, 0.58);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.is-open { display: flex; }
.modal-backdrop--sheet { align-items: flex-end; }

.modal-card {
  width: min(94vw, 560px);
  max-height: 86vh;
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 17, 15, 0.28);
}
.modal-card--sheet {
  width: min(100vw, 620px);
  border-radius: 16px 16px 0 0;
  animation: sheetUp 0.22s ease-out;
}
@keyframes sheetUp { from { transform: translateY(36px); opacity: 0.5; } to { transform: none; opacity: 1; } }

/* Showroom Unbox Impact Modal (Gold Reserved Strictly Here!) */
.modal-backdrop--showroom { background: rgba(20, 17, 15, 0.84); }
.modal-card--showroom {
  background: var(--fx-night-card);
  color: var(--fx-night-ink);
  border: 1px solid var(--fx-gold);
}
.modal-card--showroom .modal-card__img {
  animation: unboxZoom 0.45s ease-out;
}
@keyframes unboxZoom { from { transform: scale(0.92); opacity: 0.7; } to { transform: scale(1); opacity: 1; } }
.showroom-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fx-gold-hi);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.showroom-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--fx-night-ink);
}
.showroom-desc { margin: 0 0 0.7rem; font-size: 0.9rem; color: var(--fx-night-sub); }
.showroom-cost-note {
  margin: 0 0 0.95rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--fx-night-line);
  font-size: 0.84rem;
  color: var(--fx-night-sub);
}
.modal-card--showroom .g-btn--primary {
  background: var(--fx-gold);
  border-color: var(--fx-gold);
  color: var(--fx-night);
}
.modal-card--showroom .g-btn--primary:hover { background: var(--fx-gold-hi); }
.modal-card--showroom .g-btn:not(.g-btn--primary) {
  background: transparent;
  border-color: var(--fx-night-line);
  color: var(--fx-night-ink);
}

.modal-card--danger { border-top: 4px solid var(--fx-red); }
.modal-card__img { width: 100%; height: 220px; object-fit: cover; }
.modal-card__body { padding: 1.25rem 1.35rem; }

/* Shutter Drop Animation */
.shutter-curtain {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: repeating-linear-gradient(180deg, #272B2A 0px, #272B2A 26px, #1B1F1E 26px, #1B1F1E 30px);
  transform: translateY(-105%);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.shutter-curtain.is-down { transform: translateY(0); }
.shutter-sign {
  padding: 1.4rem 2rem;
  background: #F5F2EB;
  color: #1E2925;
  border: 3px solid var(--fx-red);
  max-width: 480px;
  text-align: center;
}
.shutter-sign h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  color: var(--fx-red);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
}
.shutter-sign p { margin: 0; font-weight: 600; font-size: 0.94rem; }

/* ==========================================================================
   RESPONSIVE (Mobile <= 820px)
   ========================================================================== */
@media (max-width: 820px) {
  .game-topbar { padding: 0.55rem 0.9rem; }
  .game-brand__title { font-size: 0.9rem; }
  .game-stage { padding: 0.75rem 0.85rem 6rem; }

  .industry-grid, .boss-setup-row, .mode-grid, .actions-grid, .audit-evidence-list, .tomorrow-grid {
    grid-template-columns: 1fr;
  }
  .autopsy-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .autopsy-kpi { border-bottom: 1px solid var(--line); }

  .status-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
  }
  .status-cash {
    padding: 0;
    border: none;
    text-align: right;
  }
  .status-meters {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
  }

  .live-stage { height: 268px; }
  .live-stage--audit { height: 230px; }
  .stage-bubbles { top: 15%; left: 2.5%; right: 2.5%; gap: 0.4rem; }
  .stage-bubble { max-width: 49%; padding: 0.4rem 0.55rem; }
  .stage-bubble--boss { margin-left: 0; }
  .stage-bubble--npc { margin-right: 0; }
  .stage-bubble__text { font-size: 0.8rem; }

  .quiet-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 0.25rem 0.35rem;
  }
  .quiet-nav__btn { min-height: 52px; }

  .drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 88vh;
    border-left: none;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    animation: sheetUp 0.22s ease-out;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
