/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('https://r2.guns.lol/c986deb4-e681-4441-8885-c4fba7e89b55.png') 16 16, auto;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: #0b0b0b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* ========== ФОН ========== */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  pointer-events: none;
}

.bg-fallback {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -3;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: grayscale(100%) brightness(0.6);
  z-index: -2;
  pointer-events: none;
}

/* ========== ЗАСТАВКА ========== */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.8s ease, visibility 0.8s;
  opacity: 1;
  visibility: visible;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-text {
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255,255,255,0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 0.6; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1); }
}

/* ========== СТЕКЛЯННАЯ КАРТОЧКА (Ч/Б) ========== */
.glass-card {
  max-width: 700px;
  width: 90%;
  margin: 2rem auto;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 36px;
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: 0 25px 45px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== АВАТАР ========== */
.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: 0.3s;
}

.avatar:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
  background: #1e1e2e;
  color: #fff;
}

/* ========== НИК (БЕЗ СВЕЧЕНИЯ, ТОЛЬКО ЧАСТИЦЫ) ========== */
.nickname-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.nickname {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  position: relative;
  z-index: 2;
}

/* Контейнер для частиц */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* Стили для каждой частицы (искры) */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px #fff;
  opacity: 0;
  animation: particleFloat 1.8s ease-out forwards;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }
  20% {
    opacity: 1;
    transform: translate(var(--tx, 10px), var(--ty, -15px)) scale(1);
  }
  80% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx2, 20px), var(--ty2, -35px)) scale(0.5);
  }
}

/* ========== ОСТАЛЬНЫЕ СТИЛИ ========== */
.aka {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
  margin-bottom: 1.2rem;
  color: #ccc;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,30,40,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: #eee;
  text-decoration: none;
  transition: 0.25s;
  margin-bottom: 1.5rem;
}

.secondary-btn:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
  transform: translateY(-2px);
}

.primary-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.primary-btn {
  background: rgba(25,25,35,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.7rem 1.5rem;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s;
}

.primary-btn:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  margin: 1.2rem auto;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin: 1.5rem 0;
}

.grid-link {
  background: rgba(10,10,20,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 8px 5px;
  text-decoration: none;
  color: #e0e0e0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.2s;
}

.grid-link:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
  transform: scale(0.97);
}

.registry-link {
  font-size: 0.65rem;
  opacity: 0.5;
  color: #bbb;
  text-decoration: none;
  transition: opacity 0.2s;
}

.registry-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ========== УГЛОВЫЕ ССЫЛКИ (ТРИ КНОПКИ) ========== */
.corner-links {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  align-items: flex-end;
}

.corner-link {
  background: rgba(15,15,25,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: #ddd;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.25s;
}

.corner-link:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

/* ========== МУЗЫКАЛЬНЫЙ ПЛЕЕР ========== */
.music-player {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10,10,20,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 40px;
  padding: 6px 12px 6px 8px;
  z-index: 101;
}

.music-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  cursor: pointer;
}

.music-btn:hover {
  background: rgba(255,255,255,0.15);
}

.volume-wrapper {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
}

.music-player:hover .volume-wrapper {
  width: 130px;
}

.volume-slider {
  -webkit-appearance: none;
  width: 120px;
  height: 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 5px;
  outline: none;
  margin: 0 5px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  cursor: pointer;
  border: none;
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  cursor: pointer;
  border: none;
}

/* ========== ЗВЁЗДОЧКИ (только ✦) ========== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.star {
  position: absolute;
  top: -10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  user-select: none;
  animation: fallStar linear infinite;
  text-shadow: 0 0 4px rgba(255,255,255,0.5);
}

@keyframes fallStar {
  to { transform: translateY(100vh); }
}

/* ========== СТРАНИЦА СТАРЫХ НИКОВ ========== */
.nicks-card {
  max-width: 600px;
  width: 90%;
}

.nicks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1.5rem 0;
}

.nick-item {
  background: rgba(20,20,35,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.nick-name {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.nick-links {
  display: flex;
  gap: 14px;
}

.nick-links a {
  color: #ccc;
  font-size: 1.1rem;
  transition: 0.2s;
}

.nick-links a:hover {
  color: #fff;
  transform: scale(1.1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  color: #ccc;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 20px;
  border-radius: 40px;
  transition: 0.25s;
}

.back-link:hover {
  background: #fff;
  color: #0a0a0a;
}

.note {
  font-size: 0.7rem;
  opacity: 0.4;
  margin-top: 1.5rem;
  text-align: center;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 550px) {
  .glass-card { padding: 1.5rem 1rem; }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .nick-item { flex-direction: column; align-items: flex-start; }
  .primary-buttons { flex-direction: column; }
  .primary-btn { justify-content: center; }
  .music-player { top: 12px; left: 12px; padding: 4px 10px; }
  .music-btn { width: 32px; height: 32px; font-size: 1rem; }
  .corner-links { bottom: 12px; right: 12px; gap: 6px; }
  .corner-link { padding: 4px 10px; font-size: 0.7rem; }
}

/* ========== УМЕНЬШЕННАЯ ПОДСВЕТКА КУРСОРА ========== */
#cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25), rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

@media (hover: hover) {
  body:hover #cursor-glow { opacity: 0.8; }
}