/* ==============================
   SWEET STREAK
============================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        linear-gradient(
            180deg,
            #fff8f3 0%,
            #ffe8ee 100%
        );

    color: #533e44;
}


/* MAIN */

.sweet-streak-container {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;
    padding: 40px 20px 80px;
}


/* SCREENS */

.game-screen {
    display: none;
}

.game-screen.active {
    display: block;
}


/* CARD */

.game-card {
    width: 100%;

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

    border-radius: 28px;

    padding: 40px 35px;

    box-shadow:
        0 12px 35px
        rgba(91, 55, 65, 0.12);

    text-align: center;
}


/* TEXT */

.eyebrow {
    margin: 0 0 10px;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 2px;

    color: #c98292;
}

h1 {
    margin: 0;

    font-size: 3rem;

    color: #7c4f5c;
}

h2 {
    margin: 5px 0 20px;

    font-size: 2rem;

    color: #7c4f5c;
}

.intro-text {
    max-width: 460px;

    margin: 15px auto 35px;

    line-height: 1.6;

    color: #806a70;
}


/* FORM */

form {
    display: flex;
    flex-direction: column;

    gap: 12px;

    text-align: left;
}

label {
    margin-top: 8px;

    font-size: 0.95rem;
    font-weight: 700;

    color: #6c535a;
}

input,
textarea,
select {
    width: 100%;

    padding: 15px 16px;

    border:
        2px solid
        #f1d9df;

    border-radius: 16px;

    background: #fff;

    color: #533e44;

    font-size: 16px;

    font-family: inherit;

    outline: none;
}

textarea {
    min-height: 110px;

    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #d994a4;
}


/* BUTTONS */

button {
    width: 100%;

    min-height: 54px;

    border: none;
    border-radius: 18px;

    padding: 14px 20px;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

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

.primary-button {
    margin-top: 20px;

    background: #d9899d;

    color: white;
}

.secondary-button {
    margin-top: 12px;

    background: #f7e8eb;

    color: #76515b;
}


/* SUMMARY */

.challenge-summary {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin: 25px 0;
}

.summary-item {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding: 18px;

    border-radius: 18px;

    background: #fff8fa;

}

.summary-item span {
    font-size: 0.8rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #b27b88;
}

.summary-item strong {
    font-size: 1.08rem;
}

.reward-box {
    background: #fff3f6;
}

.forfeit-box {
    background: #faf3ee;
}


/* ACTIVE TIMER */

.player-name {
    margin-bottom: 25px;

    color: #856c73;
}

.timer-wrap {
    margin: 25px 0;

    padding: 28px 15px;

    border-radius: 24px;

    background: #fff4f6;
}

.timer-label {
    margin: 0 0 8px;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 2px;

    color: #b77485;
}

#countdown {
    font-size: 2.8rem;
    font-weight: 800;

    letter-spacing: 2px;

    color: #7b4d59;
}


/* STAKES */

.stakes-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.stake-card {
    display: flex;
    flex-direction: column;

    gap: 10px;

    padding: 20px 15px;

    border-radius: 20px;

    background: #fff8fa;
}

.stake-card span {
    font-size: 0.85rem;

    color: #a36d7b;
}

.stake-card strong {
    line-height: 1.4;
}


/* CONFIRM */

.confirm-task {
    margin: 25px 0;

    padding: 20px;

    border-radius: 18px;

    background: #fff7f9;

    font-size: 1.15rem;
    font-weight: 700;
}


/* RESULT */

.result-emoji {
    margin-bottom: 15px;

    font-size: 4rem;
}

.result-message {
    margin:
        0 auto
        20px;

    max-width: 430px;

    line-height: 1.6;

    color: #806970;
}

.result-stake {
    margin: 20px 0;

    padding: 24px;

    border-radius: 20px;

    background: #fff3f6;

    font-size: 1.25rem;
    font-weight: 700;
}


/* MOBILE */

@media (max-width: 600px) {

    .sweet-streak-container {
        padding:
            22px 14px
            50px;
    }

    .game-card {
        padding:
            30px 20px;

        border-radius: 24px;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    #countdown {
        font-size: 2.2rem;
    }

    .stakes-grid {
        grid-template-columns: 1fr;
    }

}
