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

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

#modern-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    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;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

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

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

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

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

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

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

#modern-menu .mm-sec {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 2px solid #111;
}

#modern-menu .mm-num {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    min-width: 28px;
}

#modern-menu .mm-sec:nth-child(1) .mm-num { color: #e4002b; }
#modern-menu .mm-sec:nth-child(2) .mm-num { color: #00a651; }

#modern-menu .mm-sec h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

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

#modern-menu .mm-play {
    display: block;
    width: 100%;
    margin: 32px 0 0;
    padding: 20px 16px;
    border: 2px solid #111;
    border-radius: 0;
    background: #111;
    color: #f2f0ea;
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    -webkit-tap-highlight-color: transparent;
}

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

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

#modern-menu .mm-play:disabled {
    background: #77746c;
    border-color: #77746c;
    cursor: wait;
}

#modern-menu .mm-arrow {
    display: inline-block;
    margin-left: 8px;
}

#modern-menu .mm-accent {
    display: flex;
    gap: 0;
    height: 8px;
    margin: 32px 0 0;
}

#modern-menu .mm-accent span {
    flex: 1 1 0;
}

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

@media (max-width: 360px) {
    #modern-menu .mm-play {
        font-size: 18px;
    }
}
