@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap');

@font-face {
  font-family: 'Humane';
  src: url('fonts/Humane-Regular.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Humane', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px,
    transparent 4px
  );
  background-blend-mode: lighten;
  animation: glitch-flicker 7.5s steps(1, end) infinite;
}

@keyframes glitch-flicker {
  0%, 3%, 5%, 8%, 70%, 72% { opacity: 0.18; }
  10%, 74%, 100% { opacity: 0; }
}

main {
  padding: 2rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.header-block h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 0 0 0.25rem 0;
}

.sub {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 1rem;
}

.label {
  font-size: 0.75rem;
  color: #777;
  text-align: center;
  letter-spacing: 0.08em;
}

.nav-block a {
  display: block;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-family: 'Humane', sans-serif;
  padding: 0.9rem 1.2rem;
  margin: 0.5rem 0;
  font-weight: 500;
  border-left: 4px solid #fff;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  text-align: left;
}
.nav-block a:hover {
  background: #222;
  border-left-color: #ccc;
}
.nav-block a .prefix {
  font-weight: 700;
  margin-right: 0.4em;
}

.qr-block {
  margin-top: 2rem;
  text-align: center;
}
.qr-block img {
  width: 100px;
  margin: 0 auto 1rem;
}
#secret-input {
  margin-top: 1rem;
  text-align: center;
}
#secret-phrase {
  background: #111;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  padding: 0.6rem 1rem;
  border: none;
  border-left: 4px solid #fff;
  font-size: 0.9rem;
  width: 80%;
  max-width: 300px;
}

footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #777;
  border-top: 1px solid #222;
  padding-top: 1rem;
  font-family: 'IBM Plex Mono', monospace;
}
#tap-zone {
  position: fixed;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  z-index: 10000;
}
.hidden {
  display: none;
}
body.crt {
  font-family: 'Humane', sans-serif;
  color: #00ff9c;
  background-color: #000;
  text-align: center;
  padding: 2rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.blacksite-nav ul {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.blacksite-nav li {
  margin: 1rem 0;
}

.blacksite-nav a {
  color: #00ff9c;
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.blacksite-nav a:hover {
  color: #ff3cf4;
}

.back-link {
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

h1.glitch {
  font-size: 3rem;
  letter-spacing: 0.06em;
}
/* Flicker animation for CRT vibe */
@keyframes crtFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.7;
  }
}

/* Apply flicker to entire body */
body.crt {
  animation: crtFlicker 2.75s infinite;
}
h1.glitch {
  opacity: 0;
  animation: glitchIn 0.6s forwards 0.75s, crtFlicker 3s infinite;
}

 @keyframes glitchIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
