@font-face{font-family:Doodle;src:url('/doodle.ttf') format('truetype');font-display:swap}*{box-sizing:border-box} :root{--paper:#f3eedc;--ink:#2d3430;--orange:#eaa15b;--sage:#91a77e;--red:#bd6653;--muted:#73776c}html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}body{background:var(--paper);color:var(--ink);font-family:Doodle,'Comic Sans MS','Chalkboard SE',sans-serif;user-select:none;-webkit-user-select:none;touch-action:none}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button,svg{flex-shrink:0}button:focus-visible{outline:3px solid #b95e36;outline-offset:5px}button:disabled{cursor:not-allowed;opacity:.45}button:hover:not(:disabled){filter:brightness(1.035)}button:active:not(:disabled){transform:translate(1px,2px);box-shadow:none}svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}kbd{font-family:inherit;display:inline-block;font-size:12px;line-height:18px;min-width:19px;text-align:center;padding:1px 4px;background:#f9f5e8;border:1.3px solid #676c60;border-radius:3px 2px 4px 2px;box-shadow:0 1px 0 #676c60;white-space:nowrap} [hidden]{display:none!important}#game{position:fixed;inset:0;width:100%;height:100%;display:block;outline:none;touch-action:none}.topbar{position:absolute;top:23px;left:30px;right:30px;z-index:12;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none;gap:20px}.topbar button{pointer-events:auto}.brand{display:flex;align-items:center;gap:10px;font-family:Doodle,sans-serif;font-weight:bold;font-size:22px;letter-spacing:-.6px;white-space:nowrap}.brand>svg{width:31px;height:37px;stroke-width:2.2;transform:rotate(-8deg)}.brand small{display:block;font-size:9px;letter-spacing:1.65px;color:#6c7163;margin-top:3px}.header-actions{display:flex;align-items:center;gap:8px}.icon-button{display:grid;place-items:center;background:rgba(250,247,235,.94);border:1.6px solid var(--ink);height:36px;width:36px;border-radius:9px 6px 8px 5px;box-shadow:1.5px 2px 0 #2d343025;font-size:24px;line-height:1}.icon-button svg{width:19px;height:19px}.wave-card{position:absolute;left:50%;transform:translateX(-50%) rotate(-.5deg);width:252px;padding:10px 15px 9px;background:rgba(249,246,232,.95);border:1.5px solid var(--ink);border-radius:3px 8px 2px 6px;box-shadow:2px 3px 0 #2d343016}.wave-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.wave-top b{font-size:19px;letter-spacing:.5px}.wave-top>span{font-size:11px;color:var(--muted)}.threat-track{height:5px;border:1px solid var(--ink);border-radius:2px;margin:6px 0 3px;overflow:hidden;background:#e3e0cd}.threat-track i{display:block;height:100%;width:100%;background:var(--orange);transition:width .15s linear}.wave-card>small{font-size:11px;color:#666d5e}.run-counts{display:flex;flex-direction:column;align-items:flex-end;padding-right:12px;font-size:13px;color:#5d6457;gap:2px}.run-counts b{font-size:16px;color:var(--ink)}.start-overlay{position:absolute;inset:0;z-index:15;pointer-events:none}.start-note{position:absolute;left:8%;top:50%;transform:translateY(-48%) rotate(-1deg);width:440px;padding:33px 34px 22px;background:#faf6e7;border:2px solid var(--ink);border-radius:3px 10px 4px 7px;box-shadow:7px 8px 0 #2d34301a;pointer-events:auto}.tape{position:absolute;display:block;background:#d7cfb7bb;width:110px;height:26px;z-index:1;clip-path:polygon(3% 0,100% 4%,98% 18%,100% 34%,98% 51%,100% 77%,97% 100%,0 96%,2% 77%,0 61%,2% 41%,0 23%)}.tape-top{left:50%;top:-15px;transform:translateX(-50%) rotate(-6deg)}.eyebrow{font-size:11px;letter-spacing:1.5px;line-height:1.4;color:#777b6a;margin:0 0 15px}.tiny-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--red);margin-right:5px}.title-wrap{position:relative}.title-wrap h1{font-size:79px;line-height:.92;letter-spacing:-4px;font-weight:900;margin:0 0 8px;transform:rotate(-1deg);width:100%;position:relative;z-index:1}.title-wrap h1>span:first-child{display:inline-block;position:relative;background:linear-gradient(176deg,transparent 48%,#ebac6c 49%,#ebac6c 86%,transparent 88%);padding-right:13px}.title-dot{color:var(--red);letter-spacing:-10px}.title-zombie{position:absolute;width:96px;height:106px;top:-3px;right:5px;transform:rotate(12deg);stroke-width:2.7}.menu-subtitle{font-size:22px;letter-spacing:-.5px;margin:11px 0 9px;color:#68715d}.scribble-rule{height:5px;background:var(--ink);width:106px;clip-path:polygon(0 40%,100% 0,98% 60%,2% 100%);margin-bottom:18px;transform:rotate(-1deg)}.menu-copy{font-size:16px;line-height:1.45;margin:0 0 17px;color:#5e6557}.mission{display:flex;align-items:center;gap:10px;font-size:14px;margin:0 0 21px}.mission svg{width:26px;height:27px;stroke:#a27547;stroke-width:1.8}.mission span{line-height:1.5}.primary-button{display:flex;justify-content:center;align-items:center;gap:18px;min-height:52px;width:100%;background:var(--orange);border:2px solid var(--ink);border-radius:4px 8px 3px 7px;box-shadow:3px 4px 0 var(--ink);font-weight:bold;font-size:20px;letter-spacing:.8px;padding:13px 18px;transition:filter .1s,transform .1s;line-height:1.2}.start-button svg{width:34px;height:22px;stroke-width:2.3}.menu-controls{display:flex;justify-content:space-between;align-items:center;margin-top:20px;font-size:13px;gap:10px;color:#5e6557}.menu-controls>span{display:flex;align-items:center;gap:3px;white-space:nowrap}.menu-controls kbd{font-size:10px;min-width:15px;padding:0 3px;line-height:17px}.menu-controls svg{width:15px;height:20px;margin-right:3px;stroke-width:1.5}.best-line{font-size:11px;color:#8c8d7d;text-align:center;margin:17px 0 0;letter-spacing:.25px}.margin-note{position:absolute;top:25%;right:14%;font-size:22px;color:#6d7760;text-align:center;transform:rotate(7deg);line-height:1.1}.margin-note svg{display:block;width:90px;height:65px;margin-left:-54px;transform:rotate(24deg);stroke:#758067;stroke-width:1.5}.page-number{position:absolute;bottom:23px;right:30px;font-size:10px;letter-spacing:2px;color:#969884}.bottom-hud{position:absolute;bottom:25px;left:30px;right:30px;display:flex;align-items:flex-end;gap:12px;z-index:11;pointer-events:none}.paper-chip{border:1.6px solid var(--ink);background:rgba(250,247,233,.96);box-shadow:2px 3px 0 #2d34301a;border-radius:6px 3px 7px 3px}.vitals{width:238px;padding:14px 16px 9px;transform:rotate(-.7deg)}.health-head{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px}.health-head>span{display:flex;align-items:center;gap:6px}.health-head svg{width:16px;height:16px;stroke-width:1.5}.health-head b{font-size:13px;white-space:nowrap}.health-track{height:11px;border:1.4px solid var(--ink);background:#e2dfcd;margin:8px 0 5px;border-radius:3px 2px 4px 2px;overflow:hidden}.health-track i{display:block;width:100%;height:100%;background:var(--sage);transition:width .15s}.health-note{font-size:10px;color:#858775}.ammo{width:178px;padding:10px 15px;transform:rotate(.8deg)}.item-label{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.2px}.item-label>span{font-size:9px;color:var(--red);letter-spacing:0}.ammo-numbers{display:flex;align-items:baseline;gap:10px;margin:4px 0 2px}.ammo-numbers b{font-size:25px;line-height:1}.ammo-numbers>span{font-size:11px;color:#6f7565}.ammo>small{font-size:10px;color:#7b7d6d}.ammo kbd{font-size:8px;min-width:14px;line-height:12px;padding:0 2px}.supplies{padding:9px 13px;width:210px;transform:rotate(-.3deg)}.scrap-count{display:flex;align-items:center;gap:8px}.scrap-count svg{width:23px;height:23px;stroke-width:1.4}.scrap-count b{font-size:25px}.scrap-count span{font-size:12px;color:#727766}.craft-actions{display:flex;gap:8px;margin-top:4px}.craft-actions button{background:none;border:0;font-size:11px;padding:0;display:flex;align-items:center;gap:4px;pointer-events:auto;white-space:nowrap}.craft-actions small{border:1px solid #b9b7a2;border-radius:50%;font-size:9px;min-width:14px;height:14px;text-align:center;line-height:13px}.craft-actions kbd{font-size:9px;min-width:15px;line-height:13px;padding:0 3px}.aim-toggle{margin-left:auto;background:rgba(248,244,229,.9);border:1.2px dashed #747d6b;border-radius:4px 8px 3px 5px;padding:8px 10px;font-size:10px;letter-spacing:.4px;pointer-events:auto;color:#66705c}.aim-toggle kbd{font-size:9px;line-height:13px;min-width:15px;margin-left:5px}#toast{position:absolute;top:128px;left:50%;transform:translateX(-50%) rotate(-1deg);z-index:30;background:#faf5df;border:1.5px solid #5b6554;box-shadow:2px 3px 0 #2d343017;border-radius:5px 2px 6px 3px;padding:9px 18px;font-size:15px;max-width:min(450px,calc(100vw - 35px));text-align:center;pointer-events:none}#toast:empty{display:none}#interact-prompt{position:absolute;bottom:150px;left:50%;transform:translateX(-50%);z-index:15}#interact-btn{padding:10px 17px;font-size:15px;white-space:nowrap}#interact-btn kbd{margin-right:8px}.modal-overlay{position:absolute;inset:0;z-index:35;display:grid;place-items:center;background:#ece7d9bb;backdrop-filter:blur(3px);padding:30px;overflow-y:auto;touch-action:pan-y}.modal-card{position:relative;background:#faf6e7;border:2px solid var(--ink);border-radius:5px 10px 3px 8px;box-shadow:7px 8px 0 #2d343026;padding:35px;text-align:center;width:min(100%,560px);transform:rotate(-.5deg)}.modal-card h2{font-size:37px;letter-spacing:-1.2px;line-height:1.1;margin:0 0 14px}.modal-card>p:not(.eyebrow):not(.fineprint){font-size:16px;line-height:1.5;color:#727761;margin:10px 0 24px}.small-card{max-width:420px}.small-card .primary-button{margin-top:28px;font-size:17px}.secondary-button{display:block;width:100%;background:transparent;border:1.5px solid #969a84;border-radius:5px 3px 4px 5px;padding:13px;font-size:15px;margin-top:14px}.fineprint{font-size:11px;color:#8b8d7a;margin:21px 0 0}.close-button{position:absolute;top:10px;right:13px;background:none;border:0;font-size:29px;line-height:1;width:30px;height:30px}.help-card{max-width:620px;padding:32px 38px 24px;text-align:left;transform:rotate(.3deg)}.help-card h2{font-size:31px;max-width:450px}.help-card .eyebrow{font-size:10px}.help-card .help-intro{font-size:14px!important;margin-bottom:20px!important}.control-grid{display:grid;grid-template-columns:1.05fr 1.2fr;gap:11px 20px;font-size:13px;align-items:center}.control-grid>span:nth-child(even){color:#6c745f}.help-tip{background:#e6e8d3;border-left:3px solid var(--sage);padding:12px 14px;margin-top:22px;font-size:12px;line-height:1.6;color:#5c6751}.modal-card .mobile-help{font-size:11px!important;margin:14px 0 0!important}.upgrade-card{width:min(100%,790px)}.upgrade-options{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:26px}.upgrade-options button{border:1.5px solid var(--ink);border-radius:5px 8px 3px 5px;padding:17px 12px 14px;background:#efeedb;box-shadow:2px 3px 0 #2d343020;text-align:center;display:flex;align-items:center;flex-direction:column;transition:background .15s,transform .15s}.upgrade-options button:nth-child(2){background:#f5dfc3;transform:rotate(1deg)}.upgrade-options button:nth-child(3){background:#e4e9d6;transform:rotate(-1deg)}.upgrade-options button>svg{width:55px;height:55px;margin-bottom:15px;stroke-width:2.1}.upgrade-options button>b{font-size:16px;letter-spacing:.2px;margin-bottom:10px}.upgrade-detail{font-size:13px;line-height:1.7;color:#6b715c;min-height:45px}.upgrade-options small{font-size:9px;letter-spacing:.7px;margin-top:19px}.result-card{max-width:540px}.result-card h2{font-size:39px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;border-top:1.5px dashed #b5b6a0;border-bottom:1.5px dashed #b5b6a0;padding:23px 0;margin:24px 0}.result-stats>div{display:flex;flex-direction:column;gap:7px}.result-stats b{font-size:35px;line-height:1}.result-stats span{font-size:9px;letter-spacing:.4px;color:#80856f}.result-card .primary-button{margin-top:14px;font-size:17px}.result-card #best-message{font-size:13px;margin-bottom:17px}#touch-controls,.mobile-hint{display:none}body[data-state=menu] .status-hud{visibility:hidden}body[data-state=menu] #toast,body[data-state=menu] #interact-prompt{display:none}body[data-state=menu] #touch-controls,body[data-state=paused] #touch-controls,body[data-state=upgrading] #touch-controls,body[data-state=over] #touch-controls,body[data-state=won] #touch-controls{display:none!important}.move-pad{position:relative;width:118px;height:118px;border:2px dashed #2d343070;background:#f5f0df77;border-radius:45% 48% 46% 48%;touch-action:none}#move-knob{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;background:#e9a260dd;border:2px solid var(--ink);border-radius:45% 48% 46% 44%;pointer-events:none}.move-pad>span{position:absolute;left:0;right:0;bottom:8px;text-align:center;font-size:9px;letter-spacing:1px;color:#6f7860;pointer-events:none}.touch-actions{display:flex;gap:10px;align-items:flex-end;pointer-events:auto}.touch-actions button{border:2px solid var(--ink);background:#f7f1dedb;border-radius:46% 49% 45% 48%;width:49px;height:49px;font-size:10px;touch-action:none;box-shadow:2px 2px 0 #2d343022}.touch-actions #fire-btn{width:74px;height:74px;background:#eaa15be8;font-size:18px;font-weight:bold}.touch-actions #dash-btn{margin-bottom:27px}
@media (max-width:1100px){.brand{font-size:18px}.brand small{font-size:7px;letter-spacing:1.1px}.topbar{left:20px;right:20px;top:18px}.brand>svg{width:27px}.run-counts{display:none!important}.bottom-hud{left:20px;right:20px;bottom:20px;gap:8px}.vitals{width:215px;padding:12px}.ammo{width:165px;padding:10px 12px}.supplies{width:195px;padding:9px 10px}.aim-toggle{font-size:9px;padding:7px}.start-note{left:6%;width:410px;padding:30px}.title-wrap h1{font-size:73px}.title-zombie{width:87px;right:0}.menu-controls{font-size:11px}.margin-note{right:10%;font-size:19px}}
@media (max-height:760px) and (min-width:701px){.start-note{padding:25px 30px 18px;width:395px;top:52%}.eyebrow{margin-bottom:9px;font-size:9px}.title-wrap h1{font-size:66px}.title-zombie{width:80px;height:86px}.menu-subtitle{font-size:19px;margin:8px 0}.scribble-rule{margin-bottom:12px}.menu-copy{font-size:14px;margin-bottom:12px}.mission{margin-bottom:15px;font-size:13px}.primary-button{min-height:46px;padding:11px 16px;font-size:18px}.menu-controls{margin-top:15px}.best-line{margin-top:12px}.help-card{padding:24px 32px 20px}.control-grid{gap:8px 16px}.help-card .help-intro{margin:8px 0 14px!important}.help-tip{margin-top:15px}.modal-card h2{font-size:31px}.modal-card>p:not(.eyebrow):not(.fineprint){margin-bottom:16px}.upgrade-options{margin-top:20px}.upgrade-options button>svg{width:45px;height:45px;margin-bottom:10px}}
@media (max-width:700px){.topbar{left:14px;right:14px;top:15px;gap:10px}.brand{font-size:17px;gap:7px}.brand small{font-size:6.8px;letter-spacing:.7px}.brand>svg{width:25px;height:31px}.header-actions{gap:6px}.icon-button{width:31px;height:31px;font-size:22px}.icon-button svg{width:17px;height:17px}.wave-card{top:49px;width:218px;padding:7px 11px}.wave-top b{font-size:16px}.wave-card>small{font-size:10px}.wave-top>span{font-size:10px}.start-note{left:50%;top:51%;transform:translate(-50%,-47%) rotate(-1deg);width:calc(100% - 38px);max-width:395px;padding:28px 27px 20px}.title-wrap h1{font-size:clamp(58px,17vw,72px);letter-spacing:-3px}.title-zombie{width:84px;height:92px;right:0;top:-3px}.menu-subtitle{font-size:20px}.menu-copy{font-size:14px;line-height:1.5;margin-bottom:16px}.mission{font-size:12px;margin-bottom:17px;gap:8px}.eyebrow{font-size:9px;letter-spacing:1.2px;margin-bottom:14px}.primary-button{font-size:18px}.menu-controls{font-size:11px;gap:5px}.menu-controls kbd{min-width:13px;font-size:9px;padding:0 2px}.menu-controls svg{width:12px;height:17px}.margin-note{display:none}.page-number{bottom:17px;right:18px;font-size:8px;letter-spacing:1.5px}.bottom-hud{left:12px;right:12px;bottom:15px;gap:6px;align-items:flex-end;flex-wrap:wrap}.vitals{width:calc(52% - 3px);padding:8px 10px}.health-head{font-size:8px;gap:4px}.health-head b{font-size:10px}.health-head svg{width:12px;height:12px}.health-note{display:none}.health-track{height:8px;margin:6px 0 0}.ammo{width:calc(48% - 3px);padding:7px 10px}.item-label{font-size:8px}.ammo-numbers{gap:9px;margin:2px 0 0}.ammo-numbers b{font-size:20px}.ammo-numbers span{font-size:9px}.ammo>small{display:none}.supplies{width:calc(68% - 3px);padding:7px 9px;display:flex;align-items:center;justify-content:space-between;gap:7px;order:3}.scrap-count{gap:4px}.scrap-count svg{width:18px;height:18px}.scrap-count b{font-size:19px}.scrap-count span{display:none}.craft-actions{gap:7px;margin:0}.craft-actions button{font-size:9px;gap:2px}.craft-actions kbd{font-size:8px;line-height:11px;min-width:12px;padding:0 2px}.craft-actions small{font-size:8px;min-width:12px;height:12px;line-height:11px}.aim-toggle{order:4;width:calc(32% - 3px);font-size:8px;padding:7px 4px;margin:0;text-align:center;min-height:35px}.aim-toggle kbd{font-size:8px;margin-left:2px;min-width:12px;line-height:12px}#toast{top:128px;font-size:12px;padding:8px 12px;width:max-content;max-width:calc(100vw - 30px)}#interact-prompt{bottom:135px}#interact-btn{font-size:13px;padding:9px 13px}.modal-overlay{padding:22px 17px}.modal-card{padding:29px 23px}.modal-card h2{font-size:31px}.modal-card>p:not(.eyebrow):not(.fineprint){font-size:14px}.help-card{padding:27px 22px 20px;max-height:calc(100dvh - 42px);overflow-y:auto}.help-card h2{font-size:27px}.help-card .help-intro{font-size:12px!important;margin-bottom:17px!important}.control-grid{font-size:11px;gap:10px 10px;grid-template-columns:1.05fr 1.25fr}.control-grid kbd{font-size:10px;line-height:16px}.help-tip{font-size:11px;padding:9px 11px;margin-top:17px}.upgrade-card{padding:28px 19px 21px}.upgrade-card h2{font-size:30px}.upgrade-options{gap:10px;grid-template-columns:1fr;margin-top:20px}.upgrade-options button{padding:13px 14px;display:grid;grid-template-columns:40px 1fr;column-gap:15px;text-align:left;align-items:center}.upgrade-options button>svg{width:39px;height:39px;grid-column:1;grid-row:1/3;margin:0}.upgrade-options button>b{font-size:15px;grid-column:2;grid-row:1;margin:0 0 3px}.upgrade-options .upgrade-detail{font-size:11px;min-height:0;line-height:1.5;grid-column:2;grid-row:2}.upgrade-detail br{display:none}.upgrade-options small{display:none}.upgrade-card .fineprint{font-size:10px;margin-top:18px}.result-stats{gap:7px;padding:20px 0}.result-stats b{font-size:29px}.result-stats span{font-size:8px}.result-card h2{font-size:32px}.result-card .primary-button{font-size:15px}.fineprint{font-size:10px}}
@media (pointer:coarse){.desktop-hint{display:none}.mobile-hint{display:block;font-size:12px;text-align:center;color:#747a66;margin:20px 0 0}#touch-controls{display:flex;position:absolute;left:23px;right:23px;bottom:126px;justify-content:space-between;align-items:flex-end;pointer-events:none;z-index:14}.move-pad{pointer-events:auto}.bottom-hud .aim-toggle{display:none}.bottom-hud .supplies{flex:1}.bottom-hud .vitals{width:calc(52% - 3px)}.bottom-hud .ammo{width:calc(48% - 3px)}.bottom-hud{max-width:480px}.craft-actions button{font-size:12px;padding:3px}.scrap-count span{display:inline}#interact-prompt{bottom:265px}.craft-actions kbd{display:none}.ammo>small{display:none}}
body.touch #touch-controls{display:flex;position:absolute;left:23px;right:23px;bottom:126px;justify-content:space-between;align-items:flex-end;pointer-events:none;z-index:14}body.touch .move-pad{pointer-events:auto}body.touch .desktop-hint{display:none}body.touch .mobile-hint{display:block}body.touch .aim-toggle{display:none}
@media (max-height:620px) and (max-width:700px){.start-note{top:52%;padding:20px 24px 15px}.title-wrap h1{font-size:54px}.title-zombie{width:72px;height:77px}.eyebrow{font-size:8px;margin-bottom:8px}.menu-subtitle{font-size:17px;margin:7px 0}.scribble-rule{margin-bottom:10px}.menu-copy{font-size:12px;margin-bottom:10px}.mission{font-size:11px;margin-bottom:12px}.primary-button{min-height:43px;padding:10px 15px;font-size:17px}.menu-controls,.mobile-hint{margin-top:15px}.best-line{font-size:9px;margin-top:11px}.page-number{display:none}.help-card{max-height:calc(100dvh - 30px)}.upgrade-options{gap:8px;margin-top:14px}.upgrade-options button{padding:9px 12px}.upgrade-card .fineprint{margin-top:12px}.modal-card .eyebrow{margin-bottom:9px}.modal-card>p:not(.eyebrow):not(.fineprint){margin:8px 0 12px}.modal-card{padding:24px 22px}.result-stats{margin:16px 0;padding:17px 0}}
@media (max-height:500px) and (min-width:701px){.start-note{width:370px;padding:18px 26px 14px;top:53%;left:8%}.title-wrap h1{font-size:50px}.title-zombie{width:65px;height:72px;right:20px}.menu-subtitle{font-size:17px}.menu-copy{font-size:12px;margin-bottom:8px}.scribble-rule{margin-bottom:9px}.mission{font-size:11px;margin-bottom:11px}.eyebrow{font-size:8px;margin-bottom:7px}.primary-button{min-height:42px;font-size:16px;padding:9px 14px}.menu-controls{margin-top:12px}.best-line{font-size:9px;margin-top:10px}.modal-card{max-height:calc(100dvh - 30px);overflow-y:auto}.bottom-hud{bottom:12px}.topbar{top:12px}.vitals{padding:8px 11px}.health-note{display:none}.ammo{padding:7px 10px}.ammo>small{display:none}.supplies{padding:7px 10px}.wave-card{padding:7px 12px}.wave-card>small{display:none}#toast{top:90px}#touch-controls,body.touch #touch-controls{bottom:100px}.move-pad{width:95px;height:95px}#move-knob{left:50%;top:50%}.touch-actions #fire-btn{width:62px;height:62px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

.icon-button.muted{opacity:.5;position:relative}.icon-button.muted:after{content:"";position:absolute;width:24px;height:2px;background:var(--red);transform:rotate(-45deg)}

.wave-top>b{white-space:nowrap;font-size:18px}.wave-top>span{max-width:83px}@media(max-width:700px){.wave-top>b{font-size:14px}}

/* Home, field controls, and crafting notebook */
.start-note{max-height:calc(100dvh - 116px);overflow-y:auto;scrollbar-width:thin}.start-note .title-wrap h1{font-size:70px}.start-note .title-zombie{width:88px;height:96px}.start-note .menu-copy{margin-bottom:13px}.continue-button{background:#e5e9d3;border:1.5px solid #526449;color:#46553e;font-weight:bold;margin-top:14px;font-size:15px;padding:11px}.home-links{display:flex;justify-content:center;align-items:center;gap:13px;margin-top:19px;font-size:14px;color:#6a745d}.home-links button{background:none;border:0;border-bottom:1px dashed #8a927a;padding:0 0 2px}.home-links>span{color:#969b87}.home-links+.menu-controls{margin-top:15px}.home-button{display:block;background:none;border:0;border-bottom:1px dashed #979d86;margin:20px auto 0;padding:3px 0;font-size:14px;color:#6b745e}.home-button small{font-size:11px}.controls-strip{position:absolute;top:88px;left:30px;z-index:12;padding:12px 14px;width:225px;pointer-events:none;transform:rotate(-.5deg)}.controls-heading{display:block;font-size:10px;letter-spacing:1.2px;color:#7d846e;margin-bottom:9px}.desktop-controls{display:flex;flex-direction:column;gap:7px;font-size:12px;line-height:1.3}.desktop-controls>span{display:flex;align-items:center;gap:6px;white-space:nowrap}.desktop-controls kbd{font-size:10px;line-height:15px;padding:1px 4px}.desktop-controls b{font-size:12px}.touchinstructions{display:none;font-size:11px;line-height:1.4;color:#6c775f}.inventory-hud{position:absolute;right:30px;top:85px;z-index:12;width:247px;padding:10px 12px;transform:rotate(.5deg)}.inventory-title{font-size:9px;letter-spacing:1.3px;color:#7c836f;margin-bottom:6px}.material-counts{display:flex;gap:8px;justify-content:space-between}.material-counts>span{display:flex;align-items:baseline;gap:4px}.material-counts b{font-size:21px;line-height:1}.material-counts small{font-size:8px;color:#7c836d}#crafting-open-btn{display:flex;align-items:center;gap:8px;justify-content:center;width:100%;margin-top:8px;background:#eaa15b;border:1.3px solid var(--ink);border-radius:3px 5px 2px 4px;font-size:12px;font-weight:bold;padding:7px 6px}#crafting-open-btn kbd{font-size:10px;min-width:16px;line-height:14px;background:#f9dbb6}#crafting-open-btn>span{margin-left:auto}#crafting-open-btn>kbd{margin-right:auto}.objective-note{position:absolute;top:125px;left:50%;transform:translateX(-50%);z-index:11;font-size:13px;line-height:1.35;text-align:center;width:330px;max-width:calc(100vw - 80px);padding:7px 10px;border-bottom:1px dashed #90967f;color:#647057;background:#f3eedcd9;pointer-events:none}.weapon-belt{position:absolute;bottom:130px;left:50%;transform:translateX(-50%);z-index:12;display:flex;gap:6px;align-items:center;justify-content:center}.weapon-belt>button{display:flex;align-items:center;gap:6px;background:#f9f5e6ed;border:1.3px solid #7d846e;border-radius:4px 7px 3px 5px;box-shadow:1px 2px 0 #2d343016;padding:7px 9px;font-size:10px;white-space:nowrap}.weapon-belt>button kbd{font-size:10px;line-height:14px;min-width:16px;background:none;border-color:#939b82;box-shadow:none}.weapon-belt>button.equipped{background:#e9b779;border:2px solid var(--ink);transform:translateY(-3px);font-weight:bold}.weapon-belt>button.locked,.weapon-belt>button:disabled{opacity:.48;background:#eae7d7b8;color:#8a907d}.weapon-belt>button.locked>span{border-bottom:1px dotted #949983}.craft-actions small{border-radius:3px;padding:0 2px;white-space:nowrap;font-size:8px;width:auto;min-width:20px}.supplies{width:239px}.crafting-card{width:min(840px,100%);max-height:calc(100dvh - 66px);overflow-y:auto;scrollbar-width:thin;text-align:left;padding:30px 32px 22px;transform:rotate(-.25deg);touch-action:pan-y}.crafting-card h2{font-size:32px;margin-bottom:8px}.crafting-card .eyebrow{font-size:10px;margin-bottom:11px}.crafting-card #crafting-origin-note{font-size:13px;margin:0 0 15px!important;line-height:1.5}.crafting-inventory{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px dashed #9ca48a;border-radius:4px;background:#e8ebd8;margin-bottom:20px;flex-wrap:wrap}.crafting-inventory>span{display:flex;align-items:center;gap:6px;font-size:10px;letter-spacing:.5px;flex:1;white-space:nowrap}.crafting-inventory b{font-size:22px;line-height:1}.recipe-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.recipe-card{position:relative;display:flex;flex-direction:column;min-width:0;background:#f5f0de;border:1.4px solid #959c84;border-radius:5px 8px 3px 6px;padding:15px 14px;box-shadow:2px 3px 0 #2d34300e;overflow:hidden}.recipe-card.owned{background:#e9eddc;border-color:#829472}.recipe-card.equipped{background:#f6e3c7;border-color:#b58c55}.recipe-icon{height:40px;margin-bottom:10px;color:#58634c;display:flex;align-items:center}.recipe-icon svg{width:48px;height:40px;max-width:100%;stroke-width:1.7}.recipe-title{font-size:18px;line-height:1.1;letter-spacing:-.2px;margin:0 0 7px;color:#3e4b34;font-weight:bold}.recipe-description{font-size:11px;line-height:1.5;color:#7b826d;margin:0 0 11px;min-height:34px}.recipe-costs{display:flex;gap:4px;flex-wrap:wrap;margin:auto 0 12px;font-size:10px}.ingredient{display:inline-block;padding:3px 5px;border-radius:3px;border:1px solid #c6c6b3;background:#f1efdf;line-height:1.2}.ingredient.ready{color:#56704b;background:#e1e8d3;border-color:#b9c5a8}.ingredient.missing{color:#a56853;background:#f2e5d8;border-color:#d5b7a4}.recipe-action{border:1.4px solid #4e5d41;border-radius:4px 6px 2px 4px;background:#e7bd84;min-height:34px;padding:7px 10px;font-size:11px;font-weight:bold;width:100%;box-shadow:1px 2px 0 #2d343016}.recipe-action:disabled{background:#dedfcd;color:#888d79;border-color:#b4b9a1;opacity:1;box-shadow:none}.recipe-card.owned .recipe-action{background:#cbd8b5}.recipe-card.equipped .recipe-action{background:#e6bd87;color:#604d32}.crafting-card #craft-feedback{font-size:12px;min-height:17px;color:#a06a48;margin:16px 0 0!important;text-align:center}.crafting-card .tape{display:none}.touch-actions #fire-btn{font-size:14px}body:not([data-state=playing]) .controls-strip{display:none}body[data-state=crafting] #touch-controls{display:none!important}body[data-state=menu] .objective-note,body[data-state=menu] .weapon-belt,body[data-state=menu] .inventory-hud{display:none}#toast{top:181px}
@media(max-width:1100px){.controls-strip{left:20px;top:79px;width:210px;padding:10px 12px}.inventory-hud{right:20px;top:78px;width:226px}.material-counts{gap:6px}.material-counts>span{gap:3px}.material-counts b{font-size:19px}.material-counts small{font-size:7px}.objective-note{top:123px;max-width:270px;font-size:12px}.supplies{width:231px}.bottom-hud .aim-toggle{font-size:8px}.start-note .title-wrap h1{font-size:66px}.start-note .title-zombie{width:81px;height:89px}}
@media(max-width:900px){.controls-strip{width:190px}.desktop-controls{font-size:11px;gap:6px}.desktop-controls kbd{font-size:9px}.desktop-controls b{font-size:11px}.inventory-hud{width:212px}.objective-note{max-width:225px}.recipe-list{grid-template-columns:repeat(2,minmax(0,1fr))}.crafting-card{width:min(700px,100%)}.weapon-belt{bottom:125px;gap:4px}.weapon-belt>button{font-size:9px;padding:6px 7px;gap:4px}}
@media(max-width:700px){.start-note{max-height:calc(100dvh - 105px);top:52%;padding-top:25px}.start-note .title-wrap h1{font-size:clamp(50px,15.8vw,65px)}.start-note .title-zombie{width:77px;height:83px}.home-links{font-size:12px;margin-top:16px;gap:12px}.continue-button{font-size:13px;padding:9px;margin-top:12px}.home-links+.menu-controls{margin-top:13px}.menu-copy{font-size:13px!important}.controls-strip{top:124px;left:12px;width:170px;padding:8px 10px}.controls-heading{font-size:8px;letter-spacing:.8px;margin-bottom:7px}.desktop-controls{font-size:10px;gap:6px}.desktop-controls>span{gap:4px}.desktop-controls kbd{font-size:8px;line-height:13px;padding:0 3px}.desktop-controls b{font-size:10px}.inventory-hud{right:12px;top:124px;width:176px;padding:8px 9px}.inventory-title{font-size:8px;letter-spacing:1px}.material-counts{gap:5px}.material-counts>span{flex-direction:column;gap:3px;align-items:center}.material-counts b{font-size:18px}.material-counts small{font-size:7px}#crafting-open-btn{font-size:10px;padding:6px 4px;gap:4px;margin-top:8px}#crafting-open-btn kbd{font-size:8px;line-height:12px;min-width:13px}.objective-note{top:236px;left:auto;right:12px;transform:none;width:176px;max-width:176px;font-size:10px;text-align:center;padding:6px 4px}.weapon-belt{bottom:125px;gap:4px;width:calc(100vw - 24px)}.weapon-belt>button{flex:1;min-width:0;flex-direction:column;gap:4px;padding:5px 3px;font-size:8px}.weapon-belt>button kbd{font-size:8px;min-width:13px;line-height:12px}.weapon-belt>button.equipped{transform:translateY(-2px)}.supplies{width:calc(74% - 3px)}.aim-toggle{width:calc(26% - 3px);font-size:7px}.craft-actions small{font-size:7px;min-width:19px;height:12px;line-height:11px}.scrap-count b{font-size:17px}.craft-actions button{font-size:8px;gap:2px}.craft-actions{gap:6px}.home-button{font-size:12px;margin-top:17px}.crafting-card{max-height:calc(100dvh - 36px);padding:27px 19px 19px;transform:none}.crafting-card h2{font-size:26px;max-width:calc(100% - 15px)}.crafting-card .eyebrow{font-size:9px}.crafting-card #crafting-origin-note{font-size:11px;margin-bottom:12px!important}.crafting-inventory{gap:7px;padding:10px;margin-bottom:14px;flex-wrap:nowrap}.crafting-inventory>span{font-size:8px;gap:4px;flex-direction:column;align-items:center}.crafting-inventory b{font-size:21px}.recipe-list{grid-template-columns:1fr;gap:11px}.recipe-card{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:11px;padding:13px 12px}.recipe-icon{grid-column:1;grid-row:1/3;height:40px;margin:0}.recipe-icon svg{width:38px;height:38px}.recipe-title{grid-column:2;font-size:17px;margin:0 0 4px}.recipe-description{grid-column:2;font-size:11px;min-height:0;margin:0 0 8px}.recipe-costs{grid-column:2;margin:0 0 10px;font-size:9px}.recipe-action{grid-column:1/3;min-height:33px;font-size:11px}.ingredient{padding:3px 4px}.crafting-card #craft-feedback{font-size:11px;margin-top:13px!important}#toast{top:310px;font-size:11px}#interact-prompt{bottom:191px}}
@media(pointer:coarse){.controls-strip .desktop-controls{display:none}.touchinstructions{display:block}.controls-heading{margin-bottom:5px}.controls-strip{width:176px}.inventory-hud{width:192px}.controls-strip{top:90px}.objective-note{top:180px}.weapon-belt{bottom:119px}.bottom-hud .supplies{width:100%;flex:1}.craft-actions button{font-size:11px}.craft-actions small{font-size:8px}.touch-actions #fire-btn{font-size:13px}#touch-controls,body.touch #touch-controls{bottom:184px}#interact-prompt{bottom:320px}#toast{top:239px}}
body.touch .desktop-controls{display:none}body.touch .touchinstructions{display:block}
@media(pointer:coarse) and (max-width:700px){.controls-strip{top:124px;left:12px;width:170px}.inventory-hud{top:124px;width:176px}.touchinstructions{font-size:10px}.objective-note{top:236px}.bottom-hud .supplies{width:100%}.craft-actions button{font-size:10px}.weapon-belt{bottom:120px}.controls-strip .controls-heading{font-size:8px}#touch-controls,body.touch #touch-controls{bottom:181px;left:18px;right:18px}.move-pad{width:108px;height:108px}#toast{top:282px}#interact-prompt{bottom:310px}}
@media(max-height:760px) and (min-width:701px){.start-note{padding-top:21px;padding-bottom:16px}.start-note .title-wrap h1{font-size:59px}.start-note .title-zombie{width:72px;height:79px}.home-links{margin-top:14px;font-size:12px}.home-links+.menu-controls{margin-top:12px}.continue-button{padding:9px;margin-top:11px;font-size:13px}.start-note .menu-subtitle{font-size:17px}.start-note .menu-copy{font-size:13px}.start-note .mission{font-size:12px;margin-bottom:13px}.controls-strip{padding:8px 10px;width:200px}.desktop-controls{font-size:11px;gap:5px}.desktop-controls kbd{font-size:9px}.desktop-controls b{font-size:11px}.inventory-hud{width:220px;padding:8px 10px}.objective-note{top:120px}.weapon-belt{bottom:115px}}
@media(max-height:620px) and (max-width:700px){.start-note{max-height:calc(100dvh - 84px);top:54%;padding:18px 23px 14px}.start-note .title-wrap h1{font-size:49px}.start-note .title-zombie{width:63px;height:71px}.home-links{margin-top:12px;font-size:11px}.home-links+.menu-controls{margin-top:11px}.continue-button{font-size:12px;padding:8px;margin-top:10px}.controls-strip{top:118px}.inventory-hud{top:118px}.objective-note{top:225px}.weapon-belt{bottom:120px}}
@media(max-height:500px) and (min-width:701px){.start-note{max-height:calc(100dvh - 73px);top:54%}.start-note .title-wrap h1{font-size:44px}.start-note .title-zombie{width:59px;height:65px}.start-note .menu-copy{font-size:11px}.home-links{margin-top:11px;font-size:11px}.home-links+.menu-controls{display:none}.start-note .mobile-hint{display:none}.continue-button{padding:7px}.controls-strip{top:67px;font-size:9px;width:188px}.inventory-hud{top:67px;width:210px}.controls-heading{margin-bottom:6px}.desktop-controls{font-size:10px;gap:4px}.objective-note{top:93px;font-size:11px}.weapon-belt{bottom:95px}.weapon-belt>button{padding:5px 7px}.crafting-card{max-height:calc(100dvh - 25px)}#toast{top:161px}}

@media(min-width:701px) and (max-width:900px){.bottom-hud .vitals{width:195px}.bottom-hud .ammo{width:145px}.bottom-hud .supplies{width:225px}.bottom-hud .aim-toggle{max-width:90px;font-size:7px;padding:7px 5px}.health-head{font-size:9px}.health-head b{font-size:11px}}
@media(max-width:380px){.controls-strip,.inventory-hud{width:calc(50vw - 18px)}.objective-note{width:calc(50vw - 18px);max-width:calc(50vw - 18px)}.controls-strip{padding-left:8px;padding-right:8px}.desktop-controls>span{gap:3px}.desktop-controls kbd{font-size:7px}.desktop-controls{font-size:9px}.touchinstructions{font-size:9px}#crafting-open-btn{font-size:9px}.craft-actions button{font-size:9px}.scrap-count svg{width:15px}}

.ammo-numbers b{white-space:nowrap;font-size:21px}.ammo-numbers>span{line-height:1.2}

/* Keep one way back to the HUD while the game continues underneath. */
.header-actions{margin-left:auto}
.ui-toggle-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:6px 9px;border:1.6px solid var(--ink);border-radius:7px 4px 8px 5px;background:rgba(250,247,235,.94);box-shadow:1.5px 2px 0 #2d343025;font-size:10px;white-space:nowrap;pointer-events:auto}
.ui-toggle-button svg{width:18px;height:18px}
.ui-toggle-button kbd{font-size:9px;line-height:15px;min-width:15px;padding:0 3px}
.ui-toggle-button .eye-slash{display:none}
body.ui-hidden .ui-toggle-button .eye-slash{display:block}
body:not([data-state=playing]) #ui-toggle-btn{display:none}
body.ui-hidden[data-state=playing] .status-hud,
body.ui-hidden[data-state=playing] .brand,
body.ui-hidden[data-state=playing] .header-actions>:not(#ui-toggle-btn),
body.ui-hidden[data-state=playing] #toast,
body.ui-hidden[data-state=playing]:not(.touch) #interact-prompt{display:none!important}
@media(max-width:900px){.ui-toggle-button svg,.ui-toggle-button kbd{display:none}.ui-toggle-button{padding:6px;min-width:57px}}
@media(max-width:700px){.ui-toggle-button{min-height:31px;font-size:9px;min-width:53px}}
@media(max-width:380px){body[data-state=playing] .brand{font-size:14px;gap:5px}body[data-state=playing] .brand>svg{width:20px}body[data-state=playing] .brand small{font-size:5.7px;letter-spacing:.2px}body[data-state=playing] .header-actions{gap:4px}}

/* A tucked-away page, separate from the regular field notes. */
.cheat-drawer{position:fixed;z-index:40;right:18px;top:18px;bottom:18px;width:334px;max-width:calc(100vw - 24px);display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;background:#faf6e7;border:2px solid var(--ink);border-radius:6px 10px 4px 8px;box-shadow:-6px 7px 0 #2d34302b,0 10px 50px #2d343025;padding:28px 23px 22px;transform:rotate(.3deg)}.cheat-drawer>.close-button{top:12px;right:13px;font-size:27px}.cheat-heading .eyebrow{font-size:10px;letter-spacing:1.7px;margin:0 0 13px;color:#909079}.cheat-heading h2{font-size:38px;line-height:.94;letter-spacing:-1.5px;font-weight:bold;margin:0 0 12px;transform:rotate(-1deg)}.cheat-heading h2>span{color:var(--orange)}.cheat-heading>p:last-child{font-size:12px;line-height:1.5;color:#7e836d;margin:0}.cheat-divider{height:4px;flex-shrink:0;background:#69745b;width:66px;clip-path:polygon(0 40%,100% 0,98% 60%,2% 100%);margin:17px 0 22px;transform:rotate(-1deg)}.cheat-options{display:flex;flex-direction:column;gap:12px}.cheat-option{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:1.4px solid #a2a88e;border-radius:5px 9px 3px 6px;box-shadow:2px 3px 0 #2d34300e;background:#f0efdb;padding:14px 12px;min-height:76px;transition:background .13s,border-color .13s,transform .13s}.cheat-symbol{width:30px;height:34px;stroke:#667455;stroke-width:1.6}.cheat-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.cheat-copy>b{font-size:16px;line-height:1.15;color:#414d37;letter-spacing:-.3px}.cheat-copy>small{font-size:10px;line-height:1.5;color:#7b826a}.cheat-copy strong{font-weight:normal;color:#77698a}.cheat-switch{font-size:9px;letter-spacing:.8px;padding:5px 6px;min-width:32px;text-align:center;color:#8d927e;background:#e3e4d2;border:1px solid #bcc2a8;border-radius:3px 5px 2px 4px}.cheat-toggle[aria-pressed=true]{background:#e0e9cf;border-color:#758967;box-shadow:2px 3px 0 #75896725}.cheat-toggle[aria-pressed=true] .cheat-switch{background:#788d65;color:#fff9e8;border-color:#637a50}.cheat-toggle[aria-pressed=true] .cheat-symbol{stroke:#536d40}.cheat-grant{background:#f4e6ce;border-color:#b8a587}.cheat-grant .cheat-symbol{stroke:#98764c}.cheat-arrow{font-size:22px;line-height:1;color:#8e987e}.cheat-laser{background:#eae5ed;border-color:#aaa0b3}.cheat-laser .cheat-symbol{stroke:#867193}.cheat-laser .cheat-copy>b{color:#675574}.cheat-laser .cheat-arrow{color:#947fa2}.cheat-option:focus-visible{outline-color:#6d8559;outline-offset:4px}.cheat-feedback{min-height:29px;font-size:11px;line-height:1.5;color:#7d6e4c;padding:0 2px;margin:16px 0 11px;white-space:normal}.cheat-footer{margin-top:auto;padding-top:16px;border-top:1px dashed #babca6;color:#8a9079}.cheat-paused{display:flex;align-items:center;gap:6px;font-size:9px;letter-spacing:1.1px;color:#7c896c}.cheat-paused i{height:5px;width:5px;border-radius:50%;background:#8fa579}.cheat-footer p{font-size:11px;margin:10px 0 7px}.cheat-footer kbd{font-size:9px;min-width:15px;line-height:14px;border-color:#a0a68f;box-shadow:none;color:#7b856d}.cheat-footer>small{display:block;font-size:9px;line-height:1.4;color:#a0a48f}body[data-state=cheats] #touch-controls{display:none!important}.weapon-belt>button[data-weapon=laser]:not([hidden]){border-color:#a497af;background:#eae2ed;color:#79618b}.weapon-belt>button[data-weapon=laser].equipped{border-color:#735b86;background:#d6c2e2;color:#564266}
@media(max-width:700px){.cheat-drawer{right:12px;top:12px;bottom:12px;width:326px;padding:26px 22px 21px;transform:none}.cheat-heading h2{font-size:35px}.cheat-option{min-height:73px;padding:13px 12px}.cheat-copy>b{font-size:15px}.cheat-symbol{width:28px;height:32px}.cheat-heading>p:last-child{font-size:11px}.weapon-belt:has(>button[data-weapon=laser]:not([hidden])){gap:3px}.weapon-belt:has(>button[data-weapon=laser]:not([hidden]))>button{font-size:7px;padding:5px 2px}}
@media(max-height:720px){.cheat-drawer{padding-top:23px;padding-bottom:17px}.cheat-heading .eyebrow{margin-bottom:10px;font-size:9px}.cheat-heading h2{font-size:32px;margin-bottom:9px}.cheat-heading>p:last-child{font-size:10px}.cheat-divider{margin:13px 0 17px}.cheat-options{gap:9px}.cheat-option{padding:11px 12px;min-height:64px}.cheat-copy>b{font-size:14px}.cheat-copy>small{font-size:9px}.cheat-symbol{height:28px;width:26px}.cheat-feedback{min-height:22px;font-size:10px;margin:12px 0 9px}.cheat-footer{padding-top:12px}.cheat-footer p{margin:8px 0 6px}}
@media(max-height:540px){.cheat-drawer{top:9px;bottom:9px;padding:18px 20px 15px}.cheat-heading h2{font-size:27px;line-height:1;letter-spacing:-1px}.cheat-heading h2 br{display:none}.cheat-heading .eyebrow{font-size:8px;margin-bottom:7px}.cheat-heading>p:last-child{display:none}.cheat-divider{margin:9px 0 13px}.cheat-options{gap:8px}.cheat-option{padding:8px 10px;min-height:55px}.cheat-copy{gap:3px}.cheat-copy>b{font-size:13px}.cheat-copy>small{font-size:8px;line-height:1.4}.cheat-switch{font-size:8px;padding:4px 5px}.cheat-symbol{height:26px;width:25px}.cheat-feedback{min-height:16px;font-size:9px;margin:9px 0 7px}.cheat-footer{padding-top:9px}.cheat-footer p{font-size:9px;margin:6px 0 5px}.cheat-footer>small{font-size:8px}.cheat-paused{font-size:8px}.cheat-footer kbd{font-size:8px;line-height:12px;min-width:13px}}

/* Six choices on a fresh page between waves. */
.upgrade-shop{width:min(880px,100%);max-height:calc(100dvh - 54px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-y;text-align:left;padding:28px 30px 22px;transform:rotate(-.25deg)}.upgrade-shop-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.upgrade-shop-heading .eyebrow{font-size:10px;letter-spacing:1.3px;margin:0 0 9px}.upgrade-shop-heading h2{font-size:34px;line-height:1.1;letter-spacing:-1px;margin:0;max-width:660px}.free-pick-stamp{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:88px;padding:8px 9px;border:2px solid #8a9b71;border-radius:3px 7px 2px 4px;transform:rotate(6deg);background:#e6ecd7;color:#6a8054;font-size:10px;line-height:1.05;letter-spacing:1px}.free-pick-stamp b{font-size:15px;letter-spacing:.7px}.upgrade-shop .upgrade-intro{font-size:13px;line-height:1.5;color:#7c836d;margin:12px 0 18px!important}.upgrade-intro b{font-weight:bold;color:#5d6b4c}.upgrade-reroll-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#ecebd7;border:1.3px dashed #a8ad95;border-radius:5px 8px 3px 6px;padding:10px 13px}.upgrade-wallet{display:flex;align-items:center;gap:9px}.upgrade-wallet>svg{height:27px;width:27px;color:#798366;stroke-width:1.5}.upgrade-wallet>span{display:flex;align-items:baseline;gap:10px}.upgrade-wallet small{font-size:10px;letter-spacing:.7px;color:#7c846c}.upgrade-wallet b{font-size:25px;line-height:1;color:#46563a}#upgrade-reroll{display:flex;align-items:center;justify-content:center;gap:9px;border:1.5px solid #687858;border-radius:4px 8px 3px 5px;min-height:36px;background:#e6b77c;box-shadow:2px 2px 0 #2d34301b;padding:8px 12px;color:#48573c}#upgrade-reroll>svg{width:17px;height:17px;stroke-width:1.7}#upgrade-reroll>b{font-size:12px;letter-spacing:.6px}#upgrade-reroll-cost{font-size:10px;white-space:nowrap;border-left:1px solid #a58b67;padding-left:10px;margin-left:1px}#upgrade-reroll:disabled{background:#dedfcb;border-color:#b1b69e;box-shadow:none;color:#8a927a;opacity:1}#upgrade-reroll:disabled #upgrade-reroll-cost{border-color:#babfa8}.upgrade-shop .upgrade-reroll-note{margin:7px 1px 0!important;font-size:10px;color:#939780;line-height:1.45}.upgrade-shop .upgrade-feedback{min-height:16px;font-size:11px;line-height:1.4;margin:5px 1px 10px!important;color:#a57153}.upgrade-shop .upgrade-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0;align-items:stretch}.upgrade-shop .upgrade-options>button{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto 1fr auto;align-items:start;column-gap:9px;row-gap:6px;min-height:162px;text-align:left;border:1.5px solid #929b7f;border-radius:5px 8px 3px 6px;padding:15px 14px 12px;box-shadow:2px 3px 0 #2d343017;background:#eeedda;transform:none;transition:transform .12s,background .12s,border-color .12s}.upgrade-shop .upgrade-options>button:nth-child(3n+2){background:#f3e4ca;border-color:#b1a080;transform:none}.upgrade-shop .upgrade-options>button:nth-child(3n+3){background:#e5ead7;border-color:#99a58a;transform:none}.upgrade-shop .upgrade-options>button:nth-child(4n){border-radius:8px 4px 7px 3px}.upgrade-shop .upgrade-options>button:hover:not(:disabled){transform:translateY(-2px) rotate(-.5deg);border-color:#586c45;box-shadow:3px 5px 0 #2d343020}.upgrade-shop .upgrade-options>button:active:not(:disabled){transform:translate(1px,1px);box-shadow:none}.upgrade-shop .upgrade-options>button>svg{grid-column:1;grid-row:1/3;width:38px;height:38px;margin:0;color:#6e7e58;stroke-width:1.7}.upgrade-shop .upgrade-options>button:nth-child(3n+2)>svg{color:#9b8057}.upgrade-shop .upgrade-options>button>b{grid-column:2;grid-row:1/3;align-self:center;font-size:16px;line-height:1.25;letter-spacing:-.1px;margin:0;color:#46563a;overflow-wrap:anywhere}.upgrade-shop .upgrade-options .upgrade-detail{grid-column:1/-1;grid-row:3;font-size:11px;line-height:1.55;color:#7a846a;min-height:0;margin:3px 0 1px}.upgrade-shop .upgrade-options .upgrade-detail br{display:block}.upgrade-shop .upgrade-options>button>small{grid-column:1/-1;grid-row:4;display:block;align-self:end;border-top:1px dashed #b8bda5;padding-top:8px;margin:4px 0 0;font-size:9px;line-height:1.3;letter-spacing:.5px;color:#7c8967}.upgrade-shop .upgrade-options>button:nth-child(3n+2)>small{border-color:#c5b69b;color:#967e5a}.upgrade-shop .upgrade-shop-footer{margin:16px 0 0;text-align:center;font-size:10px;line-height:1.4;color:#929780}
@media(max-width:900px){.upgrade-shop{max-width:740px;padding:25px 26px 21px}.upgrade-shop-heading h2{font-size:31px}.upgrade-shop .upgrade-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.upgrade-shop .upgrade-options>button{min-height:143px;padding:13px 14px 11px}.upgrade-shop .upgrade-options>button>b{font-size:15px}.upgrade-shop .upgrade-options>button>svg{width:35px;height:35px}.upgrade-shop .upgrade-options .upgrade-detail{font-size:11px}}
@media(max-width:700px){.upgrade-shop{max-height:calc(100dvh - 36px);padding:24px 21px 20px;transform:none}.upgrade-shop-heading h2{font-size:27px}.upgrade-shop-heading .eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:8px}.free-pick-stamp{min-width:74px;padding:7px 6px;font-size:8px}.free-pick-stamp b{font-size:12px}.upgrade-shop .upgrade-intro{font-size:12px;margin:11px 0 14px!important}.upgrade-reroll-toolbar{gap:10px;padding:9px 10px}.upgrade-wallet{gap:6px}.upgrade-wallet>svg{height:22px;width:22px}.upgrade-wallet>span{gap:7px}.upgrade-wallet small{font-size:8px;letter-spacing:.4px}.upgrade-wallet b{font-size:21px}#upgrade-reroll{gap:7px;min-height:34px;padding:8px 9px}#upgrade-reroll>svg{width:15px;height:15px}#upgrade-reroll>b{font-size:10px}#upgrade-reroll-cost{font-size:9px;padding-left:8px}.upgrade-shop .upgrade-reroll-note{font-size:9px;margin-top:7px!important}.upgrade-shop .upgrade-feedback{font-size:10px;min-height:14px;margin-bottom:9px!important}.upgrade-shop .upgrade-options{gap:10px}.upgrade-shop .upgrade-options>button{grid-template-columns:33px minmax(0,1fr);column-gap:8px;min-height:146px;padding:12px 11px 10px}.upgrade-shop .upgrade-options>button>svg{width:31px;height:31px}.upgrade-shop .upgrade-options>button>b{font-size:13px;line-height:1.25}.upgrade-shop .upgrade-options .upgrade-detail{font-size:10px;line-height:1.5;margin-top:2px}.upgrade-shop .upgrade-options>button>small{font-size:8px;padding-top:7px;letter-spacing:.2px}.upgrade-shop .upgrade-shop-footer{font-size:9px;margin-top:14px}}
@media(max-width:520px){.upgrade-shop{padding-left:18px;padding-right:18px}.upgrade-shop-heading{gap:10px}.upgrade-shop-heading h2{font-size:25px}.free-pick-stamp{min-width:70px}.upgrade-wallet>span{flex-direction:column;align-items:flex-start;gap:3px}.upgrade-wallet small{font-size:8px}.upgrade-shop .upgrade-options{grid-template-columns:1fr;gap:11px}.upgrade-shop .upgrade-options>button{grid-template-columns:38px minmax(0,1fr);column-gap:10px;row-gap:4px;min-height:0;padding:13px 13px 11px}.upgrade-shop .upgrade-options>button>svg{width:34px;height:34px;grid-row:1/3;align-self:center}.upgrade-shop .upgrade-options>button>b{grid-column:2;grid-row:1;font-size:15px}.upgrade-shop .upgrade-options .upgrade-detail{grid-column:2;grid-row:2;font-size:11px;margin:0}.upgrade-shop .upgrade-options .upgrade-detail br{display:none}.upgrade-shop .upgrade-options>button>small{grid-column:1/-1;grid-row:3;font-size:9px;margin-top:5px;padding-top:8px}.upgrade-shop .upgrade-intro{font-size:11px}.upgrade-shop .upgrade-reroll-note{font-size:9px}#upgrade-reroll{gap:8px;padding:9px 10px}#upgrade-reroll>b{font-size:11px}}
@media(max-height:650px) and (min-width:701px){.upgrade-shop{max-height:calc(100dvh - 28px);padding-top:22px;padding-bottom:18px}.upgrade-shop-heading h2{font-size:29px}.upgrade-shop-heading .eyebrow{font-size:9px;margin-bottom:7px}.free-pick-stamp{padding:6px 8px;font-size:9px}.free-pick-stamp b{font-size:13px}.upgrade-shop .upgrade-intro{font-size:12px;margin:9px 0 12px!important}.upgrade-reroll-toolbar{padding:8px 12px}.upgrade-shop .upgrade-feedback{margin-top:4px!important;margin-bottom:8px!important}.upgrade-shop .upgrade-options>button{min-height:134px;padding:12px 13px 10px}.upgrade-shop .upgrade-options>button>svg{width:32px;height:32px}.upgrade-shop .upgrade-options>button>b{font-size:14px}.upgrade-shop .upgrade-options .upgrade-detail{font-size:10px;line-height:1.45}.upgrade-shop .upgrade-options>button>small{font-size:8px;padding-top:6px}.upgrade-shop .upgrade-shop-footer{margin-top:12px;font-size:9px}}

/* The northern workshop, kit selection, and an expanded equipment belt. */
.material-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.material-counts>span{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}.material-counts b{font-size:22px}.material-counts small{font-size:8px;line-height:1}.inventory-hud{width:265px}.inventory-title{margin-bottom:9px}#crafting-open-btn{margin-top:11px}.crafting-inventory{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.crafting-inventory>span{justify-content:center;min-width:0;font-size:9px}.crafting-inventory b{font-size:22px}.craft-tabs{display:flex;align-items:center;gap:7px;margin:0 0 18px;padding-bottom:12px;border-bottom:1.2px dashed #bcc2a9}.craft-tabs>button{flex:1;background:#f1efdd;border:1.3px solid #a0aa8c;border-radius:4px 7px 3px 5px;padding:10px 12px;font-size:12px;letter-spacing:.6px;color:#7f8a6c;box-shadow:1px 2px 0 #2d34300e}.craft-tabs>button.active,.craft-tabs>button[aria-selected=true],.craft-tabs>button[aria-pressed=true]{background:#dfe8cc;color:#536c40;border-color:#7a8e65;font-weight:bold;box-shadow:1px 2px 0 #7a8e6527}.loadout-dock{position:absolute;left:50%;bottom:125px;transform:translateX(-50%);z-index:12;width:min(930px,calc(100vw - 60px));display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.loadout-dock .weapon-belt{position:static;left:auto;bottom:auto;transform:none;display:flex;align-items:stretch;justify-content:center;gap:5px;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#9aa68a transparent;padding:4px 2px;pointer-events:auto;touch-action:pan-x}.loadout-dock .weapon-belt>button{flex:0 0 auto;display:flex;flex-direction:row;align-items:center;gap:5px;padding:7px 9px;font-size:9px;min-width:0}.loadout-dock .weapon-belt>button>kbd{font-size:9px;min-width:15px;line-height:13px}.loadout-dock .weapon-belt>button.equipped{transform:translateY(-2px)}.defense-tools{display:flex;align-items:center;gap:15px;padding:8px 11px;width:min(680px,100%);pointer-events:auto;transform:rotate(-.2deg)}.defense-status{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.defense-status>span{display:flex;align-items:center;gap:6px;font-size:11px;color:#5b6a4a;line-height:1.25}.defense-status kbd{font-size:9px;min-width:15px;line-height:13px}.defense-status small{font-size:9px;color:#899176;line-height:1.35}.defense-selector{display:flex;align-items:center;gap:5px}.defense-selector>button{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #a5af93;background:#eeeeda;border-radius:4px 6px 3px 5px;padding:7px 8px;font-size:10px;min-width:52px;box-shadow:1px 2px 0 #2d34300b}.defense-selector>button>b{font-size:10px;min-width:15px;line-height:17px;height:17px;text-align:center;background:#e1e5ce;border-radius:3px;color:#7f8a6b}.defense-selector>button.selected,.defense-selector>button.active,.defense-selector>button[aria-pressed=true]{background:#d8e4c5;border-color:#7c9265;color:#536d3f;font-weight:bold}.defense-selector>button.selected>b,.defense-selector>button.active>b,.defense-selector>button[aria-pressed=true]>b{background:#bdcfa8;color:#526b3f}.defense-selector>button:disabled{opacity:.55}.supplies .craft-actions{gap:10px}.supplies .craft-actions button{font-size:11px}.supplies #bandage-count{min-width:15px;padding:0 4px;border-radius:3px;background:#e0e6ce;border-color:#b1bea0;font-size:9px}.controls-strip{max-height:calc(100dvh - 340px);overflow:hidden}.desktop-controls{gap:6px}.desktop-controls>span{font-size:11px}.help-card{max-height:calc(100dvh - 50px);overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;touch-action:pan-y}.field-guide{margin-top:23px;border-top:1px dashed #c2c7ad;padding-top:18px}.field-guide h3{font-size:10px;letter-spacing:1px;color:#64764e;margin:0 0 9px}.field-guide>p{font-size:11px;line-height:1.6;color:#818b70;margin:0 0 13px}.defense-guide{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:22px}.defense-guide>span{font-size:10px;padding:5px 7px;border:1px solid #c4cbb1;background:#e9ecd9;border-radius:3px;color:#858e74}.defense-guide b{color:#6d7e56;margin-right:3px}.zombie-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 13px}.zombie-guide>span{display:flex;flex-direction:column;gap:4px;min-width:0}.zombie-guide b{font-size:12px;color:#6a7c54}.zombie-guide small{font-size:10px;line-height:1.5;color:#919880}.field-guide .scarcity-note{font-size:11px;margin-top:17px;background:#f1e6d1;border-left:2px solid #bd9d6c;padding:10px 11px;color:#8f816a}.field-guide .scarcity-note b{color:#8c704b}#interact-prompt{bottom:257px}.start-note .menu-copy b{font-weight:normal;color:#7b855e}
@media(max-width:1100px){.inventory-hud{width:240px}.material-counts{gap:6px}.material-counts b{font-size:21px}.material-counts small{font-size:7px}.loadout-dock{width:calc(100vw - 40px);bottom:123px}.loadout-dock .weapon-belt>button{padding:7px 8px;font-size:8px;gap:4px}.loadout-dock .weapon-belt>button>kbd{font-size:8px;min-width:13px;line-height:12px}.desktop-controls>span{font-size:10px}.desktop-controls kbd{font-size:9px}.defense-tools{gap:12px}.defense-status>span{font-size:10px}.defense-status small{font-size:8px}.defense-selector>button{font-size:9px;min-width:49px;padding:7px}.controls-strip{max-height:calc(100dvh - 330px)}}
@media(max-width:900px){.inventory-hud{width:220px}.material-counts{gap:5px}.material-counts b{font-size:20px}.material-counts small{font-size:6px}.loadout-dock{bottom:120px}.loadout-dock .weapon-belt{justify-content:flex-start;gap:4px}.loadout-dock .weapon-belt>button{flex:1 0 auto;padding:7px 6px;font-size:8px}.defense-tools{width:min(650px,100%);gap:10px}.defense-selector>button{min-width:46px;padding:7px 6px;gap:4px}.crafting-inventory{gap:8px}.controls-strip{max-height:calc(100dvh - 320px)}#interact-prompt{bottom:245px}}
@media(max-width:700px){.inventory-hud{width:176px;padding:8px 9px}.inventory-title{margin-bottom:7px}.material-counts{gap:4px}.material-counts b{font-size:17px}.material-counts small{font-size:6px}.material-counts>span{gap:4px}#crafting-open-btn{margin-top:9px;font-size:10px}.crafting-inventory{gap:6px;padding:10px 8px}.crafting-inventory>span{font-size:7px;letter-spacing:.3px;gap:5px;flex-direction:column}.crafting-inventory b{font-size:20px}.craft-tabs{gap:6px;margin-bottom:15px;padding-bottom:11px}.craft-tabs>button{font-size:10px;padding:9px 6px;letter-spacing:.4px}.loadout-dock{width:calc(100vw - 24px);bottom:117px;gap:5px}.loadout-dock .weapon-belt{justify-content:flex-start;gap:4px;padding:3px 1px 5px}.loadout-dock .weapon-belt>button{flex:0 0 auto;min-width:55px;flex-direction:column;gap:3px;padding:5px 6px;font-size:8px}.loadout-dock .weapon-belt>button>kbd{font-size:8px;min-width:13px;line-height:11px;padding:0 2px}.loadout-dock .weapon-belt:has(>button[data-weapon=laser]:not([hidden])){gap:4px}.loadout-dock .weapon-belt:has(>button[data-weapon=laser]:not([hidden]))>button{font-size:8px;padding:5px 6px}.defense-tools{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;padding:8px 9px;transform:none}.defense-status{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.defense-status>span{font-size:10px;white-space:nowrap;gap:4px;flex-shrink:0}.defense-status kbd{font-size:8px;line-height:11px;min-width:13px;padding:0 2px}.defense-status small{font-size:8px;line-height:1.3;text-align:right;max-width:170px}.defense-selector{gap:5px;width:100%;justify-content:space-between}.defense-selector>button{flex:1;min-width:0;gap:4px;padding:5px 3px;font-size:9px}.defense-selector>button>b{font-size:9px;min-width:14px;height:15px;line-height:15px}.supplies .craft-actions{gap:9px}.supplies .craft-actions button{font-size:9px}.supplies #bandage-count{font-size:8px;min-width:14px;padding:0 3px}.controls-strip{max-height:calc(100dvh - 420px);overflow-y:auto;scrollbar-width:thin}.desktop-controls{gap:5px}.desktop-controls>span{font-size:9px;gap:4px}.desktop-controls kbd{font-size:8px}.objective-note{top:240px}.help-card{max-height:calc(100dvh - 36px)}.field-guide{margin-top:20px;padding-top:16px}.field-guide h3{font-size:9px;letter-spacing:.7px}.field-guide>p{font-size:10px}.zombie-guide{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 15px}.zombie-guide b{font-size:11px}.zombie-guide small{font-size:9px}.defense-guide{gap:5px;margin-bottom:19px}.defense-guide>span{font-size:9px;padding:4px 6px}.field-guide .scarcity-note{font-size:10px;margin-top:15px;padding:9px 10px}#interact-prompt{bottom:257px}}
@media(pointer:coarse){.loadout-dock{bottom:119px}.controls-strip{overflow:visible;max-height:none}.touchinstructions{font-size:10px}#touch-controls,body.touch #touch-controls{bottom:247px}#interact-prompt{bottom:384px}.supplies .craft-actions button{font-size:11px}.defense-selector>button{min-height:31px;touch-action:manipulation}}
body.touch #touch-controls{bottom:247px}
@media(pointer:coarse) and (max-width:700px){.loadout-dock{bottom:116px}.controls-strip{max-height:none;overflow:visible}.touchinstructions{font-size:9px}.inventory-hud{width:176px}.supplies .craft-actions button{font-size:10px}#touch-controls,body.touch #touch-controls{bottom:247px;left:18px;right:18px}.move-pad{width:105px;height:105px}.touch-actions #fire-btn{width:69px;height:69px}#interact-prompt{bottom:374px}.defense-selector>button{padding:5px 3px;min-height:30px}.defense-status small{font-size:7px}}
@media(max-width:380px){.inventory-hud{width:calc(50vw - 18px)}.material-counts small{font-size:5.5px}.material-counts b{font-size:16px}.material-counts{gap:3px}#crafting-open-btn{font-size:9px}.defense-status>span{font-size:9px}.defense-status small{font-size:7px;max-width:140px}.defense-selector>button{font-size:8px;gap:3px}.defense-selector>button>b{font-size:8px;min-width:12px}.supplies .craft-actions button{font-size:9px}.loadout-dock .weapon-belt>button{min-width:52px}}
@media(max-height:650px) and (min-width:701px){.controls-strip{max-height:calc(100dvh - 250px);overflow-y:auto;scrollbar-width:thin}.loadout-dock{bottom:113px;gap:5px}.loadout-dock .weapon-belt>button{padding:5px 7px}.defense-tools{padding:6px 10px;gap:10px}.defense-selector>button{padding:5px 6px}.defense-status{gap:3px}.defense-status>span{font-size:9px}.defense-status small{font-size:8px}#interact-prompt{bottom:222px}}
@media(max-height:500px) and (min-width:701px){.loadout-dock{bottom:91px;gap:3px;width:calc(100vw - 40px)}.loadout-dock .weapon-belt>button{padding:4px 6px;font-size:7px}.loadout-dock .weapon-belt>button>kbd{font-size:7px;min-width:12px;line-height:10px}.defense-tools{padding:5px 8px;max-width:630px}.defense-status small{font-size:7px}.defense-selector>button{min-width:42px;padding:4px 5px;font-size:8px}.defense-selector>button>b{font-size:8px;min-width:12px;height:14px;line-height:14px}.controls-strip{max-height:calc(100dvh - 245px);width:186px}.desktop-controls>span{font-size:9px}.desktop-controls{gap:4px}.desktop-controls kbd{font-size:8px;line-height:12px}.inventory-hud{width:210px}.inventory-title{font-size:8px}.material-counts b{font-size:17px}.material-counts small{font-size:6px}#crafting-open-btn{margin-top:7px;padding:5px;font-size:10px}#touch-controls,body.touch #touch-controls{bottom:189px}#interact-prompt{bottom:190px}}

/* Two friends, one keyboard, and a safe shop to catch their breath. */
.coop-only{display:none}.home-play-modes{display:grid;grid-template-columns:.85fr 1.35fr;gap:12px;align-items:stretch}.home-play-modes .primary-button{font-size:16px;gap:9px;padding:12px 9px;min-height:52px;letter-spacing:.3px}.home-play-modes .start-button>svg{width:25px;height:19px}.home-play-modes .coop-button{background:#a3c7bd;border-color:#3e6158;box-shadow:3px 4px 0 #3e6158;font-size:13px;white-space:nowrap;color:#355a50}.coop-button>svg{width:26px;height:23px;stroke-width:1.7}.coop-home-note{font-size:10px!important;color:#858f78!important;line-height:1.5;margin:14px 0 0!important;text-align:center}.player-tag{display:inline-flex;align-items:center;justify-content:center;font-size:8px;font-weight:bold;letter-spacing:.3px;line-height:16px;min-width:22px;padding:0 4px;border:1px solid #b88b51;border-radius:3px 5px 2px 4px;flex-shrink:0}.player-one{background:#edbd84;color:#805829;border-color:#c79a60}.player-two{background:#accec3;color:#47796c;border-color:#80aa9c}.player-tag.coop-only{display:none}.coop-controls{display:none;position:absolute;top:88px;left:30px;z-index:12;width:235px;padding:12px 13px;max-height:calc(100dvh - 340px);overflow-y:auto;scrollbar-width:thin;transform:rotate(-.35deg);pointer-events:auto;touch-action:pan-y}.coop-control-player{display:flex;align-items:center;flex-wrap:wrap;gap:6px;line-height:1.2}.coop-control-player>b{font-size:10px;letter-spacing:.6px;color:#a07d4f}.coop-control-player>span:last-child{font-size:10px;color:#7b866d;margin-left:auto}.coop-key-grid{display:flex;flex-direction:column;gap:6px;margin-top:8px}.coop-key-grid>span{font-size:10px;line-height:1.3;color:#738064;white-space:nowrap}.coop-key-grid kbd{font-size:8px;line-height:13px;min-width:14px;padding:0 3px;border-color:#a2ab90;box-shadow:0 1px 0 #a2ab90}.p2-control-title{margin-top:12px;padding-top:11px;border-top:1px dashed #c3cbb2}.p2-control-title>b{color:#5a9382}.coop-hint{font-size:9px;color:#98a087;line-height:1.4;border-top:1px dashed #c5cdb6;padding-top:9px;margin:11px 0 0}.p2-hud{width:235px;margin-left:auto;padding:11px 13px 9px;border-color:#799f8e;background:#edf2dfed;transform:rotate(.5deg);pointer-events:none}.p2-health-head{display:flex;align-items:center;gap:6px}.p2-health-head>b{font-size:9px;letter-spacing:.7px;color:#65927d}.p2-health-head>span:last-child{margin-left:auto;font-size:12px;font-weight:bold;color:#58775f;white-space:nowrap}.p2-health-track{height:8px;margin:7px 0;border:1.1px solid #718d71;border-radius:3px 2px 4px 2px;background:#dfe7cd;overflow:hidden}.p2-health-track>i{display:block;width:100%;height:100%;background:#81b3a0;transition:width .15s}.p2-gear{display:flex;align-items:baseline;gap:8px;justify-content:space-between;color:#63816b;min-width:0}.p2-gear>b{font-size:10px;letter-spacing:.2px;line-height:1.3;overflow-wrap:anywhere}.p2-gear>span{font-size:11px;white-space:nowrap;line-height:1.2}.p2-field-status{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;font-size:8px;line-height:1.3;color:#94a087;margin-top:5px}.p2-field-status>span:first-child{color:#719778}.p2-field-status>span:last-child{text-align:right}.coop-belt-note{width:100%;align-items:center;justify-content:center;gap:6px;font-size:9px;letter-spacing:.8px;color:#949d83;line-height:1.1;pointer-events:none}.coop-belt-note small{font-size:8px;letter-spacing:.2px;color:#9ca58e;margin-left:6px}.coop-belt-note .player-tag{font-size:7px;min-width:19px;line-height:13px}.crafting-player-select{display:flex;flex-wrap:wrap;align-items:center;gap:10px 13px;margin:0 0 16px;padding:10px 12px;background:#eff0dd;border:1px dashed #adb89a;border-radius:4px 7px 3px 6px}.crafting-player-select>span{font-size:9px;letter-spacing:.6px;color:#8a957a}.crafting-player-buttons{display:flex;gap:7px}.crafting-player-buttons>button{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px;border:1.2px solid #b5bea3;border-radius:3px 6px 2px 5px;background:#f6f4e4;color:#8d987d;font-size:10px;letter-spacing:.3px}.crafting-player-buttons>button[data-craft-player="1"].active,.crafting-player-buttons>button[data-craft-player="1"][aria-pressed=true]{border-color:#c19864;background:#f1dfbf;color:#9a7849}.crafting-player-buttons>button[data-craft-player="2"].active,.crafting-player-buttons>button[data-craft-player="2"][aria-pressed=true]{border-color:#83a994;background:#ddebd6;color:#678c74}.crafting-player-buttons>button:disabled{opacity:.42;cursor:not-allowed}.crafting-player-select>small{font-size:9px;line-height:1.5;color:#96a083;flex:1;min-width:190px}.coop-help{border-top:1px dashed #c3ccb3;padding-top:18px;margin-top:23px}.coop-help h3{font-size:10px;letter-spacing:1px;color:#688057;margin:0 0 9px}.coop-help>p{font-size:11px;line-height:1.6;color:#859475;margin:0 0 12px}.coop-help>p>b{color:#6e835b}.coop-help-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0 17px}.coop-help-columns>div{border:1px solid #d1c6a7;background:#f3ead3;border-radius:4px 7px 3px 5px;padding:11px 12px}.coop-help-columns>div:nth-child(2){border-color:#bacfb4;background:#e7efdb}.coop-help-columns h4{display:flex;align-items:center;gap:7px;margin:0 0 9px;font-size:10px;letter-spacing:.7px;color:#8d7953}.coop-help-columns>div:nth-child(2) h4{color:#6f9277}.coop-help-columns p{font-size:9px;line-height:1.85;margin:0;color:#8a9276}.coop-help-columns kbd{font-size:8px;line-height:12px;min-width:13px;padding:0 3px;border-color:#aeb89b;box-shadow:none}body.coop .coop-only{display:inline}body.coop .player-tag.coop-only{display:inline-flex}body.coop .coop-belt-note{display:flex}body.coop .solo-only{display:none}body.coop #controls-strip{display:none!important}body.coop .coop-controls{display:block}body:not(.coop) #p2-hud,body:not(.coop) #crafting-player-select{display:none!important}body:not([data-state=playing]) .coop-controls{display:none}body.coop .bottom-hud .aim-toggle{display:none}body.coop .vitals{border-color:#bd9a67;background:#faf0dded}body.coop .health-head{gap:8px}body.coop .health-head>span{gap:5px;font-size:9px}body.coop #touch-controls{display:none!important}body.coop .bottom-hud{align-items:stretch}body.coop .ammo{display:flex;flex-direction:column;justify-content:center}body.coop .supplies{display:flex;flex-direction:column;justify-content:center}
@media(max-width:1100px){.coop-controls{left:20px;top:79px;width:214px;padding:10px 11px}.coop-control-player>span:last-child{font-size:9px}.coop-key-grid>span{font-size:9px}.coop-key-grid{gap:5px}.p2-control-title{margin-top:10px;padding-top:9px}.coop-hint{font-size:8px;padding-top:8px;margin-top:9px}.p2-hud{width:215px;padding:10px 11px 9px}.p2-health-head>span:last-child{font-size:11px}.p2-gear>b{font-size:9px}.p2-gear>span{font-size:10px}.p2-field-status{font-size:7px}.home-play-modes{gap:11px}.home-play-modes .primary-button{font-size:15px;gap:8px}.home-play-modes .coop-button{font-size:12px}.coop-button>svg{width:22px;height:21px}.coop-home-note{font-size:9px!important}body.coop .bottom-hud .vitals{width:193px}body.coop .bottom-hud .ammo{width:145px}body.coop .bottom-hud .supplies{width:207px}.coop-belt-note{font-size:8px}.coop-belt-note small{font-size:7px}}
@media(min-width:701px) and (max-width:900px){body.coop .bottom-hud .vitals{width:175px;padding:9px 10px}body.coop .bottom-hud .ammo{width:126px;padding:9px 10px}body.coop .bottom-hud .supplies{width:189px;padding:9px 10px}body.coop .p2-hud{width:185px;padding:9px 10px}body.coop .health-head{gap:5px}body.coop .health-head>span{font-size:7px;gap:3px}body.coop .health-head>span>svg{width:12px;height:12px}body.coop .health-head>b{font-size:10px}body.coop .ammo-numbers>b{font-size:18px}body.coop .ammo-numbers>span{font-size:9px}body.coop .supplies .craft-actions{gap:8px}body.coop .supplies .craft-actions button{font-size:9px}body.coop .p2-health-head>b{font-size:8px}body.coop .p2-health-head>span:last-child{font-size:10px}.coop-controls{width:193px}.coop-control-player{gap:4px}.coop-control-player>b{font-size:9px}.coop-control-player>span:last-child{font-size:8px}.coop-key-grid>span{font-size:8px}.coop-key-grid kbd{font-size:7px;line-height:12px}.coop-hint{font-size:8px}.crafting-player-select>small{min-width:180px}}
@media(max-width:700px){.home-play-modes{grid-template-columns:.8fr 1.35fr;gap:10px}.home-play-modes .primary-button{min-height:48px;font-size:14px;padding:11px 8px;gap:7px}.home-play-modes .coop-button{font-size:11px}.home-play-modes .start-button>svg{width:22px;height:17px}.coop-button>svg{width:21px;height:20px}.coop-home-note{font-size:9px!important;line-height:1.45;margin-top:12px!important}.coop-controls{top:124px;left:12px;width:170px;padding:9px 10px;max-height:calc(100dvh - 365px);transform:none}.coop-control-player{gap:4px}.coop-control-player>b{font-size:8px}.coop-control-player>span:last-child{margin-left:0;font-size:8px;flex-basis:100%;margin-top:2px}.coop-key-grid{gap:5px;margin-top:6px}.coop-key-grid>span{font-size:8px;white-space:normal;line-height:1.4}.coop-key-grid kbd{font-size:7px;line-height:11px;min-width:11px;padding:0 2px}.p2-control-title{margin-top:9px;padding-top:8px}.coop-hint{font-size:7px;margin-top:9px;padding-top:7px}.player-tag{font-size:7px;line-height:13px;min-width:19px;padding:0 3px}body.coop .bottom-hud{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;align-items:stretch;gap:7px;max-width:none;bottom:12px}body.coop .bottom-hud .vitals{grid-column:1;grid-row:1;width:auto;padding:8px 10px;min-width:0}body.coop .bottom-hud .ammo{grid-column:2;grid-row:1;width:auto;padding:7px 10px;min-width:0}body.coop .bottom-hud .p2-hud{grid-column:1;grid-row:2;width:auto;margin:0;padding:8px 9px;min-width:0}body.coop .bottom-hud .supplies{grid-column:2;grid-row:2;width:auto;min-width:0;padding:8px 9px;justify-content:center;align-items:flex-start;gap:8px}body.coop .supplies .craft-actions{gap:8px;width:100%;justify-content:space-between}body.coop .supplies .craft-actions button{font-size:9px}body.coop .supplies .scrap-count{gap:6px}body.coop .supplies .scrap-count span{display:inline;font-size:9px}body.coop .supplies .scrap-count b{font-size:19px}body.coop .health-head>span{font-size:7px;gap:4px}body.coop .health-head>b{font-size:9px}body.coop .health-head>span>svg{width:10px;height:10px}.p2-health-head{gap:5px}.p2-health-head>b{font-size:8px}.p2-health-head>span:last-child{font-size:9px}.p2-health-track{height:6px;margin:5px 0 6px}.p2-gear{gap:5px}.p2-gear>b{font-size:8px;letter-spacing:0}.p2-gear>span{font-size:9px}.p2-field-status{font-size:6.5px;gap:4px;margin-top:4px}.p2-field-status>span:last-child{max-width:83px}.coop-belt-note{font-size:7px;gap:5px;justify-content:flex-start}.coop-belt-note small{font-size:6.5px;margin-left:3px;letter-spacing:0;line-height:1.3}.coop-belt-note .player-tag{font-size:6px;min-width:17px;line-height:12px}body.coop .loadout-dock{bottom:173px;gap:4px}body.coop #interact-prompt{bottom:322px}body.coop .objective-note{font-size:9px}.crafting-player-select{gap:8px 10px;padding:10px;margin-bottom:14px}.crafting-player-select>span{font-size:8px;letter-spacing:.3px}.crafting-player-buttons{gap:6px}.crafting-player-buttons>button{font-size:9px;gap:5px;padding:6px 8px}.crafting-player-select>small{font-size:8px;min-width:100%;line-height:1.5}.coop-help{padding-top:16px;margin-top:20px}.coop-help h3{font-size:9px;letter-spacing:.7px}.coop-help>p{font-size:10px}.coop-help-columns{gap:9px;margin:12px 0 15px}.coop-help-columns>div{padding:9px 10px}.coop-help-columns h4{font-size:9px;gap:5px}.coop-help-columns p{font-size:8px;line-height:1.9}.coop-help-columns kbd{font-size:7px;line-height:10px;min-width:11px;padding:0 2px}}
@media(max-width:420px){.home-play-modes .coop-button{font-size:10px;letter-spacing:.1px}.coop-button>svg{width:19px;height:19px}.coop-home-note{font-size:8px!important}.coop-help-columns{grid-template-columns:1fr}.coop-help-columns p{font-size:10px;line-height:1.8}.coop-help-columns kbd{font-size:8px;line-height:12px}.coop-help-columns h4{font-size:10px}.coop-controls{width:calc(50vw - 18px)}body.coop .health-head>span{font-size:6px;gap:3px}body.coop .health-head>span>svg{display:none}body.coop .supplies .craft-actions button{font-size:8px}body.coop .supplies .craft-actions{gap:5px}.p2-gear>b{font-size:7px}.coop-belt-note small{font-size:6px}.p2-field-status{font-size:6px}}
@media(max-height:760px) and (min-width:701px){.home-play-modes .primary-button{min-height:45px;padding:10px 8px;font-size:14px}.home-play-modes .coop-button{font-size:11px}.coop-button>svg{height:19px;width:21px}.coop-home-note{font-size:8px!important;margin-top:11px!important}.coop-controls{max-height:calc(100dvh - 285px);padding-top:10px;padding-bottom:10px}.coop-key-grid{gap:5px}.p2-control-title{margin-top:9px;padding-top:8px}.coop-hint{margin-top:8px;padding-top:7px}.coop-belt-note{font-size:7px}.coop-belt-note small{font-size:6.5px}.p2-hud{padding-top:8px;padding-bottom:8px}.p2-health-track{margin:5px 0 6px}body.coop .loadout-dock{bottom:128px}}
@media(max-height:620px) and (max-width:700px){.home-play-modes .primary-button{min-height:41px;padding:9px 7px;font-size:13px}.home-play-modes .coop-button{font-size:10px}.coop-home-note{font-size:8px!important;margin-top:10px!important}.coop-controls{max-height:calc(100dvh - 320px)}body.coop .loadout-dock{bottom:171px}.coop-belt-note{display:none!important}body.coop .loadout-dock .weapon-belt>button{padding:4px 5px}.coop-controls .coop-hint{display:none}}
@media(max-height:500px) and (min-width:701px){.home-play-modes .primary-button{min-height:38px;padding:8px 7px;font-size:13px}.home-play-modes .coop-button{font-size:10px}.home-play-modes .start-button>svg{width:21px}.coop-button>svg{width:19px;height:18px}.coop-home-note{font-size:7px!important;line-height:1.35;margin-top:9px!important}.coop-controls{top:67px;max-height:calc(100dvh - 242px);padding:8px 10px}.coop-key-grid{gap:4px}.coop-key-grid>span{font-size:8px}.coop-key-grid kbd{font-size:7px;line-height:11px}.coop-control-player>b{font-size:8px}.coop-control-player>span:last-child{font-size:8px}.p2-control-title{margin-top:7px;padding-top:6px}.coop-hint{display:none}.p2-hud{padding:7px 10px}.p2-health-head>b{font-size:8px}.p2-health-head>span:last-child{font-size:9px}.p2-health-track{height:6px;margin:5px 0}.p2-gear>b{font-size:8px}.p2-gear>span{font-size:9px}.p2-field-status{font-size:7px;margin-top:4px}body.coop .loadout-dock{bottom:107px;gap:3px}.coop-belt-note{display:none!important}}

/* Combat notes live in the margin, leaving the middle of the page for play. */
.run-tease{font-size:12px;line-height:1.4;color:#947447;margin:-7px 0 15px;transform:rotate(-.5deg)}
.field-notebook{position:absolute;right:30px;top:85px;z-index:12;width:265px;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.field-notebook>.inventory-hud{position:relative;inset:auto;width:100%;margin:0}
.field-notebook #crafting-open-btn{pointer-events:auto}
.field-notebook>.objective-note{position:relative;inset:auto;transform:none;width:100%;max-width:none;margin:0;padding:7px 9px;font-size:11px;line-height:1.4;letter-spacing:0;border-bottom:1px dashed #a0a58f;overflow-wrap:anywhere}
.run-notes{padding:10px 12px 9px;transform:rotate(-.35deg);border-color:#9c9b7e;background:#faf4dfed}
.score-line{display:flex;align-items:center;justify-content:space-between;gap:12px}
.score-line>span{display:flex;align-items:center;gap:6px;font-size:9px;letter-spacing:.8px;color:#8c8166}
.score-line svg{height:17px;width:17px;color:#c19c56;stroke-width:1.5}
.score-line>b{font-size:23px;line-height:1;color:#776841;letter-spacing:-.3px;font-variant-numeric:tabular-nums}
.combo-panel{border-top:1px dashed #c3b592;margin-top:9px;padding-top:8px}
.combo-top{display:flex;align-items:baseline;justify-content:space-between;gap:7px}
.combo-top>b{font-size:17px;line-height:1.1;color:#99683e;letter-spacing:.4px}
.combo-top>span{font-size:9px;color:#a77e49;letter-spacing:.5px;white-space:nowrap}
.combo-track{height:5px;overflow:hidden;border:1px solid #b3996c;border-radius:2px 3px 2px 3px;background:#e9ddbf;margin:5px 0 4px}
.combo-track>i{display:block;height:100%;width:100%;background:#d59a53;transition:width .1s linear}
.combo-panel>small{display:block;line-height:1.35;font-size:9px;color:#9b8d6b;letter-spacing:.2px}
.rush-status{margin-top:8px;padding:5px 7px;text-align:center;border:1px solid #5d9e95;border-radius:4px 7px 3px 5px;background:#d4e9db;color:#397a72;letter-spacing:1px;font-weight:bold;font-size:11px;line-height:1.2}
.rush-status::before,.rush-status::after{content:'✦';margin:0 6px;color:#5b9985;font-size:9px}
body.rush-active .run-notes{border-color:#78a391;box-shadow:2px 3px 0 #6c9c7b2e}
body.rush-active .combo-track>i{background:#72ad91}
.boss-hud{margin-top:9px;padding-top:9px;border-top:1px dashed #c7a799}
.boss-heading{display:flex;align-items:center;gap:6px;line-height:1.1}
.boss-marker{display:grid;place-items:center;flex-shrink:0;width:16px;height:17px;font-size:11px;font-weight:bold;color:#fff6df;background:#b36954;border:1px solid #96563f;border-radius:3px 5px 2px 4px;transform:rotate(-7deg)}
.boss-heading>b{font-size:13px;letter-spacing:.4px;color:#955e4d;flex:1;min-width:0;overflow-wrap:anywhere}
.boss-heading>span:last-child{font-size:9px;color:#a17662;white-space:nowrap;font-variant-numeric:tabular-nums}
.boss-health-track{height:7px;margin:7px 0 5px;border:1px solid #9f725c;border-radius:2px 3px 2px 3px;background:#e7d4bc;overflow:hidden}
.boss-health-track>i{display:block;width:100%;height:100%;background:#bc7558;transition:width .12s linear}
.boss-hud>small{display:block;font-size:9px;line-height:1.4;letter-spacing:.3px;color:#a47864}
body[data-state=menu] .field-notebook{display:none}
.run-guide{margin-top:22px;padding-top:18px;border-top:1px dashed #b7bea2}
.run-guide>h3{font-size:10px;letter-spacing:1px;color:#9e7a45;margin:0 0 13px}
.run-guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.run-guide-grid article{position:relative;padding-left:27px}
.guide-number{position:absolute;left:0;top:1px;font-size:9px;color:#a68a5b;border-bottom:1px solid #c7b68e;line-height:1.5;transform:rotate(-5deg)}
.run-guide-grid h4{font-size:13px;font-weight:bold;line-height:1.25;margin:0 0 5px;color:#7c7d58}
.run-guide-grid p{font-size:10px;line-height:1.6;color:#8a8c72;margin:0}
.run-guide-grid p>b{color:#758262;font-weight:bold}
.result-stats{row-gap:22px}
.result-stats>.result-highlight>b{color:#a47b3e}
.result-stats>.result-highlight>span{color:#a2875a}
.upgrade-shop .upgrade-options>button>.upgrade-category{grid-column:2;grid-row:1;align-self:end;display:block;color:#a08b65;font-size:8px;font-style:normal;font-weight:bold;letter-spacing:1px;line-height:1.2;margin:0}
.upgrade-shop .upgrade-options>button>b{grid-row:2;align-self:start}
.upgrade-shop .upgrade-options>button[data-category=BRAWLER]{border-color:#bc976f;background:#f4e3c8}
.upgrade-shop .upgrade-options>button[data-category=GUNNER]{border-color:#91aaa4;background:#e5eee0}
.upgrade-shop .upgrade-options>button[data-category=BUILDER]{border-color:#a298b0;background:#ebe6e7}
.upgrade-shop .upgrade-options>button[data-category=SURVIVOR]{border-color:#9cad83;background:#e9edd9}
@media(max-width:1100px){.field-notebook{right:20px;top:78px;width:226px;gap:7px}.run-notes{padding:9px 10px}.score-line>b{font-size:21px}.score-line>span{font-size:8px}.combo-top>b{font-size:15px}.combo-top>span{font-size:8px}.boss-heading>b{font-size:12px}.field-notebook>.objective-note{font-size:10px;padding:6px 7px}}
@media(min-width:701px) and (max-width:900px){.field-notebook{width:212px}.boss-heading>span:last-child{font-size:8px}.combo-panel>small,.boss-hud>small{font-size:8px}.rush-status{font-size:10px}.rush-status::before,.rush-status::after{margin:0 4px}}
@media(max-width:700px){.field-notebook{right:12px;top:124px;width:176px;gap:6px}.field-notebook>.objective-note{font-size:9px;padding:5px 4px}.run-notes{padding:7px 8px 6px;transform:none}.score-line{gap:5px}.score-line>span{font-size:7px;letter-spacing:.4px;gap:4px}.score-line svg{width:13px;height:13px}.score-line>b{font-size:18px}.combo-panel{padding-top:6px;margin-top:6px}.combo-top>b{font-size:13px}.combo-top>span{font-size:7px;letter-spacing:.1px}.combo-track{margin:4px 0 3px;height:4px}.combo-panel>small{font-size:7px;line-height:1.4}.rush-status{font-size:9px;letter-spacing:.5px;margin-top:6px;padding:4px}.rush-status::before,.rush-status::after{font-size:7px;margin:0 4px}.boss-hud{padding-top:6px;margin-top:6px}.boss-marker{width:12px;height:14px;font-size:9px}.boss-heading{gap:4px}.boss-heading>b{font-size:10px;letter-spacing:.1px}.boss-heading>span:last-child{font-size:7px}.boss-health-track{height:5px;margin:5px 0 4px}.boss-hud>small{font-size:7px;letter-spacing:.1px}.run-tease{font-size:10px;margin:-5px 0 12px}.run-guide{padding-top:15px;margin-top:18px}.run-guide>h3{font-size:9px;letter-spacing:.7px}.run-guide-grid{gap:13px}.run-guide-grid article{padding-left:22px}.guide-number{font-size:8px}.run-guide-grid h4{font-size:11px}.run-guide-grid p{font-size:9px}.result-stats{row-gap:17px}.upgrade-shop .upgrade-options>button>.upgrade-category{font-size:7px;letter-spacing:.7px}}
@media(max-width:520px){.run-guide-grid{grid-template-columns:1fr;gap:14px}.run-guide-grid h4{font-size:12px}.run-guide-grid p{font-size:10px}.upgrade-shop .upgrade-options>button>svg{grid-row:1/4}.upgrade-shop .upgrade-options>button>b{grid-row:2}.upgrade-shop .upgrade-options .upgrade-detail{grid-row:3}.upgrade-shop .upgrade-options>button>small{grid-row:4}.upgrade-shop .upgrade-options>button>.upgrade-category{grid-row:1;font-size:8px}}
@media(max-width:380px){.field-notebook{width:calc(50vw - 18px)}.score-line>span{font-size:6px;letter-spacing:0}.score-line>b{font-size:17px}.boss-heading>b{font-size:9px}.boss-heading>span:last-child{font-size:6px}.combo-top>b{font-size:12px}.combo-top>span{font-size:6px}.rush-status{font-size:8px}.rush-status::before,.rush-status::after{margin:0 3px}}
@media(max-height:760px) and (min-width:701px){.run-tease{font-size:10px;margin:-6px 0 11px}.field-notebook{gap:6px}.run-notes{padding-top:8px;padding-bottom:7px}.combo-panel,.boss-hud{margin-top:6px;padding-top:6px}.field-notebook>.objective-note{font-size:10px;padding-top:5px;padding-bottom:5px}}
@media(max-height:620px) and (max-width:700px){.field-notebook{top:118px;gap:4px}.run-tease{font-size:9px;margin:-5px 0 9px}.run-notes{padding:6px 7px}.combo-panel>small{display:none}.rush-status{margin-top:4px;padding:3px}.boss-hud{margin-top:5px;padding-top:5px}.boss-hud>small{font-size:6px}.field-notebook>.objective-note{font-size:8px;line-height:1.3;padding:4px 3px}.result-stats{row-gap:13px}}
@media(max-height:500px) and (min-width:701px){.field-notebook{top:67px;width:210px;gap:4px}.run-notes{padding:6px 9px}.score-line>b{font-size:17px}.score-line>span{font-size:7px}.combo-top>b{font-size:13px}.combo-panel>small{display:none}.combo-panel,.boss-hud{margin-top:5px;padding-top:5px}.rush-status{margin-top:5px;padding:3px 5px;font-size:9px}.boss-heading>b{font-size:10px}.boss-health-track{height:5px;margin:4px 0 3px}.boss-hud>small{font-size:7px}.field-notebook>.objective-note{font-size:9px;line-height:1.3;padding:4px 6px}.run-tease{font-size:9px;margin:-5px 0 8px}}
@media(max-width:700px){.field-notebook>.run-notes,.field-notebook>.objective-note{width:min(160px,calc(50vw - 30px));align-self:flex-end}.field-notebook>.objective-note{font-size:8px}}
/* Short screens keep the live fight readable; the margin can scroll for supplies. */
@media(max-height:620px) and (max-width:700px),(max-height:600px) and (min-width:701px){
  .field-notebook{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;pointer-events:auto;scrollbar-width:thin;scrollbar-color:#bab59a transparent}
  .field-notebook>*{flex-shrink:0}
  .field-notebook>.run-notes{order:-2;display:flex;flex-direction:column}
  .field-notebook>.objective-note{order:-1}
  .field-notebook>.inventory-hud{transform:none}
  .field-notebook .boss-hud{order:-1;margin-top:0;padding-top:0;border-top:0;border-bottom:1px dashed #c7a799;padding-bottom:6px;margin-bottom:6px}
}
@media(max-height:620px) and (max-width:700px){.field-notebook{max-height:max(88px,calc(100dvh - 420px))}}
@media(max-height:600px) and (min-width:701px){.field-notebook{max-height:max(95px,calc(100dvh - 290px))}}
.result-card{max-height:calc(100dvh - 60px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
@media(max-width:700px){.result-card{max-height:calc(100dvh - 36px)}}

/* A small combat HUD on touch screens. Equipment details open on demand. */
#phone-hud, #phone-weapons { display: none; }
.phone-right { display: contents; }
body.touch:not(.coop):not([data-state=menu]) :is(.topbar, .field-notebook, .loadout-dock, .bottom-hud, #controls-strip) { display: none; }
body.touch:not(.coop)[data-state=playing] #phone-hud {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  z-index: 14;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.phone-stats { display: flex; align-items: center; gap: 12px; margin-right: auto; padding: 7px 11px; background: #faf6e7ec; font-size: 15px; }
#phone-health { color: #8a483e; }
#phone-hud button { min-width: 44px; height: 44px; padding: 0 10px; background: #faf6e7e8; pointer-events: auto; touch-action: manipulation; }
body.touch:not(.coop):is([data-state=playing],[data-state=partner]) #touch-controls {
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
}
body.touch:not(.coop) .move-pad { width: clamp(76px, 22vw, 104px); height: clamp(76px, 22vw, 104px); }
body.touch:not(.coop) .phone-right { display: grid; justify-items: end; gap: 5px; }
body.touch:not(.coop) #phone-weapons { display: flex; align-items: center; border: 1.5px solid var(--ink); background: #faf6e7ed; border-radius: 6px 9px 5px 7px; pointer-events: auto; }
#phone-weapons button { width: 44px; height: 44px; border: 0; background: transparent; font: bold 26px/1 sans-serif; touch-action: manipulation; }
#phone-weapon { min-width: 42px; text-align: center; font-size: 14px; }
body.touch:not(.coop) .touch-actions { gap: 5px; }
body.touch:not(.coop) .touch-actions button { width: 45px; height: 45px; margin: 0; }
body.touch:not(.coop) .touch-actions #fire-btn { width: 64px; height: 64px; }
body.touch:not(.coop) #interact-prompt { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 120px); }
body.touch:not(.coop)[data-state=playing] #toast { top: calc(max(8px, env(safe-area-inset-top)) + 48px); width: max-content; max-width: min(340px, 90vw); }
body[data-state=gear] #touch-controls { display: none !important; }
#phone-gear { z-index: 38; }
#phone-gear .modal-card { max-height: calc(100dvh - 24px); overflow-y: auto; touch-action: pan-y; }
#phone-gear select { width: 100%; min-height: 44px; font: inherit; color: var(--ink); background: var(--paper); margin: 6px 0 12px; }
#map-margin-line {
  position: absolute; z-index: 10; width: 52px; height: 46px; transform: translate(-50%, -50%);
  background: transparent; box-shadow: none; border: 0; padding: 0; touch-action: manipulation;
}
#map-margin-line::after { content: ''; display: block; margin: auto; width: 75%; height: 4px; border-radius: 70% 28% 60% 32%; background: #515646; transform: rotate(-4deg); }

#room-menu { border:2px solid var(--ink); border-radius:7px 4px 9px 5px; background:#faf6e7; color:var(--ink); font:18px Doodle,sans-serif; padding:30px; width:min(390px,90vw); max-height:88dvh; overflow:auto; box-shadow:6px 7px 0 #343e3380; }
#room-menu::backdrop { background:#333b3482; }
#room-menu h2 { margin:0 22px 20px 0; font-size:34px; }
#room-choices:not([hidden]),#room-invite:not([hidden]) { display:grid; gap:10px; }
#room-menu button { touch-action:manipulation; }
#room-menu label { margin-top:8px; }
.join-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
#room-join { width:auto; margin:0; white-space:nowrap; }
#room-code { width:100%; min-width:0; border:2px solid var(--ink); border-radius:4px; background:#fffbea; color:var(--ink); caret-color:var(--ink); padding:8px; font:22px monospace; letter-spacing:.12em; text-transform:uppercase; user-select:text; -webkit-user-select:text; }
#room-code::placeholder { color:#6d7164; opacity:1; }
@media (max-width:340px) { .join-row { grid-template-columns:minmax(0,1fr); } }
#room-pin { font:bold 35px monospace; letter-spacing:.16em; text-align:center; margin:6px 0; user-select:all; }
#room-status { font-size:16px; margin:14px 0 0; min-height:1em; }
#partner-hud { display:none; }
body[data-net=guest] #partner-hud { display:block; pointer-events:none; position:absolute; inset:0; z-index:16; }
body[data-net=guest] :is(.topbar,.field-notebook,.loadout-dock,.bottom-hud,#controls-strip,#coop-controls,#interact-prompt,#phone-hud,#map-margin-line,#toast,#p2-hud) { display:none!important; }
.partner-bar,.partner-tools,#partner-message,#partner-keys { position:absolute; background:#faf6e7ea; padding:6px 10px; border:1.5px solid var(--ink); font:15px Doodle,sans-serif; border-radius:5px; }
.partner-bar { top:max(9px,env(safe-area-inset-top)); left:10px; right:10px; display:flex; justify-content:space-between; align-items:center; gap:5px; }
#partner-hud button { pointer-events:auto; min-height:42px; border:1px solid #6c806d; border-radius:5px; padding:3px 9px; background:#dce5cc; color:var(--ink); font:inherit; touch-action:none; }
.partner-tools { bottom:58px; right:10px; display:flex; gap:3px; }
#partner-message { top:66px; left:50%; transform:translateX(-50%); width:max-content; max-width:90vw; text-align:center; }
#partner-keys { bottom:8px; left:50%; transform:translateX(-50%); text-align:center; width:max-content; max-width:94vw; }
body.touch #partner-keys { display:none; }
body.touch .partner-tools { bottom:auto; top:63px; right:8px; padding:3px; font-size:13px; }
body.touch #partner-message { top:119px; }
body[data-net=guest]:not(.touch) #touch-controls { display:none; }

/* Desktop combat keeps the field clear. Details restores the full notebook and loadout. */
.hud-details { display:none; }
body:not(.touch)[data-state=playing] .topbar .hud-details,
body:not(.touch)[data-net=guest] .partner-bar .hud-details {
  display:inline-flex; align-items:center; justify-content:center;
  padding:4px 10px; min-height:30px; border:1.5px solid var(--ink); border-radius:4px 6px 3px 5px;
  background:#faf6e7; color:var(--ink); font:16px Doodle,sans-serif; pointer-events:auto;
}
body:not(.touch) [data-hud-details][aria-expanded=true] { background:#dae6d6; }
body.compact-hud[data-state=playing] :is(.brand,#controls-strip,#coop-controls,.inventory-hud,.objective-note,
  .loadout-dock,.health-note,.ammo>small,.aim-toggle,.p2-field-status) { display:none; }
body.compact-hud[data-state=playing] .topbar { top:12px;left:14px;right:14px; }
body.compact-hud[data-state=playing] .wave-card {
  left:0;top:0;transform:none;width:min(172px,31vw);padding:5px 9px;
}
body.compact-hud[data-state=playing] .wave-top>span { display:none; }
body.compact-hud[data-state=playing] .header-actions { margin-left:auto;gap:5px; }
body.compact-hud[data-state=playing] .field-notebook { top:57px;right:14px;width:min(185px,33vw); }
body.compact-hud[data-state=playing] .run-notes { padding:5px 9px; }
body.compact-hud[data-state=playing] .score-line>b { font-size:18px; }
body.compact-hud[data-state=playing] .bottom-hud {
  left:14px;right:auto;bottom:12px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px;
  max-width:calc(100vw - 30px);
}
body.compact-hud[data-state=playing] .bottom-hud :is(.vitals,.ammo,.p2-hud) {
  width:auto;min-width:110px;margin:0;padding:6px 10px;transform:none;
}
body.compact-hud[data-state=playing] .bottom-hud :is(.health-track,.p2-health-track) { height:6px;margin:4px 0 0; }
body.compact-hud[data-state=playing] .ammo-numbers { margin:2px 0 0; }
body.compact-hud[data-state=playing] #interact-prompt { bottom:76px; }
body.compact-hud[data-net=guest] .partner-bar {
  right:auto;max-width:calc(100% - 20px);gap:8px;flex-wrap:wrap;padding:4px 7px;
}
body.compact-hud[data-net=guest] #partner-hud button { min-height:28px; }
body.compact-hud[data-net=guest] :is(#partner-keys,.partner-tools) { display:none; }
body.compact-hud[data-net=guest] #partner-message {
  top:auto;left:10px;bottom:12px;transform:none;margin:0;padding:4px 9px;
}

/* The weapon name opens the loadout without expanding the combat HUD. */
.weapon-switch {
  position:relative; display:inline-grid; align-content:center; gap:1px;
  padding:3px 8px; line-height:1.1; text-align:left; pointer-events:auto;
  background:#e3ebd9; border:1px solid #8d9e86; border-radius:4px 6px 4px 5px;
}
.weapon-switch small { font:11px/1 Doodle,sans-serif; color:#3e584c; }
.weapon-switch b { font:16px/1.1 Doodle,sans-serif; color:var(--ink); }
.weapon-switch select {
  position:absolute; inset:0; width:100%; height:100%; cursor:pointer;
  opacity:0; touch-action:manipulation; font-size:16px;
}
.weapon-switch:focus-within { outline:2px solid #486e64; outline-offset:2px; }
.weapon-switch:has(select:disabled) { opacity:.65; }
body.touch .partner-bar .weapon-switch { display:none; }
#phone-weapons .weapon-switch {
  min-height:44px; min-width:64px; padding:0 6px; text-align:center;
  border-width:0 1px; border-radius:0;
}
#phone-weapons #phone-weapon { font-size:15px; }

/* Keep the materials row with the controls for the current player. */
:is(#compact-supplies,#phone-stats,#partner-summary) .material-counts {
  display:grid; grid-template-columns:repeat(5,minmax(27px,1fr)); gap:5px;
  color:var(--ink); text-align:center;
}
:is(#compact-supplies,#phone-stats,#partner-summary) .material-counts>span {
  display:flex; flex-direction:column; align-items:center; gap:2px;
}
:is(#compact-supplies,#phone-stats,#partner-summary) .material-counts b {
  font-size:16px; line-height:1; font-variant-numeric:tabular-nums;
}
:is(#compact-supplies,#phone-stats,#partner-summary) .material-counts small {
  font-size:10px; line-height:1; color:#505a4c;
}
body.compact-hud[data-state=playing] #compact-supplies {
  display:grid; flex:none; width:auto; padding:6px 9px; gap:4px; transform:none;
}
body.compact-hud[data-state=playing] #compact-supplies .scrap-count { display:none; }
body.compact-hud[data-state=playing] #compact-supplies .craft-actions {
  justify-content:space-between; gap:6px; margin:0;
}
#phone-stats { display:grid; grid-template-columns:auto auto; gap:4px 9px; }
#phone-stats .material-counts { grid-column:1/-1; }
#partner-summary { display:grid; gap:3px; }

/* Keep the selectable kit counts within reach in each combat layout. */
#defense-bar { display:flex; align-items:center; gap:5px; pointer-events:auto; }
#defense-bar .kit-label { font-size:12px; white-space:nowrap; }
#loadout-defenses #defense-bar { display:contents; }
#loadout-defenses .kit-label,#quick-place { display:none; }
#compact-supplies #defense-bar { border-top:1px solid #c4c9b4; padding-top:4px; }
#defense-bar .defense-selector { min-width:0; }
:is(#compact-supplies,#phone-hud,#partner-hud) #defense-bar .defense-selector { gap:3px; width:auto; }
:is(#compact-supplies,#phone-hud,#partner-hud) #defense-bar [data-defense] {
  display:grid; gap:1px; align-content:center; min-width:35px; min-height:30px; height:auto;
  padding:2px 4px; font:12px/1 Doodle,sans-serif; color:var(--ink); background:#eeefdf;
  border:1px solid #9da78e; touch-action:manipulation;
}
:is(#compact-supplies,#phone-hud,#partner-hud) #defense-bar [data-defense][aria-pressed=true] {
  border-color:#4c6942; background:#d4e2c5; box-shadow:inset 0 -2px #698760;
}
#defense-bar [data-kit-count] { font-variant-numeric:tabular-nums; }
:is(#phone-hud,#partner-hud) #quick-place {
  display:block; min-width:39px; min-height:30px; height:auto; padding:4px;
  font:14px Doodle,sans-serif; color:var(--ink); background:#e9ac72;
  border:1px solid #936e4e; border-radius:5px; touch-action:manipulation;
}
:is(#phone-hud,.partner-stack) > #defense-bar {
  width:max-content; max-width:100%; gap:4px; padding:3px 5px; background:#faf6e7f5;
  border:1px solid #858e79; border-radius:5px;
}
#phone-hud > #defense-bar { position:absolute; top:calc(100% + 4px); left:0; }
body.touch:not(.coop)[data-state=playing] #toast { top:calc(max(8px,env(safe-area-inset-top)) + 110px); }
.partner-stack {
  position:absolute; top:max(9px,env(safe-area-inset-top)); left:10px; right:10px;
  display:grid; justify-items:start; gap:4px; pointer-events:none;
}
.partner-stack .partner-bar { position:static; width:100%; }
body.compact-hud[data-net=guest] .partner-stack .partner-bar { width:auto; max-width:100%; }
.partner-stack .partner-tools,body.compact-hud[data-net=guest] #partner-message { position:fixed; }
body[data-net=guest]:not(.compact-hud) #partner-message { position:static; justify-self:center; transform:none; }
body.touch .partner-stack .partner-tools { position:static; justify-self:end; grid-row:3; }
body[data-net=guest] .partner-tools #partner-build { display:none; }
body[data-net=guest] .partner-stack:has(#defense-bar[hidden]) #partner-build { display:block; }
@media(pointer:coarse){
  :is(#phone-hud,#partner-hud) #defense-bar [data-defense],
  :is(#phone-hud,#partner-hud) #quick-place { min-height:36px; }
}
@media(max-width:400px){
  :is(#phone-hud,#partner-hud) #defense-bar { gap:3px; }
  :is(#phone-hud,#partner-hud) #defense-bar .kit-label { width:34px; white-space:normal; }
}

.creator-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  margin: 12px auto 0;
  padding: 5px 17px;
  border: 2px solid var(--ink);
  border-radius: 6px 3px 7px 4px;
  background: #f4d77a;
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}
.creator-tip span { color: #9c4036; font-family: sans-serif; }
.creator-tip:hover { background: #ffdf83; }
.creator-tip:focus-visible { outline: 3px solid #984621; outline-offset: 4px; }
.creator-tip:active {
  transform: translate(2px, 3px);
  box-shadow: none;
}
