/* Modern start screen overlay. All selectors live under #modern-menu. */
#modern-menu {
  position: fixed;
  inset: 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;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

#modern-menu .mm-tagline {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.4;
  color: #77746c;
}

#modern-menu .mm-rule {
  margin: 28px 0 8px;
  height: 0;
  border: 0;
  border-top: 2px solid #111;
}

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

#modern-menu .mm-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 2px solid #111;
}

#modern-menu .mm-num {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

#modern-menu .mm-num--red { color: #e4002b; }
#modern-menu .mm-num--green { color: #00a651; }
#modern-menu .mm-num--blue { color: #0057b8; }
#modern-menu .mm-num--yellow { color: #ffc800; }

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

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

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

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

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

#modern-menu .mm-button:hover,
#modern-menu .mm-button:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 #ffc800;
}

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

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

#modern-menu .mm-foot {
  margin: 14px 0 0;
  font-size: 13px;
  color: #77746c;
  text-align: center;
}

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