#welcome h1,
.msg {
  text-transform: uppercase;
}
#ProgBar,
#welcome,
.glitch-text {
  position: relative;
}
body {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}
#HackerTyper {
  position: fixed;
  top: 48px;
  bottom: 240px;
  padding: 16px 20px;
  color: #00ff41;
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.65;
  transition: right 0.3s;
  scrollbar-width: none;
  width: max-content;
}
#scan,
.msg,
.terminal-title {
  font-family: monospace;
}
#HackerTyper::-webkit-scrollbar {
  display: none;
}
#HackerTyper.pane-open {
  right: var(--pane-width);
}
.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #00ff41;
  vertical-align: text-bottom;
  animation: 1s step-end infinite blink;
}
#terminal-2,
.terminalbody {
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
  pointer-events: none;
  background: #080808;
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.08);
}
#welcome {
  margin-top: 250px;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.8s;
}
#welcome.hidden {
  opacity: 0;
  pointer-events: none;
}
#welcome h1 {
  font-family: VT323, monospace;
  font-size: clamp(36px, 7vw, 72px);
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.15), 0 0 60px rgba(0, 255, 65, 0.15);
  margin-bottom: 16px;
  animation: 1s forwards glitchIn;
}
#welcome p {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(14px, 2.5vw, 18px);
  opacity: 0;
  animation: 1.5s 0.5s forwards fadeUp;
}
@keyframes glitchIn {
  0% {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    filter: blur(4px);
  }
  60% {
    transform: translateY(3px) scale(1.01);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes fadeUp {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
}
.glitch-text {
  animation: 4s infinite glitch;
}
.glitch-text::after,
.glitch-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.glitch-text::before {
  animation: 3s infinite glitchTop;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  text-shadow: -2px 0 rgba(255, 0, 0, 0.7);
}
.glitch-text::after {
  animation: 3s infinite glitchBottom;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  text-shadow: 2px 0 rgba(0, 255, 255, 0.7);
}
@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}
@keyframes glitchTop {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-2px);
  }
  40%,
  80% {
    transform: translateX(2px);
  }
}
@keyframes glitchBottom {
  0%,
  100% {
    transform: translateX(0);
  }
  25%,
  75% {
    transform: translateX(2px);
  }
  50% {
    transform: translateX(-2px);
  }
}
#terminalprogress {
  display: flex;
  position: fixed;
  flex-direction: column;
  top: 70px;
  width: 380px;
  gap: 12px;
  pointer-events: none;
  z-index: 19;
  right: 300px;
}
.terminalbody {
  border: 1px solid #00a729;
  border-radius: 2px;
  overflow: hidden;
}
.terminalbody.appear {
  display: block;
  height: 213px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.terminal-titlebar {
  display: flex;
  background: #0c1a0c;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid #00aa2a;
}
.terminal-title {
  color: #00df47;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}
.terminal-button {
  display: flex;
  gap: 4px;
}
.terminal-body {
  color: #00ff41;
  padding: 8px 10px;
  min-height: 70px;
}
.commandline {
  color: #0b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.6;
}
.commandline.done {
  color: #00df47;
}
.progressline {
  margin-top: 6px;
  width: 100%;
  height: 12px;
  background: #111;
  border: 1px solid #00882a;
  border-radius: 2px;
  overflow: hidden;
}
.progressfill {
  width: 0%;
  height: 100%;
  background: #00df47;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
  transition: width 0.3s;
}
.progresspercent {
  margin-top: 2px;
  text-align: right;
  font-size: 10px;
  color: #0a3;
}
#terminal-2 {
  margin-top: 30px;
  visibility: hidden;
  border: 1px solid #00a729;
  border-radius: 2px;
}
#terminal-2.show {
  opacity: 1;
  visibility: visible;
}
#scan {
  color: #0b3;
  font-size: 11px;
  padding: 8px;
}
.msg {
  font-weight: 700;
  font-size: 12px;
  padding-top: 8px;
  background: red;
  box-shadow: 0 0 30px red;
  text-shadow: 0 0 20px #fff;
  color: #fff;
  width: 55px;
  height: 30px;
  position: absolute;
  left: 50%;
  margin-left: -70px;
  top: 50%;
  margin-top: 120px;
  text-align: center;
  min-width: 130px;
  animation-name: blink;
  animation-duration: 0.6s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
}
@keyframes blink {
  0%,
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
#terminalprogress:not(.pane-shifted) {
  right: 340px;
}
#ProgStatus {
  text-align: left;
  font-size: 13px;
}
#ProgBar {
  width: 240px;
  height: 12px;
  border: 1px solid #00882a;
  border-radius: 2px;
  margin: auto;
  overflow-x: hidden;
}
#innerProgBar {
  position: absolute;
  left: 0;
  height: 100%;
  background-color: #00df47;
}
@media (max-width: 900px) {
  #terminalprogress {
    display: none;
  }
}
@media (min-width: 901px) and (max-width: 1200px) {
  #terminalprogress {
    width: 230px;
    right: 290px;
  }
}
