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

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

#modern-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  display: none;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f2f0ea;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-y;
  margin: 0;
  padding: 0;
  text-align: left;
}

#modern-menu.mm-open {
  display: flex;
}

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

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

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

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

#modern-menu .mm-stripes {
  display: flex;
  height: 8px;
  margin: 0;
  padding: 0;
}

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

#modern-menu .mm-s1 { background: #e4002b; }
#modern-menu .mm-s2 { background: #00a651; }
#modern-menu .mm-s3 { background: #ffc800; }
#modern-menu .mm-s4 { background: #0057b8; }

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

#modern-menu .mm-num {
  flex: 0 0 auto;
  min-width: 30px;
  padding-top: 3px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #111;
}

#modern-menu .mm-section h2 {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
}

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

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

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

#modern-menu .mm-play:active {
  transform: translate(2px, 2px);
}

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

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

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

@media (max-width: 359px) {
  #modern-menu .mm-col {
    padding: 24px 16px;
  }
}
