:root {
  color-scheme: dark;
  --bg: #02030a;
  --bg-glow: #12305c;
  --text: #eef4ff;
  --muted: rgba(238, 244, 255, 0.72);
  --line: rgba(163, 190, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(35, 92, 181, 0.24), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(0, 184, 217, 0.14), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(77, 31, 157, 0.18), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  overflow: hidden;
}

body {
  position: relative;
}

#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.telegram-link {
  margin: 0;
}

.telegram-link {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #eef4ff;
  background: rgba(10, 32, 70, 0.74);
  border: 1px solid rgba(153, 198, 255, 0.24);
  box-shadow: 0 0 30px rgba(27, 116, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.telegram-link:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(26, 74, 148, 0.9);
  box-shadow: 0 0 34px rgba(39, 134, 255, 0.3);
}

.telegram-link svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

@media (max-width: 700px) {
  .telegram-link {
    right: 1rem;
    bottom: 1rem;
  }
}
