/* Modernist start screen overlay. Every selector is scoped to #modern-menu or uses the mm- prefix. */

#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;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: var(--mm-bg);
  color: var(--mm-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.mm-stripe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 12px;
  margin-bottom: 28px;
}

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

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

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

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

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

#modern-menu .mm-num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

#modern-menu .mm-section:nth-child(1) .mm-num { color: var(--mm-red); }
#modern-menu .mm-section:nth-child(2) .mm-num { color: var(--mm-blue); }

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

#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%;
  min-height: 64px;
  margin: 28px 0 0;
  padding: 0 20px;
  border: 2px solid var(--mm-ink);
  border-radius: 0;
  background: var(--mm-ink);
  color: var(--mm-bg);
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

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

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

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

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

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

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

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