html {
  color-scheme: light dark;
}
body {
  margin: 0;
}

#compound-game {
  --cp-bg: light-dark(#eef0e8, #111d2b);
  --cp-panel: light-dark(#fbfbf2, #1b2b3e);
  --cp-ink: light-dark(#203b50, #e5eddf);
  --cp-dim: light-dark(#5b6e76, #a4b7bf);
  --cp-line: light-dark(#aab9b8, #455d70);
  --cp-gold: light-dark(#9a5e0e, #efbd6d);
  --cp-button: #efc576;
  --cp-button-ink: #202b35;
  --cp-green: light-dark(#277056, #9ed5b7);
  --cp-red: light-dark(#a33e30, #ffb0a0);
  --cp-sky: light-dark(#d5e1dd, #233a4d);
  --cp-building: light-dark(#9eb6b8, #3c586e);
  --cp-road: light-dark(#c3cfca, #223348);
  background: var(--cp-bg);
  color: var(--cp-ink);
  font:
    13px/1.5 Menlo,
    Consolas,
    monospace;
  border: 2px solid var(--cp-ink);
  box-shadow: 5px 5px 0 var(--cp-line);
  padding: 20px;
  isolation: isolate;
  overflow-wrap: anywhere;
}
#compound-game * {
  box-sizing: border-box;
}
#compound-game h1,
#compound-game h2,
#compound-game h3,
#compound-game p {
  margin: 0;
  font-family: inherit;
}
#compound-game .cp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-right: 60px;
  margin-bottom: 17px;
}
#compound-game .cp-header h1 {
  font-size: clamp(31px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 5px 0;
}
#compound-game .cp-header p:last-child {
  font-size: 12px;
  color: var(--cp-dim);
}
#compound-game .cp-eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cp-gold);
}
#compound-game .cp-year {
  text-align: center;
  white-space: nowrap;
}
#compound-game .cp-year b {
  display: block;
  font-size: 35px;
  line-height: 1.2;
}
#compound-game .cp-year span {
  font-size: 11px;
  color: var(--cp-dim);
}
#compound-game .cp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--cp-line);
}
#compound-game .cp-stat {
  padding: 9px 11px;
  border-right: 1px solid var(--cp-line);
  font-size: 11px;
  color: var(--cp-dim);
}
#compound-game .cp-stat:last-child {
  border: 0;
}
#compound-game .cp-stat strong {
  display: block;
  font-size: 23px;
  color: var(--cp-ink);
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#compound-game canvas {
  width: 100%;
  height: 185px;
  display: block;
  image-rendering: pixelated;
}
#compound-game .cp-city {
  margin-top: 12px;
}
#compound-game .cp-city p {
  font-size: 10px;
  color: var(--cp-dim);
  margin-top: 6px;
}
#compound-game .cp-wire {
  padding: 11px 0;
  margin-top: 10px;
  border-block: 1px solid var(--cp-line);
  font-size: 12px;
}
#compound-game .cp-wire b {
  color: var(--cp-gold);
}
#compound-game button,
#compound-game input,
#compound-game select,
#compound-game textarea {
  font: inherit;
}
#compound-game button {
  background: var(--cp-panel);
  color: var(--cp-ink);
  border: 1px solid var(--cp-line);
  border-radius: 0;
  padding: 9px 11px;
  min-height: 40px;
  box-shadow: 2px 2px 0 var(--cp-line);
  cursor: pointer;
  line-height: 1.4;
}
#compound-game button:hover:not(:disabled) {
  background: var(--cp-sky);
  border-color: var(--cp-ink);
}
#compound-game button:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: none;
}
#compound-game button[aria-pressed='true'],
#compound-game button[aria-pressed='true']:hover:not(:disabled) {
  background: var(--cp-ink);
  color: var(--cp-bg);
}
#compound-game button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
#compound-game .cp-primary {
  background: var(--cp-button);
  color: var(--cp-button-ink);
  border: 2px solid var(--cp-button-ink);
  font-weight: 700;
}
#compound-game .cp-primary:hover:not(:disabled) {
  background: #ffdb96;
  color: var(--cp-button-ink);
}
#compound-game :is(button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--cp-gold);
  outline-offset: 3px;
}
#compound-game .cp-tabs {
  display: flex;
  gap: 7px;
  margin: 15px 0;
}
#compound-game .cp-tabs button {
  flex: 1;
  font-size: 11px;
  padding: 9px 6px;
}
#compound-game .cp-firms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
#compound-game .cp-firms button {
  font-size: 11px;
  padding: 8px 5px;
  min-width: 0;
  text-align: left;
}
#compound-game .cp-firms b {
  display: block;
  font-size: 14px;
  margin: 3px 0;
  white-space: nowrap;
}
#compound-game .cp-firms span {
  font-size: 10px;
  display: block;
}
#compound-game h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 5px 0 9px;
  font-weight: 700;
}
#compound-game h3 {
  font-size: 15px;
  font-weight: 700;
}
#compound-game .cp-muted {
  font-size: 12px;
  color: var(--cp-dim);
}
#compound-game .cp-pitch {
  font-size: 13px;
  color: var(--cp-dim);
  border-left: 3px solid var(--cp-gold);
  padding-left: 11px;
  margin-top: 10px;
}
#compound-game .cp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-block: 1px solid var(--cp-line);
  padding: 11px 0;
  margin: 14px 0;
}
#compound-game .cp-metric {
  font-size: 11px;
  color: var(--cp-dim);
}
#compound-game .cp-metric b {
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--cp-ink);
  white-space: nowrap;
  margin: 2px 0;
}
#compound-game .cp-research {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 9px 0;
}
#compound-game .cp-research button {
  font-size: 12px;
  text-align: left;
}
#compound-game .cp-research small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
#compound-game .cp-evidence {
  padding: 12px;
  background: var(--cp-panel);
  border: 1px solid var(--cp-line);
  font-size: 12px;
  line-height: 1.65;
}
#compound-game .cp-desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
  margin-top: 13px;
}
#compound-game .cp-pane-switch {
  display: none;
}
#compound-game .cp-desk-grid .cp-research {
  grid-template-columns: 1fr;
}
#compound-game .cp-desk-grid .cp-research button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
#compound-game .cp-desk-grid .cp-research small {
  margin: 0;
  white-space: nowrap;
}
#compound-game .cp-invest-pane > .cp-form {
  margin-top: 0;
}
#compound-game .cp-invest-pane > .cp-form label {
  width: 100%;
}
#compound-game .cp-invest-pane > .cp-form input {
  width: 100%;
}
#compound-game .cp-invest-pane > .cp-form button {
  flex: 1;
  font-size: 12px;
}
#compound-game .cp-form {
  display: flex;
  gap: 9px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 16px;
}
#compound-game label {
  display: block;
  font-size: 12px;
}
#compound-game input,
#compound-game select,
#compound-game textarea {
  background: var(--cp-panel);
  color: var(--cp-ink);
  border: 1px solid var(--cp-line);
  border-radius: 0;
  padding: 9px;
  min-height: 42px;
}
#compound-game input {
  width: 135px;
  display: block;
  margin-top: 6px;
}
#compound-game input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}
#compound-game input::-webkit-inner-spin-button,
#compound-game input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#compound-game select,
#compound-game textarea {
  width: 100%;
  margin-top: 7px;
}
#compound-game .cp-small {
  font-size: 11px;
  color: var(--cp-dim);
  margin-top: 8px;
}
#compound-game .cp-owner {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--cp-line);
}
#compound-game .cp-owner .cp-form {
  margin: 12px 0;
}
#compound-game .cp-advance {
  border-top: 1px solid var(--cp-line);
  padding-top: 15px;
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
#compound-game .cp-advance p {
  flex: 1;
  min-width: 150px;
  font-size: 12px;
  color: var(--cp-dim);
}
#compound-game .cp-advance button {
  flex: 1;
  min-height: 49px;
}
#compound-game .cp-report {
  border: 1px dashed var(--cp-line);
  background: var(--cp-panel);
  padding: 16px;
}
#compound-game .cp-report-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
#compound-game .cp-big {
  font-size: 29px;
  font-weight: 700;
  white-space: nowrap;
}
#compound-game .cp-good {
  color: var(--cp-green);
}
#compound-game .cp-bad {
  color: var(--cp-red);
}
#compound-game .cp-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--cp-line);
}
#compound-game .cp-line strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#compound-game .cp-result {
  padding: 12px 0;
  border-top: 1px solid var(--cp-line);
}
#compound-game .cp-result p {
  font-size: 12px;
  color: var(--cp-dim);
  margin-top: 5px;
}
#compound-game .cp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
#compound-game .cp-actions button {
  flex: 1;
}
#compound-game .cp-position {
  border: 1px solid var(--cp-line);
  background: var(--cp-panel);
  padding: 13px;
  margin-top: 11px;
}
#compound-game .cp-position-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
#compound-game .cp-position-head strong {
  font-size: 19px;
  white-space: nowrap;
}
#compound-game .cp-position p {
  font-size: 12px;
  color: var(--cp-dim);
  margin-top: 6px;
}
#compound-game .cp-position button {
  font-size: 12px;
  margin-top: 10px;
}
#compound-game .cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 13px;
}
#compound-game .cp-table td,
#compound-game .cp-table th {
  border-bottom: 1px solid var(--cp-line);
  padding: 7px 3px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#compound-game .cp-table th:first-child,
#compound-game .cp-table td:first-child {
  text-align: left;
}
#compound-game .cp-journal {
  margin-top: 15px;
}
#compound-game .cp-journal textarea {
  min-height: 115px;
  resize: vertical;
}
#compound-game .cp-journal label {
  margin-top: 12px;
}
#compound-game .cp-journal details p {
  font-size: 12px;
  color: var(--cp-dim);
  margin-top: 10px;
}
#compound-game .cp-journal .cp-evidence {
  margin-top: 12px;
}
#compound-game .cp-message {
  font-size: 12px;
  color: var(--cp-green);
  min-height: 18px;
  margin: 12px 0;
}
#compound-game .cp-footer {
  border-top: 1px solid var(--cp-line);
  padding-top: 12px;
  font-size: 11px;
  color: var(--cp-dim);
}
#compound-game .cp-footer > p {
  font-size: 11px;
  line-height: 1.8;
}
#compound-game details {
  margin-top: 12px;
}
#compound-game summary {
  cursor: pointer;
  font-size: 12px;
}
#compound-game .cp-rules p {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
}
#compound-game a {
  color: var(--cp-green);
  text-underline-offset: 3px;
}
#compound-game [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  #compound-game {
    padding: 13px;
  }
  #compound-game .cp-header {
    padding-right: 0;
  }
  #compound-game .cp-header h1 {
    font-size: 32px;
    letter-spacing: -1.5px;
  }
  #compound-game .cp-year b {
    font-size: 28px;
  }
  #compound-game .cp-stats {
    grid-template-columns: 1fr 1fr;
  }
  #compound-game .cp-stat {
    padding: 8px;
  }
  #compound-game .cp-stat:nth-child(2) {
    border-right: 0;
  }
  #compound-game .cp-stat:last-child {
    grid-column: 1/-1;
    border-top: 1px solid var(--cp-line);
  }
  #compound-game .cp-stat strong {
    font-size: 21px;
  }
  #compound-game .cp-stat:last-child strong {
    display: inline;
    margin-left: 12px;
    font-size: 18px;
  }
  #compound-game .cp-city p {
    font-size: 11px;
  }
  #compound-game .cp-firms {
    grid-template-columns: repeat(3, 1fr);
  }
  #compound-game .cp-research {
    grid-template-columns: 1fr;
  }
  #compound-game .cp-research button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  #compound-game .cp-research small {
    margin: 0;
    white-space: nowrap;
  }
  #compound-game .cp-metric b {
    font-size: 18px;
  }
  #compound-game .cp-metric {
    font-size: 11px;
  }
  #compound-game button {
    min-height: 44px;
  }
  #compound-game .cp-form {
    align-items: stretch;
  }
  #compound-game .cp-form label {
    width: 100%;
  }
  #compound-game .cp-form input {
    width: 100%;
  }
  #compound-game .cp-form button {
    flex: 1;
    font-size: 12px;
  }
  #compound-game input,
  #compound-game select,
  #compound-game textarea {
    font-size: 16px;
  }
  #compound-game .cp-report-head {
    display: block;
  }
  #compound-game .cp-big {
    font-size: 26px;
    margin-top: 8px;
  }
  #compound-game .cp-position-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  #compound-game .cp-tabs button {
    font-size: 10px;
  }
  #compound-game .cp-table {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  #compound-game .cp-firms {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  #compound-game .cp-firms button {
    padding: 7px 3px;
    font-size: 10px;
  }
  #compound-game .cp-firms b {
    font-size: 11px;
  }
  #compound-game .cp-firms span {
    display: none;
  }
}
@media (max-width: 600px) {
  #compound-game .cp-desk-grid {
    display: block;
  }
  #compound-game .cp-pane-switch {
    display: flex;
    gap: 7px;
    margin-top: 12px;
  }
  #compound-game .cp-pane-switch button {
    flex: 1;
  }
  #compound-game .cp-desk-grid[data-pane='research'] .cp-invest-pane {
    display: none;
  }
  #compound-game .cp-desk-grid[data-pane='invest'] .cp-research-pane {
    display: none;
  }
}

#compound-game {
  --cp-grass: light-dark(#a2b5a2, #365b51);
  --cp-shadow: light-dark(#677e80, #0c1726);
  --cp-cloud: light-dark(#f5f1d9, #627582);
  --cp-sun: light-dark(#e1ad46, #efc576);
  padding: 18px;
  border: 0;
  box-shadow: none;
}
#compound-game .cp-header {
  margin-bottom: 10px;
}
#compound-game .cp-stats {
  border: 0;
  background: var(--cp-ink);
  color: var(--cp-bg);
  gap: 1px;
}
#compound-game .cp-stat {
  color: var(--cp-bg);
  border: 0;
  padding: 10px 12px;
  font-size: 10px;
}
#compound-game .cp-stat strong {
  color: var(--cp-bg);
  font-size: 21px;
}
#compound-game .cp-city {
  position: relative;
  background: var(--cp-sky);
  margin-top: 0;
  border-bottom: 5px solid var(--cp-ink);
}
#compound-game .cp-world-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 0;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--cp-ink);
}
#compound-game canvas {
  height: 265px;
}
#compound-game .cp-map-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 0 8px 10px;
}
#compound-game .cp-map-controls button {
  padding: 7px 2px;
  text-align: center;
  font-size: 11px;
  min-width: 0;
  box-shadow: 0 3px 0 var(--cp-shadow);
  border: 1px solid var(--cp-ink);
}
#compound-game .cp-map-controls b,
#compound-game .cp-map-controls small {
  display: block;
  white-space: nowrap;
}
#compound-game .cp-map-controls b {
  font-size: 13px;
}
#compound-game .cp-map-controls small {
  font-size: 10px;
}
#compound-game .cp-city > p {
  font-size: 10px;
  line-height: 1.5;
  padding: 8px 10px;
  margin: 0;
  background: var(--cp-road);
  color: var(--cp-ink);
}
#compound-game .cp-world-event {
  min-height: 69px;
  background: var(--cp-panel);
  padding: 12px 14px;
  border-left: 5px solid var(--cp-gold);
}
#compound-game .cp-world-event[data-tone='loss'] {
  border-color: var(--cp-red);
}
#compound-game .cp-world-event[data-tone='gain'] {
  border-color: var(--cp-green);
}
#compound-game .cp-world-event b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.4px;
}
#compound-game .cp-world-event span {
  display: block;
  color: var(--cp-dim);
  font-size: 11px;
  margin-top: 3px;
}
#compound-game .cp-journey {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 0;
}
#compound-game .cp-journey span {
  height: 7px;
  flex: 1;
  background: var(--cp-line);
}
#compound-game .cp-journey .done {
  background: var(--cp-green);
}
#compound-game .cp-journey .now {
  background: var(--cp-gold);
  height: 11px;
}
#compound-game .cp-journey b {
  font-size: 11px;
  white-space: nowrap;
  margin-left: 6px;
}
#compound-game .cp-wire {
  margin-top: 0;
  padding: 8px 0;
  font-size: 11px;
}
#compound-game .cp-tabs {
  margin: 12px 0;
}
#compound-game .cp-pane-switch {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}
#compound-game .cp-pane-switch button {
  flex: 1;
}
#compound-game .cp-desk-grid {
  display: block;
  margin-top: 12px;
}
#compound-game .cp-desk-grid[data-pane='research'] .cp-invest-pane,
#compound-game .cp-desk-grid[data-pane='invest'] .cp-research-pane {
  display: none;
}
#compound-game .cp-desk-grid .cp-research {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#compound-game .cp-desk-grid .cp-research button {
  display: block;
}
#compound-game .cp-desk-grid .cp-research small {
  margin-top: 5px;
}
#compound-game .cp-invest-pane > .cp-form label {
  flex: 1;
  width: auto;
  min-width: 130px;
}
#compound-game .cp-invest-pane > .cp-form button {
  flex: 1;
  min-width: 100px;
}
#compound-game .cp-metrics {
  margin: 10px 0;
  padding: 8px 0;
}
#compound-game .cp-metric b {
  font-size: 17px;
}
#compound-game .cp-pitch {
  margin-top: 8px;
}
#compound-game .cp-report {
  border: 0;
  padding: 0;
  background: transparent;
}
#compound-game .cp-recap-hero {
  background: var(--cp-panel);
  padding: 20px;
  border-top: 5px solid var(--cp-green);
}
#compound-game .cp-recap-hero.loss {
  border-color: var(--cp-red);
}
#compound-game .cp-recap-hero h2 {
  font-size: 27px;
  letter-spacing: -1px;
}
#compound-game .cp-recap-hero .cp-big {
  font-size: 36px;
  margin: 6px 0;
}
#compound-game .cp-loot {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--cp-line);
}
#compound-game .cp-loot span {
  flex: 1;
  min-width: 115px;
  font-size: 11px;
  color: var(--cp-dim);
}
#compound-game .cp-loot b {
  display: block;
  color: var(--cp-ink);
  font-size: 18px;
}
#compound-game .cp-payoff {
  position: relative;
  background: var(--cp-panel);
  padding: 15px;
  margin-top: 10px;
  border-left: 4px solid var(--cp-green);
}
#compound-game .cp-payoff.loss {
  border-color: var(--cp-red);
}
#compound-game .cp-payoff.mixed {
  border-color: var(--cp-gold);
}
#compound-game .cp-payoff h3 {
  margin: 5px 0;
}
#compound-game .cp-payoff p {
  font-size: 12px;
  color: var(--cp-dim);
}
#compound-game .cp-payoff .cp-verdict {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cp-ink);
}
#compound-game .cp-outcomes {
  display: flex;
  gap: 15px;
  margin: 10px 0;
  flex-wrap: wrap;
}
#compound-game .cp-outcomes span {
  font-size: 11px;
}
#compound-game .cp-outcomes b {
  display: block;
  font-size: 22px;
}
#compound-game .cp-project-pips {
  display: flex;
  gap: 3px;
  margin: 8px 0;
}
#compound-game .cp-project-pips i {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--cp-green);
}
#compound-game .cp-replay-scene {
  font-size: 11px;
  margin-top: 12px;
}
#compound-game .cp-stamp {
  animation: cp-stamp 0.35s ease-out;
}
#compound-game .cp-money-pop {
  animation: cp-money-pop 0.65s ease-out;
}
@keyframes cp-stamp {
  from {
    transform: translateY(7px) scale(0.97);
  }
  60% {
    transform: translateY(-2px) scale(1.01);
  }
  to {
    transform: none;
  }
}
@keyframes cp-money-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.09);
    color: var(--cp-gold);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 600px) {
  #compound-game {
    padding: 10px;
  }
  #compound-game .cp-stats {
    grid-template-columns: 1fr 1fr;
  }
  #compound-game .cp-stat {
    padding: 8px 10px;
  }
  #compound-game .cp-stat:last-child {
    grid-column: 1/-1;
    padding: 5px 10px;
    border: 0;
  }
  #compound-game .cp-stat:last-child strong {
    font-size: 12px;
  }
  #compound-game .cp-map-controls {
    gap: 3px;
    padding: 0 4px 9px;
  }
  #compound-game .cp-map-controls button {
    font-size: 10px;
  }
  #compound-game .cp-map-controls b {
    font-size: 11px;
  }
  #compound-game .cp-map-controls small {
    font-size: 10px;
  }
  #compound-game .cp-world-top {
    font-size: 9px;
    padding-inline: 8px;
  }
  #compound-game .cp-world-event {
    padding: 11px;
    min-height: 83px;
  }
  #compound-game .cp-world-event b {
    font-size: 14px;
  }
  #compound-game .cp-city > p {
    font-size: 10px;
  }
  #compound-game .cp-recap-hero {
    padding: 14px;
  }
  #compound-game .cp-recap-hero h2 {
    font-size: 24px;
  }
  #compound-game .cp-recap-hero .cp-big {
    font-size: 30px;
  }
  #compound-game .cp-desk-grid .cp-research {
    grid-template-columns: 1fr;
  }
  #compound-game .cp-desk-grid .cp-research button {
    display: flex;
  }
  #compound-game .cp-desk-grid .cp-research small {
    margin: 0;
  }
  #compound-game .cp-invest-pane > .cp-form label {
    width: 100%;
    flex: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  #compound-game .cp-stamp,
  #compound-game .cp-money-pop {
    animation: none;
  }
}

#compound-game .cp-surprise {
  background: var(--cp-panel);
  padding: 18px;
  border-top: 6px solid var(--cp-red);
}
#compound-game .cp-surprise h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 8px 0 12px;
}
#compound-game .cp-surprise > p:not(.cp-eyebrow):not(.cp-small) {
  font-size: 13px;
  line-height: 1.65;
}
#compound-game .cp-event-stakes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin: 12px 0;
  border-block: 1px solid var(--cp-line);
}
#compound-game .cp-event-stakes span {
  flex: 1;
  font-size: 11px;
  min-width: 100px;
}
#compound-game .cp-event-stakes b {
  display: block;
  font-size: 19px;
}
#compound-game .cp-event-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 15px 0;
}
#compound-game .cp-event-options button {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--cp-ink);
  box-shadow: 3px 3px 0 var(--cp-line);
}
#compound-game .cp-event-options button strong {
  display: block;
  font-size: 17px;
}
#compound-game .cp-event-options button span {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.6;
}
#compound-game .cp-event-options .cp-choice-cost {
  color: var(--cp-gold);
  font-size: 12px;
  font-weight: 700;
}
#compound-game .cp-event-options button:disabled {
  opacity: 0.65;
}
#compound-game .cp-event-options button em {
  display: block;
  font-style: normal;
  font-size: 11px;
  margin-top: 7px;
  color: var(--cp-red);
}
#compound-game .cp-event-files {
  margin-top: 20px;
}
#compound-game .cp-event-receipt {
  background: var(--cp-panel);
  border-left: 4px solid var(--cp-gold);
  padding: 14px;
  margin-top: 12px;
}
#compound-game .cp-event-receipt h3 {
  margin: 6px 0;
}
#compound-game .cp-event-receipt p:not(.cp-eyebrow) {
  font-size: 12px;
  line-height: 1.65;
  margin-top: 7px;
  color: var(--cp-dim);
}
#compound-game[data-event='crash'] .cp-world-top,
#compound-game[data-event='rival'] .cp-world-top {
  color: var(--cp-red);
}
@media (max-width: 600px) {
  #compound-game .cp-surprise {
    padding: 13px;
  }
  #compound-game .cp-surprise h2 {
    font-size: 24px;
  }
  #compound-game .cp-event-stakes span {
    min-width: 80px;
  }
  #compound-game .cp-event-options button {
    padding: 12px;
  }
}
