/* Modernist start screen overlay. Everything is scoped to #modern-menu. */

#modern-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: #f2f0ea;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  text-align: left;
}

#modern-menu *,
#modern-menu *::before,
#modern-menu *::after {
  box-sizing: border-box;
}

#modern-menu.mm-hidden {
  display: none;
}

#modern-menu .mm-col {
  max-width: 480px;
  min-height: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

#modern-menu .mm-top {
  padding-top: 40px;
}

#modern-menu .mm-title {
  margin: 0;
  font-size: clamp(52px, 14vw, 80px);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

#modern-menu .mm-tagline {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}

#modern-menu .mm-rule {
  height: 2px;
  margin: 24px 0 0;
  border: 0;
  background: #111;
}

#modern-menu .mm-sections {
  margin: 0;
  padding: 0;
  list-style: none;
}

#modern-menu .mm-section {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 2px solid #111;
}

#modern-menu .mm-num {
  padding-top: 10px;
  border-top: 6px solid var(--mm-accent, #111);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

#modern-menu .mm-section h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

#modern-menu .mm-section p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

#modern-menu .mm-play {
  margin-top: auto;
  padding-top: 32px;
}

#modern-menu .mm-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0 24px;
  border: 2px solid #111;
  border-radius: 0;
  background: #111;
  color: #f2f0ea;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

#modern-menu .mm-btn svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

#modern-menu .mm-btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 #e4002b;
}

#modern-menu .mm-btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

#modern-menu .mm-btn:focus {
  outline: none;
}

#modern-menu .mm-btn:focus-visible {
  outline: 3px solid #0057b8;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  #modern-menu .mm-btn {
    transition: none;
  }
}

@media (max-width: 360px) {
  #modern-menu .mm-section {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }
  #modern-menu .mm-num {
    font-size: 26px;
  }
}
