/* 全局样式 - 现代红色美学主题 */
:root {
    --primary-color: #dc143c;
    --secondary-color: #b22222;
    --accent-color: #ff6b6b;
    --background-color: #1a0a0a;
    --text-color: #f8fafc;
    --border-color: #8b0000;
    --success-color: #10b981;
    --grid-color: #2d1a1a;
    --card-bg: rgba(45, 26, 26, 0.8);
    --glass-bg: rgba(220, 20, 60, 0.1);
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    -webkit-tap-highlight-color: transparent;
    zoom: 1 !important;
}

html {
    font-size: 16px;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    background: radial-gradient(ellipse at top, #2d1a1a 0%, #1a0a0a 50%, #0f0505 100%);
    overflow: hidden;
}

body {
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    touch-action: none;
    background: radial-gradient(ellipse at top, #2d1a1a 0%, #1a0a0a 50%, #0f0505 100%);
}

.game-container {
    width: 100%;
    max-width: 900px;
    min-height: 600px;
    max-height: 95vh;
    padding: 25px;
    background: linear-gradient(145deg, rgba(45, 26, 26, 0.95), rgba(26, 10, 10, 0.9));
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px rgba(220, 20, 60, 0.15),
        0 0 0 1px rgba(255, 107, 107, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 107, 107, 0.8),
        rgba(220, 20, 60, 0.8),
        rgba(255, 107, 107, 0.8),
        transparent
    );
    border-radius: 24px 24px 0 0;
}

/* 游戏标题 */
.game-title {
    text-align: center;
    padding: 15px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    background: var(--glass-bg);
    border-radius: 16px;
    margin: 0 -5px 20px -5px;
}

.game-title h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

/* 游戏头部 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px 20px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.15);
    position: relative;
}

.author-info {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.1);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
}

.author-name {
    margin-left: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.score-container {
    display: flex;
    gap: 24px;
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.1);
}

.score, .high-score {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.score::before, .high-score::before {
    content: '🎮';
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
}

.high-score::before {
    content: '👑';
}

/* 游戏主区域 */
.game-board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
    padding: 0 15px;
    margin-bottom: 80px;
}

#gameBoard {
    width: 450px;
    height: 450px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(220, 20, 60, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 单词显示区样式 */
.word-display {
    width: 450px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 16px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    box-shadow: 
        0 20px 40px rgba(220, 20, 60, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.current-word, .word-meaning {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.1);
}

.word-meaning {
    margin-bottom: 0;
}

.word-title, .meaning-title {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.word-text, .meaning-text {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 25px;
}

/* 控制按钮 - 重新设计 */
.controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, 
        rgba(15, 15, 35, 0.95) 0%, 
        rgba(30, 27, 58, 0.8) 50%,
        transparent 100%
    );
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.control-btn {
    min-width: 140px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(220, 20, 60, 0.3),
        0 0 0 1px rgba(255, 107, 107, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.5s;
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(220, 20, 60, 0.4),
        0 0 0 1px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 特殊按钮样式 */
#startBtn {
    background: linear-gradient(135deg, #dc143c, #b22222);
    box-shadow: 
        0 8px 32px rgba(220, 20, 60, 0.3),
        0 0 0 1px rgba(220, 20, 60, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#startBtn:hover {
    box-shadow: 
        0 12px 40px rgba(220, 20, 60, 0.4),
        0 0 0 1px rgba(220, 20, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#pauseBtn {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    box-shadow: 
        0 8px 32px rgba(220, 20, 60, 0.3),
        0 0 0 1px rgba(220, 20, 60, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#pauseBtn:hover {
    box-shadow: 
        0 12px 40px rgba(220, 20, 60, 0.4),
        0 0 0 1px rgba(220, 20, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 单词通知样式 */
.word-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: auto;
    min-width: 240px;
    max-width: 80%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 20px 25px;
    border-radius: 16px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 25px 50px rgba(255, 215, 0, 0.3),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.word-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.notification-word {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b6b, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-meaning {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.9);
    line-height: 1.4;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        padding: 0;
        margin: 0;
        height: 100%;
        overflow: hidden;
    }

    .game-container {
        padding: 0;
        border-radius: 0;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        justify-content: flex-start;
        gap: 5px;
        display: flex;
        flex-direction: column;
    }

    .game-title {
        padding: 0;
        margin: 0;
        background: rgba(13, 36, 64, 0.95);
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding-top: calc(env(safe-area-inset-top) + 10px);
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .game-title h1 {
        font-size: 0.95rem;
        padding: 0 10px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--accent-color);
        text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
    }

    .game-header {
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        margin: 0;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .author-info {
        width: 100%;
        justify-content: center;
        background: none;
        border: none;
        padding: 2px;
        transform: scale(0.9);
    }

    .author-avatar {
        width: 32px;
        height: 32px;
    }
    
    .score-container {
        width: 100%;
        display: flex;
        justify-content: space-around;
        background: rgba(0, 0, 0, 0.3);
        padding: 6px;
        border-radius: 10px;
        margin: 2px 0;
    }
    
    .score, .high-score {
        font-size: 0.9rem;
        margin: 0;
        flex: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .game-board-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 5px;
        margin-bottom: calc(60px + env(safe-area-inset-bottom));
    }
    
    #gameBoard {
        width: 85vw;
        height: 85vw;
        max-width: 85vmin;
        max-height: 85vmin;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-font-smoothing: antialiased;
    }
    
    .word-display {
        width: 85vw;
        max-width: 85vmin;
        padding: 8px;
        margin-bottom: 5px;
    }
    
    .word-title, .meaning-title {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    .word-text, .meaning-text {
        font-size: 0.9rem;
        line-height: 1.2;
        padding: 2px 0;
    }

    .current-word, .word-meaning {
        padding: 6px;
        margin-bottom: 5px;
    }
    
    .controls {
        padding: 8px;
        padding-bottom: calc(8px + var(--safe-area-inset-bottom));
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8));
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .control-btn {
        flex: 1;
        max-width: 120px;
        padding: 8px 0;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .game-title {
        padding: 4px 0;
        margin-bottom: 4px;
    }

    .game-title h1 {
        font-size: 0.9rem;
        padding: 0 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .author-name {
        font-size: 0.9rem;
    }
}

/* 针对 iPhone 刘海屏和动态岛的特殊处理 */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .game-container {
            padding-top: 0;
        }

        .game-title {
            padding-top: calc(env(safe-area-inset-top) + 10px);
        }

        .controls {
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
            margin-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* 特别小的屏幕适配 */
@media (max-width: 360px) {
    .game-container {
        padding: 5px 2px;
    }
    
    .game-header {
        padding: 5px;
    }
    
    .author-info {
        transform: scale(0.85);
    }
    
    .score-container {
        padding: 6px;
    }
    
    .controls {
        padding: 8px;
    }
    
    .control-btn {
        padding: 8px 0;
        font-size: 0.9rem;
        min-width: 90px;
    }
    
    .word-display {
        padding: 8px;
    }
    
    .word-text, .meaning-text {
        font-size: 13px;
        line-height: 1.2;
    }

    .game-title h1 {
        font-size: 0.9rem;
    }
}

/* 确保在横屏模式下也能正常显示 */
@media (max-height: 500px) and (orientation: landscape) {
    .game-container {
        padding: 5px;
    }

    .game-board-container {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-bottom: 50px;
    }

    #gameBoard {
        width: 45vh;
        height: 45vh;
        min-width: 280px;
        min-height: 280px;
    }

    .word-display {
        width: 45vh;
        min-width: 280px;
    }

    .controls {
        padding: 8px;
    }
    
    .game-title h1 {
        font-size: 0.9rem;
    }
    
    .author-info {
        transform: scale(0.85);
    }
}

/* 动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 107, 107, 0.8), 0 0 35px rgba(220, 20, 60, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 游戏结束弹窗 */
.game-over-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.game-over-dialog.show {
    opacity: 1;
    visibility: visible;
}

.game-over-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 35px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 25px 50px rgba(220, 20, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-over-dialog.show .game-over-content {
    transform: translateY(0);
    opacity: 1;
}

.game-over-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.game-over-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #dc143c, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
}

.game-over-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-color),
        var(--accent-color),
        var(--accent-color),
        transparent
    );
}

.game-over-score {
    font-size: 1.5rem;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.game-over-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

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

.stats-label {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    opacity: 0.8;
}

.stats-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.game-over-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.retry-btn {
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.retry-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.retry-btn:hover::before {
    transform: scale(1);
    animation: ripple 1s linear infinite;
}

@keyframes ripple {
    from {
        transform: scale(0.5) rotate(0deg);
    }
    to {
        transform: scale(2) rotate(360deg);
    }
}

/* 动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.8), 0 0 35px rgba(99, 102, 241, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 单词通知样式 */
.word-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: auto;
    min-width: 240px;
    max-width: 80%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 20px 25px;
    border-radius: 16px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 25px 50px rgba(255, 215, 0, 0.3),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.word-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.notification-word {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-meaning {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.9);
    line-height: 1.4;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        padding: 0;
        margin: 0;
        height: 100%;
        overflow: hidden;
    }

    .game-container {
        padding: 0;
        border-radius: 0;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        justify-content: flex-start;
        gap: 5px;
        display: flex;
        flex-direction: column;
    }

    .game-title {
        padding: 0;
        margin: 0;
        background: rgba(13, 36, 64, 0.95);
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding-top: calc(env(safe-area-inset-top) + 10px);
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .game-title h1 {
        font-size: 0.95rem;
        padding: 0 10px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--accent-color);
        text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
    }

    .game-header {
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        margin: 0;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .author-info {
        width: 100%;
        justify-content: center;
        background: none;
        border: none;
        padding: 2px;
        transform: scale(0.9);
    }

    .author-avatar {
        width: 32px;
        height: 32px;
    }
    
    .score-container {
        width: 100%;
        display: flex;
        justify-content: space-around;
        background: rgba(0, 0, 0, 0.3);
        padding: 6px;
        border-radius: 10px;
        margin: 2px 0;
    }
    
    .score, .high-score {
        font-size: 0.9rem;
        margin: 0;
        flex: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .game-board-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 5px;
        margin-bottom: calc(60px + env(safe-area-inset-bottom));
    }
    
    #gameBoard {
        width: 85vw;
        height: 85vw;
        max-width: 85vmin;
        max-height: 85vmin;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-font-smoothing: antialiased;
    }
    
    .word-display {
        width: 85vw;
        max-width: 85vmin;
        padding: 8px;
        margin-bottom: 5px;
    }
    
    .word-title, .meaning-title {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    .word-text, .meaning-text {
        font-size: 0.9rem;
        line-height: 1.2;
        padding: 2px 0;
    }

    .current-word, .word-meaning {
        padding: 6px;
        margin-bottom: 5px;
    }
    
    .controls {
        padding: 8px;
        padding-bottom: calc(8px + var(--safe-area-inset-bottom));
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8));
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .control-btn {
        flex: 1;
        max-width: 120px;
        padding: 8px 0;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .game-title {
        padding: 4px 0;
        margin-bottom: 4px;
    }

    .game-title h1 {
        font-size: 0.9rem;
        padding: 0 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .author-name {
        font-size: 0.9rem;
    }
}

/* 针对 iPhone 刘海屏和动态岛的特殊处理 */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .game-container {
            padding-top: 0;
        }

        .game-title {
            padding-top: calc(env(safe-area-inset-top) + 10px);
        }

        .controls {
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
            margin-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* 特别小的屏幕适配 */
@media (max-width: 360px) {
    .game-container {
        padding: 5px 2px;
    }
    
    .game-header {
        padding: 5px;
    }
    
    .author-info {
        transform: scale(0.85);
    }
    
    .score-container {
        padding: 6px;
    }
    
    .controls {
        padding: 8px;
    }
    
    .control-btn {
        padding: 8px 0;
        font-size: 0.9rem;
        min-width: 90px;
    }
    
    .word-display {
        padding: 8px;
    }
    
    .word-text, .meaning-text {
        font-size: 13px;
        line-height: 1.2;
    }

    .game-title h1 {
        font-size: 0.9rem;
    }
}

/* 确保在横屏模式下也能正常显示 */
@media (max-height: 500px) and (orientation: landscape) {
    .game-container {
        padding: 5px;
    }

    .game-board-container {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-bottom: 50px;
    }

    #gameBoard {
        width: 45vh;
        height: 45vh;
        min-width: 280px;
        min-height: 280px;
    }

    .word-display {
        width: 45vh;
        min-width: 280px;
    }

    .controls {
        padding: 8px;
    }
    
    .game-title h1 {
        font-size: 0.9rem;
    }
    
    .author-info {
        transform: scale(0.85);
    }
}

/* 动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 35px rgba(255, 193, 7, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
}

/* 游戏结束弹窗 */
.game-over-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 15, 10, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.game-over-dialog.show {
    opacity: 1;
    visibility: visible;
}

.game-over-content {
    background: linear-gradient(145deg, #2d1810, #3d2318);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.4);
}

.game-over-dialog.show .game-over-content {
    transform: translateY(0);
    opacity: 1;
}

.game-over-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.game-over-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.6);
    margin-bottom: 10px;
    position: relative;
}

.game-over-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-color),
        var(--accent-color),
        var(--accent-color),
        transparent
    );
}

.game-over-score {
    font-size: 1.5rem;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.game-over-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

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

.stats-label {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    opacity: 0.8;
}

.stats-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.game-over-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.retry-btn {
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.retry-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.retry-btn:hover::before {
    transform: scale(1);
    animation: ripple 1s linear infinite;
}

@keyframes ripple {
    from {
        transform: scale(0.5) rotate(0deg);
    }
    to {
        transform: scale(2) rotate(360deg);
    }
}

/* 动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.8), 0 0 35px rgba(99, 102, 241, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 单词通知样式 */
.word-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: auto;
    min-width: 240px;
    max-width: 80%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 20px 25px;
    border-radius: 16px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 25px 50px rgba(255, 215, 0, 0.3),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.word-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.notification-word {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-meaning {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.9);
    line-height: 1.4;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        padding: 0;
        margin: 0;
        height: 100%;
        overflow: hidden;
    }

    .game-container {
        padding: 0;
        border-radius: 0;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        justify-content: flex-start;
        gap: 5px;
        display: flex;
        flex-direction: column;
    }

    .game-title {
        padding: 0;
        margin: 0;
        background: rgba(13, 36, 64, 0.95);
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding-top: calc(env(safe-area-inset-top) + 10px);
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .game-title h1 {
        font-size: 0.95rem;
        padding: 0 10px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--accent-color);
        text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
    }

    .game-header {
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        margin: 0;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .author-info {
        width: 100%;
        justify-content: center;
        background: none;
        border: none;
        padding: 2px;
        transform: scale(0.9);
    }

    .author-avatar {
        width: 32px;
        height: 32px;
    }
    
    .score-container {
        width: 100%;
        display: flex;
        justify-content: space-around;
        background: rgba(0, 0, 0, 0.3);
        padding: 6px;
        border-radius: 10px;
        margin: 2px 0;
    }
    
    .score, .high-score {
        font-size: 0.9rem;
        margin: 0;
        flex: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .game-board-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 5px;
        margin-bottom: calc(60px + env(safe-area-inset-bottom));
    }
    
    #gameBoard {
        width: 85vw;
        height: 85vw;
        max-width: 85vmin;
        max-height: 85vmin;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-font-smoothing: antialiased;
    }
    
    .word-display {
        width: 85vw;
        max-width: 85vmin;
        padding: 8px;
        margin-bottom: 5px;
    }
    
    .word-title, .meaning-title {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    .word-text, .meaning-text {
        font-size: 0.9rem;
        line-height: 1.2;
        padding: 2px 0;
    }

    .current-word, .word-meaning {
        padding: 6px;
        margin-bottom: 5px;
    }
    
    .controls {
        padding: 8px;
        padding-bottom: calc(8px + var(--safe-area-inset-bottom));
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8));
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .control-btn {
        flex: 1;
        max-width: 120px;
        padding: 8px 0;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .game-title {
        padding: 4px 0;
        margin-bottom: 4px;
    }

    .game-title h1 {
        font-size: 0.9rem;
        padding: 0 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .author-name {
        font-size: 0.9rem;
    }
}

/* 针对 iPhone 刘海屏和动态岛的特殊处理 */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .game-container {
            padding-top: 0;
        }

        .game-title {
            padding-top: calc(env(safe-area-inset-top) + 10px);
        }

        .controls {
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
            margin-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* 特别小的屏幕适配 */
@media (max-width: 360px) {
    .game-container {
        padding: 5px 2px;
    }
    
    .game-header {
        padding: 5px;
    }
    
    .author-info {
        transform: scale(0.85);
    }
    
    .score-container {
        padding: 6px;
    }
    
    .controls {
        padding: 8px;
    }
    
    .control-btn {
        padding: 8px 0;
        font-size: 0.9rem;
        min-width: 90px;
    }
    
    .word-display {
        padding: 8px;
    }
    
    .word-text, .meaning-text {
        font-size: 13px;
        line-height: 1.2;
    }

    .game-title h1 {
        font-size: 0.9rem;
    }
}

/* 确保在横屏模式下也能正常显示 */
@media (max-height: 500px) and (orientation: landscape) {
    .game-container {
        padding: 5px;
    }

    .game-board-container {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-bottom: 50px;
    }

    #gameBoard {
        width: 45vh;
        height: 45vh;
        min-width: 280px;
        min-height: 280px;
    }

    .word-display {
        width: 45vh;
        min-width: 280px;
    }

    .controls {
        padding: 8px;
    }
    
    .game-title h1 {
        font-size: 0.9rem;
    }
    
    .author-info {
        transform: scale(0.85);
    }
}

/* 动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 35px rgba(255, 193, 7, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
}

/* 游戏结束弹窗 */
.game-over-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 15, 10, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.game-over-dialog.show {
    opacity: 1;
    visibility: visible;
}

.game-over-content {
    background: linear-gradient(145deg, #2d1810, #3d2318);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.4);
}

.game-over-dialog.show .game-over-content {
    transform: translateY(0);
    opacity: 1;
}

.game-over-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.game-over-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.6);
    margin-bottom: 10px;
    position: relative;
}

.game-over-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-color),
        var(--accent-color),
        var(--accent-color),
        transparent
    );
}

.game-over-score {
    font-size: 1.5rem;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.game-over-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

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

.stats-label {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    opacity: 0.8;
}

.stats-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.game-over-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.retry-btn {
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.retry-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.retry-btn:hover::before {
    transform: scale(1);
    animation: ripple 1s linear infinite;
}

@keyframes ripple {
    from {
        transform: scale(0.5) rotate(0deg);
    }
    to {
        transform: scale(2) rotate(360deg);
    }
}

/* 动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.8), 0 0 35px rgba(99, 102, 241, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 单词通知样式 */
.word-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: auto;
    min-width: 240px;
    max-width: 80%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 20px 25px;
    border-radius: 16px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 25px 50px rgba(255, 215, 0, 0.3),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.word-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.notification-word {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-meaning {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.9);
    line-height: 1.4;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        padding: 0;
        margin: 0;
        height: 100%;
        overflow: hidden;
    }

    .game-container {
        padding: 0;
        border-radius: 0;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        justify-content: flex-start;
        gap: 5px;
        display: flex;
        flex-direction: column;
    }

    .game-title {
        padding: 0;
        margin: 0;
        background: rgba(13, 36, 64, 0.95);
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding-top: calc(env(safe-area-inset-top) + 10px);
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .game-title h1 {
        font-size: 0.95rem;
        padding: 0 10px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--accent-color);
        text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
    }

    .game-header {
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        margin: 0;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .author-info {
        width: 100%;
        justify-content: center;
        background: none;
        border: none;
        padding: 2px;
        transform: scale(0.9);
    }

    .author-avatar {
        width: 32px;
        height: 32px;
    }
    
    .score-container {
        width: 100%;
        display: flex;
        justify-content: space-around;
        background: rgba(0, 0, 0, 0.3);
        padding: 6px;
        border-radius: 10px;
        margin: 2px 0;
    }
    
    .score, .high-score {
        font-size: 0.9rem;
        margin: 0;
        flex: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .game-board-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 5px;
        margin-bottom: calc(60px + env(safe-area-inset-bottom));
    }
    
    #gameBoard {
        width: 85vw;
        height: 85vw;
        max-width: 85vmin;
        max-height: 85vmin;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-font-smoothing: antialiased;
    }
    
    .word-display {
        width: 85vw;
        max-width: 85vmin;
        padding: 8px;
        margin-bottom: 5px;
    }
    
    .word-title, .meaning-title {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    .word-text, .meaning-text {
        font-size: 0.9rem;
        line-height: 1.2;
        padding: 2px 0;
    }

    .current-word, .word-meaning {
        padding: 6px;
        margin-bottom: 5px;
    }
    
    .controls {
        padding: 8px;
        padding-bottom: calc(8px + var(--safe-area-inset-bottom));
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8));
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .control-btn {
        flex: 1;
        max-width: 120px;
        padding: 8px 0;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .game-title {
        padding: 4px 0;
        margin-bottom: 4px;
    }

    .game-title h1 {
        font-size: 0.9rem;
        padding: 0 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .author-name {
        font-size: 0.9rem;
    }
}

/* 针对 iPhone 刘海屏和动态岛的特殊处理 */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .game-container {
            padding-top: 0;
        }

        .game-title {
            padding-top: calc(env(safe-area-inset-top) + 10px);
        }

        .controls {
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
            margin-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* 特别小的屏幕适配 */
@media (max-width: 360px) {
    .game-container {
        padding: 5px 2px;
    }
    
    .game-header {
        padding: 5px;
    }
    
    .author-info {
        transform: scale(0.85);
    }
    
    .score-container {
        padding: 6px;
    }
    
    .controls {
        padding: 8px;
    }
    
    .control-btn {
        padding: 8px 0;
        font-size: 0.9rem;
        min-width: 90px;
    }