/* Global Styles */
body {
  margin: 2vh;
  background-color: #1A1A1A;
  color: #5FAF5F;
  font-family: "pf-videotext", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
}

/* Form and Button Styling */
input,
button {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 18px;
  padding: 10px;
  border: 2px solid #5FAF5F;
  border-radius: 5px;
  background-color: #1A1A1A;
  color: #5FAF5F;
  text-align: center;
  box-shadow: 0 0 10px #5FAF5F;
  outline: none;
  text-transform: uppercase;
  font-family: bryant-web, sans-serif;
  font-weight: 700;
  font-style: normal;
}

input::placeholder {
  color: #888888;
}

input:focus {
  box-shadow: 0 0 20px #5FAF5F;
}

button {
  padding-left: 20px;
  padding-right: 20px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

button:hover {
  background-color: #C8E6C9;
  transform: scale(1.2);
}

button:active {
  transform: scale(0.95);
}

/* Hidden Sections */
.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Main Container */
#mainContainer {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 30vh;
  text-align: center;
}

/* Loading Overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1A1A1A;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  /* Start with opacity 0 for fade-in effect */
  transition: opacity 1s ease;
  /* Fade effect */
}

.loadingText {
  color: white;
  font-size: 3vh;
  font-family: brevier, sans-serif;
  font-weight: 700;
}

/* Header */
h1 {
  font-size: clamp(2.5rem, 10vw, 10vh);
  text-transform: uppercase;
  text-shadow: 0 0 5px #5FAF5F, 0 0 10px #5FAF5F, 0 0 20px #5FAF5F;
}

h2 {
  font-size: 3vh;
  text-shadow: 0 0 5px #5FAF5F, 0 0 10px #5FAF5F;
  text-align: center;
  font-family: brevier, sans-serif;
  font-weight: 700;
}

/* Form Styling */
#introSection,
#userInfoForm,
#questionContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0px;
  height: 10vh;
}

/* Question Container */
#questionContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease;
  /* Fade effect */
}

/* Chart Styling */
#chartContainer {
  margin-top: 20px;
  margin-left: 100px;
  margin-right: 100px;
  text-align: left;
}

/* Group Row Styling */
.group-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 4vh;
}

.line-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  /* Space between bar and percentage */
}

.group-label {
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 0 0 5px #5FAF5F, 0 0 10px #5FAF5F;
}

/* Animate the graph bars */
@keyframes growBar {
  from {
    width: 0%;
  }

  to {
    width: var(--target-width);
  }
}

.group-line {
  height: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.8), 0 0 20px rgba(255, 20, 147, 0.6);
  animation: growBar 2s ease-out forwards;
}

.group-line {
  --target-width: 0%;
}

.group-line:hover {
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.9), 0 0 30px rgba(255, 20, 147, 0.8);
}

.group-percentage {
  font-weight: bold;
  color: #5FAF5F;
  margin-left: 10px;
}

.group-description {
  font-style: italic;
  color: #C8E6C9;
  margin-top: 5px;
  text-shadow: 0 0 5px #5FAF5F;
  font-size: 1.5vh;
  font-family: brevier, sans-serif;
  font-weight: 400;
  font-style: italic;
}

.group-row {
  display: grid;
  grid-template-columns: 1fr 4fr;
  align-items: center;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 128, 0, 0.1) 0%, #1A1A1A) 80%;
  animation: flicker 1.5s infinite, noise 0.5s infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes flicker {

  0%,
  100% {
    opacity: 0.9;
  }

  50% {
    opacity: 1;
  }
}

/* Noise Effect */
@keyframes noise {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(1px, -1px);
  }
}

/* Option Button Styling */
.optionButton {
  margin: 40px;
  text-transform: uppercase;
}

/* Spinner Animation */
.spinner {
  width: 40px;
  height: 40px;
  border: 8px #5faf5f double;
  border-left-style: solid;
  border-radius: 50%;
  animation: spinner-aib1d7 0.9s infinite linear;
  display: block;
  margin: 30px;
}

@keyframes spinner-aib1d7 {
  to {
    transform: rotate(360deg);
  }
}

/* Paragraph Styling */
p {
  margin-left: 4vh;
  margin-right: 4vh;
  text-align: justify;
}

/* Link Styling */
#documentation,
#home,
#resources,
#ai {
  position: fixed;
  font-family: "pf-videotext", sans-serif;
  color: #C8E6C9;
  font-size: 20px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  padding: 5px 10px;
  text-shadow: 0 0 5px #5FAF5F, 0 0 10px #5FAF5F;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

#documentation:hover,
#home:hover,
#resources:hover,
#ai:hover {
  color: white;
  text-shadow: 0 0 10px #5FAF5F, 0 0 20px #5FAF5F;
  transform: scale(1.1);
}

#documentation:active,
#home:active,
#resources:active,
#ai:active {
  transform: scale(0.95);
}

#documentation {
  top: 10px;
  left: 10px;
}

#home {
  top: 10px;
  right: 10px;
}

#resources {
  bottom: 10px;
  left: 10px;
}

#ai {
  bottom: 10px;
  right: 10px;
}

#resourcesPage,
#reflection {
  margin-left: 200px;
  margin-right: 200px;
}

#resourcesPage a {
  color: rgb(189, 96, 189);
  text-decoration: none;
  font-weight: bold;
}

#resourcesPage a:hover {
  color: darkviolet;
  text-decoration: underline;
}

iframe {
  width: min(1280px, calc(100vw - 4vh));
  max-width: 100%;
}

@media (max-width: 700px) {
  #mainContainer {
    margin-top: 60px;
    min-height: 24vh;
  }

  #introSection,
  #userInfoForm,
  #questionContainer {
    height: auto;
    min-height: 10vh;
  }

  #optionsContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .optionButton {
    margin: 20px;
  }

  #chartContainer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #resourcesPage,
  #reflection {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  iframe {
    height: 70vh;
  }
}

/* Offline demo shortcut */
.demo-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  color: #8b9b8b;
  font: 700 0.72rem/1.4 "Courier New", monospace;
  letter-spacing: 0.16em;
}

.demo-button,
.results-action {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #5faf5f;
  color: #c8e6c9;
  background: rgba(95, 175, 95, 0.08);
  box-shadow: 0 0 16px rgba(95, 175, 95, 0.18);
  font-family: bryant-web, sans-serif;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.demo-button:hover,
.results-action:hover {
  color: #1a1a1a;
  background: #c8e6c9;
  transform: translateY(-2px);
}

/* Portfolio-ready sample results page */
body.results-page {
  --result-green: #76f58d;
  --result-muted: #98aa9c;
  --result-panel: rgba(24, 31, 25, 0.82);
  --result-line: rgba(118, 245, 141, 0.2);
  display: block;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #e5f4e7;
  background:
    radial-gradient(circle at 72% 12%, rgba(95, 175, 95, 0.14), transparent 31rem),
    #101411;
  text-align: left;
  text-transform: none;
}

body.results-page::before {
  z-index: 4;
  opacity: 0.22;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(118, 245, 141, 0.06) 4px
  );
  animation: none;
}

.results-shell {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.results-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--result-line);
  font: 700 0.72rem/1 "Courier New", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.results-nav a {
  color: #d8eadb;
  text-decoration: none;
}

.results-nav-links {
  display: flex;
  gap: 24px;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--result-green);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--result-green);
  box-shadow: 0 0 12px var(--result-green);
}

.results-header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  padding: 70px 0 36px;
}

.results-kicker,
.results-label,
.metric-label,
.card-index {
  color: var(--result-green);
  font: 700 0.72rem/1.4 "Courier New", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.results-title {
  max-width: 760px;
  margin: 14px 0 20px;
  color: #effff1;
  font: 700 clamp(3.5rem, 8vw, 7.4rem)/0.82 brevier, "Arial Narrow", sans-serif;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(118, 245, 141, 0.28);
}

.results-deck {
  max-width: 700px;
  margin: 0;
  color: #b8c9ba;
  font: 400 clamp(1rem, 1.7vw, 1.25rem)/1.6 bryant-web, Arial, sans-serif;
  text-align: left;
}

.score-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--result-line);
  background: var(--result-panel);
}

.score-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(118, 245, 141, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(118, 245, 141, 0.08) inset;
}

.score-value {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 16px 0 8px;
  color: var(--result-green);
  font: 700 6.5rem/0.8 brevier, "Arial Narrow", sans-serif;
  letter-spacing: -0.05em;
}

.score-value span {
  padding-bottom: 8px;
  color: var(--result-muted);
  font: 700 0.9rem/1 "Courier New", monospace;
  letter-spacing: 0.1em;
}

.score-caption {
  max-width: 220px;
  margin: 0;
  color: var(--result-muted);
  font: 400 0.88rem/1.55 bryant-web, Arial, sans-serif;
  text-align: left;
}

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
}

.result-panel {
  border: 1px solid var(--result-line);
  background: var(--result-panel);
}

.narrative-panel {
  padding: clamp(26px, 4vw, 48px);
}

.narrative-panel h2,
.power-panel h2,
.consequence-section h2 {
  margin: 10px 0 22px;
  color: #effff1;
  font: 700 clamp(1.7rem, 3vw, 2.5rem)/1.05 brevier, "Arial Narrow", sans-serif;
  text-transform: uppercase;
}

.narrative-copy {
  margin: 0;
  color: #c2d0c4;
  font: 400 clamp(1rem, 1.5vw, 1.12rem)/1.85 bryant-web, Arial, sans-serif;
  text-align: left;
}

.narrative-copy strong {
  color: #f1fff3;
  font-weight: 700;
}

.pull-quote {
  margin: 32px 0 0;
  padding: 18px 0 0 22px;
  border-top: 1px solid var(--result-line);
  border-left: 3px solid var(--result-green);
  color: var(--result-green);
  font: 700 1rem/1.65 "Courier New", monospace;
  letter-spacing: 0.03em;
}

.power-panel {
  padding: 30px;
}

.power-row {
  margin-top: 26px;
}

.power-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #e3eee5;
  font: 700 0.78rem/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.power-track {
  height: 8px;
  overflow: hidden;
  background: #273029;
}

.power-fill {
  height: 100%;
  width: var(--power);
  background: var(--bar-color);
  box-shadow: 0 0 14px var(--bar-color);
}

.power-note {
  margin: 10px 0 0;
  color: var(--result-muted);
  font: 400 0.82rem/1.5 bryant-web, Arial, sans-serif;
  text-align: left;
}

.outcome-stamp {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--result-line);
}

.stamp-value {
  display: block;
  margin-top: 8px;
  color: #f4c6e7;
  font: 700 1.15rem/1.3 "Courier New", monospace;
  text-transform: uppercase;
}

.consequence-section {
  padding: 62px 0 0;
}

.consequence-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.consequence-heading h2 {
  margin-bottom: 0;
}

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

.consequence-card {
  min-height: 180px;
  padding: 24px;
  border-top: 2px solid var(--accent);
  background: rgba(26, 33, 28, 0.72);
}

.consequence-card h3 {
  margin: 24px 0 10px;
  color: #effff1;
  font: 700 1rem/1.2 "Courier New", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.consequence-card p {
  margin: 0;
  color: var(--result-muted);
  font: 400 0.88rem/1.65 bryant-web, Arial, sans-serif;
  text-align: left;
}

.results-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--result-line);
  color: var(--result-muted);
  font: 700 0.68rem/1.5 "Courier New", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .results-shell {
    width: min(100% - 28px, 680px);
  }

  .results-header,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .results-header {
    padding-top: 48px;
  }

  .score-card {
    max-width: 310px;
  }

  .consequence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .results-nav-links {
    gap: 12px;
  }

  .results-nav-links a:first-child {
    display: none;
  }

  .results-title {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .consequence-heading,
  .results-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Homepage */
body.home-page {
  --home-green: #76f58d;
  --home-muted: #9cad9f;
  --home-panel: rgba(22, 30, 24, 0.8);
  --home-line: rgba(118, 245, 141, 0.2);
  display: block;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #e5f4e7;
  background:
    radial-gradient(circle at 77% 25%, rgba(95, 175, 95, 0.16), transparent 29rem),
    radial-gradient(circle at 12% 82%, rgba(118, 245, 141, 0.05), transparent 24rem),
    #0d120e;
  text-align: left;
  text-transform: none;
}

body.home-page::before {
  z-index: 4;
  opacity: 0.2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(118, 245, 141, 0.055) 4px
  );
  animation: none;
}

.home-shell {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--home-line);
  font: 700 0.72rem/1 "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-nav a {
  color: #dce8de;
  text-decoration: none;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.home-brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid var(--home-green);
  transform: rotate(45deg);
}

.home-brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--home-green);
  box-shadow: 0 0 10px var(--home-green);
}

.home-nav-links {
  display: flex;
  gap: 30px;
}

.home-nav-links a,
.home-brand {
  transition: color 0.2s ease;
}

.home-nav-links a:hover,
.home-brand:hover {
  color: var(--home-green);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
  gap: clamp(40px, 6vw, 82px);
  align-items: center;
  min-height: calc(100vh - 89px);
  padding: 58px 0 68px;
  box-sizing: border-box;
}

.home-kicker {
  margin: 0;
  color: var(--home-muted);
  font: 700 0.72rem/1.5 "Courier New", monospace;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.home-kicker span {
  color: var(--home-green);
}

.home-title {
  margin: 20px 0 24px;
  color: #effff1;
  font: 700 clamp(4.3rem, 8vw, 7.2rem)/0.78 brevier, "Arial Narrow", sans-serif;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(118, 245, 141, 0.22);
}

.home-title em {
  display: block;
  color: var(--home-green);
  font-style: normal;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 20px rgba(118, 245, 141, 0.18);
}

.home-deck {
  max-width: 650px;
  margin: 0;
  color: #b9c8bc;
  font: 400 clamp(1rem, 1.4vw, 1.17rem)/1.7 bryant-web, Arial, sans-serif;
  text-align: left;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--home-green);
  color: #dff7e3;
  font: 700 0.74rem/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-button:hover {
  transform: translateY(-2px);
}

.home-button-primary {
  color: #0d120e;
  background: var(--home-green);
  box-shadow: 0 0 20px rgba(118, 245, 141, 0.18);
}

.home-button-primary:hover {
  background: #a2ffb3;
  box-shadow: 0 0 26px rgba(118, 245, 141, 0.32);
}

.home-button-secondary {
  border-color: var(--home-line);
  background: rgba(118, 245, 141, 0.04);
}

.home-button-secondary:hover {
  color: var(--home-green);
  border-color: var(--home-green);
}

.home-facts {
  display: flex;
  gap: 26px;
  margin: 42px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--home-line);
  color: var(--home-muted);
  font: 700 0.68rem/1.2 "Courier New", monospace;
  list-style: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-facts li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-facts strong {
  color: var(--home-green);
  font-size: 1rem;
}

.system-model {
  border: 1px solid var(--home-line);
  background: var(--home-panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.system-model-header {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--home-line);
  color: #dce8de;
  font: 700 0.64rem/1 "Courier New", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.model-status {
  color: var(--home-muted);
}

.model-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--home-green);
  box-shadow: 0 0 10px var(--home-green);
  animation: modelPulse 1.8s ease-in-out infinite;
}

@keyframes modelPulse {
  50% { opacity: 0.35; }
}

.system-orbit {
  position: relative;
  aspect-ratio: 1;
  margin: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(118, 245, 141, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 245, 141, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}

.orbit-ring,
.orbit-axis,
.orbit-core,
.orbit-node {
  position: absolute;
}

.orbit-ring {
  top: 50%;
  left: 50%;
  border: 1px solid rgba(118, 245, 141, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-ring-outer { width: 86%; height: 86%; }
.orbit-ring-middle { width: 61%; height: 61%; border-style: dashed; }
.orbit-ring-inner { width: 34%; height: 34%; }

.orbit-axis {
  top: 50%;
  left: 50%;
  background: rgba(118, 245, 141, 0.12);
  transform: translate(-50%, -50%);
}

.orbit-axis-horizontal { width: 92%; height: 1px; }
.orbit-axis-vertical { width: 1px; height: 92%; }

.orbit-core {
  top: 50%;
  left: 50%;
  display: flex;
  width: 94px;
  height: 94px;
  border: 1px solid var(--home-green);
  border-radius: 50%;
  background: #111a13;
  box-shadow: 0 0 34px rgba(118, 245, 141, 0.2), inset 0 0 20px rgba(118, 245, 141, 0.08);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.orbit-core small,
.orbit-core strong {
  font-family: "Courier New", monospace;
  text-transform: uppercase;
}

.orbit-core small {
  color: var(--home-muted);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.orbit-core strong {
  margin-top: 5px;
  color: var(--home-green);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(118, 245, 141, 0.4);
}

.orbit-node {
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  min-width: 128px;
  padding: 9px 10px;
  border: 1px solid rgba(118, 245, 141, 0.24);
  color: #dce8de;
  background: rgba(13, 18, 14, 0.94);
  font: 700 0.57rem/1 "Courier New", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.orbit-node i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--node-color);
  box-shadow: 0 0 8px var(--node-color);
}

.orbit-node b {
  color: var(--node-color);
}

.orbit-government {
  --node-color: #cbbdf4;
  top: 14%;
  left: 2%;
}

.orbit-corporations {
  --node-color: #f0add9;
  top: 30%;
  right: 0;
}

.orbit-individuals {
  --node-color: #76f58d;
  right: 8%;
  bottom: 13%;
}

.system-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--home-line);
}

.system-readout div {
  padding: 16px 14px;
  border-right: 1px solid var(--home-line);
}

.system-readout div:last-child {
  border-right: 0;
}

.system-readout span {
  display: block;
  margin-bottom: 10px;
  color: var(--home-muted);
  font: 700 0.56rem/1 "Courier New", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.system-readout b {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--home-green) var(--readout), #283029 var(--readout));
}

.home-explainer {
  padding: 100px 0 110px;
  border-top: 1px solid var(--home-line);
}

.home-section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.35fr 0.95fr;
  gap: 34px;
  align-items: start;
}

.home-section-heading h2 {
  max-width: 540px;
  margin: 0;
  color: #effff1;
  font: 700 clamp(2.4rem, 4.5vw, 4.4rem)/0.95 brevier, "Arial Narrow", sans-serif;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(118, 245, 141, 0.2);
}

.home-section-heading > p:last-child {
  margin: 0;
  color: var(--home-muted);
  font: 400 1rem/1.65 bryant-web, Arial, sans-serif;
  text-align: left;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 54px;
}

.home-step {
  min-height: 210px;
  padding: 28px;
  border-top: 2px solid var(--step-accent);
  background: rgba(23, 31, 25, 0.76);
}

.home-step > span {
  color: var(--step-accent);
  font: 700 0.66rem/1 "Courier New", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-step h3 {
  margin: 44px 0 12px;
  color: #effff1;
  font: 700 1.05rem/1.2 "Courier New", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-step p {
  margin: 0;
  color: var(--home-muted);
  font: 400 0.9rem/1.65 bryant-web, Arial, sans-serif;
  text-align: left;
}

.home-closing {
  display: grid;
  grid-template-columns: 0.7fr 1.9fr auto;
  gap: 34px;
  align-items: center;
  padding: 54px 0;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-closing-index {
  color: var(--home-green);
  font: 700 0.68rem/1.4 "Courier New", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-closing p {
  margin: 0;
  color: #effff1;
  font: 700 clamp(1.5rem, 2.5vw, 2.25rem)/1.2 brevier, "Arial Narrow", sans-serif;
  text-align: left;
  text-transform: uppercase;
}

.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0 42px;
  color: var(--home-muted);
  font: 700 0.61rem/1.5 "Courier New", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .home-hero-copy {
    max-width: 720px;
  }

  .system-model {
    width: min(100%, 540px);
    margin: 0 auto;
  }

  .home-section-heading {
    grid-template-columns: 1fr 1.5fr;
  }

  .home-section-heading > p:last-child {
    grid-column: 2;
  }

  .home-closing {
    grid-template-columns: 1fr 2fr;
  }

  .home-closing .home-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .home-shell {
    width: min(100% - 28px, 560px);
  }

  .home-nav {
    min-height: 70px;
  }

  .home-nav-links {
    gap: 16px;
  }

  .home-nav-links a:first-child {
    display: none;
  }

  .home-hero {
    gap: 52px;
    min-height: auto;
    padding: 54px 0 70px;
  }

  .home-title {
    font-size: clamp(3.8rem, 19.5vw, 5.6rem);
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-facts {
    justify-content: space-between;
    gap: 10px;
  }

  .home-facts li {
    align-items: flex-start;
    flex-direction: column;
  }

  .orbit-node {
    min-width: 116px;
    font-size: 0.52rem;
  }

  .home-explainer {
    padding: 76px 0;
  }

  .home-section-heading,
  .home-steps,
  .home-closing {
    grid-template-columns: 1fr;
  }

  .home-section-heading > p:last-child,
  .home-closing .home-button {
    grid-column: auto;
  }

  .home-section-heading h2 {
    margin-top: 18px;
  }

  .home-steps {
    margin-top: 40px;
  }

  .home-step {
    min-height: 170px;
  }

  .home-step h3 {
    margin-top: 32px;
  }

  .home-closing {
    gap: 24px;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .home-brand {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .home-brand-mark {
    width: 14px;
    height: 14px;
  }

  .home-nav-links a {
    font-size: 0.62rem;
  }

  .system-model-header {
    font-size: 0.56rem;
  }

  .system-orbit {
    margin: 8px;
  }

  .orbit-core {
    width: 78px;
    height: 78px;
  }

  .orbit-node {
    min-width: 104px;
    padding: 8px;
  }

  .orbit-government { top: 11%; }
  .orbit-corporations { top: 27%; }
}

/* World generation */
body.simulation-page {
  --sim-green: #76f58d;
  --sim-muted: #9cad9f;
  --sim-panel: rgba(22, 30, 24, 0.84);
  --sim-line: rgba(118, 245, 141, 0.2);
  display: block;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #e5f4e7;
  background:
    radial-gradient(circle at 73% 44%, rgba(95, 175, 95, 0.14), transparent 31rem),
    #0d120e;
  text-align: left;
  text-transform: none;
}

body.simulation-page::before {
  z-index: 4;
  opacity: 0.2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(118, 245, 141, 0.055) 4px
  );
  animation: none;
}

.sim-shell {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(46px, 7vw, 92px);
  align-items: center;
  min-height: calc(100vh - 89px);
  padding: 58px 0 70px;
  box-sizing: border-box;
}

.sim-intro h1 {
  margin: 18px 0 24px;
  color: #effff1;
  font: 700 clamp(3.4rem, 5.8vw, 5.5rem)/0.86 brevier, "Arial Narrow", sans-serif;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(118, 245, 141, 0.22);
}

.sim-intro-copy {
  max-width: 480px;
  margin: 0;
  color: #b9c8bc;
  font: 400 1rem/1.7 bryant-web, Arial, sans-serif;
  text-align: left;
}

.sim-stakes {
  margin: 36px 0 0;
  border-top: 1px solid var(--sim-line);
}

.sim-stakes div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sim-line);
}

.sim-stakes dt,
.sim-stakes dd {
  margin: 0;
  font: 700 0.67rem/1.4 "Courier New", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sim-stakes dt {
  color: var(--sim-green);
}

.sim-stakes dd {
  color: var(--sim-muted);
}

.sim-local-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  color: var(--sim-muted);
  font: 700 0.61rem/1.5 "Courier New", monospace;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.sim-local-note span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sim-green);
  box-shadow: 0 0 9px var(--sim-green);
}

.sim-console {
  min-width: 0;
  border: 1px solid var(--sim-line);
  background: var(--sim-panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.sim-console-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--sim-line);
  color: var(--sim-muted);
  font: 700 0.63rem/1 "Courier New", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sim-console-header span {
  min-width: 0;
}

.sim-console-header span:first-child {
  color: #dce8de;
}

.sim-console-body {
  min-height: 522px;
}

.simulation-page #userInfoForm.sim-stage,
.simulation-page #questionContainer.sim-stage {
  display: flex;
  height: auto;
  min-height: 522px;
  padding: clamp(30px, 4vw, 48px);
  box-sizing: border-box;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.simulation-page #questionContainer.hidden,
.simulation-page #response.hidden,
.simulation-page #chartContainer.hidden {
  display: none;
}

.sim-stage-label {
  margin: 0 0 14px;
  color: var(--sim-green);
  font: 700 0.66rem/1.4 "Courier New", monospace;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.simulation-page .sim-stage h2 {
  max-width: 540px;
  margin: 0 0 34px;
  color: #effff1;
  font: 700 clamp(1.8rem, 3vw, 2.65rem)/1.05 brevier, "Arial Narrow", sans-serif;
  text-align: left;
  text-transform: uppercase;
  text-shadow: none;
}

.sim-fields {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 14px;
}

.sim-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sim-field > span {
  color: var(--sim-muted);
  font: 700 0.62rem/1 "Courier New", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.simulation-page .sim-field input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px 15px;
  border: 1px solid rgba(118, 245, 141, 0.26);
  border-radius: 0;
  box-sizing: border-box;
  color: #effff1;
  background: rgba(10, 15, 11, 0.74);
  box-shadow: none;
  font: 700 0.78rem/1 "Courier New", monospace;
  text-align: left;
}

.simulation-page .sim-field input:focus {
  border-color: var(--sim-green);
  box-shadow: 0 0 0 2px rgba(118, 245, 141, 0.1);
}

.simulation-page .sim-field input::placeholder {
  color: #6f7d72;
}

.sim-privacy-note,
.sim-answer-note {
  margin: 14px 0 0;
  color: #7f9083;
  font: 400 0.72rem/1.5 bryant-web, Arial, sans-serif;
  text-align: left;
}

.simulation-page button.sim-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 26px 0 0;
  padding: 15px 18px;
  border: 1px solid var(--sim-green);
  border-radius: 0;
  color: #0d120e;
  background: var(--sim-green);
  box-shadow: 0 0 20px rgba(118, 245, 141, 0.16);
  font: 700 0.72rem/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simulation-page button.sim-submit:hover {
  background: #a2ffb3;
  transform: translateY(-2px);
}

.sim-sample-link {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--sim-muted);
  font: 700 0.61rem/1.4 "Courier New", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sim-sample-link a {
  color: var(--sim-green);
}

.sim-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--sim-muted);
  font: 700 0.61rem/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sim-progress-meta span:first-child {
  color: var(--sim-green);
}

.sim-progress-track {
  height: 4px;
  margin-bottom: 54px;
  overflow: hidden;
  background: #273029;
}

.sim-progress-track span {
  display: block;
  width: 5%;
  height: 100%;
  background: var(--sim-green);
  box-shadow: 0 0 12px var(--sim-green);
  transition: width 0.35s ease;
}

.simulation-page #optionsContainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.simulation-page button.optionButton {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(118, 245, 141, 0.3);
  border-radius: 0;
  color: #e5f4e7;
  background: rgba(118, 245, 141, 0.04);
  box-shadow: none;
  font: 700 0.75rem/1 "Courier New", monospace;
}

.simulation-page button.optionButton:hover {
  color: #0d120e;
  background: var(--sim-green);
  transform: translateY(-2px);
}

.sim-response {
  padding: 42px 42px 28px;
}

.simulation-page .sim-response h2 {
  margin: 0 0 20px;
  color: #effff1;
  font: 700 2.2rem/1 brevier, "Arial Narrow", sans-serif;
  text-align: left;
  text-transform: uppercase;
}

.simulation-page .sim-response p {
  margin: 0;
  color: #b9c8bc;
  font: 400 0.95rem/1.75 bryant-web, Arial, sans-serif;
  text-align: left;
}

.simulation-page #chartContainer {
  width: auto;
  margin: 0;
  padding: 0 42px 42px;
  text-align: left;
}

.simulation-page .group-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  margin: 26px 0 8px;
}

.simulation-page .group-label,
.simulation-page .group-percentage {
  color: #dce8de;
  font: 700 0.66rem/1 "Courier New", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.simulation-page .group-label {
  margin: 0;
  text-shadow: none;
}

.simulation-page .line-container {
  gap: 12px;
}

.simulation-page .group-line {
  height: 7px;
  border-radius: 0;
  box-shadow: 0 0 12px rgba(118, 245, 141, 0.18);
}

.simulation-page .group-percentage {
  margin: 0;
}

.simulation-page .group-description {
  margin: 0 0 0 126px;
  color: var(--sim-muted);
  font: 400 0.72rem/1.5 bryant-web, Arial, sans-serif;
  text-shadow: none;
}

.simulation-page #loadingOverlay {
  flex-direction: column;
  background: rgba(8, 13, 9, 0.97);
}

.simulation-page .loadingText {
  color: var(--sim-green);
  font: 700 0.84rem/1 "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .sim-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 72px;
  }

  .sim-layout > * {
    min-width: 0;
  }

  .sim-intro {
    max-width: 680px;
  }

  .sim-console {
    width: min(100%, 680px);
    min-width: 0;
  }
}

/* Shared site hierarchy */
body.home-page,
body.simulation-page,
body.results-page,
body.content-page {
  --accent: #76f58d;
  --muted: #9cad9f;
  --panel: rgba(22, 30, 24, 0.82);
  --line: rgba(118, 245, 141, 0.2);
  --home-green: var(--accent);
  --home-muted: var(--muted);
  --home-panel: var(--panel);
  --home-line: var(--line);
}

.home-nav {
  border-bottom-color: var(--line);
}

.home-nav a {
  color: #dce8de;
}

.home-brand-mark {
  border-color: var(--accent);
}

.home-brand-mark::after {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.home-nav-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
}

.home-nav-links a:hover,
.home-nav-links a[aria-current="page"] {
  color: var(--accent);
}

.home-nav-links .nav-cta {
  padding: 0 12px;
  border: 1px solid var(--line);
}

.home-nav-links .nav-cta:hover,
.home-nav-links .nav-cta[aria-current="page"] {
  border-color: var(--accent);
  background: rgba(118, 245, 141, 0.07);
}

.home-title {
  font-size: clamp(4rem, 7vw, 6.4rem);
}

.sim-intro h1 {
  font-size: clamp(3.4rem, 5.3vw, 5.2rem);
}

.results-shell {
  padding-top: 0;
}

.results-title {
  font-size: clamp(3.5rem, 6.6vw, 6.6rem);
}

/* Documentation and resources */
body.content-page {
  display: block;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #e5f4e7;
  background:
    radial-gradient(circle at 82% 12%, rgba(95, 175, 95, 0.13), transparent 30rem),
    radial-gradient(circle at 10% 72%, rgba(118, 245, 141, 0.045), transparent 24rem),
    #0d120e;
  text-align: left;
  text-transform: none;
}

body.content-page::before {
  z-index: 4;
  opacity: 0.2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(118, 245, 141, 0.055) 4px
  );
  animation: none;
}

.content-shell {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.content-hero {
  padding: clamp(72px, 8vw, 108px) 0 clamp(68px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}

.content-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(46px, 8vw, 110px);
  align-items: end;
  margin-top: 26px;
}

.content-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #effff1;
  font: 700 clamp(4.2rem, 7.4vw, 7rem)/0.82 brevier, "Arial Narrow", sans-serif;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(118, 245, 141, 0.22);
}

.content-hero-summary > p {
  margin: 0;
  color: #b9c8bc;
  font: 400 clamp(1rem, 1.4vw, 1.18rem)/1.7 bryant-web, Arial, sans-serif;
  text-align: left;
}

.content-meta {
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}

.content-meta div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.content-meta dt,
.content-meta dd {
  margin: 0;
  font: 700 0.65rem/1.4 "Courier New", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.content-meta dt {
  color: var(--accent);
}

.content-meta dd {
  color: var(--muted);
}

.content-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(54px, 8vw, 96px);
  align-items: start;
  padding: 82px 0 24px;
}

.content-index {
  position: sticky;
  top: 24px;
  display: flex;
  border-top: 1px solid var(--line);
  flex-direction: column;
}

.content-index > span,
.content-index a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font: 700 0.64rem/1.35 "Courier New", monospace;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.content-index > span {
  color: var(--accent);
}

.content-index a {
  color: var(--muted);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.content-index a:hover {
  padding-left: 6px;
  color: #effff1;
}

.content-main {
  min-width: 0;
}

.content-section,
.resource-group {
  padding: 0 0 88px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 88px;
  scroll-margin-top: 30px;
}

.content-section-index,
.resource-number {
  color: var(--accent);
  font: 700 0.67rem/1.4 "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-section h2,
.resource-group h2 {
  max-width: 760px;
  margin: 14px 0 26px;
  color: #effff1;
  font: 700 clamp(2.4rem, 4.5vw, 4.2rem)/0.96 brevier, "Arial Narrow", sans-serif;
  text-align: left;
  text-transform: uppercase;
  text-shadow: 0 0 17px rgba(118, 245, 141, 0.18);
}

.content-section > p,
.resource-group-heading > p {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--muted);
  font: 400 1rem/1.8 bryant-web, Arial, sans-serif;
  text-align: left;
}

.content-section > p.content-lead {
  color: #c9d6cb;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.72;
}

.documentation-callout {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  margin-top: 44px;
  padding: 28px;
  border-left: 3px solid var(--accent);
  background: var(--panel);
}

.documentation-callout span {
  color: var(--accent);
  font: 700 0.65rem/1.5 "Courier New", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.documentation-callout p {
  margin: 0;
  color: #effff1;
  font: 700 clamp(1.15rem, 2vw, 1.5rem)/1.45 "Courier New", monospace;
  text-align: left;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.method-grid article {
  min-height: 220px;
  padding: 24px;
  border-top: 2px solid var(--accent);
  background: var(--panel);
}

.method-grid article > span {
  color: var(--accent);
  font: 700 0.68rem/1 "Courier New", monospace;
}

.method-grid h3 {
  margin: 42px 0 12px;
  color: #effff1;
  font: 700 0.94rem/1.25 "Courier New", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font: 500 0.86rem/1.65 "Barlow Condensed", "Arial Narrow", sans-serif;
  text-align: left;
}

.content-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}

.content-action {
  display: inline-flex;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--accent);
  font: 700 0.66rem/1 "Courier New", monospace;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
}

.content-action:hover {
  border-color: var(--accent);
  background: rgba(118, 245, 141, 0.06);
}

.pdf-frame {
  margin-top: 36px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.pdf-frame iframe {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
  background: #151a16;
}

.reflection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 42px;
  margin-top: 34px;
}

.reflection-grid p {
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 0.96rem/1.75 bryant-web, Arial, sans-serif;
  text-align: left;
}

.content-closing {
  display: grid;
  grid-template-columns: 0.6fr 1.8fr auto;
  gap: 32px;
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-closing > span {
  color: var(--accent);
  font: 700 0.66rem/1.4 "Courier New", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.content-closing > p {
  margin: 0;
  color: #effff1;
  font: 700 clamp(1.35rem, 2.4vw, 2rem)/1.25 brevier, "Arial Narrow", sans-serif;
  text-align: left;
  text-transform: uppercase;
}

.resource-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resource-counts div {
  padding: 18px 12px 18px 0;
}

.resource-counts strong,
.resource-counts span {
  display: block;
  font-family: "Courier New", monospace;
  text-transform: uppercase;
}

.resource-counts strong {
  color: var(--accent);
  font-size: 1.35rem;
}

.resource-counts span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.resource-group-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 34px;
}

.resource-group-heading .content-section-index,
.resource-group-heading h2 {
  grid-column: 1;
}

.resource-group-heading h2 {
  margin-bottom: 0;
}

.resource-group-heading > p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin-bottom: 0;
}

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

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

.resource-card {
  display: flex;
  min-height: 230px;
  padding: 24px;
  border-top: 2px solid var(--accent);
  background: var(--panel);
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.resource-card:hover {
  background: rgba(30, 42, 33, 0.95);
  transform: translateY(-3px);
}

.resource-card h3 {
  margin: 34px 0 12px;
  color: #effff1;
  font: 700 0.98rem/1.28 "Courier New", monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  font: 400 0.86rem/1.62 bryant-web, Arial, sans-serif;
  text-align: left;
}

.resource-source {
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
  font: 700 0.61rem/1.3 "Courier New", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.glossary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 38px 0 0;
}

.glossary-grid div {
  min-height: 150px;
  padding: 24px;
  border-left: 2px solid var(--accent);
  background: var(--panel);
}

.glossary-grid dt {
  color: #effff1;
  font: 700 0.88rem/1.3 "Courier New", monospace;
  text-transform: uppercase;
}

.glossary-grid dd {
  margin: 14px 0 0;
  color: var(--muted);
  font: 400 0.88rem/1.65 bryant-web, Arial, sans-serif;
}

@media (max-width: 960px) {
  .content-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.7fr);
  }

  .content-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 46px;
  }

  .method-grid,
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }

  .resource-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .content-closing {
    grid-template-columns: 1fr 2fr;
  }

  .content-closing .home-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .home-nav-links a:first-child {
    display: inline-flex;
  }

  .home-brand-text {
    display: none;
  }

  .home-nav-links {
    gap: 11px;
  }

  .home-nav-links a {
    min-height: 30px;
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }

  .home-nav-links .nav-cta {
    padding: 0 8px;
  }

  .home-title {
    font-size: clamp(3.55rem, 18.5vw, 5.15rem);
  }

  .content-shell {
    width: min(100% - 28px, 560px);
  }

  .content-hero {
    padding: 54px 0 62px;
  }

  .content-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .content-hero h1 {
    font-size: clamp(3.6rem, 17vw, 5.2rem);
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 54px;
  }

  .content-index {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .content-index > span {
    grid-column: 1 / -1;
  }

  .content-index a:nth-child(even) {
    border-right: 1px solid var(--line);
  }

  .content-section,
  .resource-group {
    padding-bottom: 64px;
    margin-bottom: 64px;
  }

  .content-section h2,
  .resource-group h2 {
    font-size: clamp(2.25rem, 11vw, 3.3rem);
  }

  .documentation-callout,
  .method-grid,
  .reflection-grid,
  .resource-group-heading,
  .resource-grid,
  .resource-grid-two,
  .glossary-grid,
  .content-closing {
    grid-template-columns: 1fr;
  }

  .resource-card:last-child:nth-child(odd),
  .resource-group-heading .content-section-index,
  .resource-group-heading h2,
  .resource-group-heading > p,
  .content-closing .home-button {
    grid-column: auto;
    grid-row: auto;
  }

  .documentation-callout {
    gap: 16px;
  }

  .method-grid article,
  .resource-card {
    min-height: 190px;
  }

  .content-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdf-frame iframe {
    height: 68vh;
  }

  .content-closing {
    gap: 24px;
  }

  .resource-group-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .resource-group-heading > * {
    min-width: 0;
    max-width: 100%;
  }

  .resource-group h2 {
    overflow-wrap: break-word;
  }
}

@media (max-width: 410px) {
  .home-nav-links a:not(.nav-cta) {
    font-size: 0.51rem;
  }

  .home-nav-links {
    gap: 8px;
  }

  .content-index {
    grid-template-columns: 1fr;
  }

  .content-index > span,
  .content-index a {
    grid-column: auto;
    border-right: 0 !important;
  }

  .content-hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.4rem);
  }
}

@media (max-width: 700px) {
  .sim-shell {
    width: min(100% - 28px, 560px);
  }

  .sim-layout {
    gap: 48px;
    min-height: auto;
    padding: 54px 0 70px;
  }

  .sim-intro h1 {
    font-size: clamp(3.1rem, 14.5vw, 4.5rem);
  }

  .simulation-page #userInfoForm.sim-stage,
  .simulation-page #questionContainer.sim-stage {
    min-height: 500px;
    padding: 28px 22px;
  }

  .sim-console-body {
    min-height: 500px;
  }

  .sim-fields {
    grid-template-columns: 1fr;
  }

  .sim-progress-track {
    margin-bottom: 42px;
  }

  .sim-response {
    padding: 30px 24px 24px;
  }

  .simulation-page #chartContainer {
    padding: 0 24px 30px;
  }

  .simulation-page .group-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .simulation-page .group-description {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .sim-console-header {
    font-size: 0.56rem;
  }

  .sim-stakes div {
    grid-template-columns: 104px 1fr;
  }

  .sim-sample-link {
    align-items: center;
    flex-direction: column;
  }
}

/* Homepage — editorial system view */
body.home-v2 {
  background:
    radial-gradient(circle at 76% 18%, rgba(118, 245, 141, 0.1), transparent 28rem),
    linear-gradient(90deg, transparent 49.95%, rgba(118, 245, 141, 0.025) 50%, transparent 50.05%),
    #0b100c;
}

.home-v2-shell {
  width: min(1240px, calc(100% - 48px));
}

.home-v2-hero {
  min-height: calc(100vh - 89px);
  padding: clamp(44px, 5.5vw, 72px) 0 36px;
  box-sizing: border-box;
}

.home-v2-status,
.home-v2-balance-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 700 0.63rem/1.4 "Courier New", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-v2-status span:first-child {
  color: var(--accent);
}

.home-v2-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.home-v2-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: clamp(50px, 8vw, 112px);
  align-items: end;
  padding: clamp(46px, 6.4vw, 82px) 0 clamp(52px, 6vw, 76px);
}

.home-v2-heading-grid h1 {
  margin: 0;
  color: #effff1;
  font: 700 clamp(5rem, 9.6vw, 8.6rem)/0.74 brevier, "Arial Narrow", sans-serif;
  letter-spacing: -0.052em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(118, 245, 141, 0.18);
}

.home-v2-heading-grid h1 span,
.home-v2-heading-grid h1 em {
  display: block;
}

.home-v2-heading-grid h1 span:nth-child(2) {
  padding-left: 7%;
}

.home-v2-heading-grid h1 em {
  padding-left: 22%;
  color: var(--accent);
  font-style: normal;
}

.home-v2-brief {
  padding: 0 0 5px;
}

.home-v2-brief > p {
  margin: 0;
  color: #bcc9be;
  font: 400 clamp(1rem, 1.3vw, 1.13rem)/1.72 bryant-web, Arial, sans-serif;
  text-align: left;
}

.home-v2-actions {
  display: flex;
  margin-top: 30px;
  flex-direction: column;
  gap: 10px;
}

.home-v2-primary,
.home-v2-secondary {
  display: flex;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  color: #e8f4ea;
  font: 700 0.69rem/1 "Courier New", monospace;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-v2-primary {
  border-color: var(--accent);
  color: #0b100c;
  background: var(--accent);
}

.home-v2-primary:hover,
.home-v2-secondary:hover {
  transform: translateX(4px);
}

.home-v2-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(118, 245, 141, 0.05);
}

.home-v2-note {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: #78887b;
  font: 700 0.54rem/1.4 "Courier New", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-v2-balance {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-v2-balance-heading {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.home-v2-balance-heading span:first-child {
  color: var(--accent);
}

.home-v2-power-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.home-v2-power-grid article {
  min-width: 0;
  padding: 20px 24px 22px;
  border-right: 1px solid var(--line);
}

.home-v2-power-grid article:last-child {
  border-right: 0;
}

.home-v2-power-grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #dce8de;
  font: 700 0.62rem/1 "Courier New", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-v2-power-grid article strong {
  color: var(--power-color);
  font-size: 1rem;
}

.home-v2-power-grid article > b {
  display: block;
  height: 4px;
  margin: 16px 0;
  background: linear-gradient(to right, var(--power-color) var(--power-width), #263028 var(--power-width));
  box-shadow: -5px 0 12px color-mix(in srgb, var(--power-color) 30%, transparent);
}

.home-v2-power-grid article p {
  margin: 0;
  color: var(--muted);
  font: 400 0.78rem/1.55 bryant-web, Arial, sans-serif;
  text-align: left;
}

.home-v2-thesis,
.home-v2-process {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(54px, 8vw, 100px);
  padding: clamp(100px, 11vw, 150px) 0;
  border-bottom: 1px solid var(--line);
}

.home-v2-section-label {
  padding-top: 6px;
}

.home-v2-section-label span {
  display: flex;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font: 700 0.7rem/1 "Courier New", monospace;
}

.home-v2-section-label p {
  margin: 14px 0 0;
  color: var(--muted);
  font: 700 0.62rem/1.4 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.home-v2-thesis-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.5fr);
  gap: clamp(45px, 7vw, 90px);
  align-items: end;
}

.home-v2-thesis h2,
.home-v2-process-heading h2,
.home-v2-final h2 {
  margin: 0;
  color: #effff1;
  font: 700 clamp(3.2rem, 6vw, 5.5rem)/0.91 brevier, "Arial Narrow", sans-serif;
  letter-spacing: -0.025em;
  text-align: left;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(118, 245, 141, 0.16);
}

.home-v2-thesis h2 em {
  color: var(--accent);
  font-style: normal;
}

.home-v2-thesis-copy > div > p,
.home-v2-process-heading > p {
  margin: 0 0 18px;
  color: var(--muted);
  font: 400 0.98rem/1.72 bryant-web, Arial, sans-serif;
  text-align: left;
}

.home-v2-process-main {
  min-width: 0;
}

.home-v2-process-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr);
  gap: 60px;
  align-items: end;
}

.home-v2-process-heading h2 {
  font-size: clamp(2.9rem, 5.1vw, 4.8rem);
}

.home-v2-process-heading > p {
  margin-bottom: 0;
}

.home-v2-steps {
  margin: 58px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.home-v2-steps li {
  display: grid;
  grid-template-columns: 70px 190px minmax(0, 1fr) 80px;
  gap: 26px;
  align-items: center;
  min-height: 110px;
  border-bottom: 1px solid var(--line);
}

.home-v2-steps li > span,
.home-v2-steps li > b {
  color: var(--accent);
  font: 700 0.64rem/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-v2-steps li > b {
  color: #68776b;
  text-align: right;
}

.home-v2-steps h3 {
  margin: 0;
  color: #effff1;
  font: 700 0.92rem/1.2 "Courier New", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-v2-steps p {
  margin: 0;
  color: var(--muted);
  font: 400 0.84rem/1.6 bryant-web, Arial, sans-serif;
  text-align: left;
}

.home-v2-final {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
  margin-top: 88px;
  padding: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.home-v2-final-signal {
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.home-v2-final-signal span {
  display: block;
  width: 5px;
  height: var(--signal-height, 35%);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(118, 245, 141, 0.28);
}

.home-v2-final-signal span:nth-child(2) { --signal-height: 68%; }
.home-v2-final-signal span:nth-child(3) { --signal-height: 100%; }
.home-v2-final-signal span:nth-child(4) { --signal-height: 55%; }
.home-v2-final-signal span:nth-child(5) { --signal-height: 28%; }

.home-v2-final > div:nth-child(2) > span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font: 700 0.64rem/1 "Courier New", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-v2-final h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.7rem);
}

.home-v2-final > a {
  display: flex;
  min-width: 126px;
  height: 54px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  color: #0b100c;
  background: var(--accent);
  font: 700 0.7rem/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-v2 .home-footer {
  padding-top: 34px;
}

@media (max-width: 960px) {
  .home-v2-heading-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 40px;
  }

  .home-v2-heading-grid h1 {
    font-size: clamp(4.7rem, 9vw, 7rem);
  }

  .home-v2-thesis,
  .home-v2-process {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 46px;
  }

  .home-v2-thesis-copy,
  .home-v2-process-heading {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-v2-steps li {
    grid-template-columns: 50px 155px minmax(0, 1fr);
  }

  .home-v2-steps li > b {
    display: none;
  }
}

@media (max-width: 700px) {
  .home-v2-shell {
    width: min(100% - 28px, 560px);
  }

  .home-v2-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .home-v2-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-v2-heading-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 48px 0 58px;
  }

  .home-v2-heading-grid h1 {
    font-size: clamp(4.1rem, 20.5vw, 5.8rem);
    line-height: 0.78;
  }

  .home-v2-heading-grid h1 span:nth-child(2) {
    padding-left: 0;
  }

  .home-v2-heading-grid h1 em {
    padding-left: 13%;
  }

  .home-v2-note {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-v2-balance-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .home-v2-power-grid {
    grid-template-columns: 1fr;
  }

  .home-v2-power-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-v2-power-grid article:last-child {
    border-bottom: 0;
  }

  .home-v2-thesis,
  .home-v2-process {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    padding: 86px 0;
  }

  .home-v2-thesis h2,
  .home-v2-process-heading h2 {
    font-size: clamp(2.7rem, 11.8vw, 3.6rem);
  }

  .home-v2-thesis-copy,
  .home-v2-process-heading {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .home-v2-thesis-copy > *,
  .home-v2-process-heading > * {
    min-width: 0;
  }

  .home-v2-steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
  }

  .home-v2-steps li > span {
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 3px;
  }

  .home-v2-steps p {
    grid-column: 2;
  }

  .home-v2-final {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 62px;
    padding: 30px;
  }

  .home-v2-final-signal {
    height: 55px;
    justify-content: flex-start;
  }

  .home-v2-final > a {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 410px) {
  .home-v2-heading-grid h1 {
    font-size: clamp(3.75rem, 19.2vw, 5rem);
  }

  .home-v2-heading-grid h1 em {
    padding-left: 8%;
  }

  .home-v2-power-grid article {
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* World generator — consequence story mode */
.simulation-page #decisionStage.hidden,
.simulation-page #consequenceStage.hidden {
  display: none;
}

.sim-decision-stage,
.story-consequence {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sim-decision-stage {
  display: flex;
  flex-direction: column;
}

.story-consequence {
  display: flex;
  flex-direction: column;
  animation: story-reveal 420ms ease both;
}

.story-choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 30px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(118, 245, 141, 0.16);
  color: #91a395;
  font: 700 0.6rem/1.3 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-choice-row span:last-child {
  color: var(--sim-green);
}

.simulation-page .story-consequence .sim-stage-label {
  margin-bottom: 10px;
}

.simulation-page .story-consequence h2 {
  max-width: 610px;
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}

.story-consequence-copy {
  max-width: 630px;
  margin: 0;
  color: #c1cec3;
  font: 400 0.92rem/1.72 bryant-web, Arial, sans-serif;
  text-align: left;
}

.story-profile-note {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
  padding: 15px 16px;
  border-left: 2px solid var(--sim-green);
  background: rgba(118, 245, 141, 0.045);
}

.story-profile-note span {
  color: var(--sim-green);
  font: 700 0.58rem/1.45 "Courier New", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.story-profile-note p {
  margin: 0;
  color: #aebdaf;
  font: 400 0.75rem/1.55 bryant-web, Arial, sans-serif;
}

.story-timeline-note {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-top: 24px;
}

.story-timeline-note > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sim-green);
  box-shadow: 0 0 9px rgba(118, 245, 141, 0.8);
}

.story-timeline-note p {
  margin: 0;
  color: #829185;
  font: 700 0.61rem/1.45 "Courier New", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.simulation-page button.story-continue {
  margin-top: 28px;
}

@keyframes story-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .story-choice-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 24px;
  }

  .simulation-page .story-consequence h2 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .story-consequence-copy {
    font-size: 0.86rem;
  }

  .story-profile-note {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-consequence {
    animation: none;
  }
}
