.terminals-list{display:grid;gap:20px;min-width:0}
.game-terminal{--term-bg:#142237;--term-chrome:#1b2b43;--term-line:#34465f;--term-fg:#edf4ff;--term-muted:#b5c6dd;--term-subtle:#9eafc6;min-width:0;overflow:clip;border:1px solid var(--term-line);border-radius:12px;color:var(--term-fg);background:var(--term-bg);color-scheme:dark}
html[data-theme=dark] .game-terminal{--term-bg:#0e1929;--term-chrome:#17253a;--term-line:#334358}
.game-terminal .term-head,.game-terminal .term-machine,.game-terminal .term-tools,.game-terminal .term-prompt,.game-terminal .term-prompt label,.game-terminal .terminal-filters{display:flex;align-items:center}
.game-terminal .term-head{justify-content:space-between;gap:12px;padding:12px 16px;background:var(--term-chrome);border-bottom:1px solid var(--term-line)}
.game-terminal .term-machine{min-width:0;gap:10px}.game-terminal h2{overflow-wrap:anywhere;font-size:16px;color:var(--term-fg);line-height:1.42}.game-terminal .term-machine small{display:block;font-size:12px;color:var(--term-muted)}
.game-terminal .term-glyph{display:grid;place-items:center;width:33px;height:33px;flex:none;border:1px solid #495d7c;border-radius:7px;color:#c5dafc}.game-terminal .term-glyph svg{width:18px;height:18px}
.game-terminal .term-tools{gap:6px;flex:none}.game-terminal .term-link-state{display:inline-flex;align-items:center;gap:6px;margin-right:6px;color:var(--term-muted);font-size:12px;white-space:nowrap}.game-terminal .term-link-state::before{content:'';width:7px;height:7px;border-radius:50%;background:#b5c4d7}.game-terminal [data-link=online]::before{background:#64e0b3}.game-terminal [data-link=offline]::before{background:#f5a68e}
.game-terminal .term-icon{display:grid;place-items:center;width:34px;height:34px;min-height:34px;margin:0;padding:0;border:1px solid transparent;border-radius:5px;color:var(--term-muted);background:transparent}.game-terminal .term-icon:hover{color:var(--term-fg);border-color:#566982;background:#2a3b53}.game-terminal .term-icon svg{width:16px;height:16px}
.game-terminal .terminal-filters{flex-wrap:wrap;gap:4px 18px;margin:0;padding:5px 16px;min-width:0;border:0;border-bottom:1px solid var(--term-line)}
.game-terminal .terminal-filters label{display:inline-flex;align-items:center;gap:6px;min-height:32px;font-size:12px;color:var(--term-muted);cursor:pointer}.game-terminal .terminal-filters input{width:14px;height:14px;margin:0;accent-color:#a3bfff}.game-terminal [data-filter-kind=player] input{accent-color:#7edfb9}.game-terminal [data-filter-kind=command] input{accent-color:#c2b3ff}
.game-terminal .terminal-stream{padding:12px 16px 18px;min-height:130px;max-height:clamp(180px,39vh,380px);overflow:auto;overscroll-behavior:contain;background:var(--term-bg);color:var(--term-fg);font:13px/1.65 'IBM Plex Mono',Consolas,'Microsoft YaHei UI',monospace;scrollbar-color:#526983 var(--term-bg)}
.game-terminal .term-event{display:grid;grid-template-columns:8ch 7.5ch minmax(0,1fr);column-gap:12px;align-items:baseline;padding:3px 0}.game-terminal .term-event time{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--term-subtle)}.game-terminal .term-kind{color:#bed4f0;font-size:12px}.game-terminal [data-kind=command] .term-kind{color:#d0c2ff}.game-terminal [data-kind=player] .term-kind{color:#9be5c6}
.game-terminal .term-lines{min-width:0}.game-terminal .term-line{white-space:pre-wrap;overflow-wrap:anywhere;min-height:1.4em}.game-terminal .term-line.is-command{color:#c8d8ff}.game-terminal .term-idle{margin:0;color:var(--term-subtle)}
.game-terminal .terminal-status{margin:0;padding:0 16px 9px;color:var(--term-muted);font-size:12px}.game-terminal .terminal-status:empty{display:none}
.game-terminal .term-prompt{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:9px 12px 9px 16px;background:var(--term-chrome);border-top:1px solid var(--term-line)}.game-terminal .term-prompt label{flex:1 1 90px;min-width:0;gap:8px;margin:0}.game-terminal .term-prompt input{width:100%;min-width:0;margin:0;padding:6px 3px;border:0;border-radius:3px;background:transparent;color:var(--term-fg);font:14px/1.5 'IBM Plex Mono',Consolas,'Microsoft YaHei UI',monospace;caret-color:#a7c9ff}.game-terminal .term-prompt input::placeholder{color:#a7b8cd}.game-terminal .term-caret{color:#a5d4ff;font:700 19px/1 Consolas,monospace}.game-terminal .term-prompt .btn.primary{min-height:36px;flex:none;padding:6px 10px;color:#eff5ff;background:#344e76;border:1px solid #60799f;border-radius:6px}.game-terminal .term-prompt .btn.primary:hover:enabled{background:#40618e}.game-terminal .term-prompt .btn:disabled{opacity:.75}.game-terminal .term-prompt .error{flex-basis:100%;margin:0;color:#ffbda9}.game-terminal .term-prompt .error:empty{display:none}
.game-terminal :focus-visible{outline:2px solid #9cc7ff;outline-offset:2px}
@media(max-width:560px){.game-terminal .term-head{gap:6px;padding:8px 11px}.game-terminal .term-tools{gap:1px}.game-terminal .term-icon{width:33px;height:38px}.game-terminal .term-link-state{margin-right:4px}.game-terminal .term-glyph{width:28px;height:28px}.game-terminal .term-machine{gap:7px}.game-terminal .terminal-filters{padding:2px 12px;gap:4px 12px}.game-terminal .terminal-filters label{min-height:36px}.game-terminal .terminal-stream{padding:7px 12px 12px;max-height:34vh}.game-terminal .term-event{grid-template-columns:8ch minmax(0,1fr);gap:0 10px;padding:5px 0}.game-terminal .term-lines{grid-column:1/-1}.game-terminal .term-prompt{padding:7px 9px 7px 12px}.game-terminal .term-prompt input{font-size:16px}.game-terminal .term-prompt .btn{min-height:40px}.game-terminal .term-prompt .btn .icon{display:none}}
