*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#1a1410;font-family:Courier New,ui-monospace,monospace}#app canvas{display:block;image-rendering:pixelated}#ui-root{position:absolute;inset:0;pointer-events:none;color:#e8dcc0;font-size:13px}.panel{pointer-events:auto;background:#18120ceb;border:1px solid #5a4630;border-radius:3px}.topbar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:18px;padding:6px 12px;border-radius:0;border-width:0 0 1px 0}.topbar .stat{white-space:nowrap}.topbar .stat b{color:#f2c14e;font-weight:700}.topbar .stat.negative b{color:#e05252}.speed-group{display:flex;gap:4px;margin-left:auto}.speed-group button{pointer-events:auto;background:#2c2216;color:#e8dcc0;border:1px solid #5a4630;border-radius:2px;font:inherit;padding:2px 10px;cursor:pointer}.speed-group button.active{background:#f2c14e;color:#1a1410;border-color:#f2c14e}.sidebar{position:absolute;top:40px;left:6px;display:flex;flex-direction:column;gap:4px;padding:6px 5px}.sidebar button.cat{pointer-events:auto;width:44px;height:42px;display:flex;align-items:center;justify-content:center;background:#2c2216;border:1px solid #5a4630;border-radius:3px;cursor:pointer}.sidebar button.cat:hover{border-color:#8a6a3a}.sidebar button.cat.active{background:#f2c14e;border-color:#f2c14e}.pixel-icon{image-rendering:pixelated;max-width:34px;max-height:34px}.flyout{position:absolute;left:66px;min-width:120px;max-width:300px;padding:8px 10px}.flyout-title{color:#f2c14e;margin-bottom:6px;font-size:12px}.flyout-grid{display:flex;flex-wrap:wrap;gap:6px}.tile{pointer-events:auto;width:66px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px 4px;background:#2c2216;border:1px solid #5a4630;border-radius:3px;cursor:pointer;color:#e8dcc0;font:inherit;font-size:10px}.tile:hover{border-color:#f2c14e}.tile-icon{height:40px;display:flex;align-items:center;justify-content:center}.tile-icon .pixel-icon{max-width:52px;max-height:40px}.tile-cost{color:#f2c14e}.tile.dim{opacity:.45}.tile.locked{opacity:.35;filter:grayscale(1);cursor:default}.build-tooltip{position:absolute;z-index:10;max-width:220px;padding:6px 10px;font-size:12px;pointer-events:none}.build-tooltip .title{color:#f2c14e;margin-bottom:2px}.build-tooltip .muted{opacity:.7;margin-top:2px}.build-tooltip .warn{color:#e08585;margin-top:3px}.toolchip{position:absolute;bottom:10px;left:66px;padding:5px 12px;color:#f2c14e;font-size:12px}.toolchip.warn{color:#e05252}.inspectbox{position:absolute;bottom:10px;right:10px;min-width:180px;padding:6px 10px}.inspectbox .title{color:#f2c14e;margin-bottom:3px}.fps{position:absolute;top:40px;right:10px;padding:3px 8px;font-size:11px;opacity:.8}.topbar .sell{pointer-events:auto;background:#6a4a22;color:#f2e2b8;border:1px solid #8a6a3a;border-radius:2px;font:inherit;padding:2px 10px;cursor:pointer}.topbar .sell:disabled{opacity:.4;cursor:default}.modal-backdrop{position:absolute;inset:0;z-index:50;pointer-events:auto;background:#0a08058c;display:flex;align-items:center;justify-content:center}.modal{min-width:300px;max-width:420px;padding:14px 18px}.modal-title{color:#f2c14e;font-size:15px;margin-bottom:8px}.payrow{display:flex;justify-content:space-between;gap:24px;margin:3px 0}.payrow.neg span:last-child{color:#e08585}.payrow.pos span:last-child{color:#9fd08a}.payrow.warn{color:#e08585;margin-top:6px}.modal hr{border:none;border-top:1px solid #5a4630;margin:6px 0}.crew{position:absolute;top:40px;left:66px;min-width:170px;padding:6px 10px}.market-panel{position:absolute;top:40px;left:50%;transform:translate(-50%);min-width:210px;padding:6px 10px}.market-panel .title{color:#f2c14e;margin-bottom:4px}.market-panel button.mini.wide{width:100%;margin-top:6px}.crew-header{display:flex;justify-content:space-between;align-items:center;gap:10px}.crew .title,.selection .title{color:#f2c14e;margin-bottom:4px}.needrow{display:flex;justify-content:space-between;gap:12px}.needrow .muted{opacity:.45}.needrow .bad{color:#e08585}button.mini{pointer-events:auto;background:#2c2216;color:#e8dcc0;border:1px solid #5a4630;border-radius:2px;font:inherit;font-size:11px;padding:0 6px;cursor:pointer}button.mini.wide{padding:0 12px}.selection{position:absolute;top:44px;right:10px;min-width:200px;padding:6px 10px}.modal-close{margin-top:10px;width:100%;background:#f2c14e;color:#1a1410;border:none;border-radius:2px;font:inherit;font-weight:700;padding:6px 0;cursor:pointer}.modal-close:disabled{background:#6b5f4a;color:#3a3226;cursor:default}.topbar .sell.unread{background:#f2c14e;color:#1a1410;border-color:#f2c14e;animation:mail-unread 1.6s ease-in-out infinite}@keyframes mail-unread{50%{box-shadow:0 0 10px #f2c14ed9}}.toasts{position:absolute;top:52px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:4px;align-items:center;pointer-events:none;z-index:35}.toast{background:#18120ceb;border:1px solid #8a6a3a;border-radius:3px;padding:5px 14px;color:#f2e2b8;font-size:12px;transition:opacity .6s}.toast.fade{opacity:0}.mail-list{display:flex;flex-direction:column;gap:3px;max-height:50vh;overflow-y:auto}.mail-item{display:flex;justify-content:space-between;gap:16px;background:#2c2216;color:#e8dcc0;border:1px solid #5a4630;border-radius:2px;font:inherit;font-size:12px;padding:5px 9px;cursor:pointer;text-align:left}.mail-item.unread .mail-subject{color:#f2c14e;font-weight:700}.mail-from{opacity:.6;font-size:11px}.topbar .town-name{color:#f2c14e;font-weight:700;letter-spacing:1px}.topbar .charter{background:#f2c14e;color:#1a1410;border-color:#f2c14e;animation:charter-pulse 1.6s infinite}@keyframes charter-pulse{50%{filter:brightness(1.25)}}.charter-input{width:100%;margin:8px 0;padding:8px 10px;font:inherit;font-size:15px;background:#f5efe0;color:#1a1410;border:2px solid #8a6a3a;border-radius:2px}.charter-input-error{border-color:#e05252}.gazette-backdrop{position:absolute;inset:0;pointer-events:auto;background:#0a0805bf;display:flex;align-items:center;justify-content:center;z-index:30;overflow:auto}.gazette{width:min(860px,94vw);max-height:92vh;overflow-y:auto;background:#efe6cf;color:#241c12;padding:26px 34px;box-shadow:0 8px 40px #0009;font-family:Georgia,Times New Roman,serif}.gazette-masthead{text-align:center;font-size:34px;font-weight:700;letter-spacing:4px;border-bottom:3px double #241c12;padding-bottom:6px}.gazette-dateline{text-align:center;font-size:12px;padding:4px 0;border-bottom:1px solid #241c12;margin-bottom:12px}.gazette-headline{font-size:30px;font-weight:700;text-align:center;margin:8px 0 2px;letter-spacing:1px}.gazette-subhead{text-align:center;font-style:italic;font-size:15px;margin-bottom:14px}.gazette-columns{display:flex;gap:22px;border-top:1px solid #241c12;padding-top:12px}.gazette-story{flex:1.3;font-size:13.5px;line-height:1.55;text-align:justify}.gazette-story p:first-child:first-letter{font-size:30px;font-weight:700;float:left;line-height:1;padding-right:4px}.gazette-side{flex:1;border-left:1px solid #241c12;padding-left:18px}.gazette-photo-canvas{width:100%;image-rendering:pixelated;border:1px solid #241c12}.gazette-caption{font-size:11px;font-style:italic;text-align:center;margin:4px 0 12px}.gazette-score-title{font-weight:700;font-size:13px;letter-spacing:1px;border-bottom:1px solid #241c12;margin-bottom:6px}.gazette-score-row{display:flex;justify-content:space-between;font-size:13px;padding:1.5px 0}.gazette-total{margin-top:8px;padding-top:6px;border-top:2px solid #241c12;font-weight:700;font-size:17px;letter-spacing:1px}.gazette-best{margin-top:8px;font-size:12px;font-weight:700;color:#8a3a2a}.gazette-best.muted{color:#241c12;opacity:.6;font-weight:400}.gazette-actions{display:flex;gap:10px;margin-top:18px}.gazette-actions .modal-close{flex:1;margin-top:0}.gallery{position:absolute;inset:0;pointer-events:auto;background:#241c12;display:flex;flex-wrap:wrap;gap:24px;padding:40px;align-items:flex-end;align-content:flex-start;overflow:auto;z-index:20}.gallery-cell{display:flex;flex-direction:column;align-items:center;gap:8px;color:#e8dcc0;font-size:12px}.modal-close.secondary{background:#2c2216;color:#e8dcc0;border:1px solid #5a4630;margin-top:6px}.modal.letter p{margin:8px 0;line-height:1.45;white-space:pre-wrap}.title-backdrop{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#0c0905b8,#0c0905f0);pointer-events:auto}.title-panel{display:flex;flex-direction:column;align-items:center;gap:10px;padding:32px 48px}.title-wordmark{font-size:64px;font-weight:700;letter-spacing:8px;color:#f2c14e;text-shadow:2px 2px 0 #7a5a1e,4px 4px 0 #3a2a10,6px 6px 0 rgba(0,0,0,.55)}.title-tagline{color:#cbbd96;margin-bottom:18px;letter-spacing:1px}.title-menu{display:flex;flex-direction:column;gap:8px;width:320px}.title-button{display:block;width:100%;box-sizing:border-box;text-align:center;background:#2a2018;color:#e4d5b0;border:1px solid #6b4f36;border-radius:2px;font:inherit;font-weight:700;padding:10px 0;cursor:pointer;text-decoration:none;letter-spacing:1px}.title-button:hover:not(:disabled){border-color:#f2c14e;color:#f2c14e}.title-button.primary{background:#f2c14e;color:#1a1410;border-color:#f2c14e}.title-button.primary:hover{color:#1a1410;filter:brightness(1.08)}.title-button:disabled{opacity:.4;cursor:default}.title-button.link{font-weight:400;font-style:italic}.title-footnote{margin-top:20px;color:#8d8066;font-size:12px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0}.settings-slider{width:160px;accent-color:#f2c14e}.tutorial-card{position:absolute;left:50%;bottom:18px;transform:translate(-50%);z-index:20;width:440px;max-width:calc(100vw - 40px);background:#241b12;border:1px solid #6b4f36;border-radius:3px;padding:12px 16px;box-shadow:0 6px 24px #00000080;pointer-events:auto}.tutorial-step-chip{display:inline-block;background:#f2c14e;color:#1a1410;font-size:11px;font-weight:700;letter-spacing:1px;border-radius:2px;padding:1px 6px;margin-bottom:6px}.tutorial-title{font-weight:700;color:#f2c14e;margin-bottom:4px}.tutorial-text{color:#e4d5b0;line-height:1.4;margin-bottom:8px}.tutorial-objective{color:#cbbd96;font-weight:700}.tutorial-skip{float:right;color:#8d8066;font-size:12px;background:none;border:none;font-family:inherit;cursor:pointer;text-decoration:underline;padding:0}.tutorial-skip:hover{color:#d06a4e}.tutorial-card.tutorial-done{border-color:#f2c14e;box-shadow:0 0 18px #f2c14e73}.tutorial-pulse{outline:4px solid #ffe9a8!important;outline-offset:2px;animation:tutorial-pulse .8s steps(1,end) infinite}@keyframes tutorial-pulse{0%{outline-color:#ffe9a8;box-shadow:0 0 0 2px #1a1410e6,0 0 20px 6px #f2c14ef2}50%{outline-color:transparent;box-shadow:none}}.tutorial-checklist{margin:6px 0 2px;display:flex;flex-direction:column;gap:3px}.tutorial-check{font-size:12px;color:#bfae8e}.tutorial-check:before{content:"☐ ";color:#f2c14e}.tutorial-check.done{color:#7dc97d;text-decoration:line-through;opacity:.8}.tutorial-check.done:before{content:"☑ ";color:#7dc97d}.tutorial-check.current{color:#f2e6c8;font-weight:700}.debt-chip{color:#e08585;cursor:pointer;pointer-events:auto;text-decoration:underline dotted}.topbar .stat.clickable{cursor:pointer;pointer-events:auto}.books-list{max-height:50vh;overflow-y:auto;margin:6px 0;border-top:1px solid #4a3c2c;border-bottom:1px solid #4a3c2c}.books-list .payrow{display:grid;grid-template-columns:64px 1fr auto;gap:8px}.soundboard{position:absolute;inset:0;z-index:45;overflow-y:auto;background:#100c08f5;padding:30px 40px;pointer-events:auto}.soundboard-title{color:#f2c14e;font-size:34px;font-weight:700;letter-spacing:4px}.soundboard-note{color:#8d8066;margin:6px 0 18px;font-size:18px}.soundboard-section{color:#f2c14e;font-size:24px;margin:22px 0 10px}.soundboard-grid{display:flex;flex-wrap:wrap;gap:8px}.sound-button{background:#2c2216;color:#e8dcc0;border:1px solid #5a4630;border-radius:3px;font:inherit;font-size:20px;padding:10px 16px;cursor:pointer}.sound-button:hover{border-color:#f2c14e;color:#f2c14e}.icon-button{pointer-events:auto;display:flex;align-items:center;justify-content:center;background:#2c2216;border:1px solid #5a4630;border-radius:3px;padding:4px 6px;cursor:pointer}.icon-button:hover{border-color:#f2c14e}.credit-row{margin:14px 0;padding-left:14px;border-left:3px solid #8a6a3a}.credit-title{color:#f2c14e;font-weight:700}.credit-link{color:#cbbd96;font-size:12px}.credit-link:hover{color:#f2c14e}
