/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}:root{font-family:Noto Sans Mono,Cascadia Mono,Lucida Console,DejaVu Sans Mono,monospace;color:#82b38d;background:#030605;font-synthesis:none;color-scheme:dark;--line:#1a3022;--muted:#52745b;--green:#a1d3a9}*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding:clamp(14px,4vw,64px);background:radial-gradient(ellipse at 45% 50%,#10201766,transparent 70%),#030605}.ambient{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;background:linear-gradient(120deg,transparent 50%,#21372810);box-shadow:inset 0 0 180px 50px #0008}.monitor{position:relative;width:min(1320px,100%);margin:auto;border:1px solid #25392b;border-radius:5px;background:#070d09;box-shadow:0 30px 100px #000,0 0 70px #30683b10,inset 0 0 24px #000;overflow:hidden}.monitor:after{content:"";position:absolute;z-index:3;top:0;right:0;bottom:0;left:0;pointer-events:none;border-radius:5px;background:repeating-linear-gradient(0deg,#00000018 0px,#00000018 1px,transparent 1px,transparent 3px);box-shadow:inset 0 0 100px 15px #0005}.no-crt .monitor:after{display:none}.no-crt .xterm{text-shadow:none}.masthead{display:flex;align-items:center;justify-content:space-between;padding:20px 25px;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:1.5px;background:#0c150f}.identity,.header-right{display:flex;align-items:center;gap:13px}.lamp{width:6px;height:6px;background:#89c898;box-shadow:0 0 12px #82bf8a;border-radius:50%}.muted,.era{color:var(--muted)}.header-right{gap:30px}#connection{font-size:9px;color:var(--green)}.screen{display:grid;grid-template-columns:minmax(0,1fr) 225px;min-height:570px;height:min(72vh,790px)}.console{padding:22px 28px 15px;display:flex;flex-direction:column;min-width:0;min-height:0}.session-bar{display:flex;align-items:center;gap:25px;font-size:9px;color:var(--muted);letter-spacing:1.3px;margin-bottom:26px}.session-bar button{margin-left:auto}button{font:inherit;color:#82b38d;cursor:pointer;background:none;border:0;padding:7px 0;letter-spacing:1px}button:hover,button:focus-visible{color:#c0e8c7;outline:1px solid #48644e;outline-offset:4px}button:disabled{cursor:wait;opacity:.5}#skip{font-size:9px;white-space:nowrap}#terminal{flex:1;min-height:0;overflow:hidden}.xterm{padding-right:2px;text-shadow:0 0 5px #75b58325}.xterm-viewport{scrollbar-width:thin;scrollbar-color:#2e4d36 #070d09}.xterm .xterm-screen{position:relative}#command-form{display:flex;align-items:center;gap:9px;padding-top:17px;margin-top:12px;border-top:1px solid #16271b;font-size:13px;min-height:48px}#prompt{color:#a1d3a9;white-space:nowrap;max-width:52%;overflow:hidden;text-overflow:ellipsis}#command{width:0;flex:1;min-width:0;background:transparent;border:0;outline:none;color:#b3dab9;font:inherit;caret-color:#b5e2bf;padding:4px 0;border-radius:0}#command:disabled{opacity:.4}#command-form button{font-size:19px;padding:1px 6px}.command-hint{display:flex;justify-content:space-between;font-size:9px;color:#43634b;gap:12px;margin-top:9px;line-height:1.5}.command-hint span{white-space:nowrap}#narrating{min-height:13px;font-size:9px;color:#52765b;letter-spacing:1px;margin-top:5px}.relay{border-left:1px solid var(--line);padding:22px 21px;display:flex;flex-direction:column;background:#09120c55;overflow:auto}.relay-title{display:flex;justify-content:space-between;align-items:center;color:#6b9775;font-size:9px;letter-spacing:1.5px}.tiny-lamp{width:4px;height:4px;background:#456d4e;border-radius:50%}.signal-count{display:flex;align-items:center;gap:14px;margin:27px 0 23px}#signal-count{font-size:44px;letter-spacing:-3px;font-weight:300;color:#a6c8ad}.signal-count>span:last-child{font-size:8px;line-height:1.9;letter-spacing:1px;color:#577c61}.frequency{padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:9px;font-size:8px;letter-spacing:1px;color:#45694e}.frequency strong{font-size:10px;font-weight:400;color:#7fa889}#people{margin:18px 0;font-size:10px;line-height:1.7;max-height:210px;overflow:auto}.empty{color:#486750;font-size:9px}.person{display:block;width:100%;text-align:left;margin-bottom:9px;padding:3px 0;letter-spacing:0;overflow-wrap:anywhere}.person span{display:block;color:#45664e;font-size:8px}.person:before{content:"· ";color:#88bb93}.person.away:before{color:#364a3b}.relay-note{margin-top:auto;color:#4f7359;font-size:9px;line-height:1.8}.relay-note span{color:#92b59b}.wave{font-size:14px;letter-spacing:3px;color:#32523c;overflow:hidden;white-space:nowrap;margin-top:26px}footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:13px 25px;font-size:8px;letter-spacing:1.3px;color:#608268}.fiction span{color:#3f5a47}.switches{display:flex;gap:24px}.switches button{font-size:8px;color:#6a8f73}.outside-label{display:flex;justify-content:space-between;width:min(1320px,100%);margin:19px auto 0;font-size:7px;letter-spacing:1.7px;color:#354e3c;position:relative}.glitch .screen{animation:glitch .22s steps(2) 2}@keyframes glitch{50%{transform:translate(2px);filter:brightness(1.35)}}@media(min-width:1600px){.screen{height:72vh}}@media(max-width:850px){body{padding:16px}.screen{grid-template-columns:minmax(0,1fr) 175px;min-height:500px}.console{padding:19px}.relay{padding:19px 15px}.masthead{padding:17px 19px}.outside-label span:last-child{display:none}.header-right{gap:15px}.identity .muted{display:none}}@media(max-width:600px){body{padding:0;justify-content:flex-start}.monitor{border:0;border-radius:0;height:100dvh;display:flex;flex-direction:column}.masthead{padding:15px 16px;font-size:10px}.era{font-size:8px}.screen{display:flex;flex-direction:column;min-height:0;height:auto;flex:1}.console{padding:16px 15px 13px;flex:1;min-height:0}.session-bar{margin-bottom:15px;gap:15px}.relay{border-left:0;border-top:1px solid var(--line);padding:10px 15px;display:grid;grid-template-columns:1fr auto;gap:5px 16px;max-height:95px;min-height:65px;overflow:auto}.relay-title{font-size:8px;grid-column:1}.signal-count{margin:0;gap:7px;grid-column:2;grid-row:1 / 3}#signal-count{font-size:25px;letter-spacing:-1px}.signal-count>span:last-child{font-size:6px}.frequency,.relay-note,.wave{display:none}#people{margin:0;display:flex;gap:13px;font-size:8px;overflow:auto;max-height:36px;grid-column:1;grid-row:2}.person{margin:0;width:auto;white-space:nowrap;font-size:9px}.person span{display:none}.empty{margin:0;font-size:8px}footer{padding:9px 15px}.fiction span{display:none}.switches{gap:17px}.outside-label{display:none}#command-form{font-size:12px;gap:6px}.command-hint{font-size:8px}.command-hint span{display:none}}@media(prefers-reduced-motion:reduce){.glitch .screen{animation:none}.monitor:after{background:none}.xterm{text-shadow:none}}.identity-gate{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at center,#0d1a12f5,#020403fa 72%)}.identity-gate[hidden]{display:none}.identity-panel{width:min(460px,100%);padding:clamp(22px,6vw,42px);border:1px solid #294130;background:#07100b;box-shadow:0 0 64px #182d1d80,inset 0 0 28px #000;border-radius:3px;color:#a1d3a9}.gate-header{display:flex;align-items:center;gap:10px;color:#769c7e;font-size:9px;letter-spacing:1.5px}.gate-rule{height:1px;margin:21px 0;background:linear-gradient(90deg,#56775a,#263e2b 75%,transparent)}.gate-code{font-size:9px;letter-spacing:1.2px;color:#55765d}.identity-panel h1{margin:25px 0 9px;font-size:clamp(20px,5vw,27px);font-weight:400;letter-spacing:.5px}.gate-prompt{color:#89a98f;font-size:12px;line-height:1.7}.identity-panel form{display:grid;gap:10px;margin-top:26px}.identity-panel label{font-size:9px;letter-spacing:1.3px;color:#63836b}.identity-panel input{width:100%;padding:12px 11px;border:1px solid #294130;border-radius:2px;outline:none;background:#030805;color:#c0e3c7;font:inherit;font-size:16px}.identity-panel input:focus{border-color:#84ba8c;box-shadow:0 0 0 2px #78a98430}.identity-panel form button{margin-top:5px;padding:12px;text-align:left;border:1px solid #35523b;color:#a1d3a9;font-size:10px;letter-spacing:1.1px}.identity-panel form button span{float:right}.identity-panel form button:hover,.identity-panel form button:focus-visible{background:#102016}.identity-panel form button:disabled{opacity:.55;cursor:wait}#gate-error{min-height:14px;margin:0;color:#cc997b;font-size:10px}.gate-note{margin:22px 0 0;color:#526e58;font-size:9px;line-height:1.7;letter-spacing:.2px}
