/* PAR-TEE — Flight Builder */

/* STARTPAGINA */

.page.homePage {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 32px 24px calc(110px + env(safe-area-inset-bottom));
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            rgba(15, 45, 32, 0.15) 0%,
            rgba(15, 45, 32, 0.35) 45%,
            rgba(15, 45, 32, 0.65) 100%
        ),
        url("../../../images/background-hrd10.png");
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
}

/* PAGINATITEL */

.pageHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.homePage .pageHeader h1 {
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.1;
}

.subtitle {
    max-width: 320px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.5;
}

/* KNOPPEN */

.homeActions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    gap: 16px;
    margin-top: 26px;
}

.homeActions button {
    width: 100%;
    min-height: 68px;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    background: #194D3A;
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 750;
    cursor: pointer;
    transition: transform 180ms ease;
}

.homeActions button:hover {
    transform: translateY(-2px);
}

.homeActions .rulesButton {
    width: auto;
    min-height: auto;
    padding: 6px 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.homeActions .rulesButton:hover {
    transform: none;
    opacity: 0.8;
}

.homeActions button:focus-visible {
    outline: 3px solid #C8E77B;
    outline-offset: 4px;
}

/* SPELREGELS MODAL */

.rulesModal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 35, 25, 0.7);
}

.rulesModal[hidden] {
    display: none;
}

.rulesModalContent {
    width: 100%;
    max-width: 480px;
    max-height: 85dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #F5F3EA;
    color: #194D3A;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.rulesModalHeader {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #DDE7D8;
}

.rulesModalHeader h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.closeRulesButton {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #DDE7D8;
    color: #194D3A;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.rulesModalBody {
    overflow-y: auto;
    padding: 20px 22px 24px;
    color: #405447;
    font-size: 0.9rem;
    line-height: 1.6;
}

.rulesModalBody > p:first-child {
    margin-top: 0;
}

.ruleGroup {
    margin-top: 22px;
}

.ruleGroup h3 {
    margin: 0 0 7px;
    color: #194D3A;
    font-size: 1rem;
    font-weight: 750;
}

.ruleGroup p {
    margin: 0 0 10px;
}

.ruleGroup strong {
    color: #194D3A;
}

body.modalOpen {
    overflow: hidden;
}

/* MOBIEL */

@media (max-width: 600px) {
    .page.homePage {
        padding: 32px 24px calc(110px + env(safe-area-inset-bottom));
        background-position: center;
    }

    .pageHeader h1 {
        font-size: 2.5rem;
    }

    .homeActions {
        max-width: 320px;
        margin-top: 24px;
    }

    .homeActions button {
        min-height: 68px;
        font-size: 1.4rem;
    }
}

/* TOEGANKELIJKHEID */

@media (prefers-reduced-motion: reduce) {
    .homeActions button {
        transition: none;
    }
}