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

body {
    font-family: 'Arial', sans-serif;
    background-color: #111;
    background-image: radial-gradient(circle at center, #333 0%, #111 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #d4af37; /* 金色文字 */
}

.container {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), /* 金色阴影 */
                inset 0 0 10px rgba(212, 175, 55, 0.2);
    border: 1px solid #d4af37;
}

.game-info {
    width: 200px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5); /* 金色边框 */
}

h1 {
    font-size: 28px;
    color: #ffd700; /* 金色 */
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
}

.score-container {
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.score-container p {
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #e6be8a; /* 沙金色 */
}

.next-piece-container {
    margin-bottom: 20px;
}

.next-piece-container p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffd700;
    text-align: center;
}

#next-piece {
    width: 100px;
    height: 100px;
    background-color: #111;
    border: 1px solid #d4af37;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #d4af37;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(to bottom, #ffd700, #b8860b);
    color: #111;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

button:hover {
    background: linear-gradient(to bottom, #ffec8b, #daa520);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
}

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

#start-button {
    background: linear-gradient(to bottom, #ffd700, #b8860b);
}

#start-button:hover {
    background: linear-gradient(to bottom, #ffec8b, #daa520);
}

#pause-button {
    background: linear-gradient(to bottom, #e6be8a, #cd7f32);
}

#pause-button:hover {
    background: linear-gradient(to bottom, #f0d5a8, #d2691e);
}

.instructions {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #e6be8a;
}

.instructions h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.instructions p {
    margin: 5px 0;
    font-size: 14px;
}

.game-board-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, #111 0%, #222 100%);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    border: 1px solid #d4af37;
}

#game-board {
    border: 3px solid #d4af37;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2);
}

/* 移动设备控制按钮 */
.mobile-controls {
    display: none;
    margin-top: 20px;
    width: 100%;
}

.mobile-controls-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.mobile-controls button {
    width: 80px;
    height: 50px;
    margin: 0 5px;
    font-size: 18px;
    background: linear-gradient(to bottom, #ffd700, #b8860b);
    color: #111;
    border: 1px solid #d4af37;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.mobile-controls button:active {
    background: linear-gradient(to bottom, #b8860b, #8b6914);
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#rotate-btn, #drop-btn {
    width: 150px;
}

/* 在小屏幕设备上显示虚拟按钮 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .game-info {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .mobile-controls {
        display: block;
    }
    
    .instructions {
        display: none;
    }
} 