.winlost-modal {
    position: relative;
    width: 100%;
    /* padding: 40px 20px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-primary);
    /* z-index: 10; */
    /* min-height: calc(100vh - 74px); */
    text-align: center;
    /* color: #2D2D2D; */
}

.winlost-modal.lost {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 732px;
    min-height: 100vh;
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.lost-content {
    margin-top: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lost-title {
    color: #FF6464;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.lost-message {
    color: var(--txt-primary);
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 48px;
}

.lost-btn {
    background: linear-gradient(180deg, #7be65a 0%, #4ebd2a 100%);
    border: none;
    border-radius: 18px;
    /* color: #fff; */
    font-size: 2rem;
    font-weight: 700;
    padding: 18px 64px;
    box-shadow: 0 4px 0 #3fa11e;
    cursor: pointer;
    transition: filter 0.2s;
}

.lost-btn:hover {
    filter: brightness(1.08);
}

.winlost-header {
    background: var(--bg-secondary);
    width: 100%;
    padding: 26px 0px 0px 0px;
    margin-bottom: 24px;
}

.winlost-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--txt-primary);
    margin-bottom: 8px;
}

.winlost-subtitle {
    font-size: 16px;
    color:var(--txt-primary)
}

.winlost-stars-display {
    /* display: flex;
    gap: 16px; */
    margin: 9px 0;
}

.star {
    width: 59px;
    /* height: 66px; */
    transition: opacity 0.3s ease;
}

.winlost-more {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    background: var(--bg-secondary);
    width: 100%;
    padding: 0px 10px 0px 10px;
    /* border-bottom: 1px solid; */
}



.word-item {
    margin: 30px 0;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.word-item:last-child {
    border-bottom: none;
}

.word-header {
    margin-bottom: 10px;
    line-height: 1.4;
}


.winlost-more h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'outfit';
    letter-spacing: 2.48px;
    color: var(--txt-primary);
    text-align: center;
    font-family: Outfit;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2.24px;
}

.winlost-more p {
    font-size: 16px;
    /* color: #666; */
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--txt-primary);
    text-align: center;
    font-family: Poppins;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
}

.waffle-link {
    color: #4CAF50;
    cursor: pointer;
}

.archive-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.archive-btn:hover {
    background: #45a049;
}

.winlost-stats {
    width: 100%;
    /* max-width: 711px; */
    text-align: center;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
    border-bottom: 1px solid #6363634a;
    height: 38px;

}

/* .stat-label {
    color: #2D2D2D;
    font-size: 20px;
    font-weight: 400;
} */
.stat-label {
    width: 50%;
    text-align: right;
     color: var(--txt-primary);

    text-align: right;
    /* title text */
    font-family: Outfit;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 3.2px;
    text-transform: uppercase
}

.stat-value {
    width: 50%;
    color: var(--txt-primary);
}

.winlost-next {
    margin: 0px 0px 23px;
    text-align: center;
    /* border-top: 1px solid #636363; */
    padding-top: 20px;
    
}

.next-waffle-text {
    font-size: 22px;
    font-weight: 600;
    /* color: #333; */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--txt-primary);
    text-align: center;
    font-family: Outfit;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 2.24px;
    text-transform: uppercase;
}

.next-time {
    display: inline;
    font-weight: 600;
}

.share-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.daily-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.share-btn:hover {
    transform: scale(1.05);
}

.share-icon {
    width: 150px;
    height: auto;
    display: block;
}

.solution-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.solution-btn:hover {
    transform: scale(1.05);
}

.solution-grid {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.solution-grid .grid-row {
    display: flex;
    gap: 4px;
}

.solution-grid .solution-tile {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2ecc71;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 4px;
}

.winlost-footer {
    margin: 48px 0;
    text-align: center;
}

.winlost-footer p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.waffle-footer-divider {
    border: none;
    /* border-top: 2px solid #d3d3d3; */
    margin: 0 0 0 0;
}

.social-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
}

.social-icon img {
    width: 32px;
    height: 32px;
    transition: opacity 0.2s;
}

.social-icon:hover img {
    opacity: 0.8;
}

.winlost-btn {
    background: linear-gradient(180deg, #7be65a 0%, #4ebd2a 100%);
    border: none;
    border-radius: 18px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 12px 48px;
    box-shadow: 0 4px 0 #3fa11e;
    cursor: pointer;
    transition: filter 0.2s;
    margin-bottom: 32px;
}

.winlost-btn:hover {
    filter: brightness(1.08);
}

.solution-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    margin: 20px auto;
    max-width: 400px;
}

.solution-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.solution-tile {
    width: 70px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    /* margin: 2px; */
    text-transform: uppercase;
}

.solution-container .solution-row:nth-child(2) .solution-tile:nth-child(2),
.solution-container .solution-row:nth-child(2) .solution-tile:nth-child(4),
.solution-container .solution-row:nth-child(4) .solution-tile:nth-child(2),
.solution-container .solution-row:nth-child(4) .solution-tile:nth-child(4) {
    visibility: hidden;
}

.winlost-modal.lost .winlost-title {
    color: #ff4d4f;
}


.waffle-gameover-extended {
    width: 100%;
    max-width: 730px;
    margin: 40px auto 0 auto;
    background: var(--bg-primary);
    border-radius: 12px;
    /* box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07); */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
}

.waffle-gameover-header {
    width: 100%;
    background: #444444;
    color: #fff;
    text-align: center;
    padding: 24px 20px;
    margin-bottom: 24px;
}

.game-over-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.game-over-subtitle {
    font-size: 14px;
    color: #ffffff;
    /* margin-bottom: 16px; */
}

.empty-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    /* margin-top: 16px; */
}

.star.empty {
    font-size: 66px;
    color: rgba(255, 255, 255, 0.3);
}

.waffle-gameover-sub {
    color: var(--txt-secondary);
    font-size: 1rem;
    text-align: center;
    margin: 8px 0 24px 0;
}

.waffle-gameover-nostars {
    color: var(--txt-primary);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 24px;
}

.waffle-gameover-stats-row {
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    font-size: 1.1rem;
}

.waffle-gameover-stat-label {
    color:var(--txt-secondary);
    font-weight: 500;
    letter-spacing: 1px;
}

.waffle-gameover-stat-value {
    color: var(--txt-primary);
    font-weight: 700;
}

.waffle-gameover-next-row {
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 16px; */
    margin: 32px 0 0 0;
    width: 100%;
    flex-direction: column;
}

.waffle-gameover-next-label {
    color: #888;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.waffle-gameover-next-timer {
    color: #222;
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 8px;
}

.waffle-gameover-share {
    background: linear-gradient(180deg, #7be65a 0%, #4ebd2a 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 40px;
    box-shadow: 0 4px 0 #3fa11e;
    cursor: pointer;
    margin-left: 16px;
    transition: filter 0.2s;
}

.waffle-gameover-share:hover {
    filter: brightness(1.08);
}

.waffle-gameover-solution {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 32px 0 0 0;
    transition: transform 0.2s ease;
}

.waffle-gameover-solution:hover {
    transform: scale(1.05);
}

.solution-icon {
    width: 241px;
    height: auto;
    display: block;
}

.waffle-more-info {
    text-align: center;
    padding: 32px 0;
}

.waffle-more-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--txt-primary);
    margin-bottom: 16px;
}

.waffle-more-info p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--txt-secondary);
}

@media (max-width: 700px) {
    .waffle-gameover-extended {
        max-width: 98vw;
        border-radius: 0;
        margin: 0;
    }

    .waffle-gameover-header {
        border-radius: 0;
    }

    .stat-label {
        font-size: 12px;
        font-weight: 500;
    }

    .winlost-more {
        /* width: 386px; */
    }

    .winlost-more h3 {
        font-size: 20px;
    }

    .winlost-more p {
        font-size: 16px;
    }

    .stat-row {
        gap: 10px;
    }

    .next-waffle-text {
        font-size: 20px;
    }
    .solution-container{
        max-width: 375px;
    }
}



/* @media (max-width: 480px) {
        .share-btn{
            padding: 0 0 0 3.5rem;
        }
    } */