/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', '微软雅黑', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    color: #ff6b6b;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.level-info {
    font-size: 1.2em;
    color: #4ecdc4;
    font-weight: bold;
}

.grid-container {
    margin: 30px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0 auto;
    max-width: 300px;
}

.number-cell {
    aspect-ratio: 1;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    color: rgb(250, 121, 0);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.number-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.number-cell.selected {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.number-cell.correct {
    animation: bingo 1s ease-in-out;
}

@keyframes bingo {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.control-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 0 20px;
}

.plane-btn {
    background: #ff6b6b;
    border: none;
    border-radius: 20px;
    padding: 1px 50px;
    color: white;
    font-size: 1.6em;
    font-weight: bold;
    cursor: button;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.5);
    min-width: 200px;
    justify-content: center;
    height: auto;
}

.plane-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 107, 107, 0.6);
}

.plane-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.plane-icon {
    width: 100px;
    height: 100px;
    background: url('plane.svg') no-repeat center;
    background-size: contain;
}



/* 火箭动画 */
.rocket {
    position: fixed;
    width: 80px;
    height: 80px;
    background: url('rocket.svg') no-repeat center;
    background-size: contain;
    z-index: 1000;
    pointer-events: none;
}

/* 目标标记 */
.target-marker {
    position: fixed;
    width: 60px;
    height: 60px;
    background: url('target.svg') no-repeat center;
    background-size: contain;
    z-index: 999;
    pointer-events: none;
}

/* 胜利动画覆盖层 */
.bingo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.bingo-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bingo-text {
    font-size: 2em;
    color: #ff6b6b;
    margin-bottom: 20px;
    font-weight: bold;
}

.restart-btn {
    background: linear-gradient(45deg, #4ecdc4, #88d3ce);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-container {
        padding: 20px;
        margin: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .grid {
        gap: 10px;
        max-width: 250px;
    }
    
    .number-cell {
        font-size: 1.5em;
    }
    
    .control-panel {
        flex-direction: column;
        gap: 20px;
    }
}

/* 马卡龙配色方案 - 单色 */
.macaron-1 { background: #F8C8DC; }
.macaron-2 { background: #DDA0DD; }
.macaron-3 { background: #97C1A9; }
.macaron-4 { background: #B5D8EB; }
.macaron-5 { background: #FFD6A5; }
.macaron-6 { background: #FDFFB6; }
.macaron-7 { background: #FFADAD; }
.macaron-8 { background: #EAE4E9; }
.macaron-9 { background: #D8E4E6; }

/*
#FF9AA2 #B5D99C  #F8C8DC
#FFB7B2 #87CEEB  #DDA0DD
#FFDAC1 #F4C2C2  #97C1A9
#E2F0CB #FFE5B4  #B5D8EB
#B5EAD7 #C9E4DE  #FFD6A5
#C7CEEA #DBCDCE  #FDFFB6
#F8C8DC #A6D1E6  #FFADAD
#97C1A9 #E8F4FD  #EAE4E9
#B5D8EB #F0F2EB  #D8E4E6
*/
