/* =========================================================
   PART OF THE PLOT
   HOW IT WORKS PAGE
   Dark Blue / Elegant / Immersive Theme
   Matches About & FAQ Page Styling
   ========================================================= */


/* =========================================================
   1. HOW IT WORKS HERO
   ========================================================= */

.how-it-works-hero {
    position: relative;

    min-height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 120px 20px;

    box-sizing: border-box;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            #293041 0%,
            #171c28 42%,
            #10131a 85%
        );

    overflow: hidden;
}


/* ---------------------------------------------------------
   Subtle Gold Atmosphere
   --------------------------------------------------------- */

.how-it-works-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(198, 161, 91, 0.05) 50%,
            transparent 100%
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   Hero Content
   --------------------------------------------------------- */

.how-it-works-hero-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 800px;

    margin: 0 auto;
}


/* ---------------------------------------------------------
   Hero Heading
   --------------------------------------------------------- */

.how-it-works-hero h1 {
    margin: 20px 0;

    color: var(--cream);

    font-family: "Cinzel", serif;

    font-size: clamp(55px, 9vw, 100px);
    font-weight: 500;

    line-height: 1.05;

    letter-spacing: 2px;
}


.how-it-works-hero h1 span {
    color: var(--gold);
}


/* ---------------------------------------------------------
   Hero Tagline
   --------------------------------------------------------- */

.how-it-works-hero .tagline {
    color: var(--muted);

    font-size: 20px;

    line-height: 1.7;
}


.how-it-works-hero .tagline strong {
    color: var(--cream);
}


/* =========================================================
   2. WHAT IS AN IMMERSIVE MYSTERY?
   ========================================================= */

.how-it-works-intro {
    position: relative;

    width: 100%;

    /*
       The site header is fixed at 80px.
       Add that space here so the first content
       does not sit underneath the header.
    */
    padding: 175px 30px 85px;

    box-sizing: border-box;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            #293041 0%,
            #171c28 42%,
            #10131a 85%
        );

    overflow: hidden;
}


/* ---------------------------------------------------------
   Subtle Gold Atmosphere
   --------------------------------------------------------- */

.how-it-works-intro::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(198, 161, 91, 0.05) 50%,
            transparent 100%
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   Intro Content
   --------------------------------------------------------- */

.how-it-works-intro-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 850px;

    margin: 0 auto;
}


/* ---------------------------------------------------------
   Eyebrow
   --------------------------------------------------------- */

.how-it-works-intro .eyebrow {
    margin: 0 0 18px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Main Heading
   --------------------------------------------------------- */

.how-it-works-intro h2 {
    margin: 0 0 30px;

    color: var(--cream);

    font-family: "Cinzel", serif;

    font-size: clamp(44px, 7vw, 72px);
    font-weight: 500;

    line-height: 1.1;

    letter-spacing: 2px;
}


.how-it-works-intro h2 span {
    color: var(--gold);
}


/* ---------------------------------------------------------
   Decorative Divider
   --------------------------------------------------------- */

.how-it-works-intro .divider {
    width: 55px;
    height: 1px;

    margin: 0 auto 28px;

    background: var(--gold);
}


/* ---------------------------------------------------------
   Lead Paragraph
   --------------------------------------------------------- */

.how-it-works-intro .intro-lead {
    max-width: 650px;

    margin: 0 auto 25px;

    color: #d4d0c8;

    font-size: 18px;
    font-weight: 300;

    line-height: 1.8;
}


/* ---------------------------------------------------------
   Supporting Paragraphs
   --------------------------------------------------------- */

.how-it-works-intro p:not(.intro-lead):not(.eyebrow) {
    max-width: 700px;

    margin: 0 auto 22px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


/* ---------------------------------------------------------
   Gold Emphasis
   --------------------------------------------------------- */

.how-it-works-intro strong {
    color: var(--gold);

    font-weight: 500;
}


/* =========================================================
   3. BEFORE THE GAME
   ========================================================= */

.how-it-works {
    position: relative;

    width: 100%;

    padding: 110px 30px 115px;

    box-sizing: border-box;

    background:
        radial-gradient(
            circle at center,
            #293041 0%,
            #171c28 42%,
            #10131a 85%
        );

    overflow: hidden;
}


/* ---------------------------------------------------------
   Subtle Gold Atmosphere
   --------------------------------------------------------- */

.how-it-works::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(198, 161, 91, 0.035) 50%,
            transparent 100%
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   Section Heading
   --------------------------------------------------------- */

.how-it-works .section-heading {
    position: relative;
    z-index: 1;

    max-width: 750px;

    margin: 0 auto 70px;

    text-align: center;
}


/* ---------------------------------------------------------
   Eyebrow
   --------------------------------------------------------- */

.how-it-works .section-heading .eyebrow {
    margin: 0 0 12px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Section Heading
   --------------------------------------------------------- */

.how-it-works .section-heading h2 {
    margin: 0 0 20px;

    color: var(--cream);

    font-family: "Cinzel", serif;

    font-size: clamp(34px, 5vw, 52px);
    font-weight: 500;

    line-height: 1.2;
}


/* ---------------------------------------------------------
   Section Description
   --------------------------------------------------------- */

.how-it-works .section-heading > p:last-child {
    max-width: 650px;

    margin: 20px auto 0;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


/* =====================================================
   4. ORGANIZER VIDEO
   ===================================================== */

.video-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 700px;
    margin: 30px auto;
}

.video-container video {
    display: block;
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   5. BEFORE-THE-GAME STEP GRID
   ========================================================= */

.steps {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

    box-sizing: border-box;
}


/* =========================================================
   6. STEP CARDS
   ========================================================= */

.how-it-works .step {
    position: relative;

    padding: 40px 30px;

    text-align: center;

    background:
        rgba(255, 255, 255, 0.015);

    border-top:
        1px solid rgba(198, 161, 91, 0.25);

    border-left:
        1px solid rgba(198, 161, 91, 0.08);

    border-right:
        1px solid rgba(198, 161, 91, 0.08);

    border-bottom:
        1px solid rgba(198, 161, 91, 0.08);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.16);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* ---------------------------------------------------------
   Subtle Inner Border
   --------------------------------------------------------- */

.how-it-works .step::before {
    content: "";

    position: absolute;
    inset: 8px;

    border:
        1px solid rgba(198, 161, 91, 0.055);

    pointer-events: none;
}


/* ---------------------------------------------------------
   Step Hover
   --------------------------------------------------------- */

.how-it-works .step:hover {
    background:
        rgba(255, 255, 255, 0.025);

    border-top-color:
        rgba(198, 161, 91, 0.42);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.23);
}


/* =========================================================
   7. STEP NUMBER
   ========================================================= */

.how-it-works .step-number {
    position: relative;

    margin-bottom: 20px;

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 30px;
    font-weight: 500;

    line-height: 1;
}


/* =========================================================
   8. STEP HEADING
   ========================================================= */

.how-it-works .step h3 {
    position: relative;

    margin: 0 0 15px;

    color: var(--cream);

    font-family: "Cinzel", serif;

    font-size: 20px;
    font-weight: 500;

    line-height: 1.3;
}


/* =========================================================
   9. STEP DESCRIPTION
   ========================================================= */

.how-it-works .step p {
    position: relative;

    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   10. STEP LINKS
   ========================================================= */

.how-it-works .step .text-link {
    position: relative;

    display: inline-block;

    margin-top: 15px;

    color: var(--gold);

    border-bottom-color: var(--gold);
}


/* =========================================================
   11. SCHEDULING AVAILABILITY
   ========================================================= */

.how-it-works .schedule-availability {
    position: relative;

    margin-top: 12px;

    color: var(--muted);

    font-family: "Montserrat", sans-serif;

    font-size: 0.68rem;

    letter-spacing: 0.04em;
}


/* =========================================================
   12. DURING THE GAME
   ========================================================= */

.game-process {
    position: relative;

    width: 100%;

    padding: 115px 30px;

    box-sizing: border-box;

    background:
        radial-gradient(
            circle at center,
            #293041 0%,
            #171c28 42%,
            #10131a 85%
        );

    border-top:
        1px solid rgba(255, 255, 255, 0.025);

    overflow: hidden;
}


/* ---------------------------------------------------------
   Subtle Gold Atmosphere
   --------------------------------------------------------- */

.game-process::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(198, 161, 91, 0.035) 50%,
            transparent 100%
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   Section Heading
   --------------------------------------------------------- */

.game-process .section-heading {
    position: relative;
    z-index: 1;

    max-width: 750px;

    margin: 0 auto 80px;

    text-align: center;
}


/* ---------------------------------------------------------
   Eyebrow
   --------------------------------------------------------- */

.game-process .section-heading .eyebrow {
    margin: 0 0 12px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */

.game-process .section-heading h2 {
    margin: 0 0 25px;

    color: var(--cream);

    font-family: "Cinzel", serif;

    font-size: clamp(34px, 5vw, 52px);
    font-weight: 500;

    line-height: 1.2;
}


/* ---------------------------------------------------------
   Description
   --------------------------------------------------------- */

.game-process .section-heading > p:last-child {
    max-width: 650px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   13. PROCESS STEPS
   ========================================================= */

.game-process-steps {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Individual Process Step
   --------------------------------------------------------- */

.game-process-step {
    display: grid;

    grid-template-columns: 90px minmax(0, 1fr);

    gap: 35px;

    padding: 40px 0;

    border-top:
        1px solid rgba(198, 161, 91, 0.14);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}


.game-process-step:last-child {
    border-bottom:
        1px solid rgba(198, 161, 91, 0.14);
}


/* ---------------------------------------------------------
   Process Step Hover
   --------------------------------------------------------- */

.game-process-step:hover {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(198, 161, 91, 0.025),
            transparent
        );

    border-top-color:
        rgba(198, 161, 91, 0.25);
}


/* =========================================================
   14. PROCESS NUMBER
   ========================================================= */

.game-process-number {
    padding-top: 3px;

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 24px;
    font-weight: 500;

    letter-spacing: 0.08em;
}


/* =========================================================
   15. PROCESS CONTENT
   ========================================================= */

.game-process-content h3 {
    margin: 0 0 12px;

    color: var(--cream);

    font-family: "Cinzel", serif;

    font-size: 25px;
    font-weight: 500;

    line-height: 1.3;
}


.game-process-content p {
    max-width: 650px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   16. SHARED ACCENTS
   ========================================================= */

.how-it-works-intro .eyebrow,
.how-it-works .eyebrow,
.game-process .eyebrow {
    color: var(--gold);
}


/* =========================================================
   17. WIDTH SAFETY
   ========================================================= */

.how-it-works-hero,
.how-it-works-intro,
.how-it-works,
.game-process {
    max-width: 100%;
}


.how-it-works-hero-content,
.how-it-works-intro-content,
.steps,
.game-process-steps {
    box-sizing: border-box;
}


/* =========================================================
   18. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .steps {
        max-width: 650px;

        grid-template-columns: 1fr;

        gap: 25px;
    }


    .how-it-works .step {
        padding: 38px 30px;
    }

}


/* =========================================================
   19. MOBILE
   ========================================================= */

@media (max-width: 700px) {

    /* -----------------------------------------------------
       Hero
       ----------------------------------------------------- */

    .how-it-works-hero {
        min-height: 650px;

        padding: 100px 20px;
    }


    .how-it-works-hero h1 {
        font-size: 48px;

        letter-spacing: 1px;
    }


    .how-it-works-hero .tagline {
        font-size: 17px;
    }


    /* -----------------------------------------------------
       Intro
       ----------------------------------------------------- */

    .how-it-works-intro {
        /*
           80px fixed header
           + 85px original section spacing
        */
        padding: 165px 20px 70px;
    }


    .how-it-works-intro h2 {
        font-size: 42px;

        letter-spacing: 1px;
    }


    .how-it-works-intro .intro-lead {
        font-size: 17px;
    }


    .how-it-works-intro p:not(.intro-lead):not(.eyebrow) {
        font-size: 14px;

        line-height: 1.8;
    }


    /* -----------------------------------------------------
       Before the Game
       ----------------------------------------------------- */

    .how-it-works {
        padding: 90px 20px;
    }


    .how-it-works .section-heading {
        margin-bottom: 50px;
    }


    .how-it-works .section-heading h2 {
        font-size: 36px;
    }


    /* -----------------------------------------------------
       Organizer Video
       ----------------------------------------------------- */

    .video-container {
        width: 100%;
        margin: 30px auto;
    }


    .video-container video {
        width: 100%;
        height: auto;
    }


    /* -----------------------------------------------------
       Step Cards
       ----------------------------------------------------- */

    .how-it-works .step {
        padding: 35px 25px;
    }


    /* -----------------------------------------------------
       During the Game
       ----------------------------------------------------- */

    .game-process {
        padding: 90px 25px;
    }


    .game-process .section-heading {
        margin-bottom: 50px;
    }


    .game-process .section-heading h2 {
        font-size: 36px;
    }


    /* -----------------------------------------------------
       Process Steps
       ----------------------------------------------------- */

    .game-process-step {
        grid-template-columns: 55px minmax(0, 1fr);

        gap: 20px;

        padding: 30px 0;
    }


    .game-process-number {
        font-size: 20px;
    }


    .game-process-content h3 {
        font-size: 21px;
    }


    .game-process-content p {
        font-size: 13px;

        line-height: 1.75;
    }

}


/* =========================================================
   20. SMALL MOBILE
   ========================================================= */

@media (max-width: 500px) {

    .how-it-works-hero {
        min-height: 600px;

        padding: 90px 18px;
    }


    .how-it-works-hero h1 {
        font-size: 42px;
    }


    .how-it-works-intro {
        padding: 145px 18px 60px;
    }


    .how-it-works-intro h2 {
        font-size: 39px;
    }


    .how-it-works {
        padding: 75px 18px;
    }


    .how-it-works .step {
        padding: 32px 22px;
    }


    .game-process {
        padding: 75px 18px;
    }


    .game-process-step {
        grid-template-columns: 45px minmax(0, 1fr);

        gap: 15px;
    }


    .game-process-content h3 {
        font-size: 19px;
    }

}

/* =========================================================
   21. INTRO AUDIENCE BUTTONS
   ========================================================= */

.how-it-works-audience-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 30px;
}

.how-it-works-audience-buttons .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 220px;
    min-height: 50px;
    box-sizing: border-box;
    padding: 12px 20px;

    text-align: center;
    text-decoration: none;
}

/* Keep section headings visible below the fixed header */
#organizer-section,
#player-section {
    scroll-margin-top: 90px;
}

/* Mobile */
@media (max-width: 500px) {

    .how-it-works-audience-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .how-it-works-audience-buttons .button {
        width: 220px;
        min-height: 50px;
        max-width: 100%;
    }

}


/* =========================================================
   END
   ========================================================= */