body {
  margin: 0;
  background: black;
  font-family: "Courier New", monospace;
  color: #00ffcc;
  overflow: hidden;
  transition: all 1.5s ease;
}

/* CRT GLOBAL */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  background: repeating-linear-gradient(
    to bottom,
    currentColor 0px,
    currentColor 1px,
    transparent 1px,
    transparent 4px
  );

  opacity: 0.10;
  z-index: 9999;
}

/* LOGIN */
#enterScreen {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, #1a0000, #000);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  color: #ff3c3c;
}

/* CRT LOGIN */
#enterScreen::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;

  background: repeating-linear-gradient(
    to bottom,
    rgba(255,0,0,0.08),
    rgba(255,0,0,0.08) 2px,
    transparent 2px,
    transparent 5px
  );

  animation: flicker 5s infinite;
  z-index: 10000;
}

/* WARNING POSIÇÕES */
.warningtopright { position: fixed; top: 20px; right: 20px; }
.warningtopleft { position: fixed; top: 20px; left: 20px; }
.warningbottomleft { position: fixed; bottom: 20px; left: 20px; }

.warningtopright,
.warningtopleft,
.warningbottomleft {
  color: red;
  font-size: 14px;
  animation: blink 0.1s infinite;
  opacity: 0.8;
  z-index: 10002;
  filter: drop-shadow(0 0 10px red);
}

/* KAJI */
.kaji {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: red;
  font-size: 14px;
  opacity: 0.8;
  z-index: 10002;
  filter: drop-shadow(0 0 10px orange);
}

/* LOGO */
.nervLogo {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  z-index: 10003;
  filter: drop-shadow(0 0 12px red);
  transition: 0.3s;
}

/* SCANLINE LOGIN */
.scanline {
  position: fixed;
  top: -20%;
  left: 0;
  width: 100%;
  height: 20%;
  pointer-events: none;
  z-index: 10001;

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 0, 0, 0.10),
    transparent
  );

  animation: scanlineMove 8s linear infinite;
}

/* TERMINAL */
.terminal {
  width: 520px;
  border: 2px solid #ff3c3c;
  padding: 20px;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
  background: rgba(0,0,0,0.9);
}

.header {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ff0000;
}

.log {
  font-size: 12px;
  margin-bottom: 20px;
  color: #ff6b6b;
}

/* LOGIN INPUT */
.login input {
  width: 100%;
  margin-bottom: 10px;
  background: black;
  border: 1px solid #ff3c3c;
  color: #ff3c3c;
  padding: 6px;
}

.login button {
  width: 100%;
  background: #ff0000;
  color: black;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* MAIN SITE */
#mainSite {
  display: none;
  opacity: 0;
  transition: opacity 1s ease;
  color: #00ff88;
  position: relative;
  z-index: 1;
}

/* SCANLINE MAIN */
#mainSite::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 0;
  width: 100%;
  height: 20%;

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 100, 0, 0.08),
    transparent
  );

  pointer-events: none;
  z-index: 9998;

  animation: scanlineMove 8s linear infinite;
}

/* =========================
   MAGI WINDOW (ALTERADO)
========================= */

.window {
  width: 800px;
  margin: 60px auto;
  padding: 20px;

  background: rgba(0,0,0,0.95);

  border: 2px solid #ff6600;

  box-shadow:
    0 0 10px #ff6600,
    inset 0 0 10px rgba(255,100,0,0.3);

  position: relative;
}

/* LINHAS TECNICAS */
.window::before,
.window::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: #ff6600;
  opacity: 0.4;
}

.window::before { top: 10px; }
.window::after { bottom: 10px; }

/* TEXTO */
h1 {
  text-align: center;
  color: #ff6600;
  text-shadow: 0 0 10px #ff6600;
}

/* MENU (PC STYLE) */
.menu {
  text-align: left;
  margin-top: 20px;
}

.menu a {
  display: block;
  margin: 5px 0;
  padding: 5px 10px;
  border: 1px solid #00ff88;
  color: #00ff88;
  text-decoration: none;
  width: fit-content;
}

.menu a:hover {
  background: #00ff88;
  color: black;
  box-shadow: 0 0 10px #00ff88;
}

/* CURSOR */
#systemText::after {
  content: "_";
  margin-left: 5px;
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ANIMAÇÕES */
@keyframes flicker {
  0%{opacity:0.92;}
  50%{opacity:1;}
  100%{opacity:0.93;}
}

@keyframes scanlineMove {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(600%); }
}

@keyframes blink {
  0%,80% { opacity:1; }
  90% { opacity:0; }
}

@keyframes shake {
  0% { transform: translateX(-50%) translate(0,0); }
  25% { transform: translateX(-50%) translate(2px,-2px); }
  50% { transform: translateX(-50%) translate(-2px,2px); }
  75% { transform: translateX(-50%) translate(2px,2px); }
  100% { transform: translateX(-50%) translate(0,0); }
}

/* BOOT */
#bootScreen {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: black;
  color: #00ffcc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.bootTerminal {
  width: 600px;
  font-size: 14px;
  line-height: 1.6;
  text-shadow: 0 0 8px #00ffcc;
}

#bgTest {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}