/* Заголовок этапа */
.stage-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  font-weight: 700;
  color: rgba(100, 150, 255, 0.08);
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 0 20px rgba(100, 150, 255, 0.05);
}

@media (max-width: 768px) {
  .stage-header {
    font-size: 32px;
    top: 15px;
  }
}

@media (max-width: 420px) {
  .stage-header {
    font-size: 24px;
  }
}

/* Форма ввода ссылки */
.link-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.link-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  padding: 16px 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 1px 0 var(--glass-border) inset,
    0 0 0 1px var(--glass-border);
  border: 1px solid var(--glass-border);
  pointer-events: auto;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.link-form.error {
  border-color: rgba(255, 100, 100, 0.6);
  box-shadow:
    0 8px 32px rgba(255, 0, 0, 0.3),
    0 1px 0 rgba(255, 100, 100, 0.3) inset,
    0 0 0 1px rgba(255, 100, 100, 0.4);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.link-input {
  background: rgba(0, 10, 30, 0.6);
  border: 1px solid rgba(100, 180, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  color: #e6f0ff;
  width: 80vw;
  outline: none;
  transition: all 0.3s ease;
}

.link-input::placeholder {
  color: rgba(150, 180, 220, 0.5);
}

.link-input:focus {
  border-color: rgba(100, 180, 255, 0.5);
  box-shadow: 0 0 20px rgba(100, 180, 255, 0.15);
}

.link-submit {
  background: rgba(100, 180, 255, 0.15);
  border: 1px solid rgba(100, 180, 255, 0.3);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #a3b5ff;
}

.link-submit:hover {
  background: rgba(100, 180, 255, 0.25);
  border-color: rgba(100, 180, 255, 0.5);
  box-shadow: 0 0 15px rgba(100, 180, 255, 0.2);
}

.link-submit:active {
  transform: scale(0.95);
}

@media (max-width: 640px) {
  .link-form {
    padding: 12px 16px;
    gap: 8px;
  }
  
  .link-input {
    min-width: 200px;
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .link-submit {
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .link-form {
    padding: 10px 12px;
  }
  
  .link-input {
    min-width: 140px;
    font-size: 13px;
  }
}

/* Счётчик ссылок */
.link-counter {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  font-weight: 600;
  color: rgba(100, 150, 255, 0.15);
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 0 10px rgba(100, 150, 255, 0.1);
}

@media (max-width: 768px) {
  .link-counter {
    font-size: 36px;
    bottom: 20px;
  }
}

@media (max-width: 420px) {
  .link-counter {
    font-size: 28px;
  }
}