/* Modernist start screen overlay. Everything lives under #modern-menu. */

#modern-menu {
  --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;

  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--mm-paper);
  color: var(--mm-ink);
  font-family: var(--mm-font);
  -webkit-font-smoothing: antialiased;
  text-align: left;
  letter-spacing: normal;
  line-height: 1.4;
}

#modern-menu.mm-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: 8vh 24px 32px;
}

#modern-menu .mm-stripe {
  display: flex;
  height: 10px;
  margin-bottom: 28px;
}

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

#modern-menu .mm-stripe span:nth-child(1) { background: var(--mm-red); }
#modern-menu .mm-stripe span:nth-child(2) { background: var(--mm-green); }
#modern-menu .mm-stripe span:nth-child(3) { background: var(--mm-yellow); }
#modern-menu .mm-stripe span:nth-child(4) { background: var(--mm-blue); }

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

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

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

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

#modern-menu .mm-sec {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 2px solid var(--mm-ink);
}

#modern-menu .mm-num {
  flex: 0 0 auto;
  min-width: 34px;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#modern-menu .mm-sec:nth-child(4n+1) .mm-num { color: var(--mm-red); }
#modern-menu .mm-sec:nth-child(4n+2) .mm-num { color: var(--mm-green); }
#modern-menu .mm-sec:nth-child(4n+3) .mm-num { color: var(--mm-yellow); }
#modern-menu .mm-sec:nth-child(4n+4) .mm-num { color: var(--mm-blue); }

#modern-menu .mm-sec h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#modern-menu .mm-sec p {
  margin: 0;
  font-size: 16px;
  color: var(--mm-ink);
}

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

#modern-menu .mm-play .mm-arrow {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
}

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

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

#modern-menu .mm-play:focus-visible {
  outline: 3px solid var(--mm-blue);
  outline-offset: 4px;
}

#modern-menu .mm-play:disabled {
  background: var(--mm-muted);
  border-color: var(--mm-muted);
  cursor: default;
  transform: none;
  box-shadow: none;
}

@media (hover: none) {
  #modern-menu .mm-play:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 360px) {
  #modern-menu .mm-play {
    font-size: 18px;
  }
}
