:root {
  --ink: #1b1a17;
  --muted: #625c51;
  --paper: rgba(255, 248, 238, 0.84);
  --paper-strong: #fff8ef;
  --line: rgba(27, 26, 23, 0.1);
  --line-strong: rgba(27, 26, 23, 0.18);
  --brick: #a33c2f;
  --sea: #0d6c67;
  --gold: #d4a243;
  --berry: #a22757;
  --violet: #5f3dc4;
  --shadow: 0 28px 70px rgba(53, 34, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(163, 60, 47, 0.2), transparent 24%),
    radial-gradient(circle at top right, rgba(13, 108, 103, 0.16), transparent 22%),
    linear-gradient(180deg, #f1e5d3 0%, #e9dcc8 45%, #e4d4c0 100%);
}

.ambient {
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.48;
  pointer-events: none;
}

.ambient-left {
  top: -8rem;
  left: -10rem;
  background: rgba(163, 60, 47, 0.18);
}

.ambient-right {
  right: -10rem;
  bottom: -10rem;
  background: rgba(13, 108, 103, 0.15);
}

.app-shell {
  position: relative;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 20px;
  margin-bottom: 22px;
}

.hero-copy,
.hero-card,
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 32px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 248, 238, 0.96), rgba(248, 238, 222, 0.88)),
    radial-gradient(circle at top right, rgba(212, 162, 67, 0.14), transparent 20%);
}

.eyebrow,
.panel-kicker,
.card-kicker,
.mini-label {
  font-family: "Courier New", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--brick);
  font-size: 0.76rem;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  line-height: 0.94;
  max-width: 8ch;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.68;
  font-size: 1.08rem;
}

.hero-actions,
.mentor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.84rem;
}

.mode-toggle input {
  width: 18px;
  height: 18px;
}

.campaign-toggle {
  margin-left: 12px;
}

.campaign-toggle select {
  min-width: 180px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 246, 0.92);
  color: var(--ink);
  padding: 10px 14px;
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

#start-button,
#mentor-analyze-button {
  color: #fff8f2;
  background: linear-gradient(135deg, #b84b35, var(--brick));
  box-shadow: 0 16px 32px rgba(163, 60, 47, 0.24);
}

.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.hero-side {
  display: grid;
  gap: 20px;
}

.hero-card {
  border-radius: 30px;
  padding: 24px;
}

.spotlight-card {
  background:
    linear-gradient(145deg, rgba(255, 248, 238, 0.96), rgba(242, 231, 213, 0.9)),
    radial-gradient(circle at bottom right, rgba(95, 61, 196, 0.12), transparent 28%);
}

.pulse-card {
  background:
    linear-gradient(160deg, rgba(250, 244, 236, 0.96), rgba(235, 226, 210, 0.92)),
    radial-gradient(circle at top left, rgba(13, 108, 103, 0.14), transparent 28%);
}

.card-kicker,
.panel-kicker {
  font-size: 0.72rem;
  color: var(--sea);
}

.spotlight-card h2 {
  margin-top: 12px;
  font-size: 1.65rem;
}

.spotlight-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.62;
}

.hero-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.career-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-side-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.career-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.career-progress-card,
.career-history-card {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.career-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.career-progress-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.career-progress-head strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.career-xp-track {
  height: 12px;
  margin-top: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(27, 26, 23, 0.09);
}

.career-xp-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--brick));
}

.panel-head.compact {
  margin-bottom: 14px;
}

.panel-head.compact h3 {
  margin-top: 6px;
  font-size: 1.08rem;
}

.career-history {
  display: grid;
  gap: 10px;
}

.career-history-item {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.88);
}

.career-history-item strong {
  display: block;
  font-size: 0.97rem;
}

.career-history-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mini-label {
  font-size: 0.68rem;
  color: var(--muted);
}

.layout-grid {
  display: grid;
  grid-template-columns: 1.12fr 1.12fr 0.96fr;
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 22px;
  border-radius: 28px;
}

.metrics-panel,
.scenario-panel,
.timeline-panel {
  grid-column: span 2;
}

.mentor-panel,
.capability-panel,
.debrief-panel {
  min-height: 100%;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin-top: 6px;
  font-size: 1.6rem;
}

.panel-tag {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(13, 108, 103, 0.12);
  color: var(--sea);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.panel-tag.accent {
  background: rgba(162, 39, 87, 0.1);
  color: var(--berry);
}

.metric-grid,
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.achievements-card {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.achievement-card {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.9);
}

.achievement-card.unlocked {
  background:
    linear-gradient(145deg, rgba(255, 249, 238, 0.98), rgba(244, 232, 204, 0.9)),
    radial-gradient(circle at top right, rgba(212, 162, 67, 0.16), transparent 26%);
  box-shadow: 0 14px 30px rgba(212, 162, 67, 0.12);
}

.achievement-card.locked {
  opacity: 0.72;
}

.achievement-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
}

.achievement-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.achievement-badge,
.achievement-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.achievement-badge {
  padding: 7px 10px;
  background: rgba(13, 108, 103, 0.12);
  color: var(--sea);
}

.achievement-state {
  margin-top: 10px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.achievement-card.unlocked .achievement-state {
  color: var(--brick);
  border-color: rgba(163, 60, 47, 0.2);
  background: rgba(163, 60, 47, 0.06);
}

.metric-card,
.skill-card,
.choice-card,
.timeline-entry,
.lesson-card,
.micro-lesson,
.mentor-response {
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.metric-card,
.skill-card {
  padding: 15px;
  border-radius: 20px;
}

.metric-card header,
.skill-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 12px;
}

.metric-card span,
.skill-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-card strong,
.skill-card strong {
  font-size: 1.35rem;
}

.bar-track,
.skill-track {
  height: 11px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(27, 26, 23, 0.08);
}

.bar-fill,
.skill-fill {
  height: 100%;
  border-radius: inherit;
}

.skill-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.scenario-description,
.feedback-text,
.mentor-status {
  color: var(--muted);
  line-height: 1.64;
}

.lesson-card,
.micro-lesson,
.mentor-response {
  padding: 18px;
  border-radius: 22px;
}

.lesson-card {
  margin-top: 18px;
  background:
    linear-gradient(145deg, rgba(255, 248, 238, 0.98), rgba(247, 237, 220, 0.9)),
    radial-gradient(circle at top right, rgba(212, 162, 67, 0.14), transparent 25%);
}

.lesson-card h3,
.micro-lesson h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.lesson-points,
.final-roadmap {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.choices {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: start;
  text-align: left;
  padding: 18px;
  border-radius: 22px;
}

.choice-card:hover {
  box-shadow: 0 18px 36px rgba(13, 108, 103, 0.12);
}

.choice-index {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff6f0;
  background: linear-gradient(135deg, var(--sea), #0b5250);
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.choice-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.choice-body,
.choice-lens {
  color: var(--muted);
  line-height: 1.55;
}

.choice-lens {
  font-family: "Courier New", monospace;
  color: var(--berry);
  font-size: 0.84rem;
}

.impact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.impact-chip {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.impact-chip.positive {
  color: #146c43;
}

.impact-chip.negative {
  color: #a61b1b;
}

.impact-chip.neutral {
  color: #9a6700;
}

.micro-lesson {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(255, 247, 234, 0.96), rgba(245, 236, 220, 0.9)),
    radial-gradient(circle at bottom left, rgba(95, 61, 196, 0.12), transparent 25%);
}

.mentor-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  margin-top: 16px;
}

.field span {
  color: var(--muted);
  font-size: 0.88rem;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 246, 0.92);
  color: var(--ink);
  padding: 12px 14px;
}

.field textarea {
  resize: vertical;
  line-height: 1.55;
}

.mentor-status {
  margin-top: 14px;
}

.mentor-response {
  margin-top: 14px;
  min-height: 200px;
  white-space: pre-wrap;
  line-height: 1.62;
}

.timeline {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

.timeline-entry {
  padding: 16px;
  border-radius: 20px;
}

.timeline-entry header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-entry p {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
}

.timeline-choice {
  color: var(--ink);
  font-weight: 700;
}

.timeline-lesson {
  font-style: italic;
}

.final-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 248, 238, 0.98), rgba(244, 234, 218, 0.92)),
    radial-gradient(circle at top right, rgba(13, 108, 103, 0.12), transparent 26%);
}

.final-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.final-card p {
  color: var(--muted);
  line-height: 1.62;
}

.final-roadmap-title {
  margin-top: 16px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 1120px) {
  .hero,
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .metrics-panel,
  .scenario-panel,
  .timeline-panel {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 18px, 1380px);
    padding-top: 18px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .metric-grid,
  .skill-grid,
  .achievements-grid,
  .mentor-settings,
  .hero-side-grid,
  .career-strip,
  .career-progress-head {
    grid-template-columns: 1fr;
  }

  .campaign-toggle {
    margin-left: 0;
  }

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

  .choice-index {
    grid-row: auto;
  }
}
