@font-face {
    font-family: 'Pretendard';
    src: url('assets/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('assets/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('assets/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F2F2F2;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #F9F8F5;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #000000;
    max-width: 600px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #2A2E3A;
    margin-bottom: 10px;
    font-size: 2em;
}

.description {
    text-align: center;
    color: #2A2E3A;
    opacity: 0.7;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.board-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.bingo-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.cell {
    background: #FFFFFF;
    border: 2px solid #D6D6D6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transition: all 0.2s ease;
    user-select: none;
    aspect-ratio: 1;
    min-height: 0;
}

.cell:hover {
    background: #F2F2F2;
    transform: scale(1.05);
}

.cell.checked {
    background: #9FB083;
    border-color: #9FB083;
    color: #FFFFFF;
}

.cell.checked::after {
    content: '✓';
    font-weight: bold;
}

.info-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #D6D6D6;
}

.sticker-count {
    font-size: 1.1em;
    color: #2A2E3A;
    font-weight: 600;
}

.sticker-count span {
    color: #9FB083;
    font-weight: bold;
}

.reset-btn {
    background: #2A2E3A;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background: #3A3E4A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 46, 58, 0.2);
}

.probability-section {
    background: #9FB083;
    border-radius: 15px;
    padding: 25px;
    color: #FFFFFF;
    margin-top: 20px;
}

.probability-section h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

.probability-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.probability-item:last-child {
    margin-bottom: 0;
}

.probability-item .label {
    font-size: 1.1em;
    font-weight: 600;
}

.probability-item .value {
    font-size: 1.3em;
    font-weight: bold;
    background: #FFFFFF;
    color: #2A2E3A;
    padding: 5px 15px;
    border-radius: 20px;
    min-width: 100px;
    text-align: center;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #2A2E3A;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 0.95em;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .bingo-board {
        gap: 5px;
    }
    
    .cell {
        font-size: 1.2em;
    }
    
    .info-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .toast {
        padding: 10px 20px;
        font-size: 0.9em;
        max-width: 90%;
        text-align: center;
    }
}


