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

#modern-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f2f0ea;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
}

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

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

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

#modern-menu .mm-tag {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.4;
  color: #77746c;
}

#modern-menu .mm-rule {
  height: 2px;
  background: #111;
  margin: 28px 0 0;
}

#modern-menu .mm-bars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 8px;
  margin-bottom: 8px;
}

#modern-menu .mm-bars span {
  display: block;
}

#modern-menu .mm-bars .mm-red { background: #e4002b; }
#modern-menu .mm-bars .mm-green { background: #00a651; }
#modern-menu .mm-bars .mm-yellow { background: #ffc800; }
#modern-menu .mm-bars .mm-blue { background: #0057b8; }

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

#modern-menu .mm-num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #77746c;
  padding-top: 4px;
}

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

#modern-menu .mm-sec p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
}

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

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

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

#modern-menu .mm-play:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

#modern-menu .mm-play svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

#modern-menu .mm-status {
  margin: 14px 0 0;
  min-height: 1.4em;
  font-size: 15px;
  color: #e4002b;
}

@media (max-width: 360px) {
  #modern-menu .mm-sec {
    grid-template-columns: 40px 1fr;
  }
}
