/* Файл: "neon.css" */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background-color: #0a0a14;
  font-family: "Courier New", monospace;
}

.menu-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: clamp(20px, 5vh, 40px);
  padding: 20px;
  position: relative;
}

/* Декоративная неоновая сетка на фоне */
.menu-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    #000 0%,
    transparent 75%
  );
}

h1 {
  color: #0ff;
  font-size: clamp(28px, 9vw, 56px);
  letter-spacing: clamp(3px, 1.5vw, 10px);
  text-shadow:
    0 0 10px #0ff,
    0 0 30px #0ff,
    0 0 60px rgba(0, 255, 255, 0.5);
  text-align: center;
  z-index: 2;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

.subtitle {
  color: #fff;
  opacity: 0.5;
  font-size: clamp(11px, 3vw, 15px);
  letter-spacing: 4px;
  z-index: 2;
  margin-top: -10px;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 16px);
  width: min(425px, 82vw);
  z-index: 2;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(9px, 2.2vh, 14px) clamp(20px, 5vw, 30px);
  background: rgba(0, 255, 255, 0.08);
  border: 2px solid #0ff;
  color: #0ff;
  font-family: inherit;
  font-size: clamp(16px, 4.5vw, 22px);
  letter-spacing: 3px;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.menu-btn[hidden] {
  display: none;
}

.menu-btn .num {
  color: #fff;
  opacity: 0.6;
  font-size: 0.85em;
  margin-right: 10px;
}

.menu-btn .arrow {
  transition: transform 0.2s ease;
}

.menu-btn:hover,
.menu-btn:active {
  background: rgba(0, 255, 255, 0.25);
  color: #fff;
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.6),
    inset 0 0 20px rgba(0, 255, 255, 0.2);
  transform: translateY(-2px);
}

.menu-btn:hover .arrow {
  transform: translateX(6px);
}

.footer {
  position: absolute;
  bottom: 15px;
  color: #0ff;
  opacity: 0.35;
  font-size: clamp(10px, 2.5vw, 12px);
  letter-spacing: 2px;
  z-index: 2;
}

/* Декоративная картинка справа */
.side-art {
  position: absolute;
  right: clamp(0px, 9vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  height: min(70vh, 520px);
  width: auto;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 0 24px rgba(0, 255, 255, 0.5));
  z-index: 1;
}

/* На узких экранах прячем, чтобы не мешала */
@media (max-width: 700px) {
  .side-art {
    display: none;
  }
}

/* ===== Кнопка «назад» ===== */
.back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 8px 16px;
  color: #0ff;
  font-family: inherit;
  font-size: clamp(13px, 3.5vw, 16px);
  letter-spacing: 2px;
  text-decoration: none;
  background: rgba(0, 255, 255, 0.08);
  border: 2px solid #0ff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.back-btn:hover,
.back-btn:active {
  background: rgba(0, 255, 255, 0.25);
  color: #fff;
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.6),
    inset 0 0 20px rgba(0, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ===== Кнопки-стрелки в углах экрана ===== */
.corner-btn {
  position: absolute;
  top: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 9vw, 54px);
  height: clamp(42px, 9vw, 54px);
  color: #0ff;
  font-family: inherit;
  font-size: clamp(16px, 4vw, 22px);
  line-height: 1;
  text-decoration: none;
  background: rgba(0, 255, 255, 0.08);
  border: 2px solid #0ff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.corner-btn--left {
  left: 16px;
}

.corner-btn--right {
  right: 16px;
}

.corner-btn .corner-arrow {
  transition: transform 0.2s ease;
}

.corner-btn:hover,
.corner-btn:active {
  background: rgba(0, 255, 255, 0.25);
  color: #fff;
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.6),
    inset 0 0 20px rgba(0, 255, 255, 0.2);
  transform: translateY(-2px);
}

.corner-btn--left:hover .corner-arrow,
.corner-btn--left:active .corner-arrow {
  transform: translateX(-4px);
}

.corner-btn--right:hover .corner-arrow,
.corner-btn--right:active .corner-arrow {
  transform: translateX(4px);
}

/* ===== ... ===== */

a.corner-btn[hidden] {
  display: none !important;
}


