/* Полный запрет выделения/копирования текста */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Тёмный фон с лёгким градиентом */
body {
  background:
    radial-gradient(circle at top, #191919 0, #060606 55%, #000000 100%);
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* Центрирование */
.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Группа логотип + акценты */
.logo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

/* Стеклянный «ореол» вокруг логотипа */
.logo-wrap::before {
  content: "";
  position: absolute;
  width: min(460px, 80vw);
  height: min(460px, 80vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.13), transparent 60%),
    radial-gradient(circle at 75% 90%, rgba(255, 255, 255, 0.06), transparent 65%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 0 70px rgba(255, 255, 255, 0.08),
    0 0 140px rgba(0, 0, 0, 0.95);
  opacity: 0.85;
  filter: blur(0.3px);
  /* лёгкая псевдо-«хрустальность» */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: -1;
}

/* Крупный логотип IXOR */
.logo {
  font-size: clamp(80px, 15vw, 190px);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  padding-left: 0.38em; /* компенсируем letter-spacing */
  font-weight: 500;
  color: #ffffff;
  text-align: center;

  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.55),
    0 0 40px rgba(255, 255, 255, 0.35),
    0 0 90px rgba(255, 255, 255, 0.25);

  animation: softGlow 8s ease-in-out infinite alternate;
  will-change: text-shadow, opacity;
}

/* плавное свечение */
@keyframes softGlow {
  0% {
    opacity: 0.9;
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.45),
      0 0 28px rgba(255, 255, 255, 0.28),
      0 0 70px rgba(255, 255, 255, 0.18);
  }
  100% {
    opacity: 1;
    text-shadow:
      0 0 14px rgba(255, 255, 255, 0.9),
      0 0 48px rgba(255, 255, 255, 0.55),
      0 0 110px rgba(255, 255, 255, 0.35);
  }
}

/* Вертикальный акцент */
.accent {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Линия под логотипом — как луч света внутри стекла */
.accent-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.0),
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.0)
  );
  opacity: 0.7;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    height 0.35s ease;
}

/* Точка-ядро */
.accent-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0, #dcdcdc 55%, #b0b0b0 100%);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 255, 255, 0.4);
  opacity: 0.9;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Кольцо-пинг вокруг точки (активно только во время импульса) */
.accent-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: scale(0.6);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.0);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.6s ease-out;
}

/* Премиальный элемент — стеклянное кольцо с бриллиантом */
.emblem {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Кольцо */
.ring {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02) 65%),
    radial-gradient(circle at 80% 90%, rgba(255, 255, 255, 0.14), transparent 70%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 24px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.88;
  transform: translateY(0);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
}

/* Бриллиант на кольце */
.ring-diamond {
  position: absolute;
  top: -9px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-radius: 3px;
  background:
    radial-gradient(circle, #ffffff 0, #f5f5f5 40%, #c8c8c8 100%);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 26px rgba(255, 255, 255, 0.5);
}

/* Дополнительные "грани" */
.ring-diamond::before,
.ring-diamond::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 2px;
  transform: rotate(-45deg);
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.95),
    rgba(210, 210, 210, 0.5)
  );
  mix-blend-mode: screen;
  opacity: 0.75;
}

/* Лёгкая реакция при наведении */
.logo-wrap:hover .accent-line {
  opacity: 1;
  transform: translateY(2px);
}

.logo-wrap:hover .accent-dot {
  opacity: 1;
  transform: translateY(1px) scale(1.05);
}

.logo-wrap:hover .ring {
  opacity: 1;
  transform: translateY(2px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 26px rgba(255, 255, 255, 0.35),
    0 0 36px rgba(0, 0, 0, 0.9);
}

/* Состояние редкого «импульса», которое включает JS */
.logo-wrap.ping .accent-line {
  height: 60px;
  opacity: 1;
  transform: translateY(4px);
}

.logo-wrap.ping .accent-dot {
  opacity: 1;
  transform: translateY(2px) scale(1.12);
}

.logo-wrap.ping .accent-dot::after {
  opacity: 1;
  transform: scale(2.4);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.55),
    0 0 40px rgba(255, 255, 255, 0.2);
}

/* Импульс усиливает стеклянное кольцо и бриллиант */
.logo-wrap.ping .ring {
  opacity: 1;
  transform: translateY(4px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 32px rgba(255, 255, 255, 0.7),
    0 0 46px rgba(0, 0, 0, 1);
}

/* чуть уменьшаем отступ на малых экранах */
@media (max-width: 480px) {
  .wrap {
    padding: 8px;
  }
}

/* Состояние, когда пользователь тянет кольцо */
.logo-wrap.dragging .ring {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.7),
    0 0 46px rgba(0, 0, 0, 1);
}

.logo-wrap.dragging .ring-diamond {
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.95),
    0 0 32px rgba(255, 255, 255, 0.6);
}

/* Небольшой "растягивающийся" эффект линии при попытке тянуть */
.logo-wrap.dragging .accent-line {
  height: 70px;
  opacity: 1;
}

/* Когда жест завершён и происходит переход */
.logo-wrap.unlocked .ring {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  opacity: 0;
  transform: translateY(80px);
  box-shadow: none;
}
