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

body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Press Start 2P', monospace;
    overflow: hidden;
}

#game-container {
    position: relative;
    background: #000;
}

#game-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 800px;
    padding: 10px;
    background: #000;
    border-bottom: 2px solid #fff;
}

.header-item {
    text-align: center;
}

.header-item .label {
    display: block;
    color: #fff;
    font-size: 12px;
    margin-bottom: 5px;
}

.header-item .value {
    display: block;
    color: #fff;
    font-size: 14px;
}

#coins .value {
    color: #ffd700;
}

#gameCanvas {
    display: block;
    background: #6b8cff;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#game-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 100;
}

#game-overlay h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px #000;
    color: #e44d26;
}

#game-overlay p {
    font-size: 14px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hidden {
    display: none !important;
}

/* 控制说明 */
#controls-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 10px;
    text-align: center;
    opacity: 0.7;
}
