/* slava.exe interactive command line (assets/terminal.js) */
#terminal-body{max-height:440px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#2a3a5a #0d0d0d;padding-right:4px;}
#terminal-body::-webkit-scrollbar{width:8px;}
#terminal-body::-webkit-scrollbar-thumb{background:#2a3a5a;}
.term-input-line{display:flex;align-items:center;gap:8px;margin-top:4px;}
.term-ps{color:#4a9eff;font-weight:bold;flex:none;}
.term-input{
  flex:1;min-width:0;background:transparent;border:none;outline:none;padding:0;margin:0;
  color:#e8e8e8;caret-color:#4a9eff;font:inherit;font-family:'Courier New',monospace;font-size:.78rem;
}
.term-input::placeholder{color:#4a4a4a;font-style:italic;}
.xp-body{cursor:text;}
.term-link{color:#7fb8ff;text-decoration:none;border-bottom:1px dotted rgba(127,184,255,.5);}
.term-link:hover{color:#fff;border-bottom-color:#fff;}
@media(max-width:768px){
  #terminal-body{max-height:60vh;}
  .term-input{font-size:16px;} /* stops mobile browsers zooming into the field */
}
.term-ico{width:13px;height:13px;vertical-align:-2px;filter:brightness(1.6);}
#terminal-body .term-line{white-space:pre-wrap;word-break:break-word;}
#terminal-body .term-line.divider{white-space:nowrap;overflow:hidden;}

/* Game windows: DOOR.EXE ("door") and SHIT.EXE ("shit"). --ar = game aspect ratio, set per game in terminal.js */
.door-app{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;padding:12px;--ar:1550/900;}
.door-win{display:flex;flex-direction:column;width:min(96vw,calc((92vh - 26px) * var(--ar)));border:2px solid #003c7a;box-shadow:4px 4px 0 #000;background:#000;}
.door-win:fullscreen{width:100vw;height:100vh;border:0;}
.door-win .xp-btn{cursor:pointer;}
.door-ico{width:16px;height:16px;}
.door-frame{display:block;width:100%;aspect-ratio:var(--ar);border:0;background:#000;}
.door-win:fullscreen .door-frame{flex:1;aspect-ratio:auto;}
html.door-open,html.door-open body{overflow:hidden;}
@media(max-width:768px){
  .door-app{padding:0;}
  .door-win{width:100vw;height:100%;border:0;}
  .door-frame{flex:1;aspect-ratio:auto;}
}
