@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Geist-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/Geist-Bold.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  background: #000;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}

.hero {
  position: relative;
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background: #000;
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 22%), transparent 18% 100%);
  content: "";
  pointer-events: none;
}

#particle-field {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  display: block;
  width: var(--terrain-render-width, 1280px);
  height: var(--terrain-render-height, 100vh);
  background: #000;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.8vw, 2.125rem);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.brand-title {
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 18px rgb(0 0 0 / 55%);
  white-space: nowrap;
}


.github-auth {
  display: inline-flex;
  min-height: clamp(3rem, 3.89vw, 3.5rem);
  align-items: center;
  justify-content: center;
  gap: clamp(0.625rem, 0.89vw, 0.8rem);
  padding: clamp(0.625rem, 0.84vw, 0.75rem);
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 999px;
  color: #fff;
  background: #000;
  box-shadow:
    0 0 1.75rem 1.25rem #000,
    0 8px 32px rgb(0 0 0 / 22%);
  font: inherit;
  font-size: clamp(0.875rem, 1.12vw, 1rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    opacity 280ms ease,
    transform 280ms ease;
}

.landing-status {
  position: absolute;
  z-index: 3;
  bottom: 1.5rem;
  left: 50%;
  margin: 0;
  color: rgb(255 255 255 / 55%);
  font-size: 0.72rem;
  transform: translateX(-50%);
}


.github-auth:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 10%);
  transform: translateY(-1px);
}

.github-auth:active {
  background: rgb(255 255 255 / 16%);
  transform: translateY(0);
}

.github-auth:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.github-auth__icon {
  width: clamp(1.625rem, 2.16vw, 1.9375rem);
  height: clamp(1.625rem, 2.16vw, 1.9375rem);
  flex: 0 0 auto;
  fill: currentColor;
}

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

.webgl-unavailable #particle-field {
  background:
    radial-gradient(ellipse at 52% 48%, rgb(255 255 255 / 7%), transparent 48%),
    #000;
}

@media (prefers-reduced-motion: reduce) {
  .hero::after {
    background: linear-gradient(to bottom, rgb(0 0 0 / 18%), transparent 18% 100%);
  }

  .github-auth {
    transition: none;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding-inline: 1rem;
  }

  .brand-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }
}

/* Chromium keeps a roughly 500px layout viewport when a desktop tiler makes
   its native window narrower. In a very short tile, center the composition in
   the visible first 256px instead of beneath the neighboring window. */
@media (max-width: 560px) and (max-height: 320px) {
  .desktop-input #particle-field {
    left: min(50%, 8rem);
  }

  .desktop-input .hero-content {
    inset: 0 auto 0 0;
    width: min(100%, 16rem);
    padding-inline: 0.75rem;
  }

  .desktop-input .brand-title {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
  }
}

.hero { touch-action: auto; container-type: inline-size; }
#particle-field { touch-action: none; }
.hero-content { pointer-events: none; padding-bottom: 30px; }
.github-auth { pointer-events: auto; }

/* Consistent circular artwork, including token fallbacks and venue badges. */
.coin-mark, .symbol-coin, .watch-token, .symbol-result-icon, .exchange-icon, .exchange-badge, .brand-mark img,
.coin-mark img, .symbol-coin img, .watch-token img, .symbol-result-icon img, .exchange-icon img, .exchange-badge img, .account-button img { border-radius:50%; overflow:hidden; }

