@font-face {
    font-family: "Golos Text";
    src: url(/fonts/GolosText-Bold.ttf);
    font-weight: 700;
  }
  @font-face {
    font-family: Inter;
    src: url(/fonts/Inter_18pt-SemiBold.ttf);
    font-weight: 600;
  }
  @font-face {
    font-family: "PT Mono";
    src: url(/fonts/PTMono-Regular.ttf);
  }
  * {
    box-sizing: border-box;
  }
  html,
  body {
    margin: 0;
    min-height: 100%;
  }
  body {
    font-family: "PT Mono", monospace;
    background: #020403;
    color: #39ff14;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  #rain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
  }
  .scan {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.18) 0 2px,
      transparent 2px 4px
    );
  }
  .wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    padding: 40px 64px;
    align-items: stretch;
  }
  .term {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 20px;
    line-height: 1.55;
  }
  .term p {
    margin: 0 0 14px;
  }
  .term .sys {
    color: #7ddc6f;
  }
  .term .me {
    color: #ffffff;
  }
  .term .smith {
    color: #ff2bd6;
    text-shadow: 0 0 14px rgba(255, 43, 214, 0.5);
  }
  .term .smith::before {
    content: "Агент Лидочка: ";
    color: #ffffff;
  }
  .term .me::before {
    content: "> ";
    color: #39ff14;
  }
  .term .sys::before {
    content: "> ";
  }
  .line {
    opacity: 0;
    animation: show 0.01s linear forwards;
  }
  .line:nth-child(1) {
    animation-delay: 0.2s;
  }
  .line:nth-child(2) {
    animation-delay: 0.9s;
  }
  .line:nth-child(3) {
    animation-delay: 1.7s;
  }
  .line:nth-child(4) {
    animation-delay: 2.6s;
  }
  .line:nth-child(5) {
    animation-delay: 3.6s;
  }
  .line:nth-child(6) {
    animation-delay: 4.6s;
  }
  .line:nth-child(7) {
    animation-delay: 5.4s;
  }
  .line:nth-child(8) {
    animation-delay: 6.2s;
  }
  @keyframes show {
    to {
      opacity: 1;
    }
  }
  .cursor::after {
    content: "_";
    animation: blink 1s steps(2) infinite;
  }
  @keyframes blink {
    50% {
      opacity: 0;
    }
  }
  .side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    border-left: 2px dashed rgba(57, 255, 20, 0.35);
    padding-left: 48px;
  }
  h1 {
    font-family: "Golos Text", sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
  }
  h1 em {
    font-style: normal;
    color: #39ff14;
    text-shadow: 0 0 24px rgba(57, 255, 20, 0.7);
  }
  .go {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 0 32px;
    border-radius: 12px;
    background: #39ff14;
    color: #020403;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
    font-size: 22px;
    text-decoration: none;
    box-shadow:
      0 0 40px rgba(57, 255, 20, 0.55),
      0 0 120px rgba(57, 255, 20, 0.25);
  }
  .go:hover {
    background: #6cff4d;
  }
  .go:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
  }
  .fine {
    font-size: 15px;
    line-height: 1.6;
    color: #b7ffb0;
    margin: 0;
  }
  .fine b {
    color: #39ff14;
    font-weight: 400;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-size: 14px;
    color: #b7ffb0;
  }
  .stat b {
    display: block;
    font-family: "Golos Text", sans-serif;
    font-size: 44px;
    line-height: 1;
    color: #fff;
    margin-bottom: 6px;
  }
  .stat .mag b {
    color: #ff2bd6;
  }
  .stat .cyan b {
    color: #22d3ee;
  }
  .plant {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #b7ffb0;
  }
  .plant svg {
    filter: hue-rotate(80deg) saturate(2) drop-shadow(0 0 8px #39ff14);
    flex: none;
  }
  @media (prefers-reduced-motion: reduce) {
    .line {
      opacity: 1;
      animation: none;
    }
    .cursor::after {
      animation: none;
    }
  }
  @media (max-width: 860px) {
    .wrap {
      grid-template-columns: 1fr;
      gap: 28px;
      padding: 24px 16px 28px;
    }
    .term {
      font-size: 16px;
      justify-content: flex-start;
    }
    .term p {
      margin-bottom: 10px;
    }
    .side {
      border-left: 0;
      padding-left: 0;
      border-top: 2px dashed rgba(57, 255, 20, 0.35);
      padding-top: 24px;
      gap: 18px;
    }
    h1 {
      font-size: 36px;
    }
    .go {
      min-height: 60px;
      font-size: 19px;
    }
    .stat b {
      font-size: 36px;
    }
  }

.side .err {
  color: #fff;
  background: rgba(255, 43, 214, 0.18);
  border-left: 3px solid #ff2bd6;
  padding: 6px 12px;
  margin: 0;
}
.side .err::before {
  content: "> ОШИБКА: ";
  color: #ff2bd6;
}
.pw {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pw label {
  color: #b7ffb0;
  font-size: 15px;
}
.pw input {
  min-height: 52px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #39ff14;
  background: #020403;
  color: #fff;
  font: 18px "PT Mono", monospace;
}
.pw button.go {
  border: 0;
  cursor: pointer;
}
.line.t {
  opacity: 1;
  animation: none;
}
.term {
  min-height: 330px;
}
@media (max-width: 860px) {
  .term {
    min-height: 0;
  }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .term {
    height: 300px;
    overflow: hidden;
    justify-content: flex-end;
  }
}
