/* SkyNet BBS 4919 — DOS terminal, CP437 box-drawing and IBM VGA-like mono.
 * No images, gradients, cards, browser-native-looking buttons or text shadows.
 * Uses an installed PxPlus IBM VGA font when available. No font files shipped.
 */
.fido-bbs-wrap,.fido-bbs-wrap *{box-sizing:border-box;font-family:'PxPlus IBM VGA8','Perfect DOS VGA 437','IBM VGA 8x16','Lucida Console',Consolas,'Courier New',monospace!important;font-variant-ligatures:none!important;text-shadow:none!important;letter-spacing:0!important}
.fido-bbs-wrap{position:absolute;inset:0;z-index:60;display:flex;flex-direction:column;min-width:0;min-height:0;background:#050a69;color:#dedede;font-size:clamp(10px,1.26vw,16px);line-height:1.13;border:0;border-radius:0;overflow:hidden}
.fido-bbs-wrap[hidden],.fido-bbs-prompt[hidden]{display:none!important}
.fido-bbs-top{flex:0 0 auto;background:#050a69;color:#ffff55;padding:6px 0 4px;white-space:pre;display:flex;justify-content:space-between;align-items:center;gap:8px;overflow-x:auto;border:0;border-radius:0}
.fido-bbs-headlink,.fido-bbs-btn{appearance:none;-webkit-appearance:none;background:transparent!important;color:#ffff55!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline-offset:0;padding:0!important;font-size:inherit!important;font-weight:normal!important;text-align:left!important;cursor:pointer!important;min-height:0;line-height:inherit!important;text-decoration:none}
.fido-bbs-btn:hover,.fido-bbs-btn:focus-visible,.fido-bbs-headlink:hover,.fido-bbs-headlink:focus-visible{background:#aaa!important;color:#050a69!important;outline:1px dashed #fff!important}
.fido-bbs-stage{flex:1;min-width:0;min-height:0;overflow:auto;scrollbar-color:#aaa #050a69;padding:8px 0 16px;white-space:pre;overflow-wrap:normal;outline:none;background:#050a69;color:#dedede;border:0;border-radius:0;tab-size:4}
.fido-bbs-stage .fido-bbs-line,.fido-bbs-nav,.fido-bbs-echo,.fido-bbs-chat{white-space:pre;line-height:1.13;margin:0;padding:0;border:0;background:transparent;overflow:visible}
.fido-bbs-stage .fido-bbs-line{min-height:1.13em}
.fido-bbs-headline{color:#ffff55;font-weight:normal;font-size:inherit;line-height:inherit;text-align:left;overflow:visible}
.fido-bbs-caption{color:#55ffff}.fido-bbs-muted{color:#aaa}.fido-bbs-info{color:#55ff55}.fido-bbs-alert{color:#ff5555}.fido-bbs-divider{color:#ffff55}
.fido-bbs-nav,.fido-bbs-echo,.fido-bbs-list{display:flex;flex-direction:column;align-items:flex-start;gap:0;}
.fido-bbs-nav .fido-bbs-btn,.fido-bbs-echo .fido-bbs-btn,.fido-bbs-list .fido-bbs-btn{display:block;white-space:pre;line-height:1.13;max-width:none;min-width:0;width:auto}
.fido-bbs-footer{flex:0 0 auto;min-height:0;background:#050a69;border:0;border-top:1px solid #fff;padding:6px 0;display:flex;justify-content:center;align-items:center;border-radius:0}
.fido-bbs-status{color:#aaa;font-size:inherit;margin-left:auto;white-space:pre}
.fido-bbs-prompt{display:flex;align-items:center;min-width:0;gap:0;white-space:pre;width:80ch}
.fido-bbs-prompt label{white-space:pre;color:#ffff55}
.fido-bbs-prompt input{background:#050a69;color:#fff;border:0;outline:0;border-radius:0;min-width:3ch;flex:1;font:inherit;caret-color:#fff;padding:0 4px;height:1.4em}
.fido-bbs-prompt input:focus{outline:0;border:0}
.fido-bbs-prompt .fido-bbs-btn{padding-left:8px!important}
.fido-bbs-chat{max-height:min(42vh,330px);overflow:auto;border:0;padding:0;scrollbar-color:#aaa #050a69}
.fido-bbs-chatline{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.2;padding:1px 0}
.fido-bbs-chatline .who{color:#55ffff}.fido-bbs-chatline.mine .who{color:#ffff55}
.fido-bbs-game{display:block;white-space:pre;margin:3px 0 5px;padding:0}
.fido-bbs-board{font-family:inherit;font-size:inherit;line-height:1.08;white-space:pre;margin:0;padding:0;color:#55ffff;user-select:none;tab-size:4;background:transparent}
.fido-bbs-board .fido-bbs-player{color:#ffff55}
.fido-bbs-gameinfo{max-width:none;display:block;margin:0;padding:0}
.fido-bbs-score{color:#55ff55;margin:2px 0}
.fido-bbs-touch{display:flex;flex-direction:row;gap:2ch;align-items:center;margin:5px 0}
.fido-bbs-touch .fido-bbs-btn{color:#ffff55}
.fido-bbs-scan{animation:fido-bbs-download 680ms steps(20,end) both}
@keyframes fido-bbs-download{0%{clip-path:inset(0 0 100% 0)}100%{clip-path:inset(0 0 0 0)}}
@media (prefers-reduced-motion:reduce){.fido-bbs-scan{animation:none}}
@media (max-width:640px){.fido-bbs-wrap{font-size:10px}.fido-bbs-stage{padding:7px 0}.fido-bbs-top{padding:4px 0 0}.fido-bbs-footer{padding:4px 0}.fido-bbs-status{display:none}}

/* Selected rows are DOS-style reverse-video highlights, still text-only. */
.fido-bbs-wrap .fido-bbs-btn.fido-bbs-selected{background:#aaa!important;color:#050a69!important;outline:0!important}
.fido-bbs-wrap .fido-bbs-row{min-width:0;max-width:none;white-space:pre!important}

/* Exactly eighty terminal columns; lines do not reflow like HTML paragraphs. */
.fido-bbs-wrap{align-items:center;overflow-x:auto;overflow-y:hidden;contain:layout}
.fido-bbs-top,.fido-bbs-stage,.fido-bbs-footer{width:80ch;min-width:80ch;max-width:80ch}
.fido-bbs-stage{flex:1 1 0;overflow-y:auto;overflow-x:hidden;white-space:pre;scrollbar-width:thin}
.fido-bbs-top{justify-content:flex-start;border-bottom:1px solid #aaa;color:#ffff55}
.fido-bbs-footer{justify-content:flex-end;border-top:1px solid #aaa}
.fido-bbs-modem{font:inherit!important;column-gap:1.75ch;justify-content:end}
.fido-bbs-modem .gt-port{font:inherit!important;min-width:4ch;color:#aaa}
.fido-bbs-modem .gt-modem-led{font:inherit!important;min-width:2ch}
.fido-bbs-prompt{display:flex;margin-top:1em;font:inherit;white-space:pre}
.fido-bbs-prompt[hidden]{display:none}
.fido-bbs-prompt input{font:inherit;height:1.15em}
.fido-bbs-help{position:absolute;z-index:7;inset:0;width:80ch;max-height:none;height:100%;overflow:auto;background:#050a69;color:#ffff55;font:inherit;line-height:1.28;white-space:pre;margin:0;padding:0;box-shadow:none;border:0}
.fido-bbs-help[hidden]{display:none}
.fido-bbs-game{max-width:80ch}
.fido-bbs-board{line-height:1.04}
.fido-bbs-wrap .fido-bbs-selected{background:#aaa!important;color:#050a69!important}

/* 4918: keyboard-only DOS terminal. The mouse pointer remains visible. */
.fido-bbs-wrap,.fido-bbs-wrap * {cursor:default!important;}
.fido-bbs-wrap .fido-bbs-btn {pointer-events:none!important;cursor:default!important;}
.fido-bbs-wrap .fido-bbs-btn:hover {background:transparent!important;color:inherit!important;outline:0!important;}
.fido-bbs-wrap .fido-bbs-selected,.fido-bbs-wrap .fido-bbs-selected:hover {background:#aaa!important;color:#050a69!important;}
.fido-bbs-wrap .fido-bbs-prompt input {pointer-events:none!important;}
.fido-bbs-wrap .fido-bbs-new-blink {color:#ffff55;animation:fido-bbs-flash 1s steps(1,end) infinite;}
@keyframes fido-bbs-flash {50%{visibility:hidden}}
@keyframes fido-bbs-waiting {0%{content:"."} 33%{content:".."} 66%{content:"..."} }
.fido-bbs-wrap .fido-bbs-wait::after {content:".";animation:fido-bbs-waiting .9s steps(1,end) infinite;}
.fido-bbs-wrap .fido-bbs-globe {color:#55ffff;}
.fido-bbs-wrap .fido-bbs-chat-screen {display:flex;flex-direction:column;min-height:0;height:min(60vh,530px);width:80ch;max-width:80ch;}
.fido-bbs-wrap .fido-bbs-chat {min-height:5em;max-height:none;flex:1 1 0;overflow-y:auto;overflow-x:hidden;white-space:pre;scrollbar-width:thin;}
.fido-bbs-wrap .fido-bbs-chatline{white-space:pre;overflow-wrap:normal;line-height:1.13;padding:0;}
.fido-bbs-wrap .fido-bbs-chat-screen .fido-bbs-prompt{width:78ch;margin:.4em 0;flex:0 0 auto;}
.fido-bbs-wrap .fido-bbs-chat-screen>.fido-bbs-line{flex:0 0 auto;}
.fido-bbs-wrap .fido-bbs-board {line-height:1.11;}
@media (prefers-reduced-motion: reduce){.fido-bbs-wrap .fido-bbs-new-blink,.fido-bbs-wrap .fido-bbs-wait::after{animation:none}}

/* 4919: no outer scrolling in games or chat. Every piece has a fixed DOS cell. */
.fido-bbs-wrap .fido-bbs-stage[data-mode="snake"],
.fido-bbs-wrap .fido-bbs-stage[data-mode="tetris"],
.fido-bbs-wrap .fido-bbs-stage[data-mode="chat"]{
  display:flex;flex-direction:column;overflow:hidden!important;padding:0!important;
}
.fido-bbs-wrap .fido-bbs-stage[data-mode="snake"]>.fido-bbs-line,
.fido-bbs-wrap .fido-bbs-stage[data-mode="tetris"]>.fido-bbs-line{
  flex:0 0 auto;
}
.fido-bbs-wrap .fido-bbs-game-region{
  flex:1 1 0;min-height:0;max-height:100%;width:100%;display:flex;
  justify-content:center;align-items:flex-start;overflow:hidden;
}
.fido-bbs-wrap .fido-bbs-game-region>.fido-bbs-board{
  flex:0 0 auto;max-width:100%;font-variant-ligatures:none!important;
  line-height:1.04!important;white-space:pre!important;margin:0!important;
  overflow:visible!important;
}
/* Chat fixed at eighty columns: fixed header/input/help; log alone scrolls. */
.fido-bbs-wrap .fido-bbs-stage[data-mode="chat"] .fido-bbs-chat-screen{
  display:flex;flex-direction:column;flex:1 1 0;height:100%;max-height:100%;
  min-height:0;width:80ch;max-width:80ch;overflow:hidden;
}
.fido-bbs-wrap .fido-bbs-chat-bay{
  display:grid;grid-template-columns:1ch minmax(0,1fr) 1ch;
  flex:1 1 0;min-height:0;max-height:100%;overflow:hidden;width:80ch;
}
.fido-bbs-wrap .fido-bbs-chat-wall{
  font:inherit!important;line-height:1.13!important;white-space:pre!important;
  margin:0!important;padding:0!important;overflow:hidden!important;min-height:0;
  color:#ffff55;
}
.fido-bbs-wrap .fido-bbs-chat-bay>.fido-bbs-chat{
  flex:none;min-height:0;max-height:none;height:100%;width:100%;overflow-x:hidden!important;
  overflow-y:auto!important;scrollbar-width:thin;padding:0!important;margin:0!important;
}
.fido-bbs-wrap .fido-bbs-chat-entry{
  display:flex;flex:0 0 auto;align-items:center;width:80ch;min-height:1.2em;
  white-space:pre;line-height:1.13;overflow:hidden;
}
.fido-bbs-wrap .fido-bbs-chat-edge{width:1ch;flex:0 0 1ch;color:#ffff55;}
.fido-bbs-wrap .fido-bbs-chat-entry>.fido-bbs-prompt{
  flex:0 0 78ch;width:78ch;min-width:78ch;max-width:78ch;
  margin:0!important;padding:0!important;gap:0;overflow:hidden;
}
.fido-bbs-wrap .fido-bbs-chat-entry>.fido-bbs-prompt input{
  flex:1 1 0;min-width:0;max-width:100%;
}
.fido-bbs-wrap .fido-bbs-chat-screen>.fido-bbs-line{flex:0 0 auto;}

/* 4921 */
.fido-bbs-wrap .fido-bbs-logo-title{color:#fff}
.fido-bbs-wrap .fido-bbs-welcome-greeting{color:#55ffff;text-align:center;animation:bbs-greeting .65s linear both}
.fido-bbs-wrap .fido-bbs-logo-rise{animation:bbs-rise .85s ease-out both}
@keyframes bbs-greeting{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes bbs-rise{from{transform:translateY(50vh)}to{transform:translateY(0)}}
.fido-bbs-wrap .fido-bbs-stage[data-mode="welcome"]{overflow:hidden}
.fido-bbs-wrap .fido-bbs-apple{color:#ff5555;display:inline-block;width:1ch;position:relative;font-size:inherit;color:transparent}
.fido-bbs-wrap .fido-bbs-apple::after{position:absolute;inset:0;color:#ff5555;content:'@';animation:bbs-apple .6s steps(1,end) infinite}
@keyframes bbs-apple{0%{content:'o'}33%{content:'O'}66%{content:'@'}}
.fido-bbs-wrap .fido-bbs-tetris-block{font:inherit}
.fido-bbs-wrap .fido-bbs-chat-bay>.fido-bbs-chat{scrollbar-width:none}
.fido-bbs-wrap .fido-bbs-chat-bay>.fido-bbs-chat::-webkit-scrollbar{display:none}
@media(prefers-reduced-motion:reduce){.fido-bbs-wrap .fido-bbs-welcome-greeting,.fido-bbs-wrap .fido-bbs-logo-rise,.fido-bbs-wrap .fido-bbs-apple::after{animation:none}}

.fido-bbs-wrap .fido-bbs-apple{color:#ff5555;display:inline;width:auto}
.fido-bbs-wrap .fido-bbs-apple::after{content:none;animation:none}

/* 4922: stable board width and full 80-column message header */
.fido-bbs-wrap .fido-bbs-stage[data-mode="message"]{scrollbar-width:none}
.fido-bbs-wrap .fido-bbs-stage[data-mode="message"]::-webkit-scrollbar{display:none}
.fido-bbs-wrap .fido-bbs-stage[data-mode="tetris"] .fido-bbs-board{width:22ch;min-width:22ch}
.fido-bbs-wrap .fido-bbs-tetris-status{display:block;width:max-content;position:relative;left:50%;transform:translateX(-50%);white-space:pre;min-height:1.04em}

/* 4937: fixed scrolling inside echo/area lists, full-screen help, CP866 header */
.fido-bbs-wrap .fido-bbs-stage[data-mode="areas"],
.fido-bbs-wrap .fido-bbs-stage[data-mode="echo"]{display:flex;flex-direction:column;overflow:hidden!important;padding:0!important;}
.fido-bbs-wrap .fido-bbs-stage[data-mode="areas"]>.fido-bbs-line,
.fido-bbs-wrap .fido-bbs-stage[data-mode="echo"]>.fido-bbs-line,
.fido-bbs-wrap .fido-bbs-stage[data-mode="areas"]>.fido-bbs-nav,
.fido-bbs-wrap .fido-bbs-stage[data-mode="echo"]>.fido-bbs-nav{flex:0 0 auto;}
.fido-bbs-wrap .fido-bbs-stage[data-mode="areas"]>.fido-bbs-list,
.fido-bbs-wrap .fido-bbs-stage[data-mode="echo"]>.fido-bbs-list{flex:1 1 0;min-height:0;max-height:100%;overflow-y:auto;overflow-x:hidden;width:80ch;scrollbar-width:thin;}
.fido-bbs-wrap .fido-bbs-stage[data-mode="areas"]>.fido-bbs-list::-webkit-scrollbar,
.fido-bbs-wrap .fido-bbs-stage[data-mode="echo"]>.fido-bbs-list::-webkit-scrollbar{width:8px;}
.fido-bbs-wrap .fido-bbs-stage[data-mode="areas"]>.fido-bbs-list .fido-bbs-btn,
.fido-bbs-wrap .fido-bbs-stage[data-mode="echo"]>.fido-bbs-list .fido-bbs-btn{width:auto;max-width:none;}
