/* Modern start screen overlay. All selectors are scoped to #modern-menu. */

#modern-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f2f0ea;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

#modern-menu .mm-col {
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 24px;
}

#modern-menu .mm-strip {
  display: flex;
  height: 10px;
  margin-top: 16px;
}

#modern-menu .mm-strip span {
  flex: 1;
}

#modern-menu .mm-strip span:nth-child(1) { background: #e4002b; }
#modern-menu .mm-strip span:nth-child(2) { background: #00a651; }
#modern-menu .mm-strip span:nth-child(3) { background: #ffc800; }
#modern-menu .mm-strip span:nth-child(4) { background: #0057b8; }

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

#modern-menu .mm-tag {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.35;
  color: #77746c;
}

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

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

#modern-menu .mm-num {
  flex: 0 0 auto;
  min-width: 36px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

#modern-menu .mm-sec:nth-of-type(1) .mm-num { color: #e4002b; }
#modern-menu .mm-sec:nth-of-type(2) .mm-num { color: #0057b8; }

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

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

#modern-menu .mm-play {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 32px 0 24px;
  padding: 22px 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;
  -webkit-tap-highlight-color: transparent;
}

#modern-menu .mm-play .mm-arrow {
  font-size: 26px;
  line-height: 1;
}

#modern-menu .mm-play:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 #ffc800;
}

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

#modern-menu .mm-play:disabled {
  opacity: 0.6;
  cursor: default;
}

#modern-menu .mm-play:disabled:hover {
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  #modern-menu .mm-play {
    transition: transform 0.08s ease, box-shadow 0.08s ease;
  }
}
