/* Modernist start screen overlay. Every selector is scoped to #modern-menu. */

#modern-menu {
  --mm-css: 1;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  background: #f2f0ea;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

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

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

#modern-menu .mm-col {
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 40px 24px;
}

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

#modern-menu .mm-tagline {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.4;
  color: #77746c;
}

#modern-menu .mm-rule {
  display: block;
  border: 0;
  height: 2px;
  background: #111;
  margin-top: 24px;
}

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

#modern-menu .mm-section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 2px solid #111;
}

#modern-menu .mm-num {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

#modern-menu .mm-num::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  background: #e4002b;
}

#modern-menu .mm-section:nth-child(2) .mm-num::before { background: #00a651; }
#modern-menu .mm-section:nth-child(3) .mm-num::before { background: #ffc800; }
#modern-menu .mm-section:nth-child(4) .mm-num::before { background: #0057b8; }

#modern-menu .mm-h {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

#modern-menu .mm-p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.45;
  color: #111;
}

#modern-menu .mm-play {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 28px;
  padding: 20px 22px;
  background: #111;
  color: #f2f0ea;
  border: 2px solid #111;
  border-radius: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

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

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

#modern-menu .mm-play:focus-visible {
  outline: 3px solid #0057b8;
  outline-offset: 3px;
}

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

#modern-menu .mm-arrow {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

@media (max-width: 360px) {
  #modern-menu .mm-col {
    padding: 28px 24px;
  }
  #modern-menu .mm-section {
    grid-template-columns: 48px 1fr;
  }
}
