* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom, #64b3f4, #c2e59c);
    font-family: Arial, sans-serif;
}

.container {
    position: relative;
    width: 320px;
    height: 480px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#game-canvas {
    background-color: #70c5ce;
    display: block;
}

#score {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 0 #000;
}

#game-over, #start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
}

#start-screen h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #f8e71c;
}

#start-screen p {
    margin: 5px 0;
    font-size: 16px;
}

#game-over h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #f8e71c;
}

#final-score {
    font-weight: bold;
    font-size: 24px;
}

#restart-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #f8e71c;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#restart-btn:hover {
    background-color: #e6d700;
}

.hidden {
    display: none !important;
}

/* 调试面板样式 */
#debug-panel {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
}

#debug-panel h3 {
    margin: 0 0 10px 0;
    text-align: center;
    color: #f8e71c;
}

#debug-info p {
    margin: 5px 0;
}

#debug-click {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #f8e71c;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
}

/* 在移动设备上隐藏调试面板 */
@media (max-width: 768px) {
    #debug-panel {
        display: none;
    }
} 