:root {
  --bg: #050505;
  --yellow: #f5d300;
  --black: #000000;
  --text: #ffffff;
  --font-head: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

.tape-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.tape {
  position: absolute;
  left: -10%;
  width: 120%;
  background: var(--yellow);
  color: var(--black);
  padding: 15px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1.2rem;
  white-space: nowrap;
  border-top: 4px solid var(--black);
  border-bottom: 4px solid var(--black);
  user-select: none;
}

.tape-1 {
  top: 20%;
  transform: rotate(-5deg);
  opacity: 0.9;
}
.tape-1 .tape-text {
  animation: marqueeLeft 20s linear infinite;
}

.tape-2 {
  bottom: 20%;
  transform: rotate(3deg);
  z-index: 2;
  background: #000;
  color: var(--yellow);
  border-color: var(--yellow);
}
.tape-2 .tape-text {
  animation: marqueeRight 25s linear infinite reverse;
}

.tape-text {
  display: inline-block;
  padding-left: 100%;
  will-change: transform;
}

.content-box {
  position: relative;
  z-index: 10;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid #333;
  backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.icon-warning {
  font-size: 3rem;
  color: var(--yellow);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

h1 {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

p {
  color: #888;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  animation: loading 3s ease-out forwards;
}

.mono-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #555;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.btn-return {
  display: inline-block;
  text-decoration: none;
  color: var(--bg);
  background: #fff;
  padding: 12px 25px;
  font-family: var(--font-mono);
  font-weight: bold;
  border-radius: 4px;
  transition: 0.3s;
}
.btn-return:hover {
  background: var(--yellow);
  box-shadow: 0 0 15px var(--yellow);
}

.secret-key {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 9999;
  cursor: help;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.matrix-hint {
  font-size: 8px;
  font-family: monospace;
  color: transparent;
  transition: 0.1s;
}

.secret-key:hover {
  width: 60px;
  opacity: 1;
  background: #000;
  border-color: #0f0;
  box-shadow: 0 0 10px #0f0, inset 0 0 10px rgba(0, 255, 0, 0.2);

  animation: twitch 0.2s infinite;
}

.secret-key:hover .matrix-hint {
  color: #0f0;
}

@keyframes twitch {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

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

@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 78%;
  }
}

@media (max-width: 600px) {
  .tape {
    font-size: 0.9rem;
    padding: 10px 0;
  }
  h1 {
    font-size: 2rem;
  }
}
