.cfr{--ink:#dceaf3;--muted:#9ab1bf;--gold:#ffbd63;position:fixed;inset:0;z-index:100000;background:#07131d;color:var(--ink);font:16px/1.5 system-ui,sans-serif;overflow:auto;color-scheme:dark}.cfr *{box-sizing:border-box}.cfr button{font:inherit;color:inherit;background:#173243;border:1px solid #476172;border-radius:10px;padding:12px 16px;cursor:pointer;touch-action:manipulation}.cfr button:hover,.cfr button:focus-visible{background:#24465a;outline:2px solid #70dfec;outline-offset:2px}.cfr button:disabled{opacity:.5;cursor:default}.cfr button[aria-pressed=true]{border-color:#77e8eb;background:#255465}.cfr header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 24px;border-bottom:1px solid #2a424f}.cfr .cfr-brand{font-weight:850;letter-spacing:.12em;font-size:14px}.cfr .cfr-tag{color:var(--gold);font-size:12px;letter-spacing:.1em}.cfr .cfr-tools{display:flex;gap:8px}.cfr .cfr-tools button{padding:7px 12px;font-size:13px}.cfr main{max-width:1120px;margin:auto;padding:22px}.cfr .cfr-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:20px}.cfr .cfr-stat{background:#112735;border:1px solid #294351;border-radius:10px;padding:10px 14px}.cfr .cfr-stat span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.06em}.cfr .cfr-stat b{font-size:20px}.cfr .cfr-story{display:grid;grid-template-columns:1fr 1.5fr;border:1px solid #304853;border-radius:16px;overflow:hidden;background:#102330}.cfr .cfr-scene{min-height:380px;position:relative;background:linear-gradient(#283b4a88,#06131acc),url(campaign-scenery.png) center/cover}.cfr .cfr-scene:before{content:"";position:absolute;inset:12% 25% 8%;border:7px solid #9a8b6a;clip-path:polygon(45% 0,60% 0,100% 100%,0 100%);background:repeating-linear-gradient(45deg,transparent 0 40px,#aaa17b55 41px 45px,transparent 46px 85px)}.cfr .cfr-crew{position:absolute;bottom:0;left:8%;width:80%;height:80%;object-fit:contain;object-position:bottom}.cfr .cfr-crew-label{position:absolute;bottom:12px;left:12px;padding:6px 12px;background:#07131de8;border-radius:6px}.cfr .cfr-copy{padding:28px}.cfr h1{font-size:clamp(24px,4vw,36px);line-height:1.12;margin:8px 0 18px}.cfr .cfr-dialogue{font-size:20px;color:#f3eee2;min-height:88px}.cfr .cfr-choices{display:grid;gap:10px}.cfr .cfr-choices button{text-align:left}.cfr .cfr-choices b,.cfr .cfr-choices small{display:block}.cfr .cfr-choices small{color:#b4c7d1;font-size:13px;margin-top:5px}.cfr .cfr-choices .risk{border-color:#805c3c}.cfr .cfr-note{color:var(--muted);font-size:13px;margin-top:14px}.cfr .cfr-steps{display:flex;flex-wrap:wrap;gap:7px;font-size:12px;margin:18px 0}.cfr .cfr-steps span{padding:4px 10px;border-radius:14px;background:#17303b;color:#91a9b4}.cfr .cfr-steps .done{color:#76e1bb}.cfr .cfr-steps .current{background:#745230;color:#fff0d9}.cfr .cfr-ledger{margin-top:18px;border-top:1px solid #294351;padding-top:10px;color:#b3c8d2;font-size:13px}.cfr .cfr-ledger ul{margin:8px 0;padding-left:20px}.cfr .cfr-fire-wrap{width:min(100%,calc((100dvh - 290px)*1.7778));margin:auto;position:relative;line-height:0;border:1px solid #53626c;border-radius:12px;overflow:hidden}.cfr canvas{width:100%;height:auto;display:block;touch-action:none;background:#17202d;cursor:crosshair}.cfr .cfr-fire-hud{position:absolute;left:12px;top:10px;background:#09151fd9;border:1px solid #5a655e;border-radius:8px;padding:8px 12px;line-height:1.4;font-size:13px;pointer-events:none;max-width:65%}.cfr .cfr-fire-hud b{color:#ffc178}.cfr .cfr-fire-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}.cfr .cfr-spray{background:#934e22!important;font-weight:800!important;min-width:140px;touch-action:none!important}.cfr .cfr-feedback{min-height:48px;border-left:3px solid #fcba66;padding:10px 14px;background:#182c37;margin:14px 0;line-height:1.45}.cfr .cfr-result{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#07131dd9;padding:24px;line-height:1.5}.cfr .cfr-result h1{margin:8px 0}.cfr .cfr-result[hidden]{display:none}.cfr .cfr-result button{max-width:300px;justify-self:center}.cfr .cfr-source{font-size:11px;color:#849eaf}.cfr .cfr-pause{color:#ffce7a}.cfr .cfr-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px}.cfr .cfr-feedback:empty{display:none}@media(max-width:650px){.cfr header{padding:10px 12px}.cfr main{padding:12px}.cfr .cfr-stats{grid-template-columns:repeat(2,1fr);gap:6px;margin-bottom:12px}.cfr .cfr-stat b{font-size:17px}.cfr .cfr-story{grid-template-columns:1fr}.cfr .cfr-scene{min-height:140px;max-height:150px}.cfr .cfr-crew{height:150px;width:40%;left:3%}.cfr .cfr-copy{padding:18px}.cfr .cfr-dialogue{font-size:18px;min-height:0}.cfr .cfr-fire-controls button{padding:10px;font-size:13px;flex:1}.cfr .cfr-fire-hud{font-size:11px;padding:5px 8px;top:6px;left:6px}.cfr .cfr-note{font-size:12px}.cfr .cfr-tools{gap:4px}.cfr .cfr-tools button{padding:6px 8px;font-size:12px}}.cfr .cfr-fixtures{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;font-size:13px}.cfr .cfr-fixtures button{padding:8px 12px}.cfr.cfr-fire-mode{overflow:hidden;display:flex;flex-direction:column}.cfr.cfr-fire-mode header{flex:none}.cfr.cfr-fire-mode main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;padding:12px 20px;overflow:hidden}.cfr.cfr-fire-mode .cfr-fire-wrap{flex:1;width:100%;min-height:90px;line-height:0;background:#09131c}.cfr.cfr-fire-mode canvas{width:100%;height:100%;object-fit:contain}.cfr.cfr-fire-mode .cfr-fire-controls{flex:none;margin-top:8px}.cfr.cfr-fire-mode .cfr-feedback{flex:none;min-height:0;margin:8px 0;font-size:13px;padding:7px 10px}.cfr .cfr-fire-help{flex:none;font-size:12px;color:var(--muted)}.cfr .cfr-fire-help[open]{max-height:100px;overflow:auto}.cfr .cfr-fire-help .cfr-note{margin:5px 0}.cfr .cfr-fire-help summary{cursor:pointer}.cfr.cfr-fire-mode .cfr-fire-hud{font-size:12px}.cfr.cfr-fire-mode .cfr-result{overflow:auto}.cfr.cfr-fire-mode .cfr-result h1{font-size:clamp(20px,4vw,32px)}@media(max-width:650px){.cfr.cfr-fire-mode main{padding:8px}.cfr.cfr-fire-mode .cfr-fire-controls{gap:5px}.cfr.cfr-fire-mode .cfr-fire-controls button{font-size:12px;padding:9px 7px}.cfr.cfr-fire-mode .cfr-fire-hud{font-size:10px;max-width:88%}}@media(max-height:480px){.cfr.cfr-fire-mode header{padding:5px 12px}.cfr.cfr-fire-mode .cfr-brand{font-size:12px}.cfr.cfr-fire-mode .cfr-tag{font-size:10px}.cfr.cfr-fire-mode main{padding:5px 12px}.cfr.cfr-fire-mode .cfr-fire-controls{margin-top:5px;gap:5px}.cfr.cfr-fire-mode .cfr-fire-controls button{padding:5px 9px;font-size:11px}.cfr.cfr-fire-mode .cfr-feedback{margin:5px 0;padding:4px 8px;font-size:11px}.cfr.cfr-fire-mode .cfr-fire-hud{font-size:10px;padding:4px 6px}.cfr .cfr-fire-help[open]{max-height:65px}}.cfr canvas{image-rendering:pixelated}.cfr.cfr-fire-mode .cfr-fire-wrap{border-radius:2px;border-color:#8d8068;box-shadow:0 0 0 3px #111f28}.cfr.cfr-fire-mode .cfr-fire-hud{border-radius:2px;font-family:ui-monospace,monospace;background:#101c23ed;border-color:#8b7a59}.cfr.cfr-fire-mode .cfr-fire-controls button{border-radius:3px;border-bottom-width:3px;font-family:ui-monospace,monospace;font-weight:700}.cfr.cfr-fire-mode header{background:#101c25}.cfr.cfr-fire-mode .cfr-feedback{border-color:#bfa16a;background:#192832}.cfr-tools{flex-wrap:wrap}.cfr-tools [data-voice-status]{flex-basis:100%;font-size:10px;color:#bfdde0;max-width:500px}.cfr-tools button{min-height:40px}
