@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #000;
  font-family: "Press Start 2P", "Courier New", Courier, monospace;
  user-select: none;
  -webkit-user-select: none;
}

.landing-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  -webkit-user-drag: none;
}

.landing-page__background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.menu-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(420px, calc(100vw - 48px));
  padding: 32px 30px;
  background: rgba(0, 0, 0, 0.92);
  transform: translate(-50%, -50%);
}

.menu-panel__title {
  margin: 0 0 28px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 3.6vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 4px 4px 0 rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.menu-panel__title-letter {
  display: inline-block;
  animation: logo-wave 1600ms steps(4) infinite;
}

.menu-panel__title-letter:nth-child(2) {
  animation-delay: 80ms;
}

.menu-panel__title-letter:nth-child(3) {
  animation-delay: 160ms;
}

.menu-panel__title-letter:nth-child(4) {
  animation-delay: 240ms;
}

.menu-panel__title-letter:nth-child(5) {
  animation-delay: 320ms;
}

.menu-panel__title-letter:nth-child(6) {
  animation-delay: 400ms;
}

.menu-panel__title-letter:nth-child(7) {
  animation-delay: 480ms;
}

.menu-panel__title-letter:nth-child(8) {
  animation-delay: 560ms;
}

.menu-panel__nav {
  display: grid;
  gap: 4px;
  width: 14ch;
  margin: 0;
}

.menu-panel__link {
  position: relative;
  display: block;
  min-height: 48px;
  padding-left: 1.8rem;
  width: 100%;
  color: #ffffff;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  line-height: 1.9;
  letter-spacing: 0.08em;
  text-decoration: none;
  -webkit-user-drag: none;
}

.menu-panel__link::before {
  content: ">";
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-0.2rem);
  transition: opacity 120ms steps(2), transform 120ms steps(2);
}

.menu-panel__link:hover::before,
.menu-panel__link:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

.menu-panel__link:hover,
.menu-panel__link:focus-visible {
  color: #f3d46b;
  outline: none;
}

.landing-page__footer {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.72rem, 1.9vw, 1rem);
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 4px 4px 0 rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .menu-panel {
    padding: 26px 22px;
  }

  .menu-panel__title {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
    margin-bottom: 22px;
  }

  .menu-panel__link {
    min-height: 56px;
    font-size: clamp(1.15rem, 4.4vw, 1.6rem);
    line-height: 2;
  }

  .landing-page__footer {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@keyframes logo-wave {
  0% {
    transform: translateY(0);
  }

  20% {
    transform: translateY(-2px);
  }

  40% {
    transform: translateY(-3px);
  }

  60% {
    transform: translateY(-2px);
  }

  80%,
  100% {
    transform: translateY(0);
  }
}
