.username-gate{position:fixed;inset:0;background:#05070fe6;display:flex;align-items:center;justify-content:center;z-index:20}.username-card{background:#0d1324;border:1px solid #24304a;border-radius:.8rem;padding:1.5rem;width:min(420px,calc(100% - 2rem));display:flex;flex-direction:column;gap:1rem}.username-card h2{font-size:1.25rem;color:#9fb7ff}.username-card p{color:#cdd5f3;line-height:1.4}.username-form{display:flex;flex-direction:column;gap:.75rem}.username-form input{padding:.7rem .9rem;border-radius:.5rem;border:1px solid #2c3550;background:#181f32e6;color:inherit}.username-form button{padding:.75rem;border-radius:.5rem;border:none;background:linear-gradient(135deg,#4f7dff,#6e5bff);color:#fff;font-weight:600}:root{color-scheme:dark;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background-color:#05070f;color:#f4f6fa}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{width:100%;height:100%}body{overflow:hidden}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}.app-shell{display:flex;flex-direction:column;height:100%;width:100%;padding:1rem;gap:1rem}.app-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.mode-switcher{display:inline-flex;gap:.5rem}.mode-switcher button{padding:.4rem .9rem;border-radius:.5rem;border:1px solid #39404f;background:transparent;color:inherit;transition:background .2s ease}.mode-switcher button.active{background:#1d2331;border-color:#5b89ff}.app-main{flex:1;min-height:0;border:1px solid #1b1f2b;border-radius:1rem;overflow:hidden;position:relative;background:#0a0f1e;display:flex}.placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;color:#aeb5c7}.pixi-stage{width:100%;height:100%}.live-client{width:100%;height:100%;display:flex;flex-direction:column;gap:.75rem;padding:1rem}.live-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:1rem}.hud-panel{background:#0c1224e6;border:1px solid #1f2638;border-radius:.75rem;padding:1rem;display:flex;flex-direction:column;gap:.75rem}.hud-panel h2{font-size:1rem;text-transform:uppercase;letter-spacing:.1em;color:#9fb7ff}.speed-readout{font-family:IBM Plex Mono,SFMono-Regular,Menlo,monospace;font-size:1rem;color:#4af6c2}.player-actions{display:flex;align-items:center;gap:.5rem}.spin-button{padding:.45rem .8rem;border-radius:.45rem;border:1px solid #b974ff;background:linear-gradient(135deg,#471e6de6,#301257f2);color:#f8ecff;font-size:.85rem;font-weight:600;transition:opacity .2s ease,transform .2s ease}.spin-button:active:not(:disabled){transform:translateY(1px)}.spin-button:disabled{opacity:.4;cursor:not-allowed;border-color:#2f3650;background:#121828cc;color:#6b7190}.countdown-status{font-size:.9rem;color:#f5a524}.start-sequence{padding:.6rem .9rem;border-radius:.5rem;border:none;background:#f5a524;color:#05070f;font-weight:600}.event-list{flex:1;overflow-y:auto;max-height:220px;display:flex;flex-direction:column;gap:.6rem;padding-right:.2rem}.event-item{padding:.5rem;border-radius:.5rem;border:1px solid #2b3146;background:#ffffff05;display:flex;flex-direction:column;gap:.25rem}.event-kind{font-size:.75rem;text-transform:uppercase;color:#fad643}.event-message{font-size:.9rem;color:#d9deff}.roster-panel{border-top:1px solid #28304a;padding-top:.5rem}.roster-panel h3{font-size:.85rem;color:#9fb7ff;text-transform:uppercase}.roster-panel ul{list-style:none;margin-top:.4rem;display:flex;flex-direction:column;gap:.25rem}.roster-entry{display:flex;align-items:center;gap:.35rem;font-size:.85rem;color:#dbe3ff}.roster-entry .badge{padding:.1rem .35rem;border-radius:.4rem;background:#4f7dff;font-size:.7rem;text-transform:uppercase}.roster-entry.offline{opacity:.5}.roster-entry .role{margin-left:auto;font-size:.75rem;text-transform:capitalize;color:#9fb7ff}.roster-empty{font-size:.85rem;color:#aeb5c7}.chat-panel{border-top:1px solid #28304a;padding-top:.75rem;display:flex;flex-direction:column;gap:.5rem}.chat-header{display:flex;align-items:center;justify-content:space-between;font-size:.9rem;text-transform:uppercase;letter-spacing:.08em}.chat-header span{font-size:.75rem;color:#9fb7ff}.chat-log{max-height:200px;overflow-y:auto;display:flex;flex-direction:column;gap:.4rem}.chat-message{display:flex;flex-direction:column;gap:.2rem;padding:.4rem .5rem;border-radius:.4rem;background:#ffffff05}.chat-author{font-size:.75rem;color:#94f2ff}.chat-text{font-size:.85rem}.chat-host{border:1px solid #ffd166}.chat-player{border:1px solid #4cc9f0}.chat-spectator{border:1px solid #adb5bd}.chat-input{display:flex;gap:.5rem}.chat-input input{flex:1;padding:.4rem .6rem;border-radius:.4rem;border:1px solid #2b3146;background:transparent;color:#fff}.chat-input button{padding:.4rem .8rem;border-radius:.4rem;border:1px solid #5174b3;background:#1c2d4f;color:#fff}.chat-status{font-size:.75rem;color:#ff6b6b}.chat-empty{color:#5f6680}.tactician-popout{position:fixed;left:1rem;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:.5rem;z-index:10}.tactician-toggle{padding:.4rem .8rem;border-radius:.4rem;border:1px solid #2e3450;background:#0c1224e6;color:inherit}.tactician-card{width:220px;background:#05070ff2;border:1px solid #2a3148;border-radius:.6rem;padding:.75rem;font-size:.85rem;line-height:1.4}.tactician-card h4{margin-bottom:.5rem;color:#9fb7ff;text-transform:uppercase;letter-spacing:.08em}.tactician-card ul{list-style:none;display:flex;flex-direction:column;gap:.35rem}kbd{background:#ffffff14;border:1px solid rgba(255,255,255,.15);border-radius:.3rem;padding:.1rem .35rem;font-size:.75rem;letter-spacing:.04em;color:#c6d4ff}.replay-save{display:flex;align-items:center;gap:.5rem;font-size:.8rem}.replay-save button{padding:.4rem .8rem;border-radius:.4rem;border:1px solid #49beaa;background:#12352b;color:#8ef5cd}.replay-save span{color:#8ef5cd}.debug-toggle{margin-top:.5rem;padding:.4rem .8rem;border-radius:.4rem;border:1px solid #3a4663;background:#11182a;color:#dfe7ff}.debug-dock{position:relative;border:1px solid #28304a;border-radius:.8rem;background:#04060cfa;padding:.75rem;max-height:35%;overflow:auto;z-index:5}.debug-panel{display:flex;flex-direction:column;gap:.6rem;font-size:.8rem;position:relative}.debug-close{position:absolute;top:.4rem;right:.4rem;width:1.5rem;height:1.5rem;border-radius:999px;border:1px solid #3a4663;background:transparent;color:#aeb5c7;font-size:1rem;line-height:1rem;display:flex;align-items:center;justify-content:center}.debug-row{display:flex;gap:.4rem;align-items:baseline}.debug-table{border-top:1px solid #1f2638;padding-top:.5rem;display:flex;flex-direction:column;gap:.3rem}.debug-table-header,.debug-table-row{display:grid;grid-template-columns:1.2fr repeat(7,.9fr);gap:.3rem}.debug-table-header{text-transform:uppercase;font-size:.7rem;letter-spacing:.08em;color:#9fb7ff}.debug-table-row{font-family:IBM Plex Mono,SFMono-Regular,Menlo,monospace;font-size:.72rem;padding:.2rem 0}.debug-table-row.self{background:#5b89ff14;border-radius:.3rem;padding:.3rem}.replay-client{display:grid;grid-template-columns:260px 1fr;height:100%;width:100%;gap:1rem;padding:1rem}.replay-sidebar{border:1px solid #1f2638;border-radius:.75rem;padding:1rem;display:flex;flex-direction:column;gap:.5rem;background:#0c1224cc}.replay-sidebar h2{font-size:1rem;text-transform:uppercase;letter-spacing:.1em}.replay-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:.4rem}.replay-list button{text-align:left;border-radius:.5rem;border:1px solid #2b3146;padding:.5rem;background:transparent;color:inherit}.replay-list button.active{border-color:#5b89ff;background:#5b89ff1a}.replay-stage{border:1px solid #1b1f2b;border-radius:.75rem;overflow:hidden;position:relative;display:flex;flex-direction:column;background:#05070f}.replay-stage .pixi-stage{flex:1}.replay-controls{padding:.75rem;border-top:1px solid #1f2638;background:#05070fe6;display:flex;flex-direction:column;gap:.75rem}.playback-controls{display:flex;align-items:center;gap:.5rem}.playback-controls input[type=range]{flex:1}.replay-chat{border-top:1px solid #28304a;padding-top:.5rem}.replay-chat-log{max-height:180px;overflow-y:auto;display:flex;flex-direction:column;gap:.4rem}.replay-status{position:absolute;bottom:1rem;right:1rem;padding:.5rem .75rem;border-radius:.5rem;background:#0009}
