* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.game-container {
    width: 95%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

/* 开始界面样式 */
#startScreen h1 {
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

#startScreen p {
    margin-bottom: 30px;
    color: #ccc;
    font-size: 1.2em;
}

/* 游戏界面标题 */
.game-title {
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

.game-title h1 {
    font-size: 2.2em;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    letter-spacing: 2px;
}

/* 游戏信息面板 */
.game-info {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.info-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}

/* 两排更整齐的卡片样式 */
.info-item {
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}

/* 数值统一高亮 */
#score, #level, #combo, #target, #bestScore, #bestCombo {
    font-weight: bold;
    margin-left: 6px;
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.8);
}

/* 区分颜色（保持原有并补充） */
#score { color: #ff69b4; font-size: 1.15em; }
#level { color: #9370DB; font-size: 1.15em; }
#combo { color: #FFA500; font-size: 1.15em; }
#target { color: #00FA9A; font-size: 1.05em; }
#bestScore { color: #00BFFF; font-size: 1.05em; }
#bestCombo { color: #FFD700; font-size: 1.05em; }

/* 自适应：较窄屏改为两列或一列 */
@media (max-width: 520px) {
    .info-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
    .info-bar { grid-template-columns: 1fr; }
}

#score {
    color: #ff69b4;
    font-size: 1.3em;
}

#level {
    color: #9370DB;
    font-size: 1.3em;
}

#combo {
    color: #FFA500;
    font-size: 1.3em;
}

.board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

canvas {
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

button {
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
}

/* 关卡完成界面 */
#levelCompleteScreen h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffff00;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.7);
}

.level-stats {
    margin-bottom: 30px;
    font-size: 1.3em;
    line-height: 1.5;
}

.level-stats span {
    color: #00ffff;
    font-weight: bold;
} 