/* Chips Tasting Game */
.chips-game-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out;
    max-width: 100%;
    overflow-x: hidden;
}

.chips-subtitle {
    color: var(--text-secondary);
    font-family: 'IM Fell DW Pica', serif;
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 2.5rem;
}

/* Bowl Cards */
.chips-bowls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 1.5rem;
    border-radius: 20px;
    background: radial-gradient(ellipse at center, rgba(93, 123, 85, 0.1) 0%, transparent 70%);
}

.chips-bowl-card {
    background:
        radial-gradient(ellipse at top, rgba(186, 212, 181, 0.05) 0%, transparent 70%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sage-green-dark);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeIn 0.8s ease-out both;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Last card (5th) centered on its own row */
.chips-bowl-card:nth-child(5) {
    grid-column: 1 / -1;
    width: calc(50% - 0.6rem);
    justify-self: center;
}

.chips-bowl-card:nth-child(1) { animation-delay: 0.1s; }
.chips-bowl-card:nth-child(2) { animation-delay: 0.2s; }
.chips-bowl-card:nth-child(3) { animation-delay: 0.3s; }
.chips-bowl-card:nth-child(4) { animation-delay: 0.4s; }
.chips-bowl-card:nth-child(5) { animation-delay: 0.5s; }

.chips-bowl-card:active:not(.locked) {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.08);
}

.chips-bowl-card.selected {
    border-color: var(--sage-green-light);
    background-color: rgba(255, 255, 255, 0.06);
}

.chips-bowl-card.correct {
    border-color: #6fbf85;
    background-color: rgba(111, 191, 133, 0.12);
    cursor: default;
}

.chips-bowl-card.wrong {
    border-color: #e07a5f;
    background-color: rgba(224, 122, 95, 0.12);
    cursor: default;
}

.chips-bowl-card.locked {
    cursor: default;
}

.chips-bowl-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1;
}

/* Flavor label inside card */
.chips-bowl-flavor {
    font-family: 'IM Fell DW Pica', serif;
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    height: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.chips-bowl-card.selected .chips-bowl-flavor {
    color: var(--cream-light);
}

/* Correct answer label shown after validation */
.chips-correct-answer {
    color: #6fbf85;
    font-family: 'IM Fell DW Pica', serif;
    font-size: 0.95rem;
    font-style: italic;
    text-align: center;
}

/* Validate Button */
.chips-validate-button {
    margin-top: 2.5rem;
    padding: 14px 36px;
    background-color: transparent;
    color: var(--sage-green-light);
    border: 2px solid var(--sage-green-light);
    border-radius: 30px;
    font-family: 'IM Fell French Canon', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.chips-validate-button:hover:not(:disabled) {
    background-color: var(--sage-green-light);
    color: var(--forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color-dark);
}

.chips-validate-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.chips-message {
    color: var(--text-secondary);
    font-family: 'IM Fell DW Pica', serif;
    font-size: 1.15rem;
    font-style: italic;
    margin-top: 1.5rem;
    min-height: 1.5em;
    text-align: center;
}

/* Victory Screen */
.chips-victory-screen {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chips-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.chips-victory-content {
    text-align: center;
    animation: fadeInScale 0.8s ease-out;
    z-index: 5;
}

.chips-victory-title {
    font-size: 4rem !important;
}

.chips-victory-score {
    color: var(--text-secondary);
    font-family: 'IM Fell DW Pica', serif;
    font-size: 1.3rem;
    font-style: italic;
    margin-top: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .chips-bowls {
        gap: 1rem;
        max-width: 320px;
    }

    .chips-bowl-number {
        font-size: 2.2rem;
    }

    .chips-victory-title {
        font-size: 2.8rem !important;
    }
}

@media (max-width: 480px) {
    .chips-bowls {
        gap: 0.8rem;
        max-width: 280px;
    }

    .chips-victory-title {
        font-size: 2.2rem !important;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .chips-bowl-card {
        min-height: 90px;
    }

    .chips-validate-button {
        min-height: 44px;
    }
}
