/* ===== BINGO SCREEN SYSTEM ===== */
.bingo-screen {
    display: none !important;
    min-height: 100vh;
    padding-top: 80px;
}

.bingo-screen.active {
    display: block !important;
}

/* ===== BINGO CONTAINER ===== */
.bingo-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.bingo-game-container {
    max-width: 600px;
    padding: 1rem;
}

/* ===== BINGO HERO ===== */
.bingo-hero {
    text-align: center;
    margin: 2rem 0;
}

.bingo-title {
    font-family: 'Aileron', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 400 !important;
    color: #3D1F1F !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.04em !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

.bingo-subtitle {
    font-size: 1rem;
    color: #A3968D;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
}

/* ===== BINGO FORM ===== */
.bingo-form {
    flex: 1;
}

.bingo-form-group {
    margin-bottom: 1.5rem;
}

.bingo-form-group label {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: #3D1F1F !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Aileron', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.bingo-form-group input {
    width: 100% !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    font-family: 'Aileron', sans-serif !important;
    font-weight: 400 !important;
    border: 1px solid #DEDACF !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    transition: border-color 0.2s !important;
    color: #3D1F1F !important;
    box-shadow: none !important;
}

.bingo-form-group input:focus {
    outline: none !important;
    border-color: #3D1F1F !important;
    box-shadow: none !important;
}

.bingo-form-group input::placeholder {
    color: #A3968D !important;
    font-weight: 400 !important;
}

/* ===== BINGO BUTTONS ===== */
.btn-bingo-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 1rem 2rem !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    font-family: 'Aileron', sans-serif !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    background-color: #3D1F1F !important;
    color: #F9F8F4 !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
    text-decoration: none !important;
    margin-bottom: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.btn-bingo-primary:hover {
    background-color: #3D1F1F !important;
    color: #F9F8F4 !important;
    opacity: 0.85 !important;
}

.btn-bingo-primary:disabled {
    background-color: #DEDACF !important;
    color: #A3968D !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.btn-bingo-outline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 1rem 2rem !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    font-family: 'Aileron', sans-serif !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    background-color: transparent !important;
    color: #3D1F1F !important;
    border: 1px solid #3D1F1F !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.btn-bingo-outline:hover {
    background-color: #F5F0E8 !important;
    color: #3D1F1F !important;
    opacity: 1 !important;
}

/* ===== GAME HEADER ===== */
.bingo-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #DEDACF;
}

.bingo-player-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: #3D1F1F;
    font-family: 'Aileron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bingo-match-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: #3D1F1F;
    background: #F5F0E8;
    padding: 0.25rem 0.5rem;
    font-family: 'Aileron', sans-serif;
}

/* ===== BINGO STATUS ===== */
.bingo-status {
    text-align: center;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-weight: 400;
    display: none;
    font-family: 'Aileron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bingo-status.has-bingo {
    display: block;
    background: #3D1F1F;
    color: #F9F8F4;
    animation: bingoPulse 2s infinite;
}

@keyframes bingoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ===== BINGO GRID ===== */
.bingo-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 1.5rem !important;
}

.bingo-cell {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid #DEDACF;
    border-radius: 0;
    padding: 4px;
    font-size: 0.6rem;
    line-height: 1.3;
    color: #3D1F1F;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
    overflow: hidden;
}

.bingo-cell:hover:not(.matched):not(.center) {
    background: #F5F0E8;
    border-color: #3D1F1F;
}

.bingo-cell.matched {
    background: #3D1F1F;
    color: #F9F8F4;
    border-color: #3D1F1F;
    cursor: default;
}

.bingo-cell.matched .cell-prompt {
    font-size: 0.5rem;
    opacity: 0.7;
}

.bingo-cell.matched .cell-match {
    font-weight: 400;
    font-size: 0.65rem;
    margin-top: 2px;
}

.bingo-cell.center {
    background: #DEDACF;
    border-color: #A3968D;
    cursor: default;
    color: #3D1F1F;
    font-size: 1.2rem;
    font-weight: 400;
}

/* ===== GAME ACTIONS ===== */
.bingo-game-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.bingo-game-actions .btn-bingo-primary,
.bingo-game-actions .btn-bingo-outline {
    flex: 1;
}

/* ===== MODAL ===== */
.bingo-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.bingo-modal.active {
    display: flex;
}

.bingo-modal-content {
    background: #F9F8F4;
    border-radius: 0;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.bingo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #A3968D;
    cursor: pointer;
    line-height: 1;
}

.bingo-modal-close:hover {
    color: #3D1F1F;
}

.bingo-modal-title {
    font-family: 'Aileron', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #3D1F1F;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

.bingo-modal-prompt {
    font-size: 0.875rem;
    color: #A3968D;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #F5F0E8;
    border-left: 3px solid #3D1F1F;
    font-style: italic;
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
}

.bingo-match-hint {
    font-size: 0.75rem;
    color: #A3968D;
    margin-bottom: 1.5rem;
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
}

.bingo-modal-actions {
    display: flex;
    gap: 1rem;
}

.bingo-modal-actions .btn-bingo-primary,
.bingo-modal-actions .btn-bingo-outline {
    flex: 1;
}

/* ===== COMPLETION SCREEN ===== */
.bingo-completion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
}

.bingo-completion-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #3D1F1F;
}

.bingo-stats-card {
    display: flex;
    gap: 2rem;
    background: #F5F0E8;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #DEDACF;
}

.bingo-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bingo-stat-value {
    font-family: 'Aileron', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #3D1F1F;
    letter-spacing: -0.04em;
}

.bingo-stat-label {
    font-size: 0.75rem;
    color: #A3968D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
}

.bingo-completion-note {
    font-size: 0.875rem;
    color: #A3968D;
    margin-bottom: 2rem;
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
}

/* ===== CARD SNAPSHOT ===== */
.bingo-card-snapshot {
    background: #F9F8F4;
    border: 1px solid #DEDACF;
    padding: 1rem;
    margin: 1.5rem 0;
    width: 100%;
}

.bingo-snapshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #DEDACF;
}

.bingo-snapshot-logo {
    font-family: 'Aileron', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #3D1F1F;
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

.bingo-snapshot-name {
    font-family: 'Aileron', sans-serif;
    font-size: 0.75rem;
    color: #A3968D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.bingo-snapshot-grid {
    pointer-events: none;
}

/* ===== ERROR ===== */
.bingo-error-message {
    font-size: 0.75rem;
    color: #c53030;
    margin-top: 0.25rem;
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
    .bingo-cell {
        font-size: 0.5rem;
        padding: 2px;
    }
    .bingo-grid {
        gap: 4px !important;
    }
    .bingo-title {
        font-size: 1.8rem !important;
    }
}

@media (min-width: 500px) {
    .bingo-cell {
        font-size: 0.7rem;
    }
}
/* ===== COMPLETION BUTTON SPACING ===== */
#download-card-btn {
    margin-bottom: 1rem !important;
}
/* ===== CONFETTI ANIMATION ===== */
.bingo-confetti {
    animation: confettiPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               confettiFloat 3s ease-in-out 0.6s infinite;
    transform-origin: center bottom;
}

@keyframes confettiPop {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes confettiFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}
/* ===== THE SEASONS FONT ===== */
@font-face {
    font-family: 'TheSeasons';
    src: url('fonts/theseasons.otf') format('opentype');
    font-weight: normal;
}

/* ===== SNAPSHOT CENTER CELL TEXT ===== */
#bingo-card-snapshot .bingo-cell.center {
    font-family: 'TheSeasons', serif !important;
    font-size: 0.7rem !important;
    color: #3D1F1F !important;
    letter-spacing: 0.05em !important;
}
