[data-frontier-cause] {
  --fc-paper: #f0eee5;
  --fc-muted: #a2afb8;
  --fc-rule: #31424e;
  padding: clamp(18px, 3vw, 36px);
  border-radius: 14px;
  background: #111c25;
  color: var(--fc-paper);
  color-scheme: dark;
  font-family: 'Inter', 'Arial', sans-serif;
}
[data-frontier-cause] * { box-sizing: border-box; }
[data-frontier-cause] [hidden] { display: none !important; }
.fc-game { max-width: 1120px; margin: 0 auto; }
.fc-heading { margin-bottom: 28px; }
.fc-eyebrow { margin: 0 0 9px; color: #c1dc88; font-size: 12px; line-height: 1.3; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.fc-heading h2 { margin: 0 0 12px; font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: clamp(35px, 6vw, 70px); line-height: 1.04; letter-spacing: -.045em; font-weight: 900; }
.fc-intro { max-width: 590px; margin: 0; color: #c0cbd2; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.6; }
.fc-board { overflow: hidden; border: 1px solid var(--fc-rule); border-radius: 12px; background: #121f2a; }
.fc-board-top { display: flex; justify-content: space-between; gap: 10px; padding: 20px 22px 0; }
.fc-night { font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.fc-fiction { color: #b6c1c9; font-size: 11px; }
.fc-forecast { min-height: 2.8em; margin: 11px 22px 0; max-width: 620px; color: #e4e8de; font-size: 17px; line-height: 1.4; }
.fc-city { display: block; width: 100%; height: auto; }
.fc-bank { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #394c50; padding: 17px 22px; background: #14212b; }
.fc-bank > div:first-child { display: flex; gap: 10px; align-items: baseline; }
.fc-bank strong { color: #c1dc88; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.fc-bank span { color: #b7c3cb; font-size: 13px; }
.fc-crew-tokens { display: flex; gap: 7px; }
.fc-token { display: inline-block; position: relative; width: 16px; height: 22px; border-radius: 3px 3px 2px 2px; background: #bdd88c; box-shadow: inset 0 -6px 0 #8baf63; transition: opacity .2s, transform .2s; }
.fc-token::after { content: ''; position: absolute; width: 7px; height: 4px; top: 3px; left: 4px; border-radius: 2px; background: #e5f3c2; }
.fc-token-sent { opacity: .17; transform: translateY(3px); }
.fc-instruction { color: #bdc8ce; font-size: 13px; line-height: 1.6; margin: 17px 0 21px; }
.fc-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--fc-rule); border-bottom: 1px solid var(--fc-rule); }
.fc-project { --fc-color: #85c9d0; padding: 23px 20px 20px; transition: background .2s; }
.fc-project-clinic { --fc-color: #e0ac8f; border-left: 1px solid var(--fc-rule); border-right: 1px solid var(--fc-rule); }
.fc-project-seed { --fc-color: #b8d78c; }
.fc-project-title { display: flex; gap: 11px; align-items: flex-start; }
.fc-project-mark { flex: 0 0 25px; color: var(--fc-color); font-size: 26px; font-weight: 750; line-height: 1; }
.fc-project h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.2; font-weight: 750; }
.fc-project-title p { margin: 0; color: #afbbc3; font-size: 12px; line-height: 1.5; }
.fc-staffing { margin-top: 24px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.fc-level { color: var(--fc-color); font-size: 11px; line-height: 1.3; }
.fc-stepper { display: flex; align-items: center; gap: 1px; }
[data-frontier-cause] button { cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.fc-stepper button { display: grid; place-items: center; min-width: 40px; min-height: 42px; border: 1px solid #41515b; border-radius: 5px; background: #17252e; color: #edf0e7; font-size: 23px; line-height: 1; }
.fc-stepper button:hover:not(:disabled) { border-color: var(--fc-color); background: #293a42; }
.fc-stepper button:disabled { color: #53636c; border-color: #2e3b44; cursor: default; }
.fc-stepper output { display: inline-block; width: 30px; color: var(--fc-paper); font-size: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.fc-pips { display: flex; gap: 5px; margin-top: 15px; }
.fc-pips i { flex: 1; height: 3px; background: #34434b; transition: background .2s; }
.fc-pips .fc-lit { background: var(--fc-color); }
.fc-under-pressure { background: #2c3428; }
.fc-crisis, .fc-result { padding: 25px 25px 26px; margin-top: 22px; background: #1b2a32; border: 1px solid #526347; border-radius: 10px; }
.fc-crisis h3, .fc-result h3 { margin: 0 0 12px; font-size: clamp(25px, 3vw, 36px); line-height: 1.1; letter-spacing: -.025em; }
.fc-crisis > p:not(.fc-eyebrow) { max-width: 650px; color: #c5cdd0; font-size: 14px; line-height: 1.65; }
.fc-transfer-options { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.fc-transfer-options button { min-height: 44px; padding: 10px 15px; border: 1px solid #7d9364; border-radius: 5px; background: #c1dc88; color: #1a2821; font-weight: 700; font-size: 12px; }
.fc-transfer-options .fc-hold { border-color: #54635e; background: transparent; color: #dfe6dc; }
.fc-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.fc-go { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 13px 22px; border: 1px solid #d0e5a5; border-radius: 5px; background: #c1dc88; color: #1b2b22; font-size: 14px; font-weight: 750; }
.fc-go:hover:not(:disabled) { background: #d5e8b3; }
.fc-go:disabled { color: #829079; background: #27352e; border-color: #3d4a40; cursor: default; }
.fc-clear { min-height: 44px; padding: 9px 0; background: transparent; border: 0; border-bottom: 1px solid #4f5c64; border-radius: 0; color: #b2bec6; font-size: 12px; }
.fc-clear:disabled { color: #596973; border-color: #34434b; cursor: default; }
[data-frontier-cause] button:focus-visible { outline: 3px solid #f2d58e; outline-offset: 4px; }
.fc-live { min-height: 1.6em; margin: 13px 0 0; color: #bcc8ca; font-size: 12px; line-height: 1.6; }
.fc-result { border-color: #62774d; }
.fc-result-heading { display: flex; gap: 13px; align-items: flex-start; }
.fc-result-heading h3 { margin-bottom: 19px; }
.fc-dawn { color: #e4c17e; font-size: 31px; line-height: 1; }
.fc-outcomes { display: grid; gap: 13px; list-style: none; margin: 0; padding: 0; }
.fc-outcomes li { display: flex; gap: 11px; font-size: 14px; line-height: 1.5; }
.fc-outcomes li > span:first-child { flex: 0 0 16px; color: #c1dc88; font-weight: 750; }
.fc-outcomes .fc-strained { color: #bcc6ca; }
.fc-outcomes .fc-strained > span:first-child { color: #d9b691; }
@media (max-width: 720px) {
  .fc-heading { margin-bottom: 21px; }
  .fc-board-top { padding: 17px 17px 0; flex-wrap: wrap; gap: 6px 13px; }
  .fc-night { font-size: 11px; }
  .fc-fiction { font-size: 10px; }
  .fc-forecast { margin: 10px 17px 0; font-size: 14px; min-height: 2.9em; }
  .fc-bank { padding: 14px 16px; gap: 12px; }
  .fc-bank strong { font-size: 23px; }
  .fc-bank span { font-size: 11px; }
  .fc-crew-tokens { gap: 4px; }
  .fc-token { width: 12px; height: 18px; }
  .fc-token::after { width: 6px; height: 3px; left: 3px; }
  .fc-projects { grid-template-columns: 1fr; }
  .fc-project { padding: 18px 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  .fc-project-clinic { border-left: 0; border-right: 0; border-top: 1px solid var(--fc-rule); border-bottom: 1px solid var(--fc-rule); }
  .fc-project-title { gap: 8px; }
  .fc-project h3 { font-size: 16px; }
  .fc-staffing { margin-top: 0; gap: 12px; }
  .fc-level { font-size: 10px; max-width: 45px; }
  .fc-stepper button { min-width: 42px; min-height: 44px; }
  .fc-stepper output { width: 26px; }
  .fc-pips { grid-column: 1 / -1; margin-top: 12px; }
  .fc-crisis, .fc-result { padding: 21px 18px; }
  .fc-transfer-options { flex-direction: column; }
  .fc-transfer-options button { width: 100%; text-align: center; }
}
@media (max-width: 360px) {
  .fc-staffing { gap: 4px; }
  .fc-level { display: none; }
  .fc-project-title p { max-width: 145px; }
  .fc-crew-tokens { gap: 3px; }
  .fc-token { width: 10px; }
  .fc-bank { gap: 8px; }
  .fc-token::after { width: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-frontier-cause] *, [data-frontier-cause] *::after { transition: none !important; animation: none !important; }
}
