:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--panel-bg:#0e121ad1;--panel-fg:#e8edf4;--accent:#ffb347;font-family:system-ui,sans-serif}html,body{background:#0d1118;height:100%;margin:0;overflow:hidden}#view{touch-action:none;width:100vw;height:100vh;display:block}.panel{background:var(--panel-bg);max-width:min(320px,100vw - 24px);color:var(--panel-fg);-webkit-user-select:none;user-select:none;border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.5;position:fixed;top:12px;left:12px}.panel h1{color:var(--accent);margin:0 0 6px;font-size:14px}.panel .row{flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0;display:flex}.panel code{font-family:ui-monospace,monospace}.panel button,.panel select,.panel input{font:inherit;color:inherit;background:#232b38;border:1px solid #3a4558;border-radius:4px;padding:2px 6px}.panel button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.panel input[type=number]{width:96px}.legend{grid-template-columns:12px 1fr;align-items:center;gap:2px 6px;margin-top:6px;display:grid}.swatch{border-radius:2px;width:12px;height:12px}.hint{opacity:.7}#hud{pointer-events:none;color:var(--panel-fg);font-size:13px;position:fixed;inset:0}#hud .hud-top{justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 16px;display:flex}#hud .card{background:var(--panel-bg);opacity:.75;border:2px solid #0000;border-radius:8px;min-width:170px;padding:8px 10px}#hud .card.active{border-color:var(--team);opacity:1}#hud .card .name{color:var(--team);font-weight:700}#hud .hp{background:#333a46;border-radius:3px;height:6px;margin:5px 0;overflow:hidden}#hud .hp span{background:var(--team);height:100%;transition:width .3s;display:block}#hud .card[data-i="1"]{text-align:right;order:3}#hud .center{text-align:center;background:var(--panel-bg);border-radius:8px;order:2;padding:6px 12px}#hud .phase,#hud .wind{opacity:.75;font-size:12px}#hud .hud-bottom{box-sizing:border-box;background:var(--panel-bg);border-top:3px solid var(--team,var(--accent));pointer-events:auto;border-radius:10px;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 18px;width:min(760px,100vw - 32px);padding:10px 14px;display:flex;position:absolute;bottom:14px;left:50%;transform:translate(-50%)}#hud.busy .hud-bottom{opacity:.55}#hud label{align-items:center;gap:6px;display:flex}#hud label b{text-align:right;font-variant-numeric:tabular-nums;min-width:38px}#hud input[type=range]{width:140px;accent-color:var(--team,var(--accent))}#hud button{font:inherit;color:inherit;cursor:pointer;background:#232b38;border:1px solid #3a4558;border-radius:6px;padding:4px 10px}#hud button:disabled{opacity:.4;cursor:default}#hud .moves{align-items:center;gap:6px;display:flex}#hud button.fire{background:var(--team,var(--accent));color:#10141b;border:none;padding:6px 18px;font-weight:700}#hud .keys{text-align:center;opacity:.6;width:100%;font-size:11px}.popup{text-shadow:0 2px 4px #000a;pointer-events:none;font:700 20px system-ui,sans-serif;animation:1.4s ease-out forwards popup-rise;position:fixed;transform:translate(-50%,-50%)}@keyframes popup-rise{0%{opacity:1;margin-top:0}to{opacity:0;margin-top:-48px}}@media (width<=640px){#hud .card{min-width:0;font-size:11px}#hud .keys{display:none}}.panel pre{white-space:pre-wrap;margin:0;font:12px/1.5 ui-monospace,monospace}#hud button.weapon{align-items:center;gap:6px;padding:2px 10px 2px 2px;font-weight:600;display:flex}#hud .weapon-picker{box-sizing:border-box;background:var(--panel-bg);pointer-events:auto;border-radius:10px;width:min(560px,100vw - 32px);padding:10px;position:absolute;bottom:136px;left:50%;transform:translate(-50%)}#hud .weapon-picker[hidden]{display:none}#hud .weapon-picker .grid{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:6px;max-height:min(46vh,360px);padding-right:4px;display:grid;overflow-y:auto}#hud .weapon-picker .cat{letter-spacing:.04em;text-transform:uppercase;opacity:.6;grid-column:1/-1;margin-top:4px;font-size:11px}#hud .weapon-picker .cat[hidden]{display:none}#hud .card .status{color:#ffcc80;min-height:0;font-size:11px}#hud .card .status:empty{display:none}#hud .weapon-picker .grid button{border-radius:8px;padding:4px;line-height:0;position:relative}#hud .weapon-picker .grid button.selected{outline:2px solid var(--team,var(--accent))}#hud .weapon-picker .ammo{font-size:10px;line-height:1;position:absolute;bottom:3px;right:3px}#hud .weapon-picker .info{opacity:.9;min-height:34px;margin-top:8px;font-size:12px}#hud .center{align-items:center;gap:10px;display:flex}#hud .timer circle{fill:none;stroke-width:4px}#hud .timer .track{stroke:#333a46}#hud .timer .arc{stroke:var(--team,var(--accent));transition:stroke-dashoffset .2s linear}#hud .timer text{fill:var(--panel-fg);font:700 13px system-ui,sans-serif}#hud .timer.urgent .arc{stroke:#ff4d4d}#hud .timer.urgent text{fill:#ff4d4d}#hud .card.dead{opacity:.45;filter:grayscale()}#hud .weapon-picker .grid button[hidden]{display:none}#screen{box-sizing:border-box;color:var(--panel-fg);background:#080b108c;place-items:center;padding:16px;display:grid;position:fixed;inset:0;overflow:auto}#screen[hidden]{display:none}.sheet{box-sizing:border-box;background:#0e121af0;border-radius:12px;width:min(720px,100%);padding:20px 22px;box-shadow:0 12px 40px #0008}.sheet h1{color:var(--accent);margin:0 0 4px;font-size:22px}.sheet .sub,.sheet .hint{opacity:.75;margin:0 0 14px;font-size:13px}.sheet label{flex-direction:column;gap:4px;font-size:13px;display:flex}.sheet label.check{flex-direction:row;align-items:center;gap:8px}.sheet input,.sheet select,.sheet button{font:inherit;color:inherit;background:#232b38;border:1px solid #3a4558;border-radius:6px;padding:6px 8px}.sheet button{cursor:pointer}.sheet button.primary{background:var(--accent);color:#10141b;border:none;padding:8px 18px;font-weight:700}.setup .names,.setup .grid2{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:14px;display:grid}.setup .names label{color:var(--team);font-weight:700}.draft .turnline{justify-content:space-between;margin-bottom:10px;display:flex}.draft .secs.urgent{color:#ff4d4d;font-weight:700}.draft .pool{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;display:grid}.draft .pool button{flex-direction:column;align-items:center;gap:4px;padding:8px 4px;line-height:1.2;display:flex}.draft .pool button .nm{font-size:12px;font-weight:600}.draft .pool button .tier{opacity:.6;font-size:10px}.draft .pool button.taken{opacity:.35;border-color:var(--owner);cursor:default}.draft .info{min-height:36px;margin:10px 0;font-size:13px}.draft .picks{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:10px;display:grid}.draft .picks b{color:var(--team)}.draft .picks .row{flex-wrap:wrap;gap:4px;min-height:32px;margin-top:4px;display:flex}.summary table{border-collapse:collapse;width:100%;margin-bottom:16px}.summary th,.summary td{text-align:right;border-bottom:1px solid #2a3240;padding:6px 8px}.summary th:first-child,.summary td:first-child{text-align:left;opacity:.8}.summary .buttons{flex-wrap:wrap;gap:10px;display:flex}#net{z-index:5;background:var(--panel-bg);color:var(--panel-fg);pointer-events:none;border-radius:999px;padding:2px 10px;font-size:11px;position:fixed;bottom:8px;left:8px}#net[hidden]{display:none}#net.open:before{content:"● ";color:#5ad16f}#net.reconnecting:before,#net.connecting:before{content:"● ";color:#ffb347}#net.closed:before{content:"● ";color:#ff4d4d}.setup .buttons,.sheet .buttons{flex-wrap:wrap;gap:10px;margin:6px 0 12px;display:flex}.setup .join{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.setup .join input{text-transform:uppercase;width:120px}.lobby .code{letter-spacing:.12em;color:var(--panel-fg);font-family:ui-monospace,monospace}.lobby .invite{flex-wrap:wrap;gap:8px;margin:8px 0 4px;display:flex}.lobby .invite input{flex:260px;min-width:0}.lobby .players{gap:6px;margin:10px 0;display:grid}.lobby .player b{color:var(--team)}.lobby .player .status{opacity:.75}.lobby .chat{border-top:1px solid #2a3240;margin-top:12px;padding-top:10px}.lobby .chat-log{overflow-wrap:anywhere;max-height:140px;margin-bottom:6px;font-size:13px;overflow-y:auto}.lobby .chat-form{gap:6px;display:flex}.lobby .chat-form input{flex:1;min-width:0}#gear{top:calc(10px + env(safe-area-inset-top));right:calc(10px + env(safe-area-inset-right));z-index:20;background:var(--panel-bg);width:36px;height:36px;color:var(--panel-fg);cursor:pointer;border:1px solid #3a4558;border-radius:50%;padding:0;font-size:19px;line-height:1;position:fixed}#hud .hud-top{padding-right:calc(58px + env(safe-area-inset-right))}#settings{z-index:30;color:var(--panel-fg);background:#080b1099;place-items:center;padding:16px;display:grid;position:fixed;inset:0}#settings[hidden]{display:none}#settings .settings-sheet{width:min(420px,100%)}#settings label{flex-direction:row;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}#settings label.check{justify-content:flex-start}#settings input[type=range]{flex:1;max-width:220px}#fps{right:calc(8px + env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom));z-index:20;background:var(--panel-bg);color:#9fe29f;pointer-events:none;border-radius:6px;padding:2px 8px;font:11px ui-monospace,monospace;position:fixed}#fps[hidden]{display:none}#chat{left:calc(12px + env(safe-area-inset-left));top:calc(104px + env(safe-area-inset-top));z-index:15;width:min(320px,60vw);color:var(--panel-fg);pointer-events:none;font-size:13px;position:fixed}#chat .lines div{background:var(--panel-bg);overflow-wrap:anywhere;border-radius:6px;margin-bottom:3px;padding:3px 8px;transition:opacity 1.2s}#chat .lines div.old{opacity:0}#chat.open .lines div.old{opacity:.85}#chat form{pointer-events:auto}#chat form[hidden]{display:none}#chat input{box-sizing:border-box;width:100%;color:inherit;font:inherit;background:#141a24;border:1px solid #3a4558;border-radius:6px;padding:6px 8px}#chat .toggle{pointer-events:auto;background:var(--panel-bg);cursor:pointer;border:1px solid #3a4558;border-radius:6px;margin-top:4px;padding:3px 8px}.draft .pool button.preview{outline:2px solid var(--accent)}@media (pointer:coarse){#hud button,.sheet button{min-width:40px;min-height:40px}#hud button.fire{min-height:48px;padding:6px 24px;font-size:16px}#hud input[type=range]{height:28px}}@media (width<=760px),(height<=500px){#hud .hud-top{padding:calc(6px + env(safe-area-inset-top)) calc(52px + env(safe-area-inset-right)) 6px calc(8px + env(safe-area-inset-left));gap:6px}#hud .card{min-width:0;padding:5px 7px;font-size:11px}#hud .center{padding:4px 8px;font-size:11px}#hud .hud-bottom{bottom:calc(6px + env(safe-area-inset-bottom));width:calc(100vw - 12px - env(safe-area-inset-left) - env(safe-area-inset-right));gap:6px 10px;padding:6px 8px}#hud label{flex:140px}#hud input[type=range]{flex:1;width:auto;min-width:80px}#hud .keys{display:none}#hud .weapon-picker{bottom:calc(118px + env(safe-area-inset-bottom))}#hud .weapon-picker .grid{max-height:min(40vh,300px)}#chat{top:calc(72px + env(safe-area-inset-top));font-size:12px}.sheet{padding:14px}.draft .pool{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}}@media (height<=500px){.draft{flex-direction:column;display:flex}.draft h1{font-size:17px}.draft .info{order:1;min-height:2.6em;margin:0 0 6px}.draft .pool{order:2;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:5px}.draft .pool button{padding:4px 2px}.draft .pool button svg{width:26px;height:26px}.draft .pool button .tier{display:none}.draft .picks{order:3}.draft .hint{order:4}}#hud .rotate-hint{display:none}@media (orientation:portrait) and (width<=600px){#hud .rotate-hint{background:var(--panel-bg);border-radius:8px;width:fit-content;max-width:calc(100vw - 24px);margin:4px auto 0;padding:4px 10px;font-size:12px;display:block}}#hud button,.sheet button,#gear,#chat button{touch-action:manipulation}
