:root {
  color-scheme: light;
  --paper: #f2eee5;
  --paper-deep: #e6dfd2;
  --surface: #fbf9f4;
  --ink: #171713;
  --muted: #6d6a62;
  --faint: #aaa398;
  --line: #d5cec1;
  --accent: #e04a32;
  --accent-dark: #bd321f;
  --button-accent: #cf3f2c;
  --green: #24715d;
  --red: #b6382a;
  --audience: #e04a32;
  --trust: #26745f;
  --voice: #5267d8;
  --revenue: #a26a1b;
  --energy: #8b56a7;
  --shadow: 0 24px 80px rgb(49 37 24 / 10%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgb(255 255 255 / 75%), transparent 32rem),
    var(--paper);
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-page,
.setup-page,
.ending-page {
  min-height: 100vh;
}

.landing-page,
.setup-page {
  padding: 0 clamp(22px, 5vw, 78px);
}

.landing-nav,
.simple-header,
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav,
.simple-header {
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

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

.brand__mark {
  display: grid;
  width: 39px;
  height: 46px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: var(--accent);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand__words {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-size: 14px;
  letter-spacing: 0.15em;
}

.brand__tag {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
}

.brand--compact .brand__mark {
  width: 32px;
  height: 37px;
  font-size: 19px;
  box-shadow: 3px 3px 0 currentColor;
}

.brand--compact .brand__name {
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button--large {
  min-height: 58px;
  padding-inline: 29px;
  font-size: 16px;
}

.button--small {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 13px;
}

.button--primary {
  background: var(--button-accent);
  color: white;
  box-shadow: 5px 5px 0 var(--ink);
}

.button--primary:hover {
  background: var(--accent-dark);
  box-shadow: 7px 7px 0 var(--ink);
}

.button--ink {
  background: var(--ink);
  color: white;
  box-shadow: 5px 5px 0 var(--accent);
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
}

.button--ghost:hover {
  background: white;
}

.button--text {
  min-height: auto;
  border: 0;
  padding: 10px 4px;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button--danger {
  border-color: #e2b1a9;
  background: #fff2ef;
  color: var(--red);
}

.button--paper {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--accent);
}

.button--outline-light {
  border-color: rgb(255 255 255 / 35%);
  background: transparent;
  color: white;
}

.button--text-light {
  min-height: 44px;
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: rgb(255 255 255 / 70%);
  cursor: pointer;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button__arrow {
  font-size: 21px;
}

.hero {
  display: grid;
  max-width: 1060px;
  min-height: 440px;
  align-content: center;
  padding: 72px 0 60px;
}

.eyebrow,
.section-label,
.issue-number {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.eyebrow {
  color: var(--accent-dark);
}

.hero__title {
  max-width: 920px;
  margin: 20px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 8.5vw, 118px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.hero__title em {
  display: block;
  color: var(--accent);
  font-weight: 500;
}

.hero__intro {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.hero__actions,
.ending-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 38px;
}

.collection-summary {
  display: grid;
  width: fit-content;
  max-width: 100%;
  margin-top: 24px;
  grid-template-columns: auto auto;
  gap: 4px 14px;
  border-left: 4px solid var(--accent);
  padding: 8px 12px;
  background: rgb(255 255 255 / 34%);
  font-size: 12px;
}

.collection-summary__label {
  grid-column: 1 / -1;
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.collection-summary strong {
  color: var(--ink);
}

.collection-summary span:last-child {
  color: var(--muted);
}

.landing-preview {
  display: grid;
  max-width: 1180px;
  margin: 10px auto 86px;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.6fr);
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-0.35deg);
}

.preview-issue {
  padding: clamp(32px, 5vw, 66px);
  border-right: 1px solid var(--ink);
}

.preview-issue__number,
.preview-meter__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.preview-issue h2 {
  max-width: 690px;
  margin: 20px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(33px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.02;
}

.preview-issue p {
  max-width: 640px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

.preview-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.preview-choices span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.preview-meter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 23px;
  padding: 38px;
  background: #e7e1d6;
}

.mini-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 12px;
}

.mini-stat__track {
  height: 4px;
  grid-column: 1 / -1;
  overflow: hidden;
  background: #cac1b4;
}

.mini-stat__fill {
  display: block;
  height: 100%;
  background: var(--ink);
}

.promise-strip {
  display: grid;
  max-width: 1180px;
  margin: 0 auto 60px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promise {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  padding: 25px 14px;
}

.promise + .promise {
  border-left: 1px solid var(--line);
}

.promise strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.promise span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.footer-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.setup-page {
  display: flex;
  flex-direction: column;
}

.setup-card {
  width: min(100%, 900px);
  margin: auto;
  padding: 70px 0 80px;
}

.setup-card__title {
  margin: 14px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.setup-card__intro {
  max-width: 650px;
  margin: 0 0 45px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.5;
}

.setup-form {
  display: flex;
  flex-direction: column;
}

.setup-privacy {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.privacy-page {
  min-height: 100vh;
  padding: 0 clamp(22px, 5vw, 78px) 70px;
}

.privacy-page .brand {
  color: inherit;
  text-decoration: none;
}

.privacy-content {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.privacy-content h1 {
  max-width: 700px;
  margin: 12px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.privacy-lede {
  margin: 0 0 52px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.45;
}

.privacy-content section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.privacy-content h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.privacy-content section p,
.privacy-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.privacy-note {
  margin-top: 34px;
  font-size: 13px;
}

.field-label,
.field-heading {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-input {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  padding: 12px 0 16px;
  background: transparent;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
}

.text-input::placeholder {
  color: #b8b0a4;
}

.field-heading {
  margin-top: 44px;
}

.field-label--publication {
  margin-top: 30px;
}

.field-label__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.name-randomizer {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
}

.name-randomizer:hover,
.name-randomizer:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.text-input--author {
  font-size: clamp(24px, 3.2vw, 34px);
}

.niche-grid {
  display: grid;
  margin-top: 14px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.niche-card {
  display: grid;
  min-height: 124px;
  grid-template-columns: 18px 1fr auto;
  align-items: start;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 22px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.niche-card:hover,
.niche-card.is-selected {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.niche-card__emoji {
  margin-top: -2px;
  font-size: 16px;
  line-height: 1;
}

.niche-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.niche-card__copy strong {
  font-size: 16px;
}

.niche-card__copy span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.4;
}

.niche-card__icon {
  color: var(--niche-accent);
  font-size: 20px;
  font-weight: 800;
}

.setup-submit {
  align-self: flex-start;
  margin-top: 34px;
}

.game-page {
  min-height: 100vh;
  background: var(--surface);
}

.game-header {
  position: relative;
  z-index: 5;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  background: var(--surface);
}

.game-identity,
.game-header__actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.game-identity,
.issue-meta {
  min-width: 0;
}

.game-header__actions {
  flex: 0 0 auto;
}

.issue-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.issue-meta strong {
  max-width: 260px;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-meta span,
.autosave {
  color: var(--muted);
  font-size: 11px;
}

.autosave::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.game-layout {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: 286px minmax(0, 1fr);
}

.dashboard {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 28px;
  background: var(--paper);
}

.dashboard__top {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.dashboard__eyebrow,
.dashboard__step {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.dashboard__step {
  float: right;
}

.progress-track {
  height: 5px;
  margin-top: 13px;
  overflow: hidden;
  background: #d8d0c4;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 500ms ease;
}

.career-timeline {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.career-timeline__point {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.2;
}

.career-timeline__point::before {
  position: absolute;
  top: 3px;
  right: 50%;
  left: -50%;
  height: 1px;
  background: var(--line);
  content: "";
}

.career-timeline__point:first-child::before {
  display: none;
}

.career-timeline__point i {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  background: var(--paper);
}

.career-timeline__point.is-current {
  color: var(--ink);
  font-weight: 750;
}

.career-timeline__point.is-current i {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgb(224 74 50 / 12%);
}

.headline-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.headline-number {
  padding: 22px 0;
}

.headline-number + .headline-number {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.headline-number span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.headline-number strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding: 27px 0;
}

.stat-row__labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 11px;
}

.stat-row__labels span {
  color: var(--muted);
}

.stat-row__name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stat-row__name i {
  font-size: 11px;
  font-style: normal;
}

.stat-row__labels strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.stat-track {
  height: 5px;
  overflow: hidden;
  background: #ddd6cb;
}

.stat-fill {
  height: 100%;
  transition: width 500ms ease;
}

.dashboard-quote {
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
}

.dashboard-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-style: normal;
}

.game-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(26px, 6vw, 92px) 64px;
  background:
    linear-gradient(90deg, rgb(23 23 19 / 2%) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--surface);
}

.decision-view,
.outcome-view {
  width: min(100%, 890px);
}

.decision-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  border-bottom: 3px double var(--ink);
  padding-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.decision-mast__category {
  min-width: 0;
  font-weight: 700;
  hyphens: auto;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.decision-mast__date {
  color: var(--muted);
  font-style: italic;
}

.issue-number {
  color: var(--accent-dark);
}

.decision-title {
  max-width: 790px;
  margin: 12px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 5.4vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.decision-context {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
}

.decision-progress-cue {
  display: inline-flex;
  max-width: 100%;
  margin: 16px 0 0;
  border: 1px solid color-mix(in srgb, var(--accent-dark) 45%, var(--line));
  padding: 7px 10px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.editorial-rule {
  width: 58px;
  height: 4px;
  margin: 30px 0;
  background: var(--accent);
}

.decision-question {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.choice-card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.choice-card:hover {
  border-color: var(--ink);
  transform: translateY(-5px);
  box-shadow: 7px 7px 0 var(--ink);
}

.choice-card:disabled {
  cursor: not-allowed;
}

.choice-card--locked {
  border-style: dashed;
  background: color-mix(in srgb, var(--surface) 88%, var(--line));
  opacity: 0.72;
}

.choice-card--locked:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.choice-card__top {
  display: grid;
  min-height: 56px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
}

.choice-card__number {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.choice-card__signal {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  hyphens: auto;
  letter-spacing: 0.05em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.choice-card__bottom {
  display: flex;
  min-height: 221px;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 16px 18px;
}

.choice-card__copy h3 {
  margin: 0 0 15px;
  font-size: 19px;
  font-weight: 800;
  hyphens: auto;
  letter-spacing: -0.025em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.choice-card__odds {
  display: inline-block;
  margin: 0 0 9px;
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-card__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.choice-card__requirement {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.choice-card__requirement.is-unlocked {
  color: var(--green);
}

.choice-card__requirement.is-locked {
  color: var(--red);
}

.choice-card__cases {
  display: grid;
  margin-top: 10px;
  gap: 8px;
}

.choice-case {
  position: relative;
  border-left: 3px solid var(--line);
  padding: 7px 0 11px 10px;
  overflow: hidden;
}

.choice-case::after {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: calc(var(--probability) - 10px);
  height: 3px;
  background: currentColor;
  content: "";
  opacity: 0.7;
}

.choice-case.is-upside {
  border-color: var(--green);
}

.choice-case.is-downside {
  border-color: var(--red);
}

.choice-case__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.choice-case.is-upside .choice-case__label {
  color: var(--green);
}

.choice-case.is-downside .choice-case__label {
  color: var(--red);
}

.choice-case__label b {
  font-size: 13px;
}

.choice-case__headline {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  hyphens: auto;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.choice-card__arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 22px;
}

.outcome-view {
  max-width: 730px;
}

.outcome-result {
  --result-color: var(--green);
  --result-tint: #e5f2ed;
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--result-color);
  padding: 12px 14px;
  background: var(--result-tint);
  color: var(--result-color);
  box-shadow: 5px 5px 0 var(--result-color);
  animation: outcome-stamp 240ms ease-out both;
}

.outcome-result--downside {
  --result-color: var(--red);
  --result-tint: #f7e6e2;
}

.outcome-result__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: var(--result-color);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.outcome-result__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.outcome-result__copy span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.outcome-result__copy strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.outcome-result__probability {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.outcome-card {
  position: relative;
  border: 1px solid var(--ink);
  padding: clamp(32px, 6vw, 64px);
  background: var(--surface);
  box-shadow: 12px 12px 0 var(--ink);
}

.outcome-card--upside {
  border-top: 6px solid var(--green);
}

.outcome-card--downside {
  border-top: 6px solid var(--red);
}

.outcome-card::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  bottom: 13px;
  left: 13px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.outcome-card > * {
  position: relative;
  z-index: 1;
}

.outcome-title {
  margin: 14px 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(39px, 5vw, 61px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.outcome-body {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.outcome-echoes {
  margin-top: 24px;
  border: 1px solid #c9b47f;
  padding: 14px 16px;
  background: #f5ecd2;
  transform: rotate(-0.25deg);
}

.outcome-echoes strong {
  color: #7a5414;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.outcome-echoes p {
  margin: 7px 0 0;
  color: #5f4c2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
}

.delta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.delta {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 10px;
  animation: outcome-stamp 220ms ease-out both;
}

.delta:nth-child(1) { animation-delay: 80ms; }
.delta:nth-child(2) { animation-delay: 120ms; }
.delta:nth-child(3) { animation-delay: 160ms; }
.delta:nth-child(4) { animation-delay: 200ms; }
.delta:nth-child(5) { animation-delay: 240ms; }

@keyframes outcome-stamp {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.delta--positive {
  background: #e1efe9;
  color: var(--green);
}

.delta--negative {
  background: #f5e2de;
  color: var(--red);
}

.outcome-impact {
  display: grid;
  margin-top: 25px;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.impact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  font-size: 11px;
}

.impact-item + .impact-item {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.impact-item strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.is-up {
  color: var(--green);
}

.is-down {
  color: var(--red);
}

.outcome-choice {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0 0;
}

.outcome-choice span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.outcome-choice strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.outcome-next {
  display: flex;
  margin: 38px auto 0;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  display: grid;
  inset: 0;
  place-items: center;
  padding: 20px;
  background: rgb(23 23 19 / 45%);
  backdrop-filter: blur(5px);
}

.run-menu {
  display: flex;
  width: min(100%, 390px);
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--ink);
  padding: 28px;
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--ink);
}

.run-menu h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.run-menu__divider {
  height: 1px;
  margin: 3px 0;
  background: var(--line);
}

.bug-dialog {
  width: min(100%, 560px);
  max-height: min(90dvh, 760px);
  overflow: auto;
  border: 1px solid var(--ink);
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface);
  box-shadow: 11px 11px 0 var(--ink);
}

.bug-dialog h2 {
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.bug-dialog__intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
}

.bug-context {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: capitalize;
}

.bug-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 24px;
}

.bug-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bug-select,
.bug-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px;
  background: white;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.bug-textarea {
  resize: vertical;
}

.bug-privacy,
.bug-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.bug-status:not(:empty) {
  border-left: 3px solid var(--red);
  padding-left: 10px;
  color: var(--red);
}

.bug-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.bug-success {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.confirmation-dialog p {
  margin: -2px 0 12px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.5;
}

.ending-page {
  background: var(--ink);
  color: white;
}

.simple-header--dark {
  margin: 0 clamp(22px, 5vw, 78px);
  border-color: rgb(255 255 255 / 20%);
}

.simple-header--dark .brand__mark {
  box-shadow: 3px 3px 0 white;
}

.ending-header-label {
  color: rgb(255 255 255 / 60%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ending-report {
  padding: 72px clamp(22px, 5vw, 78px) 100px;
}

.ending-hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 90px;
  padding-right: 250px;
}

.eyebrow--light {
  color: #ff8a72;
}

.ending-title {
  max-width: 870px;
  margin: 18px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.ending-kicker {
  margin: 0 0 20px;
  color: #ff8a72;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.5vw, 29px);
  font-style: italic;
}

.ending-description {
  max-width: 680px;
  margin: 0;
  color: rgb(255 255 255 / 70%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

.score-card {
  position: absolute;
  top: 20px;
  right: 0;
  display: flex;
  width: 190px;
  height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  transform: rotate(5deg);
}

.score-card__label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.score-card__score {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 65px;
  font-weight: 500;
  line-height: 1;
}

.score-card__of {
  color: rgb(255 255 255 / 50%);
  font-size: 11px;
}

.score-card__line {
  width: 70px;
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  background: rgb(255 255 255 / 20%);
}

.score-card__line span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.ending-ledger {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgb(255 255 255 / 25%);
}

.creator-card {
  display: grid;
  max-width: 1120px;
  margin: 84px auto 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  border: 1px solid rgb(255 255 255 / 25%);
  padding: clamp(28px, 5vw, 52px);
  background: rgb(255 255 255 / 4%);
}

.creator-card__copy h2 {
  max-width: 720px;
  margin: 14px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.creator-card__copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgb(255 255 255 / 68%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
}

.creator-card__copy .button {
  margin-top: 25px;
  text-decoration: none;
}

.creator-card__qr {
  display: block;
  padding: 8px;
  background: #151515;
  box-shadow: 6px 6px 0 var(--accent);
}

.creator-card__qr img {
  display: block;
  width: 176px;
  height: 176px;
}

.ending-summary,
.career-history {
  padding: 42px 44px 0 0;
}

.ending-collection {
  grid-column: 1 / -1;
  margin-top: 44px;
  border-top: 1px solid rgb(255 255 255 / 25%);
  padding: 38px 0 0;
}

.ending-collection h2 {
  max-width: 540px;
  margin: 9px 0 8px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.ending-collection__intro {
  max-width: 590px;
  margin: 0 0 22px;
  color: rgb(255 255 255 / 56%);
  font-size: 12px;
  line-height: 1.5;
}

.ending-stamps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ending-stamp {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(255 255 255 / 18%);
  padding: 10px;
  color: rgb(255 255 255 / 42%);
}

.ending-stamp.is-unlocked {
  border-color: var(--green);
  color: white;
  box-shadow: inset 3px 0 0 var(--green);
}

.ending-stamp__symbol {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  font-weight: 900;
}

.ending-stamp.is-unlocked .ending-stamp__symbol {
  background: var(--green);
  color: #fff;
}

.ending-stamp strong {
  min-width: 0;
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.career-history {
  border-left: 1px solid rgb(255 255 255 / 25%);
  padding-right: 0;
  padding-left: 44px;
}

.section-label {
  color: rgb(255 255 255 / 55%);
}

.ending-totals {
  display: grid;
  margin: 25px 0 38px;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgb(255 255 255 / 20%);
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.ending-total {
  padding: 18px 0;
}

.ending-total:nth-child(even) {
  border-left: 1px solid rgb(255 255 255 / 20%);
  padding-left: 20px;
}

.ending-total:last-child {
  grid-column: 1 / -1;
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.ending-total span {
  display: block;
  margin-bottom: 7px;
  color: rgb(255 255 255 / 55%);
  font-size: 10px;
}

.ending-total strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.final-stats {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.final-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 11px;
}

.final-stat__track {
  height: 5px;
  grid-column: 1 / -1;
  overflow: hidden;
  background: rgb(255 255 255 / 14%);
}

.final-stat__fill {
  display: block;
  height: 100%;
}

.history-list {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.history-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  padding: 13px 0;
}

.history-item__number {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.history-item__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.history-item__copy span {
  color: rgb(255 255 255 / 48%);
  font-size: 10px;
}

.history-item__copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 500;
}

.ending-page .site-footer {
  margin: 0 clamp(22px, 5vw, 78px);
  border-color: rgb(255 255 255 / 18%);
  color: rgb(255 255 255 / 45%);
}

.toast {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--ink);
  padding: 13px 18px;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 13px;
}

@media (max-width: 900px) {
  .game-layout {
    display: block;
  }

  .dashboard {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.8fr;
    gap: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
  }

  .dashboard__top {
    border-bottom: 0;
    padding: 0;
  }

  .headline-numbers {
    border-bottom: 0;
  }

  .headline-number {
    padding: 0;
  }

  .stats-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
    padding: 0;
  }

  .dashboard-quote {
    display: none;
  }

  .game-stage {
    min-height: auto;
  }

  .landing-preview {
    grid-template-columns: 1fr;
  }

  .preview-issue {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .preview-meter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-meter__label {
    grid-column: 1 / -1;
  }

  .ending-hero {
    padding-right: 0;
  }

  .score-card {
    position: static;
    width: 150px;
    height: 150px;
    margin-top: 50px;
  }
}

@media (max-width: 700px) {
  .landing-page,
  .setup-page {
    padding-inline: 18px;
  }

  .landing-nav,
  .simple-header {
    min-height: 78px;
  }

  .brand__tag,
  .autosave,
  .issue-meta span {
    display: none;
  }

  .hero {
    min-height: 470px;
    padding-top: 55px;
  }

  .hero__title {
    font-size: clamp(54px, 18vw, 78px);
  }

  .hero__actions,
  .ending-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .landing-preview {
    margin-right: 5px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .preview-meter {
    display: flex;
  }

  .promise-strip {
    grid-template-columns: 1fr;
  }

  .promise + .promise {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
  }

  .site-footer__links {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .bug-dialog {
    width: 100%;
    max-height: 90dvh;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
    box-shadow: 7px 7px 0 var(--ink);
  }

  .bug-actions {
    position: sticky;
    bottom: 0;
    margin: 0 -4px -4px;
    padding-top: 10px;
    background: var(--surface);
  }

  .creator-card {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  .creator-card__qr {
    display: none;
  }

  .setup-card {
    padding: 50px 0 60px;
  }

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

  .setup-submit {
    width: 100%;
  }

  .game-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  .game-identity,
  .game-header__actions {
    gap: 13px;
  }

  .issue-meta {
    max-width: 145px;
    padding-left: 13px;
  }

  .dashboard {
    display: block;
    padding: 15px 16px;
  }

  .dashboard__top {
    margin-bottom: 14px;
  }

  .headline-numbers {
    margin-bottom: 14px;
  }

  .stats-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .stat-row__labels span {
    font-size: 9px;
  }

  .stat-row__name > span {
    display: none;
  }

  .stat-row__labels strong {
    font-size: 12px;
  }

  .game-stage {
    display: block;
    padding: 33px 17px 54px;
  }

  .decision-mast {
    margin-bottom: 33px;
  }

  .decision-title {
    font-size: 48px;
  }

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

  .choice-card {
    min-height: 0;
  }

  .choice-card__bottom {
    min-height: 142px;
  }

  .outcome-card {
    box-shadow: 7px 7px 0 var(--ink);
  }

  .outcome-result {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    padding: 10px;
    box-shadow: 4px 4px 0 var(--result-color);
  }

  .outcome-result__icon {
    width: 44px;
    height: 44px;
    font-size: 25px;
  }

  .outcome-result__copy strong {
    font-size: 17px;
  }

  .outcome-result__probability {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 1px;
  }

  .outcome-impact {
    grid-template-columns: 1fr;
  }

  .impact-item + .impact-item {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }

  .outcome-next {
    width: 100%;
  }

  .ending-report {
    padding-top: 55px;
  }

  .ending-title {
    font-size: clamp(52px, 17vw, 76px);
  }

  .ending-ledger {
    grid-template-columns: 1fr;
  }

  .ending-summary,
  .career-history {
    padding: 35px 0;
  }

  .ending-collection {
    margin-top: 0;
    padding: 35px 0;
  }

  .ending-stamps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-history {
    border-top: 1px solid rgb(255 255 255 / 25%);
    border-left: 0;
  }
}

@media (max-width: 380px) {
  .game-header {
    gap: 10px;
  }

  .game-header .brand__words {
    display: none;
  }

  .game-identity {
    flex: 1 1 auto;
    gap: 10px;
  }

  .issue-meta {
    flex: 1 1 auto;
    max-width: none;
    padding-left: 10px;
  }

  .decision-mast {
    align-items: flex-start;
    gap: 12px;
  }

  .decision-mast__date {
    flex: 0 0 auto;
  }

  .collection-summary {
    grid-template-columns: 1fr;
  }

  .collection-summary__label {
    grid-column: auto;
  }

  .ending-stamps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
