/* ===========================
   CREDITS MODAL
=========================== */

.credits-modal {

    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    z-index: 99999;

    transition:
        opacity .25s ease,
        visibility .25s ease;

}


.credits-modal.open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* ===========================
   BACKDROP
=========================== */

.credits-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(93, 53, 22, .45);

}


/* ===========================
   MODAL WINDOW
=========================== */

.credits-window {

    position: relative;

    z-index: 1;

    width: min(700px, 90vw);

    max-height: 85vh;

    overflow-y: auto;

}


/* ===========================
   CREDITS PREVIEW
=========================== */

.credits-preview {

    display: flex;

    justify-content: center;

    padding: 70px 40px;

    animation:
        cardPop .45s cubic-bezier(.34,1.56,.64,1);

}


/* ===========================
   WOOD MENU BACKING
=========================== */

.credits-menu {

    position: relative;

    width: min(650px, 100%);

    padding: 55px;

    background: #7A5031;

    border-radius: 28px;

    overflow: hidden;

    box-shadow:
        0 20px 50px rgba(93, 53, 22, .3);

    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.04) 5px,
            transparent 12px,
            rgba(0,0,0,.06) 20px
        );

}


/* ===========================
   PAPER INSERT
=========================== */

.credits-menu::before {

    content: "";

    position: absolute;

    inset: 20px;

    background: #FFF8E6;

    border-radius: 22px;

    z-index: 0;

}


/* ===========================
   MENU CONTENT
=========================== */

.credits-menu > * {

    position: relative;

    z-index: 1;

}


/* ===========================
   HEADER
=========================== */

.menu-header {

    position: relative;

}


/* ===========================
   TITLE
=========================== */

.menu-title {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 10px;

    text-align: center;

    color: #5D3516;

}


.menu-title h1 {

    margin: 0;

    font-family: var(--heading-font);

    font-size: 1.6rem;

    font-weight: 700;

    letter-spacing: .15em;

    text-transform: uppercase;

}


.menu-title span {

    color: #B96A59;

    font-size: 1rem;

}


/* ===========================
   SUBTITLE
=========================== */

.menu-subtitle {

    margin: 5px 0 35px;

    text-align: center;

    color: #80502B;

    font-family: var(--body-font);

    font-size: .95rem;

    line-height: 1.5;

}


/* ===========================
   CLOSE BUTTON
=========================== */

.credits-close {

    position: absolute;

    top: 0;
    right: 0;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 12px;

    background: transparent;

    color: var(--brown-dark);

    font-size: 1rem;

    cursor: pointer;

    transition:
        transform .2s ease,
        background-color .2s ease;

}


.credits-close:hover {

    transform: rotate(5deg) scale(1.08);

    background:
        rgba(185, 106, 89, .12);

}


.credits-close:active {

    transform:
        scale(.94);

}


/* ===========================
   CREDITS LIST
=========================== */

.credits-list {

    width: 100%;

    margin-top: 10px;

}


/* ===========================
   MAIN NUMBERED LIST
=========================== */

.credits-list ol {

    margin: 0;

    padding-left: 28px;

    color: var(--brown-dark);

}


/* ===========================
   CREDIT CATEGORY
=========================== */

.credits-list ol > li {

    margin-bottom: 24px;

    padding-left: 8px;

}


.credits-list ol > li:last-child {

    margin-bottom: 0;

}


/* ===========================
   CATEGORY TITLE
=========================== */

.credits-list h3 {

    margin: 0 0 8px;

    color: var(--brown-dark);

    font-family: var(--heading-font);

    font-size: .95rem;

    font-weight: 700;

    letter-spacing: .08em;

}


/* ===========================
   CREDIT ITEMS
=========================== */

.credits-list ul {

    margin: 0;

    padding-left: 20px;

}


.credits-list ul li {

    margin-bottom: 5px;

    color: var(--brown);

    font-family: var(--body-font);

    font-size: .85rem;

    line-height: 1.5;

    transition:
        transform .2s ease,
        color .2s ease;

}


.credits-list ul li:last-child {

    margin-bottom: 0;

}


/* ===========================
   LIST MARKERS
=========================== */

.credits-list ul li::marker {

    color: var(--orange);

}


.credits-list ol > li::marker {

    color: var(--brown-dark);

    font-family: var(--heading-font);

    font-weight: 700;

}


/* ===========================
   ITEM HOVER
=========================== */

.credits-list ul li:hover {

    color: var(--brown-dark);

    transform: translateX(3px);

}


/* ===========================
   MOBILE
=========================== */

@media (max-width: 600px) {

    .credits-modal {

        padding: 15px;

    }


    .credits-window {

        width: 100%;

        max-height: 90vh;

    }


    .credits-menu {

        padding: 45px 35px;

        border-radius: 22px;

    }


    .credits-menu::before {

        inset: 14px;

        border-radius: 17px;

    }


    .menu-title h1 {

        font-size: 1.25rem;

    }


    .menu-subtitle {

        font-size: .82rem;

        margin-bottom: 28px;

    }


    .credits-list ol {

        padding-left: 23px;

    }


    .credits-list ol > li {

        padding-left: 5px;

    }

}