body {
    margin: 0;
    background: #000;
    color: #0ff;
    font-family: 'Courier New', monospace;
    overflow: hidden;
  }
  .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #0ff;
    border-radius: 50%;
    box-shadow: 0 0 4px #0ff;
    animation: driftStar 40s linear infinite;
  }
  @keyframes driftStar {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(50px, -30px); }
    100% { transform: translate(0, 0); }
  }
  .portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed #0ff;
    padding: 20px;
    cursor: pointer;
    z-index: 2;
  }
 
  .terminal-label-container {
    position: absolute;
    top: 40px;
    left: 40px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #00ff00;
    z-index: 3;
    cursor: pointer;
    white-space: nowrap;
  }
  .terminal-label span.full-hint {
    position: absolute;
    left: 0;
    top: 0;
    animation: hintCycle 20s infinite;
    opacity: 0;
  }
  .terminal-label span.static {
    visibility: hidden;
  }

  .terminal-label:hover {
    opacity: 0.6;
  }
  

  @keyframes hintCycle {
    0%, 40% { opacity: 0; }
    50%, 70% { opacity: 0.3; }
    80%, 100% { opacity: 0; }
  }
  .system-ruin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'VT323', monospace;
    font-size: 2rem;
    z-index: 9999;
    background: red;
    color: white;
    animation: blinkFailure 0.3s infinite alternate;
  }
  @keyframes blinkFailure {
    0% { background: red; color: white; }
    100% { background: white; color: red; }
  }
  .hidden-reboot {
    position: absolute;
    bottom: 40px;
    right: 50%;
    font-size: 14px;
    opacity: 0.1;
    cursor: pointer;
  }
  .hidden-reboot:hover {
    opacity: 0.6;
  }
  .terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }
  .terminal-window {
    width: 600px;
    height: 500px;
    background: black;
    border: 2px solid #00ff00;
    box-shadow: 0 0 40px #0ff5;
    display: flex;
    flex-direction: column;
    font-family: 'VT323', monospace;
    color: #00ff00;
  }
  .terminal-header {
    background: #003300;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
  }
  .terminal-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 16px;
  }
  .terminal-input {
    display: flex;
    padding: 10px;
  }
  .terminal-input span {
    margin-right: 5px;
  }
  .terminal-input input {
    flex: 1;
    background: black;
    border: none;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 16px;
    outline: none;
  }
  .close-btn {
    color: #00ff00;
    cursor: pointer;
    font-size: 18px;
  }

  .terminal-body img {
    width: 80%;
    max-width: 300px;
    height: auto;
    margin-top: 10px;
    border: 1px solid #00ff00;
    display: block;
  }


  .portal, .portal2, .portal3, .portal4 {
    width: 160px;
    height: 260px;
    border: 3px dashed #0ff;
    box-shadow: inset 0 0 30px #0ff5, 0 0 30px #0ff5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0ff;
    cursor: pointer;
    transition: 0.3s;
  }

.portal:hover {
border-color: magenta;
}

.absurd-text {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #0ff9;
    animation: floattext 6s ease-in-out infinite;
  }
