/* Modernist start screen overlay. Everything is scoped under #modern-menu. */

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

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

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

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

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

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

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

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

#modern-menu .mm-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #e4002b;
}

#modern-menu .mm-sec[data-accent="blue"] .mm-num {
    color: #0057b8;
}

#modern-menu .mm-sec[data-accent="green"] .mm-num {
    color: #00a651;
}

#modern-menu .mm-h {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

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

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

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

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

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

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

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