/* Modernist start screen overlay. All selectors live 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;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--mm-paper);
    color: var(--mm-ink);
    font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

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

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

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

#modern-menu .mm-kicker {
    display: flex;
    gap: 6px;
    margin: 0 0 20px;
}

#modern-menu .mm-kicker span {
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--mm-ink);
}

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

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

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

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

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

#modern-menu .mm-num {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

#modern-menu .mm-section.mm-s1 .mm-num { color: var(--mm-red); }
#modern-menu .mm-section.mm-s2 .mm-num { color: var(--mm-blue); }

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

#modern-menu .mm-body {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
}

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

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

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

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


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

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