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

#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.mm-hidden {
    display: none;
}

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

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

#modern-menu .mm-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 10px;
    margin: 0 -24px;
}

#modern-menu .mm-bars span:nth-child(1) { background: #e4002b; }
#modern-menu .mm-bars span:nth-child(2) { background: #00a651; }
#modern-menu .mm-bars span:nth-child(3) { background: #ffc800; }
#modern-menu .mm-bars span:nth-child(4) { background: #0057b8; }

#modern-menu .mm-head {
    padding-top: 48px;
}

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

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

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

#modern-menu .mm-sections {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

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

#modern-menu .mm-num {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    color: #e4002b;
    font-variant-numeric: tabular-nums;
}

#modern-menu .mm-section:nth-child(2) .mm-num {
    color: #0057b8;
}

#modern-menu .mm-section h2 {
    margin: 2px 0 6px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

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

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

#modern-menu .mm-play:hover {
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px 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: 3px;
}
