.gate-menu {
  min-height: 100svh;
  background:
    radial-gradient(circle at 82% 12%, rgba(168, 116, 255, 0.11), transparent 34%),
    linear-gradient(to bottom, var(--color-bg), var(--color-bg-deep));
}

.gate-menu .container {
  position: relative;
}

.gate-menu h2 {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding-bottom: 28px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.gate-menu h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(168, 116, 255, 0) 0%,
    rgba(168, 116, 255, 0.58) 18%,
    rgba(215, 200, 255, 0.9) 62%,
    rgba(255, 255, 255, 0.64) 100%
  );
  box-shadow:
    0 0 6px rgba(168, 116, 255, 0.5),
    0 0 16px rgba(168, 116, 255, 0.24);
}

.section-description {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--color-accent-soft);
  line-height: 1.8;
}

.gate-index {
  margin-top: 48px;
  border-top: 1px solid var(--border-soft);
}

.gate-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1.2fr 1.4fr 120px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--color-text);
  text-decoration: none;
}

.gate-row::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(168, 116, 255, 0) 0%,
    rgba(168, 116, 255, 0.65) 24%,
    rgba(215, 200, 255, 1) 72%,
    rgba(255, 255, 255, 0.95) 100%
  );
  box-shadow:
    0 0 6px rgba(168, 116, 255, 0.8),
    0 0 14px rgba(168, 116, 255, 0.48),
    0 0 24px rgba(215, 200, 255, 0.24);
  transition: width 300ms ease;
}

.gate-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 10px;
  background: linear-gradient(
    90deg,
    rgba(168, 116, 255, 0) 0%,
    rgba(168, 116, 255, 0.16) 28%,
    rgba(215, 200, 255, 0.28) 72%,
    rgba(255, 255, 255, 0.12) 100%
  );
  filter: blur(7px);
  opacity: 0.95;
  transition: width 360ms ease;
  pointer-events: none;
}

.gate-row:hover::before,
.gate-row:hover::after {
  width: 100%;
}

.gate-row__number {
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.gate-row__label {
  color: var(--color-accent-soft);
  font-size: 1rem;
}

.gate-row strong {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.gate-row__type {
  justify-self: end;
  color: rgba(244, 240, 255, 0.42);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gate-note {
  margin: 34px 0 0;
  color: rgba(215, 200, 255, 0.56);
  font-size: 0.82rem;
  line-height: 1.8;
}

.home-version {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 20;
  color: rgba(215, 200, 255, 0.22);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

html[data-theme="light"] .gate-menu {
  background: linear-gradient(
    to bottom,
    rgba(235, 220, 255, 1),
    rgba(246, 240, 255, 1)
  );
}

html[data-theme="light"] .gate-row {
  border-bottom-color: rgba(92, 68, 135, 0.14);
}

html[data-theme="light"] .gate-row__number {
  color: rgba(72, 55, 100, 0.52);
}

html[data-theme="light"] .gate-row__label {
  color: rgba(101, 72, 160, 0.8);
}

html[data-theme="light"] .gate-row__type,
html[data-theme="light"] .gate-note {
  color: rgba(72, 55, 100, 0.48);
}

@media (max-width: 760px) {
  .gate-row {
    grid-template-columns: 42px 1fr;
    gap: 10px 16px;
    padding: 22px 0;
  }

  .gate-row__label,
  .gate-row strong,
  .gate-row__type {
    grid-column: 2;
  }

  .gate-row__type {
    justify-self: start;
  }
}
