/* Modern start screen overlay. Scoped to #modern-menu; all classes prefixed mm-. */

#modern-menu {
  --mm-bg: #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;
  display: flex;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--mm-bg);
  color: var(--mm-ink);
  font-family: var(--mm-font);
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
}

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

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

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

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

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

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

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

.mm-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mm-num--1 {
  color: var(--mm-red);
}

.mm-num--2 {
  color: var(--mm-green);
}

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

.mm-section p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--mm-muted);
}

.mm-play {
  appearance: none;
  -webkit-appearance: none;
  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: var(--mm-font);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.mm-play:hover,
.mm-play:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--mm-red);
}

.mm-play:focus-visible {
  outline: 3px solid var(--mm-yellow);
  outline-offset: 4px;
}

.mm-play:disabled {
  cursor: progress;
  color: var(--mm-muted);
  border-color: var(--mm-muted);
  background: transparent;
}

.mm-play:disabled:hover {
  transform: none;
  box-shadow: none;
}

.mm-arrow {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 360px) {
  .mm-section {
    grid-template-columns: 40px 1fr;
    gap: 8px;
  }
  .mm-num {
    font-size: 18px;
  }
}
