/* ==========================================================================
   青椒模拟器 · 高校六年非升即走实景闯关
   Visual Identity: Warm Ivory Academic Dossier, Semester Calendar & Seal
   Mobile-First (390x844) + Desktop Responsive
   ========================================================================== */

:root {
  --bg-linen: #f2ece1;
  --bg-linen-deep: #e8dfd0;
  --paper-ivory: #fffdf8;
  --paper-warm: #faf5ea;
  --paper-tint: #f5ede0;
  --ink-primary: #1e1a16;
  --ink-body: #302a24;
  --ink-secondary: #5c5247;
  --ink-muted: #84786a;
  --seal-burgundy: #8b1e24;
  --seal-burgundy-dark: #6b1419;
  --seal-burgundy-soft: #fdf2f2;
  --seal-border: #d9a3a6;
  --brass-ochre: #9c6f2d;
  --brass-light: #e5d2b0;
  --rule-border: #dcd1bf;
  --rule-strong: #c5b69e;

  --emerald-pos: #157347;
  --emerald-bg: #eaf7f0;
  --emerald-border: #8ad0ae;

  --amber-warn: #b35c09;
  --amber-bg: #fef6ea;
  --amber-border: #efc484;

  --vermilion-trap: #be3818;
  --vermilion-bg: #fdf0ec;
  --vermilion-border: #eea896;

  --crimson-fatal: #9c1920;
  --crimson-bg: #fdebed;
  --crimson-border: #e6959b;

  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;

  --shadow-dossier: 0 10px 28px rgba(42, 30, 18, 0.08), 0 2px 6px rgba(42, 30, 18, 0.05);
  --radius-card: 14px;
  --radius-sm: 9px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-linen);
  background-image:
    radial-gradient(rgba(156, 111, 45, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #f5efe5 0%, #ede4d4 100%);
  background-size: 20px 20px, 100% 100%;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.sim-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 14px 42px;
}

.screen-view {
  animation: fadeSlideIn 0.28s ease-out;
}

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

/* ==================== TOP ARCHIVAL BAR ==================== */
.dossier-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 4px 2px;
}

.dossier-serial {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.dossier-serial::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--seal-burgundy);
  box-shadow: 0 0 0 3px rgba(139, 30, 36, 0.14);
  flex-shrink: 0;
}

.bgm-btn {
  appearance: none;
  border: 1px solid var(--rule-strong);
  background: var(--paper-ivory);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.bgm-btn:hover {
  border-color: var(--seal-burgundy);
  color: var(--seal-burgundy);
}

.bgm-btn[aria-pressed="true"] {
  background: var(--seal-burgundy-soft);
  border-color: var(--seal-burgundy);
  color: var(--seal-burgundy);
}

.bgm-btn-sm {
  padding: 3px 9px;
  font-size: 11.5px;
}

/* ==================== DOSSIER CARD BASE ==================== */
.dossier-card {
  background: var(--paper-ivory);
  border: 1px solid var(--rule-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dossier);
  position: relative;
  overflow: hidden;
}

.dossier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--seal-burgundy) 0%, var(--brass-ochre) 52%, var(--seal-burgundy) 100%);
}

/* ==================== SCREEN 1: START / LANDING ==================== */
.start-card {
  padding-bottom: 6px;
}

.hero-visual-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  background: #e6dccb;
  border-bottom: 1px solid var(--rule-border);
  overflow: hidden;
}

.hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-badge-row {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.hero-seal-chip {
  background: var(--seal-burgundy);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.hero-mode-chip {
  background: rgba(30, 26, 22, 0.82);
  color: #f9f3e8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.start-body {
  padding: 18px 18px 16px;
}

.hero-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: 0.01em;
}

.hero-subtitle {
  margin: 0 0 13px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-body);
}

.start-roadmap-box {
  background: #f8f2e6;
  border: 1px solid var(--rule-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.start-roadmap-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--brass-ochre);
  margin-bottom: 6px;
}

.start-roadmap-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 5px;
  font-size: 12px;
}

.sr-step {
  background: var(--paper-ivory);
  border: 1px solid var(--brass-light);
  color: var(--ink-primary);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.sr-arrow {
  color: var(--ink-muted);
  font-size: 11px;
}

.rules-card {
  background: var(--paper-warm);
  border: 1px solid var(--brass-light);
  border-left: 4px solid var(--seal-burgundy);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  margin-bottom: 18px;
}

.rules-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--seal-burgundy);
  margin-bottom: 6px;
}

.rules-seal-dot {
  width: 8px;
  height: 8px;
  background: var(--seal-burgundy);
  transform: rotate(45deg);
  display: inline-block;
}

.rules-exact-text {
  margin: 0 0 11px;
  font-size: 13px;
  line-height: 1.68;
  color: var(--ink-body);
}

.rules-ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ladder-step {
  background: var(--paper-ivory);
  border: 1px solid var(--rule-border);
  border-radius: 7px;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ladder-step strong {
  font-size: 12.5px;
  font-weight: 800;
}

.ladder-step span {
  font-size: 11px;
  color: var(--ink-secondary);
}

.step-warn strong {
  color: var(--crimson-fatal);
}

.step-assoc strong {
  color: var(--brass-ochre);
}

.step-prof strong {
  color: var(--emerald-pos);
}

.step-dean strong {
  color: var(--seal-burgundy);
}

.primary-cta-btn {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #9d2229 0%, #73151a 100%);
  color: #fffdf8;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 15px 18px;
  box-shadow: 0 6px 18px rgba(139, 30, 36, 0.28);
  transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.primary-cta-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(139, 30, 36, 0.34);
}

.primary-cta-btn:active {
  transform: translateY(1px) scale(0.995);
}

.start-footnote {
  margin: 10px 0 2px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==================== SCREEN 2: STICKY HUD & CAREER ROADMAP ==================== */
.game-hud {
  position: sticky;
  top: 6px;
  z-index: 30;
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 8px 11px 8px;
  margin-bottom: 11px;
  box-shadow: 0 6px 20px rgba(38, 28, 16, 0.1);
}

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

.hud-stage-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.hud-stage-num {
  background: var(--ink-primary);
  color: #fffdf8;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.hud-month-pill {
  background: var(--seal-burgundy-soft);
  border: 1px solid var(--seal-border);
  color: var(--seal-burgundy);
  font-size: 11.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-tenure-phase {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5-Era《硕博模拟器》Roadmap Stepper */
.hud-career-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  background: var(--paper-warm);
  border: 1px solid var(--rule-border);
  border-radius: 8px;
  padding: 5px 5px;
  margin-bottom: 7px;
}

.roadmap-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 2px;
  border-radius: 6px;
  text-align: center;
  min-width: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.rm-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e4dac8;
  color: var(--ink-secondary);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rm-label {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.roadmap-node.is-done .rm-dot {
  background: var(--emerald-pos);
  color: #ffffff;
}

.roadmap-node.is-done .rm-label {
  color: var(--emerald-pos);
}

.roadmap-node.is-current {
  background: var(--seal-burgundy-soft);
  box-shadow: inset 0 0 0 1px var(--seal-border);
}

.roadmap-node.is-current .rm-dot {
  background: var(--seal-burgundy);
  color: #fffdf8;
}

.roadmap-node.is-current .rm-label {
  color: var(--seal-burgundy);
  font-weight: 800;
}

.hud-row-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.hud-rank-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.hud-rank-pill.band-danger {
  background: var(--crimson-bg);
  color: var(--crimson-fatal);
  border-color: var(--crimson-border);
}

.hud-rank-pill.band-assoc {
  background: #f8f1e3;
  color: #84591c;
  border-color: #dec499;
}

.hud-rank-pill.band-prof {
  background: var(--emerald-bg);
  color: var(--emerald-pos);
  border-color: var(--emerald-border);
}

.hud-rank-pill.band-dean {
  background: var(--seal-burgundy-soft);
  color: var(--seal-burgundy);
  border-color: var(--seal-border);
}

.hud-score-box {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 13px;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.hud-score-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink-primary);
  line-height: 1;
  display: inline-block;
  transition: transform 0.22s ease, color 0.22s ease;
}

.hud-score-val.pulse-up {
  color: var(--emerald-pos);
  transform: scale(1.18);
}

.hud-score-val.pulse-down {
  color: var(--crimson-fatal);
  transform: scale(1.18);
}

.hud-delta-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
  margin-left: 3px;
}

.hud-delta-pill.is-plus {
  background: var(--emerald-bg);
  color: var(--emerald-pos);
}

.hud-delta-pill.is-minus {
  background: var(--crimson-bg);
  color: var(--crimson-fatal);
}

/* Score Meter (0..160) */
.hud-meter-wrap {
  width: 100%;
}

.hud-meter-track {
  position: relative;
  height: 7px;
  background: #e9e0d1;
  border-radius: 999px;
  overflow: hidden;
}

.hud-meter-fill {
  height: 100%;
  width: 37.5%;
  background: linear-gradient(90deg, #b88232 0%, #157347 100%);
  border-radius: 999px;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.hud-meter-fill.meter-danger {
  background: linear-gradient(90deg, #c92a2a 0%, #e05638 100%);
}

.hud-meter-fill.meter-assoc {
  background: linear-gradient(90deg, #b57c29 0%, #2b8a57 100%);
}

.hud-meter-fill.meter-prof {
  background: linear-gradient(90deg, #1b8050 0%, #11613b 100%);
}

.hud-meter-fill.meter-dean {
  background: linear-gradient(90deg, #8b1e24 0%, #c28b2c 100%);
}

.meter-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(30, 26, 22, 0.42);
  z-index: 2;
}

.tick-60 {
  left: 37.5%;
}

.tick-95 {
  left: 59.375%;
}

.tick-130 {
  left: 81.25%;
}

.hud-meter-marks {
  position: relative;
  height: 14px;
  margin-top: 3px;
  font-size: 10px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.mark-item {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.pos-0 {
  left: 0;
}

.pos-60 {
  left: 37.5%;
  transform: translateX(-50%);
}

.pos-95 {
  left: 59.375%;
  transform: translateX(-50%);
}

.pos-130 {
  left: 81.25%;
  transform: translateX(-50%);
}

/* ==================== STAGE CARD, STORY BRIDGE & QUESTION ==================== */
.stage-card {
  padding: 15px 15px 18px;
}

.stage-card.shake-card {
  animation: dossierShake 0.38s ease;
}

@keyframes dossierShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
  88% { transform: translateX(2px); }
}

.chapter-milestone-bar {
  background: linear-gradient(90deg, #8b1e24 0%, #6b1419 100%);
  color: #fffdf8;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 11px;
  border-radius: 8px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  animation: fadeSlideIn 0.3s ease-out;
}

/* 聘期时光纪事 (Semester Story Bridge) */
.q-bridge-box {
  background: linear-gradient(180deg, #fbf4e4 0%, #f7edd8 100%);
  border: 1px solid var(--brass-light);
  border-left: 4px solid var(--brass-ochre);
  border-radius: 9px;
  padding: 9px 12px 10px;
  margin-bottom: 12px;
}

.bridge-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.bridge-eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--brass-ochre);
  letter-spacing: 0.03em;
}

.bridge-time-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--seal-burgundy);
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid var(--brass-light);
  padding: 1px 7px;
  border-radius: 999px;
}

.bridge-text-body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.66;
  color: #3d3328;
  font-weight: 600;
}

.stage-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 11px;
}

.q-stage-badge {
  background: var(--seal-burgundy);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
}

.q-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 800;
  color: var(--ink-primary);
}

.scene-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: #e6dccb;
  margin-bottom: 13px;
}

.q-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-score-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  animation: popBadge 0.34s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 5;
}

@keyframes popBadge {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.78);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-score-badge.badge-plus {
  background: #136f44;
  color: #ffffff;
  border: 2px solid #a3ecc6;
}

.floating-score-badge.badge-amber {
  background: #b55a08;
  color: #ffffff;
  border: 2px solid #fbd39b;
}

.floating-score-badge.badge-vermilion {
  background: #b83214;
  color: #ffffff;
  border: 2px solid #f7b6a6;
}

.floating-score-badge.badge-crimson {
  background: #96161d;
  color: #ffffff;
  border: 2px solid #f5a3a9;
}

.q-scenario {
  background: var(--paper-warm);
  border: 1px solid var(--rule-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-body);
  margin-bottom: 14px;
}

.options-prompt-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 9px;
}

.prompt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass-ochre);
}

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

.option-btn {
  width: 100%;
  text-align: left;
  appearance: none;
  background: var(--paper-ivory);
  border: 1.5px solid var(--rule-strong);
  border-radius: 11px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-primary);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--seal-burgundy);
  background: #fffaf2;
  box-shadow: 0 3px 10px rgba(139, 30, 36, 0.08);
}

.option-btn:active:not(:disabled) {
  transform: scale(0.995);
}

.option-btn:disabled {
  cursor: default;
}

.option-key-pill {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--paper-tint);
  border: 1px solid var(--rule-strong);
  color: var(--seal-burgundy);
  font-weight: 800;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.option-text-body {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-body);
}

.option-btn.is-dimmed {
  opacity: 0.56;
  background: #f7f3eb;
}

.option-btn.chosen-plus {
  background: var(--emerald-bg);
  border-color: var(--emerald-pos);
  box-shadow: 0 3px 12px rgba(21, 115, 71, 0.14);
}

.option-btn.chosen-plus .option-key-pill {
  background: var(--emerald-pos);
  border-color: var(--emerald-pos);
  color: #ffffff;
}

.option-btn.chosen-minus-mild {
  background: var(--amber-bg);
  border-color: var(--amber-warn);
}

.option-btn.chosen-minus-mild .option-key-pill {
  background: var(--amber-warn);
  border-color: var(--amber-warn);
  color: #ffffff;
}

.option-btn.chosen-minus-mid {
  background: var(--vermilion-bg);
  border-color: var(--vermilion-trap);
}

.option-btn.chosen-minus-mid .option-key-pill {
  background: var(--vermilion-trap);
  border-color: var(--vermilion-trap);
  color: #ffffff;
}

.option-btn.chosen-minus-fatal {
  background: var(--crimson-bg);
  border-color: var(--crimson-fatal);
}

.option-btn.chosen-minus-fatal .option-key-pill {
  background: var(--crimson-fatal);
  border-color: var(--crimson-fatal);
  color: #ffffff;
}

/* ==================== IMMEDIATE FEEDBACK CARD ==================== */
.feedback-card {
  margin-top: 14px;
  border-radius: 12px;
  padding: 14px 14px 15px;
  border: 1.5px solid var(--rule-strong);
  background: #fdf9f1;
  animation: fadeSlideIn 0.24s ease-out;
}

.feedback-card.fb-plus {
  border-color: var(--emerald-border);
  background: #f3fbf7;
}

.feedback-card.fb-minus {
  border-color: var(--crimson-border);
  background: #fff6f6;
}

.feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.feedback-title-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: 0.02em;
}

.feedback-delta-badge {
  font-size: 13px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.feedback-delta-badge.delta-plus {
  background: var(--emerald-pos);
  color: #ffffff;
}

.feedback-delta-badge.delta-amber {
  background: var(--amber-warn);
  color: #ffffff;
}

.feedback-delta-badge.delta-vermilion {
  background: var(--vermilion-trap);
  color: #ffffff;
}

.feedback-delta-badge.delta-crimson {
  background: var(--crimson-fatal);
  color: #ffffff;
}

.feedback-reaction {
  margin: 0 0 11px;
  font-size: 15px;
  line-height: 1.72;
  font-weight: 600;
  color: var(--ink-primary);
}

.feedback-hook {
  background: rgba(139, 30, 36, 0.06);
  border: 1px dashed rgba(139, 30, 36, 0.34);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12.8px;
  line-height: 1.62;
  color: var(--seal-burgundy-dark);
  margin-bottom: 13px;
}

.next-stage-btn {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 10px;
  background: var(--ink-primary);
  color: #fffdf8;
  font-size: 15.5px;
  font-weight: 800;
  padding: 13px 16px;
  transition: background 0.16s ease, transform 0.12s ease;
}

.next-stage-btn:hover {
  background: var(--seal-burgundy);
}

.next-stage-btn.is-early-stop {
  background: var(--crimson-fatal);
}

/* ==================== SCREEN 3: FINAL VERDICT ==================== */
.verdict-card {
  padding: 18px 16px 18px;
  margin-bottom: 14px;
}

.verdict-eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brass-ochre);
  margin-bottom: 6px;
}

.verdict-stamp-heading {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.38;
  font-weight: 900;
  color: var(--seal-burgundy);
}

.verdict-core-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--paper-warm);
  border: 1px solid var(--brass-light);
  border-radius: 11px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.verdict-score-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.verdict-score-label {
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 600;
}

.verdict-score-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.verdict-score-number strong {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.verdict-score-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.verdict-rank-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--seal-burgundy);
}

.verdict-official-seal {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid rgba(168, 28, 36, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(168, 28, 36, 0.9);
  transform: rotate(-12deg);
  flex-shrink: 0;
  background: radial-gradient(circle, rgba(168, 28, 36, 0.05) 0%, transparent 72%);
  animation: stampSlam 0.36s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes stampSlam {
  from {
    opacity: 0;
    transform: rotate(-22deg) scale(1.45);
  }
  to {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
}

.seal-inner-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px dashed rgba(168, 28, 36, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}

.seal-top-arc,
.seal-bot-arc {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.seal-center-word {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 900;
  margin: 2px 0;
  letter-spacing: 0.05em;
}

.verdict-stats-bar {
  background: var(--paper-tint);
  border: 1px solid var(--rule-border);
  border-radius: 8px;
  padding: 9px 12px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.verdict-diagnosis-text {
  margin: 0 0 15px;
  font-size: 14.5px;
  line-height: 1.74;
  color: var(--ink-body);
}

.verdict-share-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poster-cta-btn {
  width: 100%;
  appearance: none;
  border: 1.5px solid var(--brass-ochre);
  border-radius: 11px;
  background: linear-gradient(135deg, #fdf5e4 0%, #f5e3be 100%);
  color: #5c3909;
  font-size: 15.5px;
  font-weight: 800;
  padding: 13px 16px;
  box-shadow: 0 4px 12px rgba(156, 111, 45, 0.16);
  transition: filter 0.16s ease, transform 0.12s ease;
}

.poster-cta-btn:hover {
  filter: brightness(0.98);
}

/* ==================== PITFALL DOSSIER LIST ==================== */
.pitfall-dossier {
  padding: 16px 15px 18px;
  margin-bottom: 14px;
}

.pitfall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.pitfall-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-primary);
}

.pitfall-count-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--crimson-bg);
  color: var(--crimson-fatal);
  border: 1px solid var(--crimson-border);
  white-space: nowrap;
}

.pitfall-count-pill.is-perfect {
  background: var(--emerald-bg);
  color: var(--emerald-pos);
  border-color: var(--emerald-border);
}

.pitfall-intro {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.pitfall-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pitfall-item {
  background: var(--paper-warm);
  border: 1px solid var(--rule-border);
  border-left: 4px solid var(--crimson-fatal);
  border-radius: 10px;
  padding: 11px 12px;
}

.pitfall-item.severity-6 {
  border-left-color: var(--vermilion-trap);
}

.pitfall-item.severity-3 {
  border-left-color: var(--amber-warn);
}

.pitfall-item.severity-preview {
  border-left-color: var(--brass-ochre);
}

.pitfall-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.pitfall-stage-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.pitfall-deduct-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--crimson-bg);
  color: var(--crimson-fatal);
  white-space: nowrap;
}

.pitfall-item.severity-6 .pitfall-deduct-pill {
  background: var(--vermilion-bg);
  color: var(--vermilion-trap);
}

.pitfall-item.severity-3 .pitfall-deduct-pill {
  background: var(--amber-bg);
  color: var(--amber-warn);
}

.pitfall-q-title {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink-primary);
}

.pitfall-choice-line {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.pitfall-reaction-line {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-body);
}

.pitfall-pointer-bar {
  background: #fffdf8;
  border: 1px dashed var(--brass-ochre);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--seal-burgundy);
}

/* ==================== DUAL-CHANNEL CONVERSION CARD ==================== */
.conversion-card {
  padding: 18px 15px 18px;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf3e4 100%);
  border-color: var(--brass-ochre);
}

.conversion-ribbon {
  display: inline-block;
  background: var(--seal-burgundy);
  color: #fffdf8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 9px;
}

.conversion-headline {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 18.5px;
  line-height: 1.42;
  font-weight: 900;
  color: var(--ink-primary);
}

.conversion-subhead {
  margin: 0 0 13px;
  font-size: 13.8px;
  line-height: 1.68;
  color: var(--ink-body);
}

.channel-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.channel-box {
  background: #fffdf8;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 11px 12px;
}

.channel-xhs {
  border-left: 4px solid #d9273a;
}

.channel-xianyu {
  border-left: 4px solid #e08b00;
}

.channel-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.tag-xhs {
  background: #fdecef;
  color: #c41d30;
}

.tag-xianyu {
  background: #fff5df;
  color: #9e6000;
}

.channel-desc {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.68;
  color: var(--ink-body);
}

.search-kw {
  background: #fff0c2;
  color: var(--seal-burgundy-dark);
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #e6c677;
}

.conversion-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copy-kw-btn {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #9d2229 0%, #73151a 100%);
  color: #fffdf8;
  font-size: 15.5px;
  font-weight: 800;
  padding: 14px 16px;
  box-shadow: 0 6px 16px rgba(139, 30, 36, 0.25);
  transition: filter 0.16s ease, transform 0.12s ease;
}

.copy-kw-btn:hover {
  filter: brightness(1.05);
}

.restart-game-btn {
  width: 100%;
  appearance: none;
  border: 1.5px solid var(--rule-strong);
  border-radius: 11px;
  background: var(--paper-ivory);
  color: var(--ink-primary);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 16px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.restart-game-btn:hover {
  border-color: var(--seal-burgundy);
  color: var(--seal-burgundy);
}

/* ==================== POSTER CERTIFICATE MODAL ==================== */
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.poster-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 10, 0.72);
  backdrop-filter: blur(4px);
}

.poster-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper-ivory);
  border: 1px solid var(--brass-light);
  border-radius: 14px;
  padding: 13px 13px 15px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.poster-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.poster-modal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink-primary);
}

.poster-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--paper-warm);
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-canvas-holder {
  width: 100%;
  background: #ebe2d3;
  border: 1px solid var(--rule-border);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 8px;
}

.poster-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

.poster-hint-text {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-secondary);
}

.poster-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-poster-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  background: var(--seal-burgundy);
  color: #fffdf8;
  font-size: 14.5px;
  font-weight: 800;
  padding: 12px 14px;
}

.modal-copy-kw-btn {
  width: 100%;
  appearance: none;
  border: 1px solid var(--brass-ochre);
  border-radius: 10px;
  background: #fdf4e3;
  color: #5c3909;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 14px;
}

/* ==================== TOAST BANNER ==================== */
.sim-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 150;
  max-width: 92vw;
  background: rgba(30, 26, 22, 0.94);
  color: #fffdf8;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  text-align: center;
}

/* ==================== MOBILE COMPACT TUNING (<= 768px) ==================== */
@media (max-width: 768px) {
  .sim-shell {
    padding: 8px 8px 34px;
  }

  .start-body {
    padding: 14px 12px 14px;
  }

  .hero-title {
    font-size: 20px;
  }

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

  .game-hud {
    top: 4px;
    padding: 7px 9px 7px;
  }

  .hud-career-roadmap {
    gap: 2px;
    padding: 4px 3px;
  }

  .rm-label {
    font-size: 9.8px;
  }

  .stage-card {
    padding: 12px 11px 14px;
  }

  .q-bridge-box {
    padding: 8px 10px 9px;
  }

  .bridge-text-body {
    font-size: 13.2px;
  }

  .q-title {
    font-size: 16.5px;
  }

  .q-scenario {
    padding: 10px 11px;
    font-size: 14.5px;
  }

  .option-btn {
    padding: 10px 11px;
    gap: 8px;
  }

  .option-text-body {
    font-size: 14px;
  }

  .verdict-card,
  .pitfall-dossier,
  .conversion-card {
    padding: 14px 12px 15px;
  }

  .verdict-stamp-heading {
    font-size: 18.5px;
  }

  .verdict-score-number strong {
    font-size: 34px;
  }

  .verdict-official-seal {
    width: 82px;
    height: 82px;
  }

  .seal-inner-ring {
    width: 70px;
    height: 70px;
  }
}
