body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #282c34; /* 深色背景 */
    color: #e0e0e0; /* 亮色文字 */
    font-family: 'Press Start 2P', cursive, Arial, sans-serif; /* 像素风格字体 */
    margin: 0;
    overflow: hidden; /* 防止滚动条 */
    font-size: 14px;
}

/* 引入谷歌字体，模拟像素风格 */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

.game-container {
    text-align: center;
    background-color: #3a3f47; /* 稍亮的背景 */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid #555;
    max-width: 400px;
    margin: 20px;
}

h1 {
    color: #4CAF50; /* 绿色标题 */
    margin-bottom: 20px;
    font-size: 1.8em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #8BC34A; /* 亮绿色信息 */
}

.game-info span {
    color: #FFEB3B; /* 黄色分数和等级 */
}

canvas {
    background-color: #000; /* 游戏区域背景 */
    border: 3px solid #66BB6A; /* 绿色边框 */
    display: block;
    margin: 20px auto;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.controls button {
    padding: 12px 25px;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #007bff; /* 蓝色按钮 */
    color: white;
    border: none;
    border-radius: 8px;
    margin: 0 10px 10px 10px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-family: 'Press Start 2P', cursive, Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.controls button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.controls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-message {
    color: #FF5252; /* 红色警告 */
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #FF5252;
    border-radius: 8px;
    background-color: rgba(255, 82, 82, 0.1);
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.5);
}

#pausedMessage {
    color: #FFEB3B; /* 黄色暂停信息 */
    border-color: #FFEB3B;
    background-color: rgba(255, 235, 59, 0.1);
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

.instructions {
    margin-top: 30px;
    text-align: left;
    background-color: #2f333a;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #444;
}

.instructions h3 {
    color: #79FF47; /* 亮绿色标题 */
    margin-bottom: 10px;
    font-size: 1.2em;
}

.instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions li {
    margin-bottom: 5px;
    color: #b0b0b0;
    line-height: 1.5;
}