@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@700;800&display=swap");

@font-face {
  font-family: "Geist Mono:SemiBold";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://static.figma.com/font/GeistMono_wght__1") format("woff2");
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  color: #fff;
}

.error-page {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.sound-toggle {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 32px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.18);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sound-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sound-icon {
  width: 20px;
  height: 20px;
}

.sound-icon-on {
  display: none;
}

.sound-toggle[aria-pressed="true"] .sound-icon-muted {
  display: none;
}

.sound-toggle[aria-pressed="true"] .sound-icon-on {
  display: block;
}

.brand {
  position: absolute;
  z-index: 1;
  top: 80px;
  left: 50%;
  display: flex;
  align-items: center;
  width: max-content;
  height: 40px;
  transform: translateX(-50%);
}

.brand-name {
  color: #fff;
  font-family: "Orbitron", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.error-content {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  width: 483px;
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: center;
  gap: 44px;
  text-align: center;
}

.error-content h1 {
  margin: 0;
  padding-bottom: 16px;
  background-image: linear-gradient(
    247.3282658084845deg,
    rgb(255, 255, 255) 2.5334%,
    rgba(255, 255, 255, 0.4) 93.612%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Geist Mono:SemiBold", ui-monospace, monospace;
  font-size: 295.751px;
  font-weight: 600;
  letter-spacing: -24.6459px;
  line-height: 1.1;
}

.divider {
  width: 425px;
  height: 1px;
  background: #fff;
}

.error-content p {
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: "Geist Mono:SemiBold", ui-monospace, monospace;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .brand {
    top: 32px;
    transform: translateX(-50%) scale(0.75);
  }

  .sound-toggle {
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
  }

  .error-content {
    width: min(calc(100% - 40px), 360px);
    gap: 28px;
  }

  .error-content h1 {
    height: auto;
    min-height: 0;
    padding-bottom: 12px;
    font-size: clamp(140px, 52vw, 200px);
    letter-spacing: -0.09em;
  }

  .divider {
    width: 100%;
  }

  .error-content p {
    font-size: clamp(16px, 4.5vw, 20px);
    letter-spacing: -1.3px;
  }
}
