/* =========================================================
   LEAVE IT PLAYING
   Vibe Selection Screen
   ========================================================= */


/* =========================================================
   SCREEN
   ========================================================= */

.vibe-screen {
    width: min(1100px, 100%);

    min-height: calc(100vh - 92px);

    margin: 0 auto;

    padding:
        20px 32px
        90px;
}


/* =========================================================
   HEADER
   ========================================================= */

.vibe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 60px;
}

.step-indicator {
    color: #4e4e56;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.16em;
}


/* =========================================================
   CONTENT
   ========================================================= */

.vibe-content {
    width: min(900px, 100%);

    margin: 0 auto;
}


/* =========================================================
   SCENE HEADING
   ========================================================= */

.scene-heading {
    margin-bottom: 70px;
}

.scene-heading .eyebrow {
    margin-bottom: 20px;
}

.scene-heading h2 {
    color: #f3f3f4;

    font-size:
        clamp(
            38px,
            6vw,
            68px
        );

    font-weight: 400;

    line-height: 1;

    letter-spacing: -0.06em;
}

.scene-heading p:last-child {
    margin-top: 22px;

    color: #686870;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   SELECTION GROUP
   ========================================================= */

.selection-group {
    margin: 0 0 52px;

    padding: 0;

    border: 0;
}

.selection-group legend {
    display: block;

    margin-bottom: 17px;

    color: #77777f;

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0.05em;
}


/* =========================================================
   CHOICE GRID
   ========================================================= */

.choice-grid {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


/* =========================================================
   CHOICE
   ========================================================= */

.choice {
    min-height: 45px;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding:
        0 15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.065);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.025);

    color: #73737b;

    cursor: pointer;

    font-size: 12px;

    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

.choice:hover {
    color: #ddd;

    background:
        rgba(255, 255, 255, 0.065);

    border-color:
        rgba(255, 255, 255, 0.12);

    transform:
        translateY(-1px);
}

.choice:active {
    transform:
        scale(0.97);
}


/* =========================================================
   ACTIVE CHOICE
   ========================================================= */

.choice.active,
.choice[aria-pressed="true"] {
    color: #f4f4f4;

    background:
        rgba(255, 255, 255, 0.105);

    border-color:
        rgba(255, 255, 255, 0.20);

    box-shadow:
        inset
        0 0 0 1px
        rgba(255, 255, 255, 0.025);
}


/* =========================================================
   ICON
   ========================================================= */

.choice-icon {
    font-size: 15px;

    line-height: 1;
}


/* =========================================================
   GENERATE
   ========================================================= */

.generate-section {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding-top: 10px;
}

.selection-summary {
    color: #55555d;

    font-size: 12px;

    transition:
        color 0.25s ease;
}

.selection-summary.has-selection {
    color: #85858d;
}

.generate-section .primary-button {
    margin-top: 18px;
}


/* =========================================================
   CHOICE APPEARANCE
   ========================================================= */

.selection-group {
    animation:
        selectionAppear 0.5s ease both;
}

.selection-group:nth-of-type(2) {
    animation-delay: 40ms;
}

.selection-group:nth-of-type(3) {
    animation-delay: 80ms;
}

.selection-group:nth-of-type(4) {
    animation-delay: 120ms;
}

.selection-group:nth-of-type(5) {
    animation-delay: 160ms;
}

@keyframes selectionAppear {

    from {
        opacity: 0;

        transform:
            translateY(10px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .vibe-screen {
        min-height: calc(100vh - 75px);

        padding:
            15px 20px
            70px;
    }

    .vibe-header {
        margin-bottom: 45px;
    }

    .scene-heading {
        margin-bottom: 55px;
    }

    .selection-group {
        margin-bottom: 42px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .vibe-screen {
        padding:
            12px 16px
            60px;
    }

    .step-indicator {
        display: none;
    }

    .scene-heading {
        margin-bottom: 45px;
    }

    .scene-heading h2 {
        font-size: 42px;
    }

    .scene-heading p:last-child {
        font-size: 13px;
    }

    .selection-group {
        margin-bottom: 38px;
    }

    .selection-group legend {
        margin-bottom: 13px;
    }

    .choice-grid {
        gap: 7px;
    }

    .choice {
        min-height: 42px;

        padding:
            0 12px;

        font-size: 11px;
    }

    .choice-icon {
        font-size: 14px;
    }

    .selection-summary {
        font-size: 11px;
    }
}