.game-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-banner {
    background: #f6782c;
    color: white;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 998;
}

.product-info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
}

.product-image-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: auto;
    min-width: 300px;
}

.product-image {
    width: 300px;
    height: 300px;
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.product-brand {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
}

.product-scores {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
    justify-content: flex-start;
}

.score-widget-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 9px;
    background: white;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.score-label {
    font-size: 0.54rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
}

.score-widget {
    display: flex;
    gap: 0;
    align-items: center;
}

.score-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 30px;
    border-radius: 0;
    font-weight: bold;
    font-size: 0.72rem;
    transition: opacity 0.3s;
}

/* Round only the first letter */
.score-widget .score-letter:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* Round only the last letter */
.score-widget .score-letter:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Nutri score colors */
.nutri-widget .nutri-a { background: #28a745; color: white; }
.nutri-widget .nutri-b { background: #5cb85c; color: white; }
.nutri-widget .nutri-c { background: #ffc107; color: white; }
.nutri-widget .nutri-d { background: #fd7e14; color: white; }
.nutri-widget .nutri-e { background: #dc3545; color: white; }

/* Green score colors */
.green-widget .green-a { background: #28a745; color: white; }
.green-widget .green-b { background: #5cb85c; color: white; }
.green-widget .green-c { background: #ffc107; color: white; }
.green-widget .green-d { background: #fd7e14; color: white; }
.green-widget .green-e { background: #dc3545; color: white; }

/* Faded state for non-selected scores */
.score-letter:not(.active) {
    opacity: 0.3;
}

/* Active state for selected score */
.score-letter.active {
    opacity: 1;
    font-weight: bold;
}

.price-unit {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.actual-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin-top: 10px;
}

.game-area {
    margin-top: 30px;
}

.guess-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-grow: 2;
}

.guess-input-container input {
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 200px;
    text-align: center;
}

.guess-input-container input:focus {
    outline: none;
    border-color: #f6782c;
}

.guess-input-container button {
    padding: 15px 30px;
    font-size: 1.2rem;
    background: #f6782c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.guess-input-container button:hover:not(:disabled) {
    background: #e5671b;
}

.guess-input-container button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.guesses-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.guess-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    width: 400px;
}

.guess-slot.empty {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    color: #999;
}

.guess-slot.correct {
    background: #28a745;
    color: white;
}

.guess-slot.too-high {
    background: #dc3545;
    color: white;
}

.guess-slot.too-low {
    background: #ffc107;
    color: #333;
}

.guess-slot.much-too-high {
    background: #8b1a1a;
    color: white;
    border: 2px solid #dc3545;
}

.guess-slot.much-too-low {
    background: #ff9800;
    color: white;
    border: 2px solid #ffc107;
}

.guess-slot .guess-value {
    flex: 1;
}

.guess-slot .guess-feedback {
    font-size: 0.9rem;
    opacity: 0.9;
}

.game-status {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    max-width: 400px;
}

.game-status.success {
    background: #d4edda;
    color: #155724;
}

.game-status.error {
    background: #f8d7da;
    color: #721c24;
}

.game-status.info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .game-container {
        padding: 20px 15px;
        margin: 0 10px;
    }

    .countdown-banner {
        font-size: 0.9rem;
        padding: 8px 15px;
        top: 70px;
    }

    .product-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 15px;
    }

    .product-image-container {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .product-image {
        width: 100%;
        max-width: 250px;
        height: auto;
        max-height: 250px;
    }

    .product-details {
        width: 100%;
        text-align: center;
    }

    .product-name {
        font-size: 1.4rem;
    }

    .product-brand {
        font-size: 1rem;
    }

    .product-scores {
        justify-content: center;
        flex-wrap: wrap;
    }

    .guess-input-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .guess-input-container input {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
        padding: 12px 15px;
    }

    .guess-input-container button {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .guess-slot {
        font-size: 1rem;
        padding: 12px 15px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
        width: 300px;
    }

    .guess-slot .guess-value {
        width: 100%;
    }

    .game-status {
        font-size: 1rem;
        padding: 15px;
        max-width: 300px;
    }

    .game-area {
        width: 100%;
    }

    .guesses-container {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 15px 10px;
        margin: 0 5px;
    }

    .countdown-banner {
        font-size: 0.8rem;
        padding: 6px 10px;
        top: 60px;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-brand {
        font-size: 0.9rem;
    }

    .product-image {
        max-width: 200px;
        max-height: 200px;
    }

    .score-widget-container {
        padding: 6px;
    }

    .score-label {
        font-size: 0.5rem;
    }

    .score-letter {
        width: 16px;
        height: 25px;
        font-size: 0.65rem;
    }

    .guess-input-container input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .guess-input-container button {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .guess-slot {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .game-status {
        font-size: 0.9rem;
        padding: 12px;
    }
}
