/* Modernist start screen overlay. Scoped to #modern-menu; class names prefixed mm-. */
:root {
  --mm-paper: #f2f0ea;
  --mm-ink: #111;
  --mm-muted: #77746c;
  --mm-red: #e4002b;
  --mm-green: #00a651;
  --mm-yellow: #ffc800;
  --mm-blue: #0057b8;
  --mm-font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
}

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

#modern-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: var(--mm-paper);
  color: var(--mm-ink);
  font-family: var(--mm-font);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
}

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

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

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

#modern-menu .mm-tag {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--mm-muted);
}

#modern-menu .mm-rule {
  height: 2px;
  background: var(--mm-ink);
  border: 0;
  margin: 28px 0 0;
}

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

#modern-menu .mm-section {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 2px solid var(--mm-ink);
}

#modern-menu .mm-num {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--mm-red);
  padding-top: 4px;
  min-width: 26px;
}

#modern-menu .mm-section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

#modern-menu .mm-section p {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--mm-ink);
}

#modern-menu .mm-play {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
  min-height: 72px;
  margin-top: 32px;
  border: 2px solid var(--mm-ink);
  border-radius: 0;
  background: var(--mm-ink);
  color: var(--mm-paper);
  font-family: var(--mm-font);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.08s linear, box-shadow 0.08s linear;
}

#modern-menu .mm-play:hover,
#modern-menu .mm-play:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--mm-red);
  outline: none;
}

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

#modern-menu .mm-play[disabled] {
  cursor: progress;
  opacity: 0.6;
}

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

#modern-menu @media (max-width: 360px) {
  #modern-menu .mm-col {
    padding: 36px 16px 24px;
  }
  #modern-menu .mm-play {
    padding: 0 18px;
  }
}

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