:root { --ink:#19242a; --paper:#f5f1e8; --orange:#ff6946; --yellow:#f4c95d; --muted:#96a4a1; }
* { box-sizing:border-box; }
html, body { margin:0; width:100%; height:100%; overflow:hidden; background:#101b20; color:var(--paper); font-family:'Consolas', 'Courier New', monospace; }
button { font:inherit; cursor:pointer; }
#game-shell, #game-canvas { width:100%; height:100%; display:block; }
#game-canvas { position:fixed; inset:0; }
.access-locked #game-shell { pointer-events:none; user-select:none; }
.access-screen { position:fixed; inset:0; z-index:100; display:grid; place-items:center; overflow:hidden; padding:24px; background:radial-gradient(circle at 72% 22%,rgba(255,105,70,.14),transparent 32%),linear-gradient(125deg,#111d21 0%,#1d2c30 58%,#10181b 100%); }
.access-screen[hidden] { display:none; }
.access-noise { position:absolute; inset:-40%; opacity:.14; background-image:linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px); background-size:38px 38px; transform:perspective(700px) rotateX(55deg) rotateZ(-8deg); }
.access-card { position:relative; width:min(600px,100%); padding:clamp(30px,6vw,66px); background:rgba(20,32,36,.94); border:1px solid rgba(245,241,232,.22); box-shadow:18px 18px 0 rgba(0,0,0,.23); }
.access-card h1 { margin:14px 0 20px; font-size:clamp(58px,10vw,96px); }
.access-card > p:not(.access-error) { max-width:390px; margin:0 0 30px; color:#bdc8c2; font-size:13px; line-height:1.6; }
.access-card label { display:block; margin-bottom:8px; color:var(--yellow); font-size:10px; letter-spacing:.16em; }
.access-entry { display:flex; align-items:stretch; gap:10px; }
.access-entry input { min-width:0; flex:1; border:1px solid rgba(245,241,232,.35); border-radius:0; padding:13px 15px; outline:none; background:#0d171a; color:var(--paper); font:700 20px 'Consolas','Courier New',monospace; letter-spacing:.16em; }
.access-entry input:focus { border-color:var(--yellow); box-shadow:0 0 0 2px rgba(244,201,93,.18); }
.access-entry .primary-button { flex:none; }
.access-error { min-height:20px; margin:12px 0 0; color:#ff9c83; font-size:11px; letter-spacing:.05em; }
.access-badge { position:absolute; top:-18px; right:28px; padding:9px 12px; transform:rotate(4deg); border:2px solid var(--orange); color:var(--orange); font:800 20px 'Arial Narrow','Arial',sans-serif; letter-spacing:.1em; }
.hidden { display:none !important; }
.screen { position:fixed; inset:0; display:grid; place-items:center; z-index:10; background:linear-gradient(110deg,rgba(13,22,26,.96),rgba(24,38,42,.88)); }
.screen.active { display:grid; }
.paper-grid { position:absolute; inset:0; opacity:.12; background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size:38px 38px; transform:perspective(600px) rotateX(48deg) scale(1.4); transform-origin:bottom; }
.start-content { position:relative; width:min(720px,calc(100% - 64px)); margin-left:-24vw; }
.eyebrow, .task-kicker, .label, .meter-head, .money span, .controls, .briefing span { font-size:11px; letter-spacing:.16em; color:var(--yellow); }
h1 { margin:14px 0 24px; font:800 clamp(62px,9vw,132px)/.78 'Arial Narrow', 'Arial', sans-serif; letter-spacing:-.035em; text-transform:uppercase; color:#f4eee2; }
h1 em { color:var(--orange); font-style:normal; }
.lede { max-width:420px; font-size:15px; line-height:1.65; color:#bdc8c2; }
.briefing { display:flex; gap:42px; border-top:1px solid rgba(245,241,232,.22); border-bottom:1px solid rgba(245,241,232,.22); padding:18px 0; margin:28px 0; max-width:640px; }
.briefing div { max-width:270px; } .briefing span { display:block; margin-bottom:9px; } .briefing strong { display:block; font-size:12px; line-height:1.55; font-weight:400; color:#e3e3d9; }
.primary-button { border:0; padding:15px 21px; background:var(--orange); color:#201d1b; font-weight:700; letter-spacing:.12em; font-size:13px; transition:transform .2s, background .2s; } .primary-button:hover { background:#ff815e; transform:translateY(-2px); } .primary-button span { margin-left:28px; font-size:20px; vertical-align:-2px; }
.start-actions { display:flex; flex-wrap:wrap; gap:11px; }
.danger-button { color:#f8eee2; background:#7e2520; border:1px solid #ff6946; box-shadow:0 0 22px rgba(255,66,42,.18); }
.danger-button:hover { background:#a5342a; }
.danger-button { opacity:.72; transform:scale(.92); transform-origin:left center; }
.fine-print { color:#82928d; font-size:10px; margin-top:18px; }
.request-checklist { width:min(620px,100%); margin-top:20px; padding:13px 15px; background:rgba(12,24,26,.76); border:1px solid rgba(105,219,180,.3); border-left:4px solid #69dbb4; }
.request-checklist-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; }.request-checklist-head span { display:block; color:#69dbb4; font:9px Consolas,monospace; letter-spacing:.16em; }.request-checklist-head strong { display:block; margin-top:3px; color:#e5ece8; font:700 17px 'Arial Narrow',Arial,sans-serif; text-transform:uppercase; }.request-checklist-head>b { color:#8ca098; font:9px Consolas,monospace; white-space:nowrap; }
.request-checklist-items { display:grid; gap:6px; margin-top:10px; }.request-checklist-item { display:grid; grid-template-columns:18px 1fr auto; align-items:center; gap:8px; min-width:0; color:#b9c8c2; font:11px/1.3 Consolas,monospace; }.request-checklist-item i { display:grid; place-items:center; width:14px; height:14px; color:#69dbb4; border:1px solid #55756b; font-style:normal; font-size:9px; }.request-checklist-item span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.request-checklist-item small { color:#70847c; font:8px Consolas,monospace; }.request-checklist-item.done span { color:#7f918a; text-decoration:line-through; }.request-checklist-item.done i { color:#07110e; background:#69dbb4; border-color:#69dbb4; }.request-checklist-empty { margin:0; color:#71817c; font:10px/1.4 Consolas,monospace; }
.start-stamp { position:absolute; right:8vw; top:15vh; border:2px solid var(--orange); color:var(--orange); padding:12px; transform:rotate(9deg); font:700 16px/1.1 'Arial Narrow','Arial',sans-serif; letter-spacing:.13em; text-align:center; opacity:.8; }
.modal { width:min(520px,calc(100% - 48px)); background:rgba(22,34,38,.96); border:1px solid rgba(245,241,232,.23); padding:44px; box-shadow:18px 18px 0 rgba(0,0,0,.18); } .modal h2 { font:700 58px/.9 'Arial Narrow','Arial',sans-serif; text-transform:uppercase; margin:16px 0; } .modal p { color:#bac5bf; font-size:13px; line-height:1.7; margin-bottom:28px; }
.hud-top { position:fixed; z-index:2; inset:22px 28px auto; display:flex; align-items:flex-start; justify-content:space-between; pointer-events:none; }.brand { font:700 17px 'Arial Narrow','Arial',sans-serif; letter-spacing:.1em; }.brand small { color:#90a19b; font:400 9px 'Consolas'; letter-spacing:.15em; margin-left:10px; }.brand-dot { display:inline-block; width:9px; height:9px; background:var(--orange); border-radius:50%; margin-right:8px; box-shadow:0 0 14px var(--orange); }
.shift-card { text-align:right; }.shift-card .label { font-size:9px; color:#aabbb4; display:block; }.shift-card strong { font:600 34px 'Arial Narrow','Arial',sans-serif; color:#f8f0df; }
.meters { position:fixed; z-index:2; top:91px; left:28px; display:flex; gap:17px; align-items:end; pointer-events:none; }.meter { width:142px; }.meter-head { display:flex; justify-content:space-between; color:#aec0b7; font-size:9px; margin-bottom:6px; }.meter-head strong { color:#f2ecdf; font-weight:500; }.meter-track { height:7px; background:rgba(24,33,37,.75); border:1px solid rgba(255,255,255,.18); padding:1px; }.meter-track i { display:block; height:100%; width:100%; transition:width .25s; }.hunger { background:var(--orange); }.thirst { background:#60c1c0; }.money { margin-left:10px; }.money span { display:block; color:#aec0b7; font-size:9px; margin-bottom:4px; }.money strong { font:600 26px 'Barlow Condensed'; color:var(--yellow); }
.status-pill { position:fixed; z-index:2; top:170px; left:28px; padding:6px 9px; background:rgba(13,24,27,.7); color:#b8c8bd; border-left:3px solid #72c4a0; font-size:9px; letter-spacing:.1em; }.interaction { position:fixed; z-index:2; left:50%; bottom:112px; transform:translateX(-50%); padding:10px 16px; background:rgba(16,27,30,.85); color:#f7eee0; font-size:12px; border:1px solid rgba(255,255,255,.15); }.interaction b { color:var(--yellow); }
.manager-card { position:fixed; z-index:2; top:206px; left:28px; width:184px; padding:8px 10px; background:rgba(13,24,27,.78); border:1px solid rgba(255,255,255,.16); color:#b8c8bd; font-size:8px; letter-spacing:.1em; pointer-events:none; }.manager-head,.manager-foot { display:flex; justify-content:space-between; align-items:center; }.manager-head strong { color:var(--yellow); font-weight:500; }.manager-track { height:5px; margin:7px 0 5px; background:rgba(24,33,37,.9); border:1px solid rgba(255,255,255,.16); padding:1px; }.manager-track i { display:block; height:100%; width:0; background:var(--orange); transition:width .18s,background .18s; }.manager-foot { color:#879992; font-size:7px; }.manager-foot strong { color:#f2ecdf; font-size:8px; font-weight:500; }
.task-card { position:fixed; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%); text-align:center; background:rgba(17,29,32,.94); border:1px solid rgba(244,201,93,.7); padding:22px 32px 18px; min-width:270px; box-shadow:0 12px 35px rgba(0,0,0,.35); }.task-card .task-kicker { display:block; color:#f4c95d; font-size:9px; }.task-card strong { display:block; font:600 38px 'Arial Narrow','Arial',sans-serif; letter-spacing:.3em; margin:12px 0 7px; }.task-card small { font-size:10px; color:#aebbb4; }.task-card small b { color:var(--yellow); }
.boss-warning { position:fixed; z-index:3; right:28px; top:145px; display:flex; align-items:flex-start; gap:11px; padding:12px 14px; width:255px; background:rgba(71,26,24,.92); border:1px solid var(--orange); box-shadow:0 0 22px rgba(255,105,70,.23); animation:pulse .9s ease-in-out infinite alternate; }.warning-icon { display:grid; place-items:center; width:24px; height:24px; background:var(--orange); color:#321b18; font-weight:700; border-radius:50%; }.boss-warning strong { font:700 14px 'Arial Narrow','Arial',sans-serif; letter-spacing:.09em; }.boss-warning small { display:block; margin:5px 0 8px; color:#ecc7ba; font-size:9px; line-height:1.4; }.warning-track { height:3px; background:#632f2a; }.warning-track i { display:block; height:100%; background:var(--yellow); width:100%; transform-origin:left; }.controls { position:fixed; z-index:2; bottom:22px; left:28px; color:#93a49e; font-size:9px; display:flex; gap:19px; }.controls b { color:#f2ece0; font-weight:500; }
.score-line { display:flex; justify-content:space-between; align-items:center; border-top:1px solid rgba(255,255,255,.18); border-bottom:1px solid rgba(255,255,255,.18); padding:15px 0; margin-bottom:25px; font-size:10px; color:#9eb0a7; }.score-line strong { color:var(--yellow); font:600 32px 'Arial Narrow','Arial',sans-serif; }
.briefcase-effect { position:fixed; inset:0; z-index:20; display:grid; place-items:center; pointer-events:none; background:rgba(45,18,15,.2); animation:fade-case 1.4s ease-out forwards; }.briefcase-effect span { position:absolute; margin-top:150px; color:#ff9d75; letter-spacing:.25em; font-size:12px; }.briefcase { color:#ff6946; font-size:94px; transform:rotate(-18deg) translateX(-110vw); animation:case-in .85s cubic-bezier(.2,.8,.2,1) forwards; text-shadow:0 0 24px rgba(255,105,70,.55); }
@keyframes case-in { 60% { transform:rotate(-18deg) translateX(0); } 100% { transform:rotate(-18deg) translateX(0) scale(.9); } } @keyframes fade-case { 0%,70% { opacity:1; } 100% { opacity:0; } }
@keyframes pulse { to { transform:translateX(-3px); } }
@media (max-width:700px) { .start-content { margin:0; width:calc(100% - 40px); }.start-stamp { display:none; }.briefing { gap:16px; }.meters { flex-wrap:wrap; top:88px; right:20px; }.meter { width:120px; }.money { margin-left:0; }.controls { left:15px; right:15px; gap:9px; justify-content:space-between; font-size:8px; }.brand small { display:none; }.boss-warning { right:15px; top:180px; }.hud-top { left:15px; right:15px; }.manager-card { top:206px; left:15px; width:168px; } }
/* Expansion UI */
.event-banner { position:fixed; z-index:2; top:264px; left:28px; min-height:22px; padding:6px 9px; color:#1b272b; background:var(--yellow); font-size:10px; letter-spacing:.08em; box-shadow:5px 5px 0 rgba(16,27,30,.35); }
.event-banner:empty { display:none; }
.power-card { position:fixed; z-index:3; right:28px; top:250px; width:248px; padding:13px 14px; background:rgba(49,16,14,.9); border:1px solid var(--orange); box-shadow:0 0 28px rgba(255,67,50,.22); animation:power-alert 1.1s ease-in-out infinite alternate; }
.power-card span { display:block; color:#ff9d75; font-size:8px; letter-spacing:.16em; }
.power-card strong { display:block; margin:6px 0 9px; color:#f8eee2; font:700 18px 'Arial Narrow','Arial',sans-serif; letter-spacing:.08em; }
.power-card small { color:#e7b9aa; font-size:8px; letter-spacing:.07em; }
.power-card b { color:var(--yellow); }
@keyframes power-alert { to { border-color:var(--yellow); box-shadow:0 0 34px rgba(255,105,70,.38); } }
.context-prompt { position:fixed; z-index:2; left:50%; bottom:82px; transform:translateX(-50%); color:#d6e1d7; font-size:10px; letter-spacing:.04em; text-align:center; text-shadow:0 2px 4px #0b1113; pointer-events:none; }
.inventory { position:fixed; z-index:2; right:28px; bottom:30px; width:270px; padding:10px 12px; background:rgba(16,27,30,.88); border:1px solid rgba(255,255,255,.16); pointer-events:auto; }
.inventory-head { display:flex; justify-content:space-between; color:var(--yellow); font-size:9px; letter-spacing:.12em; margin-bottom:7px; }
.inventory-head small { color:#8da39a; font-size:8px; letter-spacing:.05em; }
.inventory-slots { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.inventory-slot { min-height:66px; padding:5px 4px; border:1px solid rgba(255,255,255,.2); background:rgba(44,59,61,.8); color:#dce5dc; display:flex; flex-direction:column; align-items:center; gap:2px; }
.inventory-slot:hover,.inventory-slot.selected { border-color:var(--orange); background:rgba(91,55,45,.9); }
.inventory-slot b { align-self:flex-start; color:var(--yellow); font-size:10px; }
.slot-icon { font-size:20px; line-height:1; color:#f5f1e8; }
.slot-name { font-size:8px; line-height:1.15; text-align:center; }
.inventory-help { margin-top:7px; color:#91a39b; font-size:8px; text-align:center; }
.inventory-help b { color:#f5f1e8; }
@media (max-width:700px) { .inventory { right:15px; bottom:58px; width:230px; } .event-banner { left:15px; top:264px; max-width:calc(100% - 30px); } .power-card { right:15px; top:254px; width:220px; } }
@media (max-width:520px) { .access-entry { flex-direction:column; } .access-entry .primary-button { width:100%; } .access-card { padding:34px 24px 28px; box-shadow:9px 9px 0 rgba(0,0,0,.23); } }

/* Zombie Shift */
.zombie-mode .meters,.zombie-mode .manager-card,.zombie-mode #inventory,.zombie-mode #power-card,.zombie-mode #event-banner,.zombie-mode #task-card,.zombie-mode #boss-warning { display:none !important; }
.zombie-mode .brand small { color:#ff9d75; }
.zombie-mode .brand-dot { background:#ff3f2f; box-shadow:0 0 18px #ff3f2f; }
.zombie-hud { position:fixed; z-index:3; left:28px; top:90px; display:grid; grid-template-columns:150px 116px; gap:8px; pointer-events:none; }
.zombie-stat { min-height:59px; padding:9px 11px; background:rgba(13,20,22,.84); border-left:3px solid #ff6946; box-shadow:5px 5px 0 rgba(0,0,0,.18); }
.zombie-stat span { display:block; color:#aebbb4; font-size:8px; letter-spacing:.16em; }
.zombie-stat strong { display:block; margin-top:3px; color:#f7eee0; font:700 24px 'Arial Narrow','Arial',sans-serif; }
.health-stat { grid-column:1 / 3; }
.health-stat div { height:5px; margin-top:5px; background:#281918; }
.health-stat i { display:block; width:100%; height:100%; background:#ff6946; transition:width .18s; }
.crosshair { position:fixed; z-index:4; left:50%; top:50%; width:28px; height:28px; transform:translate(-50%,-50%); pointer-events:none; filter:drop-shadow(0 1px 2px #000); }
.crosshair::before,.crosshair::after,.crosshair i::before,.crosshair i::after { content:''; position:absolute; background:#f8eee2; }
.crosshair::before { width:8px; height:2px; left:0; top:13px; }.crosshair::after { width:8px; height:2px; right:0; top:13px; }
.crosshair i::before { width:2px; height:8px; left:13px; top:0; }.crosshair i::after { width:2px; height:8px; left:13px; bottom:0; }
.crosshair b { position:absolute; left:12px; top:12px; width:4px; height:4px; border:1px solid #ff6946; border-radius:50%; }
.crosshair.hit b { transform:scale(2.7); border-color:#f4c95d; }
.damage-flash { position:fixed; z-index:1; inset:0; pointer-events:none; opacity:0; box-shadow:inset 0 0 100px 32px rgba(174,24,17,.92); transition:opacity .2s; }
.damage-flash.active { opacity:1; transition:none; }
.story-card { position:fixed; z-index:6; right:28px; top:250px; width:min(370px,calc(100% - 56px)); padding:18px 20px; background:rgba(13,23,26,.95); border:1px solid rgba(244,201,93,.7); border-left:5px solid var(--yellow); box-shadow:12px 12px 0 rgba(0,0,0,.25); pointer-events:none; animation:story-enter .34s ease-out; }
.story-card span { display:block; color:var(--yellow); font-size:10px; letter-spacing:.16em; }
.story-card strong { display:block; margin:8px 0 6px; color:#f8eee2; font:700 25px/1 'Arial Narrow','Arial',sans-serif; text-transform:uppercase; letter-spacing:.035em; }
.story-card p { margin:0; color:#bfcac4; font-size:12px; line-height:1.55; }
.story-card.cinematic { inset:50% auto auto 50%; right:auto; width:min(600px,calc(100% - 40px)); padding:34px 38px; transform:translate(-50%,-50%); border-color:#ff6946; border-left-width:8px; background:rgba(18,12,14,.97); box-shadow:0 0 90px rgba(255,45,28,.3),18px 18px 0 rgba(0,0,0,.38); animation:cinematic-enter .28s ease-out; }
.story-card.cinematic span { color:#ff9d75; }.story-card.cinematic strong { font-size:clamp(36px,7vw,72px); }.story-card.cinematic p { max-width:470px; font-size:14px; color:#e1c8c0; }
.directive-console { position:fixed; z-index:30; left:50%; top:50%; width:min(650px,calc(100% - 30px)); transform:translate(-50%,-50%); padding:24px; color:#e8efe9; background:rgba(10,18,20,.98); border:1px solid #69dbb4; border-left:7px solid #69dbb4; box-shadow:0 0 0 9999px rgba(0,0,0,.72),18px 18px 0 rgba(0,0,0,.35); }
.directive-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:16px; }.directive-head span,.directive-console label { display:block; color:#69dbb4; font:10px Consolas,monospace; letter-spacing:.16em; }.directive-head strong { display:block; margin-top:5px; font:700 30px/1 'Arial Narrow',Arial,sans-serif; text-transform:uppercase; }.directive-head button { color:#9eb0aa; background:transparent; border:1px solid #52645e; padding:7px 9px; cursor:pointer; }
.directive-history { max-height:180px; overflow:auto; margin:0 0 15px; }.directive-entry { margin:0 0 8px; padding:10px 12px; color:#c9d7d1; background:#142326; border-left:3px solid #52645e; font:12px/1.45 Consolas,monospace; }.directive-entry time { display:block; margin-bottom:4px; color:#72857e; font-size:9px; }.directive-empty { color:#71817c; font:12px Consolas,monospace; }
.directive-console textarea { box-sizing:border-box; width:100%; margin-top:7px; resize:vertical; min-height:78px; padding:12px; color:#fff; background:#081113; border:1px solid #52645e; outline:none; font:14px/1.4 Consolas,monospace; }.directive-console textarea:focus { border-color:#69dbb4; box-shadow:0 0 0 2px rgba(105,219,180,.15); }.directive-console form>div { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:10px; }.directive-console small { color:#71817c; font:9px Consolas,monospace; }.directive-console form button { padding:10px 14px; color:#07110e; background:#69dbb4; border:0; font:700 11px Consolas,monospace; cursor:pointer; }
@media (max-width:700px) { .directive-console { padding:18px; }.directive-head strong { font-size:24px; }.directive-console form>div { align-items:flex-end; }.directive-console small { max-width:210px; } }
@keyframes story-enter { from { opacity:0; transform:translateX(28px); } }
@keyframes cinematic-enter { from { opacity:0; transform:translate(-50%,-46%) scale(.96); } }
@media (max-width:700px) { .zombie-hud { left:15px; top:82px; grid-template-columns:120px 100px; } .zombie-stat { min-height:52px; padding:7px 9px; } .health-stat { grid-column:1 / 3; } }
@media (max-width:700px) { .story-card { right:15px; top:245px; width:calc(100% - 30px); } .story-card.cinematic { right:auto; top:50%; width:calc(100% - 30px); padding:26px 24px; } }

/* Menu usability keeps the existing office palette and playfield. */
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex="-1"]:focus-visible { outline:3px solid var(--yellow); outline-offset:4px; }
button:disabled { cursor:not-allowed; opacity:.55; }
.load-error { max-width:560px; padding:12px; color:#ffb39f; border:1px solid #ff6946; line-height:1.7; }
.directive-console textarea { font-size:1rem; }
.directive-head button, .directive-console form button { min-height:48px; }
@media (prefers-reduced-motion:reduce) {
  .primary-button { transition:background .2s; }
  .primary-button:hover { transform:none; }
  .boss-warning, .power-card, .briefcase-effect, .briefcase, .story-card, .story-card.cinematic { animation:none; }
  .briefcase { transform:rotate(-18deg) translateX(0); }
  .meter-track i, .manager-track i, .health-stat i { transition:none; }
}
