@font-face{font-family:GameHebrew;src:url('/game/game-font.ttf') format('truetype');font-weight:700;font-display:swap}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#071b35;color:#fff;font-family:GameHebrew,Arial,sans-serif;overscroll-behavior:none}button{font:inherit;color:inherit;cursor:pointer;border:0}button:focus-visible{outline:3px solid #7ef6d2;outline-offset:4px}button:disabled{opacity:.4;cursor:wait}main{height:100%}.game-shell{height:100dvh;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.game-stage{position:relative;aspect-ratio:390/844;width:min(100%,calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))*390/844));max-height:100%;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 0 70px #0007}.game-stage canvas{display:block;width:100%;height:100%}.logical-overlay{position:absolute;top:0;left:0;width:390px;height:844px;transform-origin:top left;pointer-events:none}.logical-overlay button{pointer-events:auto}.screen-text{position:absolute;transform:translate(-50%,-85%);white-space:nowrap;font-weight:700}.screen-hit{position:absolute;background:transparent;border-radius:18px}.screen-hit:hover{background:#ffffff0c}.hud{position:absolute;top:44px;left:0;width:390px;height:97px}.hud-field{position:absolute;top:0;height:54px}.hud img{width:100%;height:100%;display:block}.hud-field strong{position:absolute;top:29px;left:4px;right:4px;text-align:center;font-size:14px;line-height:20px}.money{left:16px;width:112px}.score{left:136px;width:86px}.economy{left:230px;width:98px}.pause{position:absolute;left:336px;top:0;width:38px;height:54px;background:transparent;padding:0}.bonus-meter{position:absolute;left:127px;top:54px;width:136px;height:43px}.bonus-meter span{position:absolute;right:-26px;top:14px;font-size:13px;min-width:22px;text-align:center;color:#f9d368}.tutorial-text,.notification-text{position:absolute;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;text-align:center;white-space:nowrap}.tutorial-text{font-size:15px}.sound{position:absolute;right:16px;bottom:34px;width:44px;height:44px;border:1px solid #94d2eb66;border-radius:50%;background:#071b35ca;font-size:22px}.load-state,.pause-overlay{position:absolute;inset:0;background:#071b35;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:30px}.load-state h1{font-size:30px;color:#ffd565}.load-state p{line-height:1.8}.load-state button,.pause-overlay button{padding:14px 28px;background:#19638c;border-radius:16px}.load-state progress{accent-color:#ffd565;width:220px}.pause-overlay{background:#071b35bb;backdrop-filter:blur(3px)}.pause-overlay>div{padding:30px;border-radius:22px;background:#102e4e}.qa-panel{position:fixed;left:12px;top:12px;z-index:20;font:12px system-ui;max-height:95dvh;max-width:350px;overflow:auto;background:#0a152aed;padding:8px;border:1px solid #758399;border-radius:8px}.qa-panel button{background:#294365;padding:7px;border-radius:5px;font:11px system-ui}.qa-panel p{line-height:1.5}.qa-buttons{display:flex;flex-wrap:wrap;gap:4px;margin:10px 0}.qa-panel textarea{width:100%;min-height:180px;font:10px monospace;background:#07111f;color:#e2f3ff}.seo-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:750px){.qa-panel{max-width:280px;max-height:65dvh}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.money-popup{position:absolute;transform:translate(-50%,-50%);font-size:20px;font-weight:700;text-shadow:0 2px 2px #071b35,-1px -1px #071b35,1px 1px #071b35}
html,body{overflow:hidden}
.economy strong{left:35px;font-size:13px}.economy-label{position:absolute;top:8px;right:18px;font-size:11px}.money strong{left:34px;font-size:12px}
.game-stage{width:min(390px,100%,calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))*390/844))}

.start-premise{position:absolute;top:514px;left:28px;width:334px;margin:0;text-align:center;font-size:21px;line-height:1.45;color:#eff9ff;text-wrap:balance}
.market-source{position:absolute;left:12px;top:109px;width:105px;text-align:center;font-size:12px;line-height:19px;color:#d8ffdc;background:#102e58e8;border-radius:6px}
.notification-plate{position:absolute}
.dynamic-notice{flex-direction:column;gap:4px;white-space:normal;line-height:1.3;padding:5px 8px;font-size:16px}.dynamic-notice span{font-size:14px}.dynamic-notice.positive span{font-size:21px;color:#7bffd1}.dynamic-notice.consequence strong{color:#ffd095}
.expense-popup{font-size:18px;white-space:nowrap;background:#102e58e8;border:1px solid #ffa29366;border-radius:10px;padding:7px 11px}.expense-popup span{color:#fff3e7}
.survival-result{position:absolute;top:178px;left:15px;width:360px;margin:0;text-align:center;font-size:19px;line-height:24px;color:#fff4cf}
.session-totals{position:absolute;top:614px;left:24px;width:342px;margin:0;display:flex;justify-content:center;gap:14px;font-size:12px;line-height:17px;color:#d9e7f3;white-space:nowrap}
.share-result{position:absolute;left:23px;top:651px;width:344px;min-height:52px;padding:10px 12px;border-radius:16px;border:1px solid #8dffe0;background:linear-gradient(#48d9b0,#1d927b);color:#062b35;box-shadow:0 3px 0 #125768;font-size:16px;line-height:1.35}.share-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.record-notice{top:809px;font-size:13px}.share-fallback{position:absolute;top:610px;left:16px;width:358px;background:#102e58;border:1px solid #a2dce6;border-radius:15px;padding:14px;display:grid;gap:9px;pointer-events:auto;font-size:14px;z-index:4}.share-fallback textarea{font:14px/1.6 GameHebrew,Arial,sans-serif;min-height:110px;resize:none;user-select:text;-webkit-user-select:text;padding:8px;background:#effaff;color:#102e58;border-radius:7px;width:100%}.share-fallback button{justify-self:end;padding:8px 18px;background:#236587;border-radius:8px}

@font-face{font-family:"Heebo HUD";src:url("/game/hud-v1/fonts/Heebo-Variable.woff") format("woff");font-style:normal;font-weight:100 900;font-display:swap}
.kzk-hud{position:relative;width:100%;height:108px;font-family:"Heebo HUD",sans-serif;color:#f8faf4;direction:ltr;pointer-events:none;user-select:none;-webkit-user-select:none;isolation:isolate}
.kzk-hud *{box-sizing:border-box}
.kzk-panel{position:absolute;border:1px solid #386b8d;border-radius:13px;background:linear-gradient(#143e5d,#092a43);box-shadow:0 2px 5px #03182a38;overflow:hidden}
.kzk-economy{border:1.4px solid #83edb5}
.kzk-wallet[data-tone=warning]{border-color:#e9bc70}
.kzk-wallet[data-tone=critical]{border-color:#ff9a88;background:linear-gradient(#3b334d,#30273f)}
.kzk-label{position:absolute;top:5px;right:10px;font-size:12.5px;line-height:25px;font-weight:600;color:#d4e4ec;white-space:nowrap;text-align:right}
.kzk-icon{position:absolute;object-fit:contain;pointer-events:none}
.kzk-icon-economy-growth{left:3px;top:11px;width:40px;height:42px}
.kzk-economy .kzk-label{right:4px;top:5px;width:40px;text-align:center}
.kzk-status{position:absolute;right:4px;top:29px;width:40px;text-align:center;color:#83edb5;font-size:16px;line-height:25px;font-weight:800;white-space:nowrap}
.kzk-icon-wallet{left:8px;top:5px;width:22px;height:22px}
.kzk-icon-crown{left:7px;top:6px;width:21px;height:21px}
.kzk-value{position:absolute;left:5px;right:5px;top:27px;line-height:31px;display:block;text-align:center;white-space:nowrap;font-weight:800;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";direction:ltr;unicode-bidi:isolate;letter-spacing:0}
.kzk-score .kzk-value{font-weight:700}
.kzk-wallet[data-tone=critical] .kzk-value{color:#ff9a88}
.kzk-pause{display:block;margin:0;padding:0;color:#f8faf4;appearance:none;pointer-events:auto;touch-action:manipulation;cursor:pointer}
.kzk-pause:active{background:#1b4968;transform:translateY(1px)}
.kzk-pause:focus-visible{outline:3px solid #f8dc8e;outline-offset:2px}
.kzk-pause-glyph::before,.kzk-pause-glyph::after{content:"";position:absolute;top:20px;width:6px;height:24px;border-radius:2px;background:currentColor}
.kzk-pause-glyph::before{left:12px}.kzk-pause-glyph::after{left:24px}
.kzk-pause-glyph.is-play::before{left:15px;top:20px;width:0;height:0;border-radius:0;border-top:12px solid transparent;border-bottom:12px solid transparent;border-left:15px solid currentColor;background:none}
.kzk-pause-glyph.is-play::after{display:none}
.kzk-bonus .kzk-icon{top:2px;width:30px;height:24px}
.kzk-bonus .kzk-icon:nth-child(1){left:8px}.kzk-bonus .kzk-icon:nth-child(2){left:42px}.kzk-bonus .kzk-icon:nth-child(3){left:76px}
.kzk-bonus .is-inactive{filter:grayscale(1);opacity:.26}
.kzk-compact .kzk-label{font-size:11.5px}.kzk-compact .kzk-icon-economy-growth{width:34px}.kzk-compact .kzk-status{font-size:14.5px}
@media(prefers-reduced-motion:reduce){.kzk-pause:active{transform:none}}

.hud-screen-space{position:absolute;left:0;right:0;top:24px;z-index:5;pointer-events:none}
/* Nine-slice the supplied vector skins; 14px corners stay unscaled. */
.kzk-panel{border:0;background:none!important;overflow:visible;--panel:url('/game/hud-v1/panels/panel-default.svg')}
.kzk-panel::before{content:"";position:absolute;inset:0;z-index:-1;border:14px solid transparent;border-image:var(--panel) 14 fill / 14px / 0 stretch;pointer-events:none}
.kzk-economy{--panel:url('/game/hud-v1/panels/panel-economy.svg')}
.kzk-wallet[data-tone=warning]{--panel:url('/game/hud-v1/panels/panel-wallet-warning.svg')}
.kzk-wallet[data-tone=critical]{--panel:url('/game/hud-v1/panels/panel-wallet-critical.svg')}
.kzk-pause{--panel:url('/game/hud-v1/panels/panel-pause.svg');min-width:44px;min-height:66px}
.kzk-pause.is-paused,.kzk-pause:active{--panel:url('/game/hud-v1/panels/panel-pause-pressed.svg')}
.kzk-pause .kzk-icon{width:24px;height:24px;left:10px;top:21px}
.kzk-bonus{--panel:url('/game/hud-v1/panels/panel-bonus.svg')}
.kzk-market-source{position:absolute;top:74px;text-align:center;font-size:11px;line-height:20px;border-radius:6px;background:#102e58e8;color:#d8ffdc}
.kzk-bonus-total{position:absolute;top:81px;max-width:40px;overflow:hidden;font-size:12px;color:#f9d368}
.game-stage{width:min(430px,100%,calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))*390/844))}
.game-stage.qa-sized{align-self:flex-start;margin-top:0}
.qa-panel select{font:12px system-ui;color:#13283c;background:#f4fcff}
/* Crisis extension: existing HUD skins, icon system, Heebo and safe-area wrapper. */
.game-shell{font-family:"Heebo HUD",Arial,sans-serif}.logical-overlay a{pointer-events:auto}.kzk-hud{height:146px}.kzk-score .kzk-label{font-size:10.5px}.kzk-icon-crown{width:18px;height:18px;left:5px}.kzk-money-context{position:absolute;top:77px;text-align:center;font-size:11px;line-height:17px}.kzk-current-score span{position:absolute;right:10px;top:4px;font-size:10px;color:#d4e4ec}.kzk-current-score bdi{position:absolute;left:10px;bottom:3px;font-size:19px;font-weight:800;font-variant-numeric:tabular-nums}.kzk-bonus-rule>span{position:absolute;right:10px;top:4px;font-size:10px}.kzk-bonus-rule>strong{position:absolute;right:10px;bottom:4px;font-size:10px;font-weight:600}.kzk-bonus-icons{position:absolute;left:5px;top:10px;display:flex;gap:2px}.kzk-bonus-icons img{width:21px;height:23px;object-fit:contain}.kzk-bonus-icons .is-inactive{filter:grayscale(1);opacity:.26}.kzk-compact .kzk-bonus-icons{gap:0;left:3px}.kzk-compact .kzk-bonus-icons img{width:16px}.kzk-compact .kzk-bonus-rule>span,.kzk-compact .kzk-bonus-rule>strong{right:7px;font-size:9px}
.crisis-start,.crisis-result{position:absolute;inset:0;text-align:center;font-family:"Heebo HUD",Arial,sans-serif}.crisis-start p,.crisis-result p{margin:0}.crisis-start h1{position:absolute;top:73px;width:100%;margin:0;font-size:40px;color:#ffc75a;line-height:1.3}.crisis-start h2{position:absolute;top:151px;width:100%;margin:0;font-size:23px}.crisis-premise{position:absolute;top:456px;left:22px;right:22px;font-size:17px;font-weight:600;line-height:1.75}.crisis-button{position:absolute;left:22px;width:346px;height:49px;border-radius:14px;background:#83edb5;color:#092a43;font-size:18px;font-weight:800;pointer-events:auto}.crisis-button.secondary{background:#143e5d;border:1px solid #6289a0;color:#f8faf4}.start-play{top:551px}.crisis-controls{position:absolute;top:628px;left:30px;width:330px;padding:10px;border:1px solid #386b8d;border-radius:13px;background:#092a43da;font-size:13px;line-height:1.75;color:#d4e4ec}.crisis-fiction{position:absolute;top:746px;left:40px;width:310px;font-size:12px;line-height:1.5;color:#d4e4ec}.motion-setting{position:absolute;left:16px;bottom:24px;min-height:44px;max-width:250px;padding:6px 12px;border:1px solid #63869b;border-radius:12px;background:#092a43df;font-size:12px;color:#f8faf4}.sound{bottom:24px}
.result-brand{position:absolute;top:37px;width:100%;color:#ffc75a;font-size:18px;font-weight:700}.crisis-result h1{position:absolute;top:80px;width:100%;margin:0;font-size:32px;line-height:1.3;color:#ff9a88}.crisis-result h2{position:absolute;top:131px;width:100%;margin:0;font-size:27px;line-height:1.3;color:#83edb5}.result-contrast{position:absolute;top:188px;width:168px;height:179px;border:1px solid #ff9a88;border-radius:13px}.result-wallet{left:22px}.result-economy{left:201px;border-color:#83edb5}.result-contrast>span{position:absolute;top:10px;left:0;width:100%;font-size:14px;color:#d4e4ec}.result-contrast>strong{position:absolute;bottom:11px;left:0;width:100%;font-size:17px;color:#ff9a88}.result-economy>strong{color:#83edb5}.result-economy img{position:absolute;top:42px;left:43px;width:82px;height:82px}.crisis-survival{position:absolute;top:382px;width:100%;font-size:20px;font-weight:700}.crisis-result-scores{position:absolute;top:418px;left:22px;width:346px;height:68px;display:flex;flex-direction:row;justify-content:space-around;border:1px solid #386b8d;border-radius:13px;background:#092a43}.crisis-result-scores>div{display:flex;flex-direction:column;align-items:center;padding:6px 12px;gap:2px}.crisis-result-scores span{font-size:12px;color:#d4e4ec}.crisis-result-scores bdi{font-size:24px;font-weight:800;line-height:29px}.crisis-result-scores>div:last-child bdi{color:#ffc75a}.crisis-record{position:absolute;top:490px;width:100%;font-size:11px;color:#d4e4ec}.crisis-accountability{position:absolute;top:515px;width:100%;font-size:18px;font-weight:600;line-height:1.6}.result-replay{top:589px}.result-share{top:650px}.crisis-share-status{position:absolute;top:700px;width:100%;left:0;font-size:11px;color:#83edb5}.crisis-civic{position:absolute;top:723px;left:22px;width:346px;min-height:60px;display:block;padding:7px 10px;border-radius:13px;background:#f8faf4;color:#092a43;text-decoration:none;font-size:17px;font-weight:800;line-height:1.4}.civic-demand{background:transparent;color:#f8faf4;border:1px solid #386b8d}.result-fiction{position:absolute;top:805px;width:100%;font-size:11px;color:#d4e4ec}.crisis-cue{position:absolute;left:8%;right:8%;top:184px;z-index:6;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:55px;padding:7px 10px;border:1px solid #ffc75a;border-radius:13px;background:#092a43f5;font-family:"Heebo HUD",Arial,sans-serif;text-align:center;line-height:1.45}.crisis-cue strong{color:#ffc75a;font-size:18px}.crisis-cue span{font-size:12px;color:#f8faf4}.crisis-cue.terminal{border-color:#ff9a88}.crisis-cue.terminal strong{color:#ff9a88}.dynamic-notice{font-family:"Heebo HUD",Arial,sans-serif}.share-fallback{z-index:10;font-family:"Heebo HUD",Arial,sans-serif;pointer-events:auto}.pause-overlay{z-index:9;font-family:"Heebo HUD",Arial,sans-serif}

/* V3: keep the street readable. Notices never cover the approaching hazards. */
.crisis-cue{left:22px;right:22px;top:190px;min-height:34px;padding:5px 10px;border-radius:9px;flex-direction:row;gap:10px;background:#092a43e6}.crisis-cue strong{font-size:14px}.crisis-cue span{font-size:11px}.compact-notice{position:absolute;left:28px;right:28px;top:190px;min-height:35px;display:flex;align-items:center;justify-content:center;gap:10px;padding:6px 10px;border:1px solid #63869b;border-radius:9px;background:#092a43e8;font:600 13px "Heebo HUD",Arial;pointer-events:none}.compact-notice.positive{color:#83edb5}.compact-notice.consequence{color:#ffd095}.compact-notice bdi{font-weight:800;font-size:17px}.game-data-link{position:absolute;top:753px;left:40px;width:310px;color:#d4e4ec;font-size:12px;pointer-events:auto;text-underline-offset:4px}.pause-overlay>div{display:flex;flex-direction:column;gap:14px}.pause-overlay h2{margin:0 0 8px}.pause-overlay .pause-motion{background:#143e5d;font-size:14px}.pause-overlay a{pointer-events:auto;color:#d4e4ec;font-size:12px}.kzk-current-score,.kzk-bonus-rule{transform:translateY(-15px)}.crisis-start .crisis-premise{left:18px;right:18px;font-size:16px}.load-state a{color:#83edb5}

@font-face{font-family:"DejaVu Sans";src:url("/game/bus-hebrew.ttf") format("truetype");font-weight:700;font-display:swap}

#game-root{height:100%}
