.menu-overlay.menu58 {
  position: fixed;
  inset: 0;
  z-index: 9000;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: #2E2C2A;
  box-sizing: border-box;
}

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

.menu58__ticker {
  position: absolute;
  left: -10px;
  top: 0;
  height: 200%;
  pointer-events: none;
}

.menu58__ticker > div {
  font: 400 120px/.86 'Anton', sans-serif;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(227,204,142,.1);
  animation: menu58-drift 40s linear infinite;
}

.menu58__header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  height: 72px;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  box-sizing: border-box;
  flex: none;
}

.menu58__logo { height: 26px; width: auto; display: block; }

.menu58__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #FFFBF0;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex: none;
  -webkit-tap-highlight-color: transparent;
}

.menu58__body { position: relative; flex: 1; min-height: 0; }

.menu58__list {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom,transparent 0,#000 12%,#000 80%,transparent 100%);
  mask-image: linear-gradient(to bottom,transparent 0,#000 12%,#000 80%,transparent 100%);
}

.menu58__list::-webkit-scrollbar { display: none; }
.menu58__spacer { height: var(--menu58-spacer, 0px); }

.menu58__row {
  position: relative;
  scroll-snap-align: center;
  width: calc(100% - 24px);
  margin: 0 12px;
  height: 96px;
  display: grid;
  grid-template-columns: 40px 1fr 96px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  color: #CFC8BE;
  text-decoration: none;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.menu58__row:hover { color: #CFC8BE; text-decoration: none; }

.menu58__band {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  bottom: 8px;
  border-radius: 16px;
  background: var(--menu58-color);
  border: 2.5px solid #1A1917;
  box-shadow: 4px 5px 0 #1A1917;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.5,0,.2,1);
  display: block;
  pointer-events: none;
}

.menu58__row.is-active .menu58__band { transform: scaleX(1); }

.menu58__num {
  position: relative;
  font: 400 22px/1 'Anton', sans-serif;
  color: #6B6560;
  transition: color .25s .1s;
}

.menu58__text { position: relative; min-width: 0; }

.menu58__name {
  display: block;
  font: 400 24px/1.15 'Dela Gothic One', sans-serif;
  color: #CFC8BE;
  white-space: nowrap;
  transition: color .25s .1s;
}

.menu58__row--long .menu58__name { font-size: 20px; }

.menu58__en {
  display: block;
  margin-top: 5px;
  font: 800 9.5px/1 'Outfit', sans-serif;
  letter-spacing: .22em;
  color: #6B6560;
  transition: color .25s .1s;
}

.menu58__row.is-active .menu58__num,
.menu58__row.is-active .menu58__name,
.menu58__row.is-active .menu58__en { color: #1A1917; }

.menu58__char { position: relative; height: 96px; overflow: visible; }

.menu58__char-inner {
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 2px;
  width: calc(100% + 12px);
  height: 72px;
  display: block;
  transition: height .3s cubic-bezier(.3,1.5,.5,1);
}

.menu58__row.is-active .menu58__char-inner { height: 124px; }
.menu58__char-inner.is-hop-1 { animation: menu58-hop1 .55s ease-out both; }
.menu58__char-inner.is-hop-2 { animation: menu58-hop2 .55s ease-out both; }

.menu58__sil,
.menu58__color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  transition: opacity .25s;
}

.menu58__sil { opacity: 1; }
.menu58__color { opacity: 0; }
.menu58__row.is-active .menu58__sil { opacity: 0; }
.menu58__row.is-active .menu58__color { opacity: 1; }

.menu58__action {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.menu58__hint {
  font: 900 11px/1 'M PLUS Rounded 1c', sans-serif;
  color: #A8A097;
}

.menu58__go {
  pointer-events: auto;
  border: 2.5px solid #1A1917;
  background: var(--menu58-color, #E3CC8E);
  color: #1A1917;
  border-radius: 12px;
  padding: 12px 22px;
  font: 900 14px/1 'M PLUS Rounded 1c', sans-serif;
  cursor: pointer;
  transform: skewX(-6deg);
  box-shadow: 3px 4px 0 #B0603F;
  transition: background .25s;
  -webkit-tap-highlight-color: transparent;
}

.menu58__go > span { display: inline-block; transform: skewX(6deg); }

@keyframes menu58-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes menu58-hop1 { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-22px) scale(1.08); } 60% { transform: translateY(0) scale(.96,1.04); } 80% { transform: translateY(-6px); } 100% { transform: none; } }
@keyframes menu58-hop2 { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-22px) scale(1.08); } 60% { transform: translateY(0) scale(.96,1.04); } 80% { transform: translateY(-6px); } 100% { transform: none; } }

@media (max-width: 350px) {
  .menu58__row { grid-template-columns: 24px 1fr 96px; gap: 4px; padding: 0 6px; }
}

@media (min-width: 600px) {
  .menu58__header {
    max-width: none;
    padding-inline: max(16px, calc((100vw - 1080px) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu58, .menu58 * { animation: none !important; transition: none !important; }
}
