/* ============================================================
   Vault167 :: Shared Terminal Theme
   Used by: landing (/), links (/links), V Rising status (/status)
   ============================================================ */

/* --- Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

/* --- Base / background --- */
body {
  font-family: 'VT323', monospace;
  color: #33ff77;
  background:
    url('https://media1.tenor.com/m/85XUO_-ov-0AAAAd/fallout-on-prime-fallout.gif')
    center / cover fixed no-repeat,
    #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-shadow: 0 0 6px rgba(51, 255, 119, 0.7);
}

/* Dim/vignette overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 20, 8, 0.55) 0%,
    rgba(0, 6, 2, 0.93) 100%
  );
}

/* CRT scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(
    rgba(0, 0, 0, 0) 0 2px,
    rgba(0, 25, 8, 0.45) 2px 4px
  );
}

/* --- Animations --- */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92%      { opacity: 1; }
  93%      { opacity: 0.82; }
  94%      { opacity: 1; }
  97%      { opacity: 0.9; }
  98%      { opacity: 1; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* --- Terminal container (shared shell) --- */
.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  animation: flicker 5s infinite;
}

.term {
  border: 1px solid #2bff77;
  border-radius: 6px;
  padding: 22px;
  background: rgba(0, 12, 4, 0.75);
  box-shadow:
    0 0 18px rgba(43, 255, 119, 0.35),
    inset 0 0 40px rgba(0, 40, 15, 0.5);
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.7rem, 3vw, 1.5rem);
  white-space: nowrap;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #1c9a4a;
  padding-bottom: 10px;
  margin-bottom: 16px;
  color: #5fff9f;
}

.foot {
  margin-top: 18px;
  font-size: clamp(0.85rem, 2.8vw, 1.15rem);
  color: #1c9a4a;
  letter-spacing: 0.03em;
}

/* --- Common link types --- */
.back {
  font-size: clamp(0.85rem, 2.8vw, 1.1rem);
  color: #2bd46a;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}
.back:hover {
  color: #7dffb0;
  text-shadow: 0 0 8px rgba(125, 255, 176, 0.7);
}
