body.game-layout {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    --title-color: #2c5530;
    --title-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    --back-btn-bg: rgba(255, 255, 255, 0.5);
    --back-btn-color: #5a8f7b;
    --text-secondary: #555;
}

/* 控制面板 */
.control-panel {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 10px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.control-panel label {
    font-size: 0.9rem;
    color: #2c5530;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-label {
    font-size: 0.8rem;
    color: #666;
}

#sensitivitySlider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #1dd1a1, #ff6b6b);
    border-radius: 3px;
    outline: none;
}

#sensitivitySlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #5a8f7b;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 游戏区域 */
.game-area {
    position: relative;
    height: 400px;
    background: linear-gradient(180deg, #87CEEB 0%, #B4E1FF 70%, #90EE90 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 背景 */
.background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud-1 {
    width: 60px;
    height: 25px;
    top: 40px;
    left: 20%;
    animation: cloud-move 20s linear infinite;
}

.cloud-1::before {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 10px;
}

.cloud-1::after {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 25px;
}

.cloud-2 {
    width: 80px;
    height: 30px;
    top: 80px;
    left: 60%;
    animation: cloud-move 25s linear infinite;
    animation-delay: -10s;
}

.cloud-2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cloud-2::after {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 35px;
}

.cloud-3 {
    width: 50px;
    height: 20px;
    top: 140px;
    left: 40%;
    animation: cloud-move 18s linear infinite;
    animation-delay: -5s;
}

.cloud-3::before {
    width: 25px;
    height: 25px;
    top: -12px;
    left: 8px;
}

.cloud-3::after {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 22px;
}

@keyframes cloud-move {
    0% { transform: translateX(600px); }
    100% { transform: translateX(-150px); }
}

.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, #7CCD7C 0%, #228B22 100%);
}

.ground::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: #90EE90;
}

/* 障碍物 */
.obstacle {
    position: absolute;
    width: 60px;
}

.obstacle-top,
.obstacle-bottom {
    position: absolute;
    width: 100%;
    background: linear-gradient(90deg, #228B22 0%, #32CD32 50%, #228B22 100%);
    border-radius: 5px;
}

.obstacle-top {
    top: 0;
    border-radius: 0 0 10px 10px;
}

.obstacle-bottom {
    bottom: 0;
    border-radius: 10px 10px 0 0;
}

.obstacle-top::after,
.obstacle-bottom::after {
    content: '';
    position: absolute;
    left: -5px;
    width: 70px;
    height: 25px;
    background: linear-gradient(90deg, #1a6b1a 0%, #228B22 50%, #1a6b1a 100%);
    border-radius: 5px;
}

.obstacle-top::after {
    bottom: -5px;
}

.obstacle-bottom::after {
    top: -5px;
}

/* 小鸟 */
.bird {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 40px;
    z-index: 10;
    transition: top 0.05s linear;
}

.bird-body {
    position: absolute;
    width: 40px;
    height: 32px;
    background: linear-gradient(135deg, #FFD93D 0%, #FF9F43 100%);
    border-radius: 50% 50% 40% 40%;
    top: 4px;
    left: 0;
}

.bird-wing {
    position: absolute;
    width: 20px;
    height: 16px;
    background: linear-gradient(135deg, #FF9F43 0%, #FF6B6B 100%);
    border-radius: 50% 50% 20% 50%;
    top: 10px;
    left: 12px;
    transform-origin: right center;
    animation: flap 0.15s ease-in-out infinite;
}

@keyframes flap {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-25deg); }
}

.bird.gliding .bird-wing {
    animation-duration: 0.4s;
}

.bird-eye {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: 8px;
    left: 28px;
}

.bird-eye::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: #333;
    border-radius: 50%;
    top: 2px;
    left: 3px;
}

.bird-beak {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 10px solid #FF6B6B;
    top: 14px;
    left: 38px;
}

/* 分数显示 */
.score-display {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

/* 音量指示器 */
.volume-indicator {
    position: absolute;
    bottom: 60px;
    left: 15px;
    width: 15px;
    height: 150px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.volume-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(180deg, #ff6b6b 0%, #ffd93d 50%, #1dd1a1 100%);
    border-radius: 8px;
    transition: height 0.05s linear;
}

/* 开始界面 */
.start-overlay,
.gameover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s;
}

.start-overlay.hidden,
.gameover-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.start-content,
.gameover-content {
    background: white;
    border-radius: 25px;
    padding: 30px 40px;
    text-align: center;
}

.start-content h2,
.gameover-content h2 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.start-content p {
    color: #666;
    margin-bottom: 10px;
    font-size: 1rem;
}

.final-score,
.best-score {
    margin: 15px 0;
}

.score-label {
    display: block;
    color: #888;
    font-size: 0.9rem;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #5a8f7b;
}

.best-score .score-value {
    font-size: 1.5rem;
    color: #ff9f43;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.start-btn {
    padding: 12px 35px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #5a8f7b 0%, #2c5530 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(90, 143, 123, 0.4);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 143, 123, 0.5);
}

.close-btn {
    padding: 12px 25px;
    font-size: 1rem;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #e0e0e0;
}

/* 状态栏 */
.status-bar {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
}

.status-text {
    color: #2c5530;
    font-size: 0.95rem;
}

/* 响应式 */
@media (max-width: 480px) {
    .game-area {
        height: 350px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .bird {
        left: 50px;
        width: 38px;
        height: 34px;
    }

    .bird-body {
        width: 34px;
        height: 28px;
    }

    .obstacle {
        width: 50px;
    }

    .score-display {
        font-size: 2rem;
    }
}
