* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #111111;
  color: #ffffff;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100dvh;
}

.universe-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 22%, rgba(48, 55, 58, 0.34) 0 1px, transparent 2px 100%),
    radial-gradient(circle at 68% 30%, rgba(255, 255, 255, 0.42) 0 1px, transparent 2px 100%),
    radial-gradient(circle at 78% 76%, rgba(182, 222, 212, 0.28) 0 1px, transparent 2px 100%),
    radial-gradient(circle at 12% 68%, rgba(255, 255, 255, 0.36) 0 1px, transparent 2px 100%),
    radial-gradient(circle at 88% 18%, rgba(188, 213, 255, 0.28) 0 1px, transparent 2px 100%),
    linear-gradient(155deg, rgba(25, 26, 26, 0.96), rgba(8, 8, 9, 1) 48%, rgba(15, 18, 18, 1));
  background-size: 280px 280px, 420px 420px, 360px 360px, 220px 260px, 510px 430px, auto;
  cursor: grab;
  isolation: isolate;
  touch-action: none;
  user-select: none;
}

.universe-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.007) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.006) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.universe-shell::after {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.36) 0 1px, transparent 1.8px),
    radial-gradient(circle at 22% 72%, rgba(198, 224, 255, 0.24) 0 1px, transparent 1.8px),
    radial-gradient(circle at 48% 28%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1.8px),
    radial-gradient(circle at 74% 52%, rgba(219, 255, 247, 0.26) 0 1px, transparent 1.8px),
    radial-gradient(circle at 92% 80%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.8px);
  background-size: 170px 210px, 260px 240px, 310px 290px, 230px 310px, 360px 300px;
  opacity: 0.72;
  transform: rotate(-8deg);
  pointer-events: none;
}

.universe-shell.is-dragging {
  cursor: grabbing;
}

.universe-shell.is-loading {
  cursor: wait;
}

.universe-shell canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.home-brand {
  position: fixed;
  top: clamp(18px, 4vw, 34px);
  left: clamp(18px, 4vw, 34px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  justify-content: flex-start;
  min-height: 42px;
  pointer-events: none;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  opacity: 0.86;
  color: #ffffff;
  text-decoration: none;
  pointer-events: auto;
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-link img {
  display: block;
  width: clamp(92px, 12vw, 132px);
  height: auto;
  flex: 0 0 auto;
  -webkit-user-drag: none;
}

.home-slogan {
  display: block;
  max-width: min(44vw, 220px);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.universe-title {
  position: fixed;
  top: clamp(18px, 4vw, 34px);
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(42px, 5vw, 60px);
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.84rem, 1.35vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.home-link:hover,
.home-link:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.motion-toggle {
  position: fixed;
  top: clamp(18px, 4vw, 34px);
  right: clamp(18px, 4vw, 34px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 42px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 12, 12, 0.42);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.motion-toggle-icon {
  position: relative;
  display: block;
  width: 13px;
  height: 14px;
}

.motion-toggle-icon::before,
.motion-toggle-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  transition: border-color 160ms ease, border-width 160ms ease, height 160ms ease, left 160ms ease, width 160ms ease;
}

.motion-toggle-icon::before {
  left: 1px;
}

.motion-toggle-icon::after {
  right: 1px;
}

.motion-toggle.is-paused .motion-toggle-icon::before {
  top: 1px;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.motion-toggle.is-paused .motion-toggle-icon::after {
  display: none;
}

.motion-toggle:hover,
.motion-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.universe-countdown {
  position: fixed;
  top: clamp(92px, 13dvh, 126px);
  left: 50%;
  z-index: 3;
  width: min(930px, calc(100vw - 32px));
  color: #ffffff;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.countdown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(6px, 1vw, 14px);
  width: 100%;
}

.countdown-unit {
  min-width: 0;
}

.countdown-number,
.countdown-label {
  display: block;
  white-space: nowrap;
}

.countdown-number {
  font-size: clamp(2.8rem, 6.2vw, 5.9rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0.92;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.countdown-separator {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: clamp(2.55rem, 5.6vw, 5.2rem);
  font-weight: 700;
  line-height: 0.88;
}

.countdown-label {
  margin-top: 0.52rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.58rem, 0.95vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.topic-orbit {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  transform: none;
  pointer-events: none;
}

.topic-tags {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-orbit-item {
  position: absolute;
  top: 0;
  left: 0;
  opacity: var(--topic-opacity, 0);
  transform: translate3d(var(--topic-x, 50vw), var(--topic-y, 50vh), 0) translate(-50%, -50%) scale(var(--topic-scale, 1));
  filter: blur(var(--topic-blur, 0)) brightness(var(--topic-brightness, 1));
  transition: filter 180ms ease, opacity 180ms ease;
  cursor: default;
  pointer-events: auto;
  will-change: transform, opacity;
}

.topic-orbit-item.is-starfield {
  pointer-events: none;
  transition: filter 760ms ease, opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.topic-orbit-item.is-behind {
  pointer-events: none;
}

.topic-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 12, 12, 0.52);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.045), 0 14px 32px rgba(0, 0, 0, 0.28);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.topic-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.54);
  opacity: 0.82;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.topic-orbit-item:hover .topic-tag,
.topic-orbit-item:focus-within .topic-tag {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px) scale(1.06);
}

.topic-orbit-item:hover .topic-tag::before,
.topic-orbit-item:focus-within .topic-tag::before {
  opacity: 1;
  transform: scale(1.35);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.72);
}

.topic-orbit-item.is-signal .topic-tag {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 34px rgba(255, 255, 255, 0.28), 0 18px 42px rgba(0, 0, 0, 0.38);
  animation: topic-satellite-flash 840ms ease-out;
}

.topic-orbit-item.is-signal .topic-tag::before {
  opacity: 1;
  transform: scale(1.42);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.86);
  animation: topic-satellite-dot 840ms ease-out;
}

.topic-tags.is-empty {
  display: none;
}

@keyframes topic-satellite-flash {
  0% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  }

  24% {
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 36px rgba(255, 255, 255, 0.34), 0 18px 42px rgba(0, 0, 0, 0.36);
  }

  100% {
    border-color: rgba(255, 255, 255, 0.38);
  }
}

@keyframes topic-satellite-dot {
  0% {
    opacity: 0.48;
    transform: scale(0.82);
  }

  26% {
    opacity: 1;
    transform: scale(1.85);
    box-shadow: 0 0 34px rgba(255, 255, 255, 0.92);
  }

  100% {
    transform: scale(1);
  }
}

.universe-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 10, 10, 0.6);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
  transition: opacity 220ms ease, visibility 220ms ease;
  pointer-events: none;
}

.universe-loader-ring {
  display: block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: loader-spin 820ms linear infinite;
}

.universe-shell.is-ready .universe-loader {
  opacity: 0;
  visibility: hidden;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.universe-footer {
  position: fixed;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 0 18px;
  pointer-events: none;
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px;
  background: rgba(10, 12, 12, 0.52);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.footer-icon-link,
.footer-contact-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.footer-icon-link {
  width: 34px;
  border-radius: 50%;
}

.footer-icon-link::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.footer-icon-link--instagram::before {
  background: radial-gradient(circle at 30% 107%, #fdf497 0 12%, #fd5949 36%, #d6249f 62%, #285aeb 100%);
}

.footer-icon-link--tiktok::before {
  background: linear-gradient(135deg, #25f4ee 0%, #000000 46%, #fe2c55 100%);
}

.footer-icon-link img,
.footer-contact-button img {
  position: relative;
  z-index: 1;
  display: block;
  width: 17px;
  height: 17px;
}

.footer-contact-button {
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-icon-link:hover,
.footer-icon-link:focus-visible,
.footer-contact-button:hover,
.footer-contact-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.footer-icon-link:hover::before,
.footer-icon-link:focus-visible::before {
  opacity: 1;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.contact-modal-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 390px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 17, 17, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  text-align: center;
}

.contact-modal-close {
  position: absolute;
  top: 9px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  transition: background-color 180ms ease, transform 180ms ease;
}

.contact-modal-close:hover,
.contact-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.06);
}

.contact-modal-kicker {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-modal-title {
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  line-height: 1.15;
}

.contact-email-row {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-email {
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.contact-action {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.contact-action--primary {
  background: #ffffff;
  color: #121212;
}

.contact-action:hover,
.contact-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

.contact-action--primary:hover,
.contact-action--primary:focus-visible {
  background: #eeeeee;
}

.contact-status {
  min-height: 1.2em;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .home-link img {
    width: 88px;
  }

  .home-slogan {
    max-width: calc(100vw - 136px);
    font-size: 0.62rem;
  }

  .universe-title {
    font-size: 0.72rem;
  }

  .motion-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .motion-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .universe-countdown {
    top: 86px;
    width: calc(100vw - 22px);
  }

  .countdown-grid {
    gap: 4px;
  }

  .countdown-number {
    font-size: clamp(2rem, 11.5vw, 3.15rem);
  }

  .countdown-separator {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

  .countdown-label {
    margin-top: 0.36rem;
    font-size: 0.54rem;
  }

  .topic-orbit {
    width: 100vw;
    height: 100dvh;
  }

  .topic-tag {
    min-height: 25px;
    padding: 0 9px;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(10, 12, 12, 0.58);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
    font-size: 0.56rem;
  }

  .topic-tag::before {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.58);
  }

  .topic-orbit-item.is-starfield .topic-tag {
    min-height: 23px;
    padding: 0 8px;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(9, 10, 10, 0.54);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.34);
    font-size: 0.52rem;
    letter-spacing: 0.07em;
  }

  .topic-orbit-item.is-starfield .topic-tag::before {
    width: 6px;
    height: 6px;
  }

  .universe-footer {
    bottom: calc(14px + env(safe-area-inset-bottom));
    padding: 0 12px;
  }

  .footer-actions {
    gap: 7px;
    min-height: 42px;
    padding: 6px;
  }

  .footer-icon-link,
  .footer-contact-button {
    height: 32px;
  }

  .footer-icon-link {
    width: 32px;
  }

  .footer-contact-button {
    padding: 0 12px;
    font-size: 0.62rem;
  }
}

@media (max-width: 520px) {
  .home-slogan {
    display: none;
  }

  .universe-title {
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .universe-countdown {
    top: 74px;
  }

  .contact-modal-panel {
    padding: 26px 18px;
  }
}

@media (max-height: 560px) {
  .home-brand,
  .universe-title,
  .motion-toggle {
    top: 14px;
  }

  .home-link img {
    width: 96px;
  }

  .home-slogan {
    font-size: 0.62rem;
  }

  .universe-title {
    height: 38px;
    font-size: 0.82rem;
  }

  .motion-toggle {
    height: 34px;
    padding: 0 12px;
  }

  .universe-countdown {
    top: 66px;
    width: min(760px, calc(100vw - 28px));
  }

  .countdown-number {
    font-size: 3rem;
  }

  .countdown-separator {
    font-size: 2.65rem;
  }

  .countdown-label {
    margin-top: 0.28rem;
    font-size: 0.56rem;
  }

  .topic-orbit-item.is-starfield .topic-tag {
    min-height: 23px;
    padding: 0 8px;
    font-size: 0.52rem;
    letter-spacing: 0.07em;
  }

  .topic-orbit-item.is-starfield .topic-tag::before {
    width: 6px;
    height: 6px;
  }

  .universe-footer {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .footer-actions {
    gap: 7px;
    min-height: 40px;
    padding: 5px;
  }

  .footer-icon-link,
  .footer-contact-button {
    height: 30px;
  }

  .footer-icon-link {
    width: 30px;
  }

  .footer-contact-button {
    padding: 0 11px;
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .universe-shell {
    cursor: default;
  }

  .universe-loader-ring {
    animation: none;
  }

  .topic-orbit-item.is-signal .topic-tag,
  .topic-orbit-item.is-signal .topic-tag::before {
    animation: none;
  }
}
