.snake-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    padding-bottom: 20px; /* 增加底部间距，为状态栏留出空间 */
    background-color: #c0c0c0;
    height: calc(100% - 55px); /* 减去状态栏的高度 */
    box-sizing: border-box;
}

#snake-canvas {
    border: 2px solid #808080;
    background-color: #fff;
    margin-bottom: 10px;
}

.game-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 15px; /* 增加与底部的间距 */
}

.score-display {
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 14px;
    color: #000;
    padding: 5px;
    background-color: #fff;
    border: 2px solid #808080;
    border-radius: 2px;
}

.control-buttons {
    display: flex;
    gap: 10px;
}

.control-buttons .win95-button {
    min-width: 80px;
    text-align: center;
    padding: 4px 8px;
}

/* 添加Windows 95风格的按钮悬停效果 */
.control-buttons .win95-button:hover {
    background-color: #dfdfdf;
}

/* 添加Windows 95风格的按钮激活效果 */
.control-buttons .win95-button:active {
    border-style: inset;
    padding: 5px 7px 3px 9px;
}

/* 游戏结束弹窗样式 */
.win95-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.dialog-content {
    padding: 2px;
}

.dialog-header {
    background-color: #000080;
    color: white;
    padding: 3px 5px;
    font-weight: bold;
    font-size: 14px;
}

.dialog-body {
    padding: 15px;
    background-color: #c0c0c0;
}

.dialog-body p {
    margin: 8px 0;
    font-family: 'MS Sans Serif', sans-serif;
}

.dialog-footer {
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #c0c0c0;
}

.dialog-footer .win95-button {
    min-width: 75px;
    text-align: center;
}
