/* ═══════════════════════════════════════════════════════════════
   ВЫВОД
   ═══════════════════════════════════════════════════════════════ */

.wd { align-items: center; justify-content: center; padding: 40px 20px; }
.wd__inner { width: 100%; max-width: 520px; text-align: center; }

.wd__title { font-family: var(--mono); font-size: 13px; letter-spacing: .24em; color: var(--accent) }
.wd__text  { margin-top: 12px; color: var(--text-dim); font-size: 15px; line-height: 1.5 }

.wd__prize { width: 230px; margin: 30px auto 0 }

.wd__field { margin-top: 30px; display: flex; flex-direction: column; gap: 12px }

.wd__field input {
  padding: 15px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
}

.wd__field input:focus { border-color: var(--accent-dim) }
.wd__error { min-height: 18px; font-family: var(--mono); font-size: 12px; color: var(--danger) }

.wd__pending {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .06em;
}

.wd__pending::after { content: '▊'; animation: blink 1s steps(1) infinite }

/* ═══════════════════════════════════════════════════════════════
   ВИРУС
   ═══════════════════════════════════════════════════════════════
   Всё нарочито стилизовано под глитч: никаких системных окон,
   никаких «ваш компьютер заражён» в стиле настоящей малвари.
   Он должен смеяться, а не бежать переустанавливать винду.
   ═══════════════════════════════════════════════════════════════ */

.v-shake { animation: vShake .18s infinite }

@keyframes vShake {
  0%   { transform: translate(0, 0) }
  25%  { transform: translate(-2px, 1px) }
  50%  { transform: translate(2px, -1px) }
  75%  { transform: translate(-1px, -2px) }
  100% { transform: translate(1px, 2px) }
}

.v-glitch {
  position: relative;
  animation: vGlitch .35s steps(2) infinite;
  filter: hue-rotate(90deg) saturate(2);
}

@keyframes vGlitch {
  0%   { transform: translateX(0) skewX(0) }
  30%  { transform: translateX(-6px) skewX(-8deg) }
  60%  { transform: translateX(5px) skewX(6deg) }
  100% { transform: translateX(0) skewX(0) }
}

.v-eaten {
  animation: vEaten .9s cubic-bezier(.5, 0, .75, 0) forwards;
  pointer-events: none;
}

@keyframes vEaten {
  0%   { opacity: 1; transform: none; filter: none }
  35%  { opacity: 1; transform: translateY(-4px) scaleY(1.06); filter: invert(1) hue-rotate(90deg) }
  100% { opacity: 0; transform: translateY(90px) scaleY(.04) skewX(24deg); filter: blur(6px) }
}

.v-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  font-family: var(--mono);
  overflow: hidden;
}

/* бегущий «код» */
.v-stream {
  position: absolute;
  inset: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.25;
  opacity: 0;
  white-space: pre;
  word-break: break-all;
  overflow: hidden;
  transition: opacity 1.2s;
  text-shadow: 0 0 8px var(--accent);
}

/* строки-предупреждения */
.v-lines {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 20px;
}

.v-line {
  font-size: clamp(13px, 3.4vw, 17px);
  letter-spacing: .1em;
  color: var(--danger);
  text-shadow: 2px 0 var(--accent), -2px 0 #00d4ff;
  animation: vLineIn .25s steps(3) both;
}

@keyframes vLineIn { from { opacity: 0; transform: translateX(-14px) } to { opacity: 1; transform: none } }

/* сканлайны и шум */
.v-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, rgba(0,0,0,.32) 0 1px, transparent 1px 3px
  );
  opacity: 0;
  transition: opacity 1s;
}

.v-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}

.v-flash.on { animation: vFlash .12s steps(2) }
@keyframes vFlash { 0%, 100% { opacity: 0 } 50% { opacity: .85 } }

/* финальная плашка */
.v-final {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--mono);
  opacity: 0;
  transition: opacity .6s;
}

.v-final.on { opacity: 1 }

.v-final__main {
  font-size: clamp(24px, 7vw, 54px);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--danger);
  text-align: center;
  text-shadow: 3px 0 var(--accent), -3px 0 #00d4ff;
  animation: vGlitch .5s steps(2) infinite;
}

.v-final__sub {
  font-size: clamp(14px, 3.4vw, 20px);
  color: var(--text-faint);
  letter-spacing: .14em;
  opacity: 0;
  animation: fadeIn 1.4s ease 1.2s forwards;
}

/* ═══════════════════════════════════════════════════════════════
   СЕРДЕЧКО
   ═══════════════════════════════════════════════════════════════ */

.heart-screen {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  cursor: pointer;
  animation: fadeIn 2.4s ease both;
}

.heart {
  font-family: var(--mono);
  font-size: clamp(64px, 20vw, 150px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
  text-shadow: 0 0 50px rgba(0, 229, 122, .45);
  animation: beat 1.5s cubic-bezier(.22, 1, .36, 1) infinite;
  user-select: none;
}

@keyframes beat {
  0%   { transform: scale(1) }
  12%  { transform: scale(1.14) }
  24%  { transform: scale(1.02) }
  36%  { transform: scale(1.09) }
  55%  { transform: scale(1) }
  100% { transform: scale(1) }
}

.heart-hint {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .38em;
  color: var(--text-faint);
  opacity: 0;
  transition: opacity 4s ease;
  text-transform: lowercase;
}

.heart-hint.on { opacity: .75 }

/* ═══════════════════════════════════════════════════════════════
   ФИНАЛ
   ═══════════════════════════════════════════════════════════════ */

.finale-screen {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: #000;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: fadeIn 1.6s ease both;
}

.finale { width: 100%; max-width: 640px; padding: 20px 0 60px }

.finale__heart {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  text-shadow: 0 0 34px rgba(0, 229, 122, .45);
  animation: beat 1.7s cubic-bezier(.22, 1, .36, 1) infinite;
}

.finale__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--accent);
  text-align: center;
  letter-spacing: .01em;
  text-wrap: balance;
}

.finale__body { margin-top: 40px }

/* Основной текст. Намеренно спокойный и просторный: после вируса
   и мигающих плашек это единственное место, где ничего не мельтешит. */
.finale__p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 26px;
  text-align: left;
}

.finale__closing {
  margin: 40px 0 34px;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 122, .09), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 122, .22);
  font-family: var(--font-display);
  font-size: clamp(17px, 3.4vw, 21px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent);
  text-align: center;
  text-wrap: balance;
}

.finale__ps {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-dim);
  text-align: left;
}

.finale__ps-label {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  padding-top: 3px;
}

/* Проявление по абзацам, чтобы не вываливать простыню разом */
.finale__rise {
  opacity: 0;
  animation-name: finaleRise;
  animation-duration: .85s;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
  animation-fill-mode: both;
}

@keyframes finaleRise {
  from { opacity: 0; transform: translateY(16px) }
  to   { opacity: 1; transform: none }
}

@media (max-width: 640px) {
  .finale__p { font-size: 15.5px; margin-bottom: 22px }
  .finale__ps { flex-direction: column; gap: 6px }
}
