@font-face {
  font-family: "Manrope";
  src: url("./assets/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #0c0810;
  --nav: #160b1b;
  --hero: #221029;
  --white: #fffaff;
  --muted: #cbbfd0;
  --purple: #9f42e5;
  --purple-pale: #deb0ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--page);
  background-image: url("./assets/background.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--white);
  font-family: "Barlow", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site {
  width: min(1160px, calc(100% - 3rem));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.75rem) 0;
  display: flex;
  flex-direction: column;
}

.navbar {
  min-height: 4.5rem;
  padding: 0 0.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  border: 0;
  background: transparent;
}

.logo {
  width: 4rem;
  height: 4rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  justify-self: start;
  border: 0;
  background: transparent;
  transform-origin: center;
  transition: transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.logo:hover,
.logo:focus-visible {
  transform: scale(1.09);
}

.logo img {
  width: 3.55rem;
  height: 3.55rem;
  display: block;
  object-fit: contain;
}

.nav-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.volume-control {
  --vol-percent: 60%;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  background: rgba(22, 11, 27, 0.85);
  border: 0;
  outline: none;
  border-radius: 0;
  color: var(--white);
  transition: background-color 180ms ease;
}

.volume-control:hover,
.volume-control:focus-within {
  background: rgba(34, 16, 41, 0.95);
  border: 0;
  outline: none;
}

.volume-btn {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--white);
  cursor: pointer;
  transform-origin: center;
  transition: color 150ms ease, transform 150ms ease;
}

.volume-btn:hover {
  color: var(--purple-pale);
}

.volume-btn:active {
  transform: scale(0.92);
}

.volume-btn svg {
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume-control.is-high .vol-high,
.volume-control.is-low .vol-low,
.volume-control.is-muted .vol-mute {
  display: block;
}

.volume-slider-wrapper {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  transition:
    width 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease,
    padding 220ms ease;
  padding-right: 0;
}

.volume-control:hover .volume-slider-wrapper,
.volume-control:focus-within .volume-slider-wrapper {
  width: 6.2rem;
  opacity: 1;
  pointer-events: auto;
  padding-right: 0.9rem;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(
    to right,
    #963fda 0%,
    #963fda var(--vol-percent, 60%),
    rgba(255, 255, 255, 0.22) var(--vol-percent, 60%),
    rgba(255, 255, 255, 0.22) 100%
  );
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 0;
  background: #ffffff;
  border: 0;
  outline: none;
  box-shadow: none;
  cursor: pointer;
}

.volume-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(
    to right,
    #963fda 0%,
    #963fda var(--vol-percent, 60%),
    rgba(255, 255, 255, 0.22) var(--vol-percent, 60%),
    rgba(255, 255, 255, 0.22) 100%
  );
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: #ffffff;
  border: 0;
  outline: none;
  box-shadow: none;
  cursor: pointer;
}

.discord-button {
  --discord-button-bg: #963fda;
  min-width: 8.4rem;
  height: 3.2rem;
  padding: 0 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 0;
  border: 0;
  color: var(--white);
  background: var(--discord-button-bg);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transform-origin: center;
  transition:
    transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1),
    background-color 180ms ease;
}

.discord-button:hover,
.discord-button:focus-visible {
  --discord-button-bg: #a94be8;
  transform: scale(1.06);
}

.discord-button:active {
  transform: scale(1.02);
}

.discord-button img {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.maintenance {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 0 clamp(5rem, 11vh, 8rem);
}

.maintenance-copy {
  width: min(100%, 32rem);
  margin-left: clamp(1rem, 4.5vw, 3.5rem);
}

.maintenance h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-family: "Bebas Neue", "Barlow", sans-serif;
  text-shadow: 0 0.35rem 2rem rgba(0, 0, 0, 0.75);
}

.maintenance-prefix {
  font-size: clamp(3.8rem, 6.4vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

.maintenance-main {
  margin-top: 0.04em;
  font-size: clamp(4.4rem, 7.5vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.maintenance-desc {
  margin: 1.5rem 0 0;
  max-width: 25rem;
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 0.15rem 0.8rem rgba(0, 0, 0, 0.75);
}

@media (max-width: 800px) {
  body {
    background-position: 72% center;
    background-attachment: scroll;
  }

  .site {
    width: min(44rem, calc(100% - 1.5rem));
    padding: 0.75rem 0 1.5rem;
  }

  .navbar {
    min-height: 4.2rem;
    padding: 0 0.15rem;
  }

  .logo {
    width: 3.6rem;
    height: 3.6rem;
  }

  .logo img {
    width: 3.2rem;
    height: 3.2rem;
  }

  .volume-control {
    height: 3rem;
  }

  .volume-btn {
    width: 3rem;
    height: 3rem;
  }

  .volume-control:hover .volume-slider-wrapper,
  .volume-control:focus-within .volume-slider-wrapper {
    width: 5.2rem;
  }

  .discord-button {
    min-width: 7.6rem;
    height: 3rem;
    padding: 0 0.8rem;
    gap: 0.5rem;
    font-size: 0.74rem;
  }

  .maintenance {
    align-items: flex-start;
    padding: clamp(4rem, 10vh, 6rem) 0 2rem;
  }

  .maintenance-copy {
    width: min(88%, 28rem);
    margin-left: 1rem;
  }

  .maintenance-prefix {
    font-size: clamp(3rem, 9.5vw, 4.3rem);
  }

  .maintenance-main {
    font-size: clamp(3.6rem, 11.5vw, 5.2rem);
  }

  .maintenance-desc {
    margin-top: 1.25rem;
    max-width: 22rem;
  }

}

@media (max-width: 430px) {
  .site {
    width: calc(100% - 1rem);
    padding-top: 0.5rem;
  }

  .navbar {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .logo {
    width: 3.3rem;
    height: 3.3rem;
  }

  .logo img {
    width: 2.95rem;
    height: 2.95rem;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .volume-control {
    height: 2.8rem;
  }

  .volume-btn {
    width: 2.8rem;
    height: 2.8rem;
  }

  .volume-btn svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .volume-control:hover .volume-slider-wrapper,
  .volume-control:focus-within .volume-slider-wrapper {
    width: 4.4rem;
    padding-right: 0.6rem;
  }

  .discord-button {
    min-width: 7.1rem;
    height: 2.8rem;
    padding: 0 0.75rem;
    font-size: 0.7rem;
  }

  .maintenance {
    padding-top: 3.5rem;
  }

  .maintenance-copy {
    width: 100%;
    margin-left: 0.25rem;
  }

  .maintenance-prefix {
    font-size: clamp(2.5rem, 10.5vw, 3.4rem);
  }

  .maintenance-main {
    font-size: clamp(3rem, 12.5vw, 4.2rem);
  }

  .maintenance-desc {
    margin-top: 1rem;
    font-size: 0.92rem;
  }
}

/* Gate Overlay */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(12, 8, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  user-select: none;
  transition:
    opacity 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gate-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-content {
  text-align: center;
}

.gate-prompt {
  display: inline-block;
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  animation: gate-pulse 2.2s ease-in-out infinite;
}

@keyframes gate-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .gate-prompt {
    animation: none;
  }
}
