/* 基础样式 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #333;
    overflow: hidden;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.gameboy {
    width: 95vw;
    max-width: 400px;
    height: 90vh;
    max-height: 800px;
    background: #DFDFDF;
    border-radius: 10px 10px 30px 10px;
    padding: 20px;
    box-shadow: 
        inset -8px -8px 0px 0px #888,
        inset 8px 8px 0px 0px #fff;
    position: relative;
    touch-action: none;
    display: flex;
    flex-direction: column;
}

/* 屏幕区域 */
#gameCanvas {
    width: 100%;
    flex: 1;
    background: #9BBC0F;
    display: block;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 控制区域 */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 20px;
}

/* 按钮样式 */
.button, .jump-button {
    transition: transform 0.05s ease-out;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    background: #B91010;
    border: none;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 
        inset -2px -2px 0px 0px #800,
        inset 2px 2px 0px 0px #f66;
}

.button:active, .jump-button:active,
.button.pressed, .jump-button.pressed {
    transform: scale(0.95);
    box-shadow: 
        inset 2px 2px 0px 0px #800,
        inset -2px -2px 0px 0px #f66;
}

/* 跳跃按钮 */
.jump-button {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    font-size: 24px;
}

/* 动作按钮 */
.action-buttons {
    display: flex;
    gap: 20px;
    transform: rotate(-25deg);
}

.button {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 装饰元素 */
.decoration {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.speaker {
    display: flex;
    gap: 4px;
}

.speaker-line {
    width: 5px;
    height: 30px;
    background: #999;
    border-radius: 5px;
    transform: rotate(-25deg);
}

/* 响应式调整 */
@media (max-height: 800px) {
    .gameboy {
        transform: scale(0.9);
    }
}
.mute-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background: #B91010;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset -2px -2px 0px 0px #800,
        inset 2px 2px 0px 0px #f66;
}

.mute-button:active {
    transform: scale(0.95);
    box-shadow: 
        inset 2px 2px 0px 0px #800,
        inset -2px -2px 0px 0px #f66;
}