html,body {margin:0;overflow:hidden;background:#9cb8c9;font:15px system-ui;color:#edf2f5}
[hidden] {display:none !important}
canvas {display:block}
/* Top left: faint coordinates and what the player needs now; --dm's
   developer readout (#hud) below them. */
#corner {position:fixed;top:12px;left:14px;pointer-events:none;max-width:min(560px,70vw);z-index:2}
#info {font-size:13px;line-height:1.45;color:#edf2f5b8;text-shadow:0 1px 2px #000c;white-space:pre-line}
#info:empty {display:none}
#hud {margin-top:8px;padding:7px 10px;background:#17202bcc;font-size:12px;white-space:pre-line}
/* Bottom left: the held item (limited-ammo games). */
#item {position:fixed;left:22px;bottom:16px;display:flex;gap:28px;align-items:flex-end;pointer-events:none;text-shadow:0 1px 3px #000c;z-index:2}
#item b {display:block;font-size:44px;line-height:1;font-weight:600}
#item b:empty {display:none}
/* The icon file's shape (icons/README.txt), filled faint. */
#item .item-icon {display:block;width:96px;height:36px;margin-top:4px;background:#edf2f5;opacity:.35;
  mask:center / contain no-repeat;-webkit-mask:center / contain no-repeat}
#item small {display:block;font-size:11px;letter-spacing:.5px;opacity:.5;text-transform:uppercase}
/* Melee: shown under the sight while stunned. */
#stunned {position:fixed;left:50%;top:calc(50% + 44px);transform:translateX(-50%);pointer-events:none;
  font-size:14px;letter-spacing:2px;text-transform:uppercase;color:#ffdf28;text-shadow:0 1px 3px #000}
/* A drawn dot exactly on the screen centre (the sight line), not a text glyph. */
#crosshair {position:fixed;left:50%;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.6);pointer-events:none}
#crosshair.melee-reticle {width:15px;height:15px;margin:-7.5px 0 0 -7.5px;transform:scale(3);border-radius:0;background:none;box-shadow:none}
#crosshair.melee-reticle::before,#crosshair.melee-reticle::after {content:'';position:absolute;left:6px;top:0;width:3px;height:15px;background:#ffdf28;transform:rotate(45deg)}
#crosshair.melee-reticle::after {transform:rotate(-45deg)}
#crosshair.melee-reticle.ready::before,#crosshair.melee-reticle.ready::after {box-shadow:0 0 0 1px #000}
/* Fireland's scope, once fully raised: the world through a round lens, a fine reticle. */
#scope {position:fixed;inset:0;pointer-events:none;z-index:3;background:
  linear-gradient(rgba(0,0,0,.85),rgba(0,0,0,.85)) center / 1px 100% no-repeat,
  linear-gradient(rgba(0,0,0,.85),rgba(0,0,0,.85)) center / 100% 1px no-repeat,
  radial-gradient(circle at center,transparent 0,transparent 34vmin,#000 34.5vmin)}
/* Fireland's bow draw: red until letting go would loose, then filling to full. */
#draw-meter {position:fixed;left:50%;top:calc(50% + 26px);transform:translateX(-50%);width:90px;height:6px;background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.5);pointer-events:none;z-index:2}
#draw-meter > div {height:100%;width:0;background:#d95757}
#draw-meter.ready > div {background:#7fd46f}
#lobby,#menu .page {position:fixed;inset:15% auto auto 50%;transform:translateX(-50%);background:#17202bf2;border:1px solid #53687a;padding:24px;width:min(520px,86vw)}
h1 {margin:0} h2 {margin:0 0 10px} h3 {margin:16px 0 6px;font-size:15px}
button {display:block;margin-top:14px;padding:10px 14px;font:inherit;cursor:pointer}
#lobby,#menu .page {max-height:80vh;overflow-y:auto;box-sizing:border-box}
/* Escape: a few faint options over the game; a page opens in their place. */
#menu-options {position:fixed;left:50%;top:22%;transform:translateX(-50%);width:min(280px,80vw);text-align:center}
#menu-options button {width:100%;margin-top:8px;padding:9px 14px;background:#17202b66;color:#edf2f5d9;
  border:1px solid #ffffff2e;border-radius:3px;text-shadow:0 1px 2px #000a}
#menu-options button:hover:not(:disabled) {background:#17202bb3;color:#fff;border-color:#ffffff66}
#menu-options button:disabled {opacity:.5;cursor:default}
#status {margin:0 0 6px;font-size:13px;color:#edf2f5b3;text-shadow:0 1px 2px #000c}
#menu .page dl {display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:0}
#menu .page dt {color:#ffd25a;white-space:nowrap} #menu .page dd {margin:0}
#lobby-seats button {width:100%;text-align:left} #lobby-note {color:#ffd59a} a {color:#9fd5ff}
label {display:flex;gap:12px;align-items:center} #error {color:#ffb6ac;white-space:pre-wrap}
/* Playtest round result, centred over the view. */
#banner {position:fixed;left:50%;top:28%;transform:translateX(-50%);text-align:center;pointer-events:none;z-index:4;
  padding:14px 28px;background:#17202bcc;border:1px solid #53687a}
#banner strong {display:block;font-size:48px;letter-spacing:2px} #banner span {display:block;margin-top:6px}
/* Watching a bot E would take over: a slow pulse under the view's centre. */
#pilot-prompt {position:fixed;left:50%;top:62%;transform:translateX(-50%);pointer-events:none;z-index:4;
  font-size:28px;letter-spacing:2px;color:#ffe9a8;text-shadow:0 0 6px #000;animation:pilot-pulse 2s ease-in-out infinite}
@keyframes pilot-pulse {0%,100% {opacity:.35} 50% {opacity:1}}
/* Fireland 0.2: stats and messages over the hotbar; the inventory screen. */
#fl2 {position:fixed;inset:0;z-index:5;text-align:center;pointer-events:none}
#fl2-status {position:absolute;left:50%;bottom:14px;transform:translateX(-50%)}
#fl2-stats,#fl2-messages {background:#17202bcc;padding:4px 10px;margin:4px auto;display:inline-block;white-space:pre-line}
#fl2-messages:empty {display:none}
#fl2-hotbar {display:flex;gap:4px;justify-content:center}
.fl2-cell {min-width:72px;height:38px;padding:3px;box-sizing:border-box;background:#17202bcc;border:1px solid #53687a;font-size:12px;overflow:hidden;position:relative}
.fl2-cell.selected {border-color:#ffd25a;box-shadow:0 0 0 1px #ffd25a}
#fl2-hotbar .fl2-cell::after {content:attr(data-key);position:absolute;right:3px;bottom:1px;opacity:.6;font-size:10px}
#fl2-screen {position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:#17202bf5;border:1px solid #53687a;padding:14px;pointer-events:auto;text-align:left;width:min(900px,94vw);max-height:88vh;overflow:auto;box-sizing:border-box}
#fl2-screen .fl2-grid {display:grid;grid-template-columns:repeat(10,1fr);gap:4px}
#fl2-screen .fl2-cell {cursor:pointer;min-width:0}
#fl2-screen .fl2-cell.hotbar {border-color:#7f97ab}
#fl2-screen button {display:inline-block;margin:0 0 0 8px;padding:4px 8px}
#fl2-container-title {margin:10px 0 4px;font-weight:600}
#fl2-screen header {display:flex;justify-content:space-between;font-size:16px}
#fl2-screen p {margin:8px 0 4px}
#fl2-screen .fl2-hint {font-size:12px;color:#b9c7d3}
#fl2-gear,.fl2-set {display:flex;gap:6px;margin:6px 0;align-items:center}
.fl2-set>span {width:110px}
.fl2-set .fl2-cell,#fl2-gear .fl2-cell {width:190px;height:52px}
.fl2-set.active>span {color:#ffd25a}
.fl2-cell small {display:block;color:#a8b8c9}
.fl2-cell .fl2-item {display:block;white-space:normal}
#fl2-screen .fl2-grid .fl2-cell {height:52px}
.fl2-linked {opacity:.6}
#fl2-cursor {position:fixed;left:0;top:0;pointer-events:none;z-index:100;background:#101821e8;border:1px solid #ffd25a;padding:7px;color:#fff;white-space:nowrap}
/* Bottom right: thin, long, slightly see-through bars, clear of FL2's centred hotbar. */
#vitals {position:fixed;right:20px;bottom:18px;width:max(160px,min(380px,calc(50vw - 410px)));z-index:6;pointer-events:none;opacity:.82}
.vital {position:relative;height:18px;margin-top:5px;border:1px solid #b5b1a966;border-radius:9px;overflow:hidden;background:#11161fa6;display:flex;align-items:center;justify-content:center;text-shadow:0 1px 2px #000;box-sizing:border-box}
.vital i {position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#822c39,#ce5b65);transition:width .15s}
.vital.hunger i {background:linear-gradient(90deg,#706032,#b9a666)}
.vital.mana i {background:linear-gradient(90deg,#304d84,#689ec7)}
.vital.stamina i {background:linear-gradient(90deg,#326343,#7fb67a)}
.vital.pain i {background:linear-gradient(90deg,#8a4a1c,#e08a3c)}
.vital span {position:relative;font-size:10px;line-height:1;letter-spacing:.3px}
#fl2-map {position:absolute;right:12px;top:12px;width:160px;height:160px}
#fl2-shop {margin:12px 0;padding:12px;background:#101820;border:1px solid #94846b;text-align:left}
#fl2-trade {margin-top:8px}
.rts-panel {position:fixed;bottom:110px;left:12px;right:320px;max-height:100px;overflow:hidden;padding:10px;background:#142333dd;color:#d8f5ff;z-index:5;pointer-events:none;font:14px sans-serif}
.rts-selection {position:fixed;border:1px solid #6ef;background:#66eeff22;pointer-events:none;z-index:16}
.rts-context {position:fixed;padding:5px;background:#142333;z-index:25}
.brief-card {position:fixed;left:50%;top:30%;transform:translateX(-50%);max-width:min(520px,90vw);padding:14px 20px;background:#17202b;color:#edf2f5;z-index:20;pointer-events:none;font:15px sans-serif;white-space:pre-line;text-align:center;border-radius:8px}
.brief-card::first-line {font-size:20px;font-weight:bold}
#wave-banner {position:fixed;left:50%;top:22%;transform:translateX(-50%);pointer-events:none;z-index:4;color:#d8f5ff;font:bold 40px sans-serif;letter-spacing:2px;text-shadow:0 2px 6px #000}
#zombie-board {position:fixed;right:12px;top:12px;min-width:120px;padding:6px 9px;background:#142333;color:#d8f5ff;z-index:5;pointer-events:none;font:13px sans-serif;white-space:pre}
.rts-commanders {position:fixed;right:12px;top:12px;padding:6px 9px;background:#142333;color:#d8f5ff;z-index:5;pointer-events:none;font:13px sans-serif}
.rts-role {position:fixed;right:20px;bottom:160px;max-width:280px;padding:8px;background:#142333dd;color:#d8f5ff;z-index:17;pointer-events:none;font:14px sans-serif}
.rts-building-health {position:fixed;left:0;top:0;width:90px;height:16px;background:#16202bdb;border:1px solid #b5b1a980;border-radius:8px;overflow:hidden;text-align:center;font:11px sans-serif;pointer-events:none;z-index:4}
.rts-building-health i {position:absolute;inset:0 auto 0 0;background:#458354}
.rts-building-health span {position:relative}

/* Graphics and sound (presentation settings) */
#presentation { margin: 0.6em 0; padding: 0.4em 0.8em; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; }
#presentation legend { padding: 0 0.3em; }
#presentation label { display: inline-block; margin: 0.15em 0.8em 0.15em 0; }
#presentation button { display: block; margin-top: 0.4em; }

/* Settings -> Configure key bindings (key_config.js). */
#menu .hint {font-size:13px;color:#b9c7d3}
#key-list {display:flex;flex-direction:column;gap:3px}
.key-entry {display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;margin:0;padding:6px 10px;
  text-align:left;background:#ffffff0d;color:inherit;border:1px solid #ffffff1f;border-radius:3px}
.key-entry:hover {background:#ffffff1f}
.key-entry small {display:block;font-size:11px;color:#a8b8c9}
.key-entry kbd {font:inherit;color:#ffd25a;white-space:nowrap}
.key-entry.listening {border-color:#ffd25a;background:#ffd25a1f}
.key-entry.fixed {opacity:.55;cursor:default;box-sizing:border-box}
.key-entry.fixed:hover {background:#ffffff0d}
.key-entry.fixed kbd {color:#b9c7d3}
