/* styles/scenario_select.css
   Scenario picker — shown between runs once the Ledger has history.
   First-time players bypass this; subsequent visits land here. */

#scenario-select {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(ellipse at center, #0a0a14 0%, #06060a 100%);
  padding: 4vh 4vw;
  opacity: 0;
  transition: opacity 1200ms ease;
}
#scenario-select.active   { display: flex; }
#scenario-select.revealed { opacity: 1; }

#scenario-select-header {
  text-align: center;
  margin-bottom: 4vh;
}
.scenario-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: rgba(232, 216, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.scenario-main-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  color: rgba(248, 232, 192, 0.95);
  line-height: 1.1;
  margin-bottom: 8px;
}
.scenario-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(184, 224, 255, 0.7);
}

#scenario-cards {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.scenario-card {
  background: rgba(15, 15, 25, 0.92);
  border: 1px solid rgba(184, 224, 255, 0.25);
  border-radius: 4px;
  padding: 24px 22px;
  width: 260px;
  min-height: 280px;
  font-family: var(--mono);
  color: var(--celestial);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 200ms ease;
}
.scenario-card:hover:not(.locked) {
  border-color: rgba(232, 216, 255, 0.9);
  transform: translateY(-4px);
  background: rgba(30, 30, 50, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 24px rgba(232, 216, 255, 0.2);
}
.scenario-card.locked {
  opacity: 0.4;
  cursor: not-allowed;
  border-style: dashed;
}

.sc-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: rgba(232, 216, 255, 0.5);
  text-transform: uppercase;
}
.scenario-card.locked .sc-eyebrow { color: rgba(255, 130, 90, 0.6); }
.sc-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: rgba(248, 232, 192, 0.95);
  line-height: 1.2;
}
.sc-subtitle {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(184, 224, 255, 0.7);
}
.sc-teaches {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(232, 216, 255, 0.7);
  line-height: 1.4;
  flex: 1;
  padding-top: 8px;
}
.sc-play {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(10, 191, 83, 0.95);
  text-transform: uppercase;
  margin-top: 12px;
  border-top: 1px solid rgba(10, 191, 83, 0.3);
  padding-top: 12px;
}

/* ---------- ABOUT LINK ----------
   Bottom of the scenario picker — a quiet pointer to the standalone
   /about page for hiring-managers + curious deep-link visitors. */
#scenario-about-link {
  display: block;
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(232, 216, 255, 0.55);
  text-decoration: none;
  text-align: center;
  border-bottom: 1px dashed transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
#scenario-about-link:hover {
  color: rgba(248, 240, 224, 0.95);
  border-color: rgba(232, 216, 255, 0.45);
}

/* ---------- C14 — LEARNING OBJECTIVES ----------
   "What you'll learn" panel inside each unlocked scenario card.
   Three bullets per scenario, surfacing pedagogy before the player
   commits. Subordinate visually to the teaches one-liner — title is
   small mono caps; bullets are tight serif. */
.sc-objectives {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(232, 216, 255, 0.18);
  text-align: left;
}
.sc-objectives-title {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(232, 216, 255, 0.55);
  margin-bottom: 8px;
}
.sc-objectives-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-objectives-list li {
  position: relative;
  padding-left: 16px;
  font-family: var(--serif);
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(248, 240, 224, 0.86);
}
.sc-objectives-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: rgba(10, 191, 83, 0.55);
}
.sc-objectives-list li em {
  font-style: italic;
  color: rgba(255, 232, 168, 0.96);
}
.sc-locked-note {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: rgba(255, 130, 90, 0.65);
  text-transform: uppercase;
  margin-top: 12px;
  border-top: 1px dashed rgba(255, 130, 90, 0.3);
  padding-top: 12px;
}

#scenario-ledger-summary {
  margin-top: 4vh;
  display: none;
  gap: 32px;
  font-family: var(--mono);
}
#scenario-ledger-summary.visible { display: flex; }
.ls-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ls-key {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: rgba(232, 216, 255, 0.45);
  text-transform: uppercase;
}
.ls-val {
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: rgba(248, 232, 192, 0.95);
  font-weight: bold;
}

@media (prefers-reduced-motion: reduce) {
  #scenario-select { transition-duration: 200ms; }
  .scenario-card   { transition-duration: 100ms; }
  .scenario-card:hover:not(.locked) { transform: none; }
}

/* ---------- MOBILE (C7) ----------
   Three-card grid stacks to single column. Cards stretch full-width
   minus the screen padding; title sizes shrink to fit. */
@media (max-width: 520px) {
  #scenario-cards {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 14px;
  }
  .scenario-card {
    width: min(320px, 92vw);
    padding: 18px 18px 16px;
    min-height: 0;
  }
  .sc-title    { font-size: 1.2rem; }
  .sc-teaches  { font-size: 0.78rem; }
  .sc-subtitle { font-size: 0.72rem; }
}
