#game-container {
    max-width: 48rem;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
}

header p {
    font-size: 1.25rem;
    color: #78716c;
}

#item-area {
    margin-bottom: 1.5rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#item-area img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

#item-name {
    font-size: 1.875rem;
    font-weight: 600;
    color: #44403c;
    margin-top: 1rem;
}

.progress-bar-container {
    width: 100%;
    background-color: #f5f5f4;
    border-radius: 1rem;
    height: 1rem;
    margin: 1.5rem auto;
    overflow: hidden;
    border: 1px solid #e7e5e4;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: #bbf7d0;
    border-radius: 1rem;
    transition: width 0.4s ease-in-out;
}

#choices-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.choice-bin {
    padding: 1.5rem 1rem;
    font-size: 1.5rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.choice-bin:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    transform: scale(1.03);
}

[data-bin="refuser"] { background-color: #F4CFDF; color: #991b1b; }
[data-bin="reduire"] { background-color: #B6D8F2; color: #1e40af; }
[data-bin="reuse"] { background-color: #FAF2D9; color: #854d0e; }
[data-bin="recycle"] { background-color: #B4F2E5; color: #166534; }

#feedback-area {
    margin-top: 1.5rem;
    text-align: center;
    min-height: 90px;
}

#feedback-text {
    font-size: 1.5rem;
}

#explanation-text {
    font-size: 1.25rem;
    color: #78716c;
    margin-top: 0.25rem;
}

#did-you-know-text {
    font-size: 1.1rem;
    color: #57534e;
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #ffffd1;
    border-radius: 10px;
    display: none;
}

#next-button {
    display: none;
    margin-top: 1rem;
    background: none;
    color: #15803d;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

#next-button:hover {
    color: #86efac;
}

.feedback-correct {
    animation: glow-green 1s ease-in-out;
    border: 2px solid #86efac;
}

.feedback-incorrect {
    animation: glow-red 1s ease-in-out;
    border: 2px solid #fca5a5;
}

@keyframes glow-green {
    0%, 100% { box-shadow: 0 0 4px rgba(134, 239, 172, 0.5); }
    50% { box-shadow: 0 0 16px rgba(134, 239, 172, 1); }
}

@keyframes glow-red {
    0%, 100% { box-shadow: 0 0 4px rgba(252, 165, 165, 0.5); }
    50% { box-shadow: 0 0 16px rgba(252, 165, 165, 1); }
}

@keyframes pop-in {
    0% { opacity: 0; transform: scale(0.9); }
    70% { opacity: 1; transform: scale(1.02); }
    100% { transform: scale(1); }
}

.anim-pop-in {
    animation: pop-in 0.4s ease-out forwards;
}

@keyframes score-jump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px) scale(1.25); }
    100% { transform: translateY(0) scale(1); }
}

.anim-score-jump {
    display: inline-block;
    animation: score-jump 0.3s ease-out forwards;
}

footer {
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    gap: 0.5rem;
}

footer p {
    font-weight: bold;
}

footer p span {
    font-weight: normal;
}

footer p:last-child {
    color: #a8a29e;
    font-weight: normal;
}

footer button {
    font-family: 'Patrick Hand', cursive;
    background: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1rem;
    white-space: nowrap;
}

footer button:hover {
    border-color: #e7e5e4;
    background-color: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#restart-button {
    color: #57534e;
}
#restart-button:hover {
    color: #333;
}

@media (min-width: 640px) {
    #game-container {
        padding: 2rem;
    }
    #choices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    footer {
        flex-wrap: nowrap;
    }
}

@media (min-width: 1024px) {
    #choices-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    #game-container {
        padding: 1.5rem;
        padding-top: 4.5rem;
    }

    .logo-container {
        left: 10px;
        padding: 10px;
    }

    #logo {
        height: 40px;
    }

    header p {
        font-size: 1rem;
    }

    #item-name {
        font-size: 1.5rem;
    }

    .choice-bin {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    #feedback-text {
        font-size: 1.2rem;
    }

    #explanation-text {
        font-size: 1rem;
    }

    #next-button {
        font-size: 1.2rem;
    }

    footer {
        font-size: 1rem;
    }

    footer button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}
