/* Modernist start screen overlay. All selectors live under #modern-menu. */
#modern-menu {
  --mm-bg: #f2f0ea;
  --mm-ink: #111;
  --mm-muted: #77746c;
  --mm-red: #e4002b;
  --mm-green: #00a651;
  --mm-yellow: #ffc800;
  --mm-blue: #0057b8;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: var(--mm-bg);
  color: var(--mm-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  touch-action: pan-y;
}

#modern-menu[hidden] {
  display: none !important;
}

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

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

#modern-menu .mm-top {
  display: flex;
  gap: 6px;
  margin: 8px 0 28px;
}

#modern-menu .mm-swatch {
  width: 14px;
  height: 14px;
  border: 2px solid var(--mm-ink);
  display: block;
}

#modern-menu .mm-swatch--red { background: var(--mm-red); }
#modern-menu .mm-swatch--green { background: var(--mm-green); }
#modern-menu .mm-swatch--yellow { background: var(--mm-yellow); }
#modern-menu .mm-swatch--blue { background: var(--mm-blue); }

#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.035em;
  overflow-wrap: anywhere;
  word-break: normal;
}

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

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

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

#modern-menu .mm-section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 2px solid var(--mm-ink);
}

#modern-menu .mm-num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mm-muted);
  padding-top: 3px;
}

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

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

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

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

#modern-menu .mm-play:hover,
#modern-menu .mm-play:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--mm-ink);
  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-foot {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--mm-muted);
}
