html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "Segoe UI", sans-serif;
}

body {
  position: relative;
}

.webgl {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.site-badge {
  position: fixed;
  top: 18px;
  left: 18px;
  gap: 10px;
  height: 62px;
  padding: 0 4px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  color: rgba(234, 245, 255, 0.96);
  text-decoration: none;
  z-index: 5;
}

.site-badge-logo {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(118, 214, 255, 0.18))
    drop-shadow(0 0 18px rgba(118, 214, 255, 0.08));
}

.site-badge-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  text-shadow:
    0 0 12px rgba(118, 214, 255, 0.14),
    0 0 28px rgba(118, 214, 255, 0.08);
}

.social-links {
  position: fixed;
  top: 90px;
  left: 18px;
  width: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(200, 230, 255, 0.55);
  transition: color 160ms ease;
}

.social-link:hover {
  color: rgba(200, 230, 255, 0.95);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.sr-only {
  position: fixed;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prompt-form {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(92vw, 720px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(9, 14, 24, 0.56);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  z-index: 4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: visible;
}

@keyframes prompt-send-flash {
  0%   { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 12px 48px rgba(0,0,0,0.35); background: rgba(9, 14, 24, 0.56); }
  18%  { border-color: rgba(100, 195, 255, 0.38); box-shadow: 0 0 0 2px rgba(70, 175, 255, 0.1), 0 0 22px rgba(70, 175, 255, 0.14), 0 12px 48px rgba(0,0,0,0.35); background: rgba(12, 22, 40, 0.68); }
  100% { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 12px 48px rgba(0,0,0,0.35); background: rgba(9, 14, 24, 0.56); }
}

@keyframes prompt-bg-flash {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  100% { opacity: 0; }
}

.prompt-form--sending {
  animation: prompt-send-flash 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.prompt-form--sending::after {
  content: '';
  position: absolute;
  inset: -60px -80px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(70, 175, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
  animation: prompt-bg-flash 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: -1;
}

.prompt-input-shell {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.prompt-input,
.prompt-button {
  border: 0;
  outline: 0;
  font: inherit;
}

.nav-menu {
  position: fixed;
  left: calc(50% - 320px);
  bottom: 96px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.nav-item {
  padding: 8px 4px;
  border: none;
  border-radius: 0;
  background: none;
  color: rgba(200, 235, 255, 0.45);
  font: 300 13px "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 160ms ease;
}

.nav-item:hover {
  color: rgba(220, 245, 255, 0.88);
}

.nav-item.is-active {
  color: rgba(130, 210, 255, 1);
}

.prompt-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  box-sizing: border-box;
}

.prompt-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}


.prompt-button {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(128, 205, 255, 0.12);
  color: rgba(224, 245, 255, 0.96);
  border: 1px solid rgba(200, 238, 255, 0.3);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px rgba(0, 26, 62, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(96, 185, 255, 0.18);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.prompt-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    inset 0 -12px 20px rgba(0, 28, 72, 0.24),
    0 14px 28px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(96, 185, 255, 0.24);
}

.prompt-button:active {
  transform: translateY(0);
}

.prompt-button-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-input:disabled,
.prompt-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .site-badge {
    top: 14px;
    left: 14px;
    height: 56px;
    gap: 8px;
  }

  .site-badge-logo {
    width: 34px;
    height: 34px;
  }

  .site-badge-text {
    font-size: 15px;
  }

  .social-links {
    top: 80px;
    left: 14px;
  }

  .prompt-form {
    width: min(94vw, 720px);
    bottom: 14px;
    gap: 8px;
    padding: 8px;
  }

  .prompt-button {
    width: 46px;
    height: 46px;
  }

  .nav-menu {
    left: calc(50% - 47vw + 10px);
    transform: none;
    bottom: 82px;
    justify-content: flex-start;
    width: auto;
  }

  .nav-item {
    padding: 7px 6px;
    font-size: 14px;
  }
}
