:root{--blocks-min:0px;--bg:#141a17;--fg:#d8e0da;--muted:#7f8c84}html,body{background:var(--bg);height:100%;color:var(--fg);margin:0;font:12px/1.3 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden}body{grid-template-rows:minmax(0,1fr) auto;height:100vh;display:grid}#blocks{box-sizing:border-box;flex-direction:column;gap:4px;min-height:0;padding:4px;display:flex;overflow:hidden}#map{width:max(0px, min(100vw, 100vh - var(--blocks-min)));aspect-ratio:1;justify-self:center;position:relative}#map canvas{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}.block{flex:none;overflow:hidden}.block.fill{flex:1 1 0}.status{white-space:nowrap;align-items:center;gap:8px;display:flex}.status-dot{background:var(--muted);border-radius:50%;width:8px;height:8px}.status-dot[data-state=live]{background:#5fd38d}.status-dot[data-state=reconnecting],.status-dot[data-state=failed]{background:#e0614f}.status-room{font-weight:600}.status-state{color:var(--muted)}.players{flex-direction:column;gap:2px;display:flex}.players-row{border-left:2px solid #5fd38d;gap:2px;height:22px;padding-left:4px;display:flex}.players-row.dire{border-left-color:#e0614f}.player-hero{aspect-ratio:16/9;height:22px;display:block}.player.dead .player-hero{filter:grayscale()brightness(.6)}.settings{z-index:10;box-sizing:border-box;opacity:0;background:#141a17f2;border-bottom:1px solid #2a332e;flex-wrap:wrap;align-items:center;gap:4px 10px;min-height:28px;padding:4px 8px;transition:opacity .15s;display:flex;position:fixed;top:0;left:0;right:0}.settings:hover,.settings:focus-within{opacity:1}.settings-field{color:var(--muted);white-space:nowrap;align-items:center;display:inline-flex}.settings-toggle{accent-color:#5fd38d;margin:0 2px 0 0}.settings-observe{background:var(--bg);max-width:60vw;color:var(--fg);font:inherit;border:1px solid #2a332e}.settings-volume{accent-color:#5fd38d;width:80px;margin:0 0 0 6px}.settings-color{background:0 0;border:1px solid #2a332e;width:28px;height:18px;padding:0}.settings-reset{background:var(--bg);color:var(--fg);font:inherit;border:1px solid #2a332e;margin-left:4px}.settings-reset:disabled{color:var(--muted)}.spotted{white-space:nowrap;color:var(--muted);border-radius:3px;align-items:center;gap:6px;padding:2px 6px 2px 2px;transition:background-color .3s,color .3s;display:flex}.spotted-icon{width:24px;height:24px;display:block}.spotted-state{letter-spacing:.05em;margin-left:auto;font-weight:700}.spotted.active{color:#ffb3a8;background:#e0614f40;animation:.75s ease-in-out infinite alternate spotted-pulse}@keyframes spotted-pulse{0%{box-shadow:inset 0 0 0 1px #e0614f66}to{box-shadow:inset 0 0 0 2px #e0614f}}.enemies{--enemy-row:28px;flex-direction:column;gap:2px;display:flex}.enemy{height:var(--enemy-row);align-items:center;gap:4px;display:flex;overflow:hidden}.enemy-hero{width:calc(var(--enemy-row) * 16 / 9);height:var(--enemy-row);flex:none}.enemy-portrait{object-fit:cover;width:100%;height:100%;display:block}.enemy-slots{gap:2px;min-width:0;display:flex}.enemy-slot{height:var(--enemy-row);flex:none;position:relative}.enemy-slot-icon{aspect-ratio:88/64;object-fit:cover;width:auto;height:100%;display:block}.enemy-slot.ability .enemy-slot-icon{aspect-ratio:1}.enemy-slot:after{content:"";pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0}.enemy-slot.cooldown:after{background:#000000a6}.enemy-slot.no-mana:after{background:#285adc80}.enemy-slot.unlearned .enemy-slot-icon{filter:grayscale()brightness(.4)}.enemy-slot-cd,.enemy-slot-charges{z-index:1;color:#fff;text-shadow:0 0 2px #000,0 0 2px #000;font-variant-numeric:tabular-nums;pointer-events:none;font-weight:700;position:absolute}.enemy-slot-cd{justify-content:center;align-items:center;font-size:12px;display:flex;top:0;bottom:0;left:0;right:0}.enemy-slot-charges{font-size:9px;line-height:10px;bottom:0;right:1px}
