@font-face {
  font-family: 'Retron2000';
  src: url('Retron2000.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'TechNoir';
  src: url('TechNoir.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Technos';
  src: url('Technos.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  background: #050805; 
  background-repeat: repeat;
  color: #AAF140;
  font-family: 'Retron2000', monospace;
  font-size: 12px;
}

.screen {
  display: none;
  height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 25px;
  
  justify-content: center; /* centra horizontalmente la cuadrícula */
  align-content: center;   /* centra verticalmente dentro del contenedor si hay espacio */

}

button {
  background: transparent;
  color: #AAF140;
  border: 1px solid #AAF140;
  font-size: 18px;
  cursor: pointer;
}

button:hover {
  background: #AAF140;
  color: #AAF140;
}

input {
  background: black;
  color: #AAF140;
  border: 1px solid #AAF140;
  margin-bottom: 10px;
  text-align: center;
  font-size: 20px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.panel {
  border: 1px solid #AAF140;
  padding: 10px;
}

.atom {
  position: relative;
  height: 200px;
}

.atom-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #AAF140;
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================
   🔐 CODEPAD – RED ROBIN NEST
========================= */

.codepad {
  position: relative;
  width: 270px;
  min-height: 410px;
  padding: 24px;

  display: flex;             
  flex-direction: column;    
  align-items: center;      
  justify-content: center; 
  text-align: center;
  
  background: linear-gradient(
    180deg,
    rgba(10,15,10,0.95),
    rgba(5,8,5,0.98)
  );

  border: 1px solid #c9f140;

  box-shadow:
  0 0 14px rgba(154,255,0,0.25),
  inset 0 0 8px rgba(154,255,0,0.15);

  /* === NUEVO === */
  transform: scaleY(0);          /* empieza colapsado verticalmente */
  transform-origin: center;         /* se abre desde arriba */
  opacity: 0;                     /* invisible al inicio */
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Clase que activa la animación */
.codepad.open {
  transform: scaleY(1);  /* escala completa vertical */
  opacity: 1;            /* completamente visible */
}


/* Marco interno decorativo */
.codepad::after {
  content: "";
  position: absolute;
  inset: 6px;

  border: 1px solid rgba(170, 241, 64,0.4);

  pointer-events: none;
}

.codepad .hud-line {
  position: absolute;
  height: 2px;
  background: #AAF140;
  opacity: 0.6;
}

.codepad .hud-line.top {
  top: -12px;
  left: -10px;
  width: 80px;
}

.codepad .hud-line.bottom {
  bottom: -12px;
  right: -10px;
  width: 80px;
}

.codepad .hud-line {
  display: 2;
}

/* Rectángulos al lado de la línea superior */
.codepad .hud-line.top::before {
  content: "";
  position: absolute;
  width: 40px;                  /* ancho del rectángulo */
  height: 10px;                 /* alto del rectángulo */
  background: rgba(170, 241, 64,1); /* color verde limón semitransparente */
  top: -8px;                     /* ajusta verticalmente respecto a la línea */
  left: -0;                       /* cerca del borde izquierdo del codepad */
}


.codepad .hud-line.bottom::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 10px;
  background: rgba(170, 241, 64,1);
  bottom: -8px;
  right: 0;                      /* borde derecho */
}

.codepad .keypad {
  display: grid;
  grid-template-columns: repeat(3, 80px);  /* tres columnas iguales */
  gap: 4px;                               /* espacio entre botones */
  justify-content: center;                  /* centra la cuadrícula horizontalmente */
}

.codepad .keypad button.num {
   position: relative;
  font-family: 'TechNoir';
  background: linear-gradient(
    180deg,
    rgba(10,15,10,0.8),
    rgba(5,8,5,1)
    
  );
  
  border: 1px solid rgba(170, 241, 64,0.8);
  color: #AAF140;
  font-size: 20px;
  padding: 16px;
  
  width: 80px;   /* ancho del botón */
  height: 80px;  /* alto del botón */

  box-shadow:
    inset 0 0 6px rgba(170, 241, 64,0.25);

  letter-spacing: 1px;
  overflow: hidden;

}

.codepad .keypad button.num.highlight::before {
  content: "";
  position: absolute;
  inset: 12px;                      /* espacio desde los bordes del botón */
  background: rgba(170, 241, 64,0.09); /* color con poca opacidad */
  border-radius: 0px;              /* opcional: esquinas redondeadas */
  pointer-events: none;
}

position: relative;

.codepad .keypad button::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(170, 241, 64,0.3);
  pointer-events: none;
}

.codepad h1 {
  position: relative;
  font-family: 'TechNoir';
  font-size: 34px;
  color: #AAF140;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0.5;
  text-indent: 2px;
  font-weight: 400;
}

.codepad h1::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105%;   /* ancho del rectángulo */
  height: 1.7em; /* altura del rectángulo */
  background: rgba(170, 241, 64, 0.1);
  border-radius: 1px; /* esquinas ligeramente redondeadas */
  z-index: -1; /* que quede detrás del texto */
}

.codepad h1 span {
  display: inline-block;
  transform: translateX(1px); /* mueve solo el texto, rectángulo queda */
}

.codepad input {
  font-family: 'TechNoir', monospace;
  width: 242px; /* Ajusta este valor según lo angosto que quieras */
  max-width: 100%; /* Para que no se salga del codepad */
}

.codepad input::placeholder {
  font-family: 'TechNoir', monospace;
}

/* =========================
   🔓 BOTÓN DE HUELLA – DESPLIEGA CODEPAD
========================= */

/* Contenedor centrado */
#redrobin-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background: #050805; /* fondo oscuro */
}

/* PNG como botón */
@keyframes glowSmooth {
  0% {
    filter: drop-shadow(0 0 5px rgba(170,241,64,0.1))
            drop-shadow(0 0 10px rgba(170,241,64,0.05));
  }
  25% {
    filter: drop-shadow(0 0 6px rgba(170,241,64,0.12))
            drop-shadow(0 0 11px rgba(170,241,64,0.07));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(170,241,64,0.15))
            drop-shadow(0 0 12px rgba(170,241,64,0.1));
  }
  75% {
    filter: drop-shadow(0 0 6px rgba(170,241,64,0.12))
            drop-shadow(0 0 11px rgba(170,241,64,0.07));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(170,241,64,0.1))
            drop-shadow(0 0 10px rgba(170,241,64,0.05));
  }
}

#redrobin-btn {
  width: 150px;
  cursor: pointer;
  height: auto;
  display: block;

  /* Resplandor neón */
  filter:drop-shadow(0 0 5px rgba(170, 241, 64, 0.2))   /* más transparente */
    drop-shadow(0 0 10px rgba(170, 241, 64, 0.15)) 
    drop-shadow(0 0 15px rgba(170, 241, 64, 0.1));

  transition: transform 0.2s, filter 0.2s;
  animation: glowSmooth 3s infinite linear;
}

#redrobin-btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(170,241,64,0.3),
              0 0 40px rgba(170,241,64,0.2),
              0 0 60px rgba(170,241,64,0.1);
  pointer-events: none;
  animation: glowSmooth 3s infinite alternate linear;
}

/* Hover con efecto "resalta" */
#redrobin-btn:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px #AAF140)
          drop-shadow(0 0 20px #AAF140)
          drop-shadow(0 0 30px #AAF140);
}

/* Ocultamos el login hasta hacer click */
#login {
  display: none; 
}

#login.active {
  display: flex;
}


