* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 全局文本溢出保护 ===== */
/* 标题类：单行截断 */
.game-title, .mode-select-title, .level-select-title, .pause-title,
.settings-title, .rank-title, .shop-title, .preview-title,
.success-title, .fail-title, .level-complete-title, .final-win-title,
.overlay-content h1, .overlay-content h2,
.mode-name, .mode-title, .recharge-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* 按钮类：单行截断 */
.dialog-btn, .mode-btn, .buy-btn, .rank-tab-btn, .preview-btn,
.pause-action-btn, .recharge-btn, .start-content button {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 标签/描述类：允许换行但隐藏溢出 */
.settings-label, .preview-label, .shop-item-name, .shop-item-desc,
.rank-level, .rank-score, .rank-player, .rank-time, .rank-date,
.rank-score-sub, .ui-item .label, .label, .info-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 消息/描述：允许自动换行 */
.dialog-message, .dialog-title, .preview-message, .overlay-content p,
.final-win-message, .shop-item-desc, .mode-desc,
.success-message, .fail-message, .level-complete-message {
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

/* 关卡按钮 */
.level-btn {
    overflow: hidden;
}
.level-btn .level-num {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    /* 禁止移动端页面缩放 */
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

#game-container {
    position: relative;
    background: #2c3e50;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 35vw;
    max-width: 1000px;
    height: 70vh;
    display: flex;
    flex-direction: column;
}

#ui-bar {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    padding: 15px;
    padding-top: 45px;
    color: white;
    font-size: 18px;
    border-bottom: 3px solid #f39c12;
    flex-shrink: 0;
}

.ui-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.label {
    color: #bdc3c7;
    font-size: 14px;
}

#score, #time, #target {
    font-size: 24px;
    font-weight: bold;
    color: #f39c12;
}

#time {
    color: #e74c3c;
}

/* 暂停按钮 */
.pause-container {
    position: relative;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-top: 0px;
}

.pause-btn {
    padding: 8px;
    font-size: 14px;
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: 2px solid #d35400;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
    margin: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.6);
}

.pause-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 暂停界面 */
#pause-screen .overlay-content {
    background: rgba(0, 0, 0, 0.9);
    padding: 50px;
    border-radius: 20px;
    border: 3px solid #f39c12;
}

.pause-title {
    font-size: 48px;
    color: #f39c12;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.pause-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* 震动开关样式 */
.vibration-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.toggle-label {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px #FFD700;
}

.pause-action-btn {
    padding: 15px 50px;
    font-size: 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#resumeBtn {
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: 3px solid #1e8449;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

#resumeBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

#restartBtn {
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: 3px solid #1f6dad;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

#restartBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

#quitBtn {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: 3px solid #922b21;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

#quitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* 关卡目标预览界面 */
#level-preview-screen {
    background: transparent;
}

#level-preview-screen.overlay {
    background: transparent;
}

.preview-bg {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 60px;
    border-radius: 20px;
    border: 3px solid #FFD700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.preview-title {
    font-size: 36px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.preview-target {
    font-size: 72px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin: 0 10px;
}

.preview-unit {
    font-size: 24px;
    color: #FFA500;
    margin: 0;
}

/* 预览动画 */
.preview-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

.preview-slide-down {
    animation: slideDown 0.5s ease-out forwards;
}

.preview-fade-out {
    animation: fadeOutUp 0.5s ease-in forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.target-status {
    font-size: 14px;
    color: #2ecc71;
    font-weight: bold;
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    animation: pulse 1s ease-in-out infinite;
}

.ui-item {
    position: relative;
    padding-bottom: 20px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

canvas {
    display: block;
    background: linear-gradient(180deg, #87CEEB 0%, #87CEEB 30%, #8B4513 30%, #654321 100%);
    flex: 1;
    width: 100%;
    min-height: 0;
}

/* 炸弹样式 */
.bomb-container {
    position: absolute;
    top: 135px;
    left: 20px;
    width: 50px;
    height: 50px;
    cursor: grab;
    user-select: none;
    z-index: 10;
}

.bomb-container.dragging {
    cursor: grabbing;
}

.bomb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    pointer-events: none;
}

.bomb-count {
    position: absolute;
    bottom: 0px;
    right: -4px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    padding: 0 3px;
    line-height: 1;
}

/* 炸弹冷却倒计时 */
.bomb-cooldown {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffeb3b;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffeb3b;
    padding: 0 2px;
    line-height: 1;
    z-index: 11;
    animation: cooldownPulse 1s ease-in-out infinite;
}

/* 机械神力冷却倒计时 */
.mech-cooldown {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ffff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #00ffff;
    padding: 0 2px;
    line-height: 1;
    z-index: 11;
    animation: cooldownPulse 1s ease-in-out infinite;
}

@keyframes cooldownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 炸弹冷却状态 */
.bomb-container.cooling {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(50%);
}

/* 机械神力冷却状态 */
.mech-container.cooling {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(50%);
}

/* 力量药水样式 */
.power-container {
    position: absolute;
    top: 139px;
    left: 80px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.power-container:hover {
    transform: scale(1.05);
}

.power {
    width: 40px;
    height: 40px;
    object-fit: contain;
    pointer-events: none;
}

.power-count {
    position: absolute;
    bottom: 0px;
    right: -4px;
    background: #9b59b6;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    padding: 0 3px;
    line-height: 1;
}

/* 力量增强状态动画 */
.power-container.powered {
    animation: powerGlow 1s ease-in-out infinite;
}

@keyframes powerGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px #9b59b6);
    }
    50% {
        filter: drop-shadow(0 0 15px #9b59b6);
    }
}

/* 机械神力样式 */
.mech-container {
    position: absolute;
    top: 112px;
    left: 130px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.mech-container:hover {
    transform: scale(1.05);
}

.mech {
    width: 36px;
    height: 36px;
    object-fit: contain;
    pointer-events: none;
}

.mech-count {
    position: absolute;
    bottom: 0px;
    right: -4px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    padding: 0 3px;
    line-height: 1;
}

/* 加时卡样式 */
.timecard-container {
    position: absolute;
    top: 112px;
    left: 185px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.timecard-container:hover {
    transform: scale(1.05);
}

.timecard {
    width: 36px;
    height: 36px;
    object-fit: contain;
    pointer-events: none;
}

.timecard-count {
    position: absolute;
    bottom: 0px;
    right: -4px;
    background: #e67e22;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    padding: 0 3px;
    line-height: 1;
}

/* 记录卡样式 */
.recordcard-container {
    position: absolute;
    top: 112px;
    left: 240px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.recordcard-container:hover {
    transform: scale(1.05);
}

.recordcard {
    width: 36px;
    height: 36px;
    object-fit: contain;
    pointer-events: none;
}

.recordcard-count {
    position: absolute;
    bottom: 0px;
    right: -4px;
    background: #9b59b6;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    padding: 0 3px;
    pointer-events: none;
}



.mech-count {
    background: #9b59b6;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

/* 机械神力激活状态动画 */
.mech-container.active {
    animation: mechGlow 0.5s ease-in-out infinite;
}

@keyframes mechGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px #3498db);
    }
    50% {
        filter: drop-shadow(0 0 15px #3498db);
    }
}

/* 爆炸效果容器 */
.explosion-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.explosion {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0%, rgba(30, 30, 30, 0.7) 40%, rgba(50, 50, 50, 0.4) 70%, transparent 100%);
    animation: explode 0.5s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 开始页面样式 */
.start-screen-bg {
    position: relative;
    width: 100%;
    height: 100%;
}

.start-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.start-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px;
    z-index: 1;
}

/* 设置按钮 - 圆形样式 */
.settings-btn {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    background: rgba(255, 215, 0, 0.3) !important;
    border: 2px solid #FFD700 !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    color: #FFD700 !important;
    font-size: inherit !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.settings-btn:hover {
    background: rgba(255, 215, 0, 0.5) !important;
    transform: scale(1.1) !important;
    box-shadow: none !important;
}

.settings-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

/* 设置弹窗 */
#settings-screen {
    background: rgba(0, 0, 0, 0.8);
}

.settings-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #FFD700;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.settings-title {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.settings-section {
    margin-bottom: 30px;
}

.settings-label {
    display: block;
    font-size: 20px;
    color: #ecf0f1;
    margin-bottom: 20px;
}

.language-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #7f8c8d;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #ecf0f1;
    font-size: 14px;
    min-width: 0;
    overflow: hidden;
}

.lang-flag {
    font-size: 18px;
    flex-shrink: 0;
}

.lang-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

.lang-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.lang-btn.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.game-title {
    font-size: 72px;
    color: #FFD700;
    text-shadow: 
        3px 3px 0 #000,
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 20px rgba(255, 215, 0, 0.8);
    font-weight: bold;
    letter-spacing: 10px;
    animation: breathe 2s ease-in-out infinite;
}

/* 呼吸动画 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        text-shadow: 
            3px 3px 0 #000,
            -1px -1px 0 #000,  
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000,
            0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 
            3px 3px 0 #000,
            -1px -1px 0 #000,  
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000,
            0 0 40px rgba(255, 215, 0, 1);
    }
}

.start-content button:not(.settings-btn) {
    padding: 15px 30px;
    font-size: 24px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    border: 3px solid #8B4513;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    animation: buttonBreathe 2s ease-in-out infinite;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    white-space: nowrap;
}

/* 按钮呼吸动画 */
@keyframes buttonBreathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
    }
}

.start-content button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
    background: linear-gradient(180deg, #FFA500 0%, #FF8C00 100%);
}

/* 模式选择样式 */
.mode-select-bg,
.level-select-bg {
    position: relative;
    width: 100%;
    height: 100%;
}

.mode-select-image,
.level-select-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mode-select-content,
.level-select-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 50px;
    z-index: 1;
    gap: 20px;
    overflow: visible;
}

.level-select-title {
    flex-shrink: 0;
    text-align: center;
}

.level-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.level-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
}

.level-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.level-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.6);
    border-radius: 4px;
}

.level-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.8);
}

.mode-select-title,
.level-select-title {
    font-size: 48px;
    color: #FFD700;
    text-shadow: 
        3px 3px 0 #000,
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    font-weight: bold;
    text-align: center;
    width: 100%;
    margin: 0;
    flex-shrink: 0;
}

.mode-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 20px 30px;
    font-size: 20px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    border: 4px solid #8B4513;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 200px;
}

.mode-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.mode-icon {
    font-size: 48px;
}

.mode-name {
    font-size: 24px;
}

.mode-desc {
    font-size: 16px;
    opacity: 0.8;
}

/* 关卡选择网格 */
.level-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 750px;
    justify-content: center;
    width: 100%;
    padding-bottom: 20px;
}

.level-btn {
    width: 170px;
    height: 140px;
    padding: 15px 10px;
    font-size: 24px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    border: 4px solid #8B4513;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.level-btn:hover:not(.locked) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.level-btn.locked {
    background: linear-gradient(180deg, #95a5a6 0%, #7f8c8d 100%);
    color: #bdc3c7;
    border-color: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.6;
}

.level-btn.completed {
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-color: #27ae60;
}

.level-btn .level-info {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

.level-btn .level-reward {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.level-btn .reward-text {
    font-size: 10px;
    color: #FFD700;
    display: inline-block;
    margin-top: 2px;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.overlay-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #f39c12;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #f39c12;
}

.overlay-content p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ecf0f1;
}

#final-score {
    font-size: 32px;
    font-weight: bold;
    color: #f39c12;
}

/* 关卡完成样式 */
.success-title {
    font-size: 48px;
    color: #2ecc71;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

#level-complete-screen .overlay-content p {
    font-size: 20px;
    margin: 10px 0;
}

#level-score, #level-number, #next-target {
    font-size: 28px;
    font-weight: bold;
    color: #f39c12;
}

#nextLevelBtn {
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
}

#nextLevelBtn:hover {
    background: linear-gradient(180deg, #27ae60 0%, #1e8449 100%);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

/* 关卡完成全屏背景 */
.level-complete-bg {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.level-complete-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.level-complete-content {
    position: absolute;
    top: 55%; /* 高度下降 */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px 100px; /* 宽度增加(左右padding从70增加到100) */
    border-radius: 20px;
    border: 4px solid #2ecc71;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 600px; /* 最小宽度增加 */
    max-height: 90vh; /* 最大高度为视口的90% */
    overflow-y: auto; /* 内容超出时显示滚动条 */
}

/* 关卡完成弹窗滚动条样式 */
.level-complete-content::-webkit-scrollbar {
    width: 8px;
}

.level-complete-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.level-complete-content::-webkit-scrollbar-thumb {
    background: rgba(46, 204, 113, 0.6);
    border-radius: 4px;
}

.level-complete-content::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 204, 113, 0.8);
}

.level-complete-title {
    font-size: 48px;
    color: #2ecc71;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    white-space: nowrap;
}

/* 横向布局 */
.level-info-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    white-space: nowrap; /* 不允许换行 */
}

.level-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    white-space: nowrap; /* 不允许换行 */
}

.info-label {
    font-size: 18px;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap; /* 不允许换行 */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-value {
    font-size: 25px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap; /* 不允许换行 */
}

.level-info-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, transparent, #FFD700, transparent);
}

/* 失败样式 */
.fail-content {
    border-color: #e74c3c !important;
}

.fail-content .fail-title {
    font-size: 56px;
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

.fail-content .fail-message {
    font-size: 20px;
    color: #e74c3c;
    margin: 20px 0;
    font-weight: bold;
}

#gameOverHomeBtn {
    background: linear-gradient(180deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: 3px solid #555;
}

#gameOverHomeBtn:hover {
    background: linear-gradient(180deg, #7f8c8d 0%, #616a6b 100%);
    box-shadow: 0 6px 20px rgba(127, 140, 141, 0.6);
}

.level-complete-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* 自动操作倒计时样式 */
.auto-action-timer {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    min-height: 20px;
}

/* 关卡结算弹窗中的奖励显示区域 */
.level-reward-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    max-height: 300px; /* 限制奖励区域最大高度 */
    overflow-y: auto; /* 奖励过多时可滚动 */
}

/* 奖励区域滚动条样式 */
.level-reward-section::-webkit-scrollbar {
    width: 6px;
}

.level-reward-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.level-reward-section::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

.level-reward-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

.level-reward-section .reward-title {
    font-size: 22px;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: sticky; /* 标题固定在顶部 */
    top: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 8px;
    z-index: 1;
}

.level-reward-section .reward-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.level-reward-section .reward-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.level-reward-section .reward-icon {
    font-size: 18px;
}

.level-reward-section .reward-text {
    font-size: 15px;
    color: #FFD700;
    font-weight: bold;
}

.level-complete-buttons button {
    padding: 15px 40px;
    font-size: 20px;
}

#levelQuitBtn {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: 3px solid #922b21;
}

#levelQuitBtn:hover {
    background: linear-gradient(180deg, #c0392b 0%, #922b21 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* 关卡完成弹窗背景 */
#level-complete-screen .overlay-content {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.95) 0%, rgba(39, 174, 96, 0.95) 100%);
    padding: 50px;
    border-radius: 20px;
    border: 4px solid #2ecc71;
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.5);
}

/* 游戏结束弹窗背景 */
#game-over-screen .overlay-content {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.95) 0%, rgba(192, 57, 43, 0.95) 100%);
    padding: 50px;
    border-radius: 20px;
    border: 4px solid #e74c3c;
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.5);
}

/* 游戏失败样式 */
.fail-title {
    font-size: 48px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

#game-over-screen .overlay-content p {
    color: #fff;
}

.fail-message {
    color: #fff;
    font-size: 18px;
    margin: 15px 0;
    font-weight: bold;
}

#game-over-score, #game-over-target {
    font-size: 28px;
    font-weight: bold;
    color: #f39c12;
}

/* 最终通关样式 */
.final-win-content {
    border-color: #FFD700 !important;
}

.final-win-title {
    font-size: 48px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    white-space: nowrap;
    animation: pulse 1.5s ease-in-out infinite;
}

/* 恭喜通关弹窗中的奖励显示区域 */
.final-win-reward-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.final-win-reward-section .reward-title {
    font-size: 24px;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.final-win-reward-section .reward-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.final-win-reward-section .reward-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.final-win-reward-section .reward-icon {
    font-size: 20px;
}

.final-win-reward-section .reward-text {
    font-size: 16px;
    color: #FFD700;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.final-win-message {
    font-size: 20px;
    color: #bdc3c7;
    margin-bottom: 30px;
    white-space: nowrap;
}

/* 按钮布局 */
.start-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.secondary-btn {
    background: linear-gradient(180deg, #95a5a6 0%, #7f8c8d 100%);
    border: 3px solid #555;
}

.secondary-btn:hover {
    background: linear-gradient(180deg, #7f8c8d 0%, #616a6b 100%);
    box-shadow: 0 6px 20px rgba(127, 140, 141, 0.6);
}

/* 排行榜样式 */
#rank-screen .overlay-content {
    text-align: center;
}

.rank-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #FFD700;
    max-width: 800px;
    width: 100%;
    max-height: 100%;
    margin: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.rank-title {
    font-size: 48px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* 榜单切换按钮 */
.rank-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.rank-tab-btn {
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #ecf0f1;
    background: rgba(52, 152, 219, 0.3);
    border: 2px solid #3498db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rank-tab-btn:hover {
    background: rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.rank-tab-btn.active {
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
    border-color: #FFD700;
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.6);
}

.rank-list {
    margin: 20px 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid #FFD700;
}

.rank-item:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    border-left-color: #FFD700;
}

.rank-item:nth-child(2) {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.3), rgba(192, 192, 192, 0.1));
    border-left-color: #C0C0C0;
}

.rank-item:nth-child(3) {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.3), rgba(205, 127, 50, 0.1));
    border-left-color: #CD7F32;
}

.rank-number {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    width: 40px;
}

.rank-info {
    flex: 1;
    text-align: left;
    padding-left: 20px;
}

.rank-level {
    font-size: 16px;
    color: #bdc3c7;
}

.rank-score {
    font-size: 28px;
    font-weight: bold;
    color: #2ecc71;
}

.rank-score-sub {
    font-size: 20px;
    color: #f39c12;
    margin-top: 4px;
    font-weight: bold;
}

.rank-score-container {
    text-align: right;
}

.rank-player {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 4px;
}

.rank-date {
    font-size: 14px;
    color: #95a5a6;
}

.rank-time {
    font-size: 15px;
    color: #3498db;
    font-weight: bold;
}

.no-rank {
    color: #95a5a6;
    font-size: 18px;
    padding: 40px;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backFromRankBtn {
    margin-top: 20px;
    flex-shrink: 0;
}

/* ==================== 排行榜「我的记录」行 ==================== */

#rankMyRecord {
    flex-shrink: 0;
    margin-top: 6px;
}

.rank-my-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    margin: 12px 0;
}

.my-rank-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    padding: 12px 18px;
    gap: 12px;
    overflow: hidden;
    min-width: 0;
}

.my-rank-label {
    font-size: 14px;
    color: #FFD700;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.my-rank-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.my-rank-pos {
    font-size: 14px;
    color: #2ecc71;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.my-rank-status {
    font-size: 15px;
    color: #ecf0f1;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.my-rank-status.not-played-text {
    color: #95a5a6;
    font-style: italic;
}

.my-rank-name {
    font-size: 14px;
    color: #bdc3c7;
    white-space: nowrap;
}

.my-rank-content.not-played-bg {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 商城样式 */
.shop-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 30px 40px;
    border-radius: 15px;
    border: 3px solid #FFD700;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.shop-title {
    font-size: 42px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0;
}

.shop-coins {
    font-size: 22px;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.coins-icon {
    font-size: 28px;
}

/* 商城按钮区域 */
.shop-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-shrink: 0;
}

.recharge-btn {
    padding: 12px 40px;
    font-size: 18px;
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.recharge-btn:hover {
    background: linear-gradient(180deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

/* 充值页面样式 */
.recharge-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #FFD700;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.recharge-page-title {
    font-size: 48px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    text-align: center;
    flex-shrink: 0;
}

.recharge-balance {
    font-size: 24px;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.balance-icon {
    font-size: 28px;
}

.balance-amount {
    font-size: 32px;
    font-weight: bold;
    color: #2ecc71;
}

.recharge-packages {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.package-title {
    font-size: 24px;
    color: #FFD700;
    text-align: center;
    margin: 0 0 30px 0;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.package-card {
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
}

.package-card.popular {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.package-card.popular:hover {
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6);
}

.popular-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.package-coins {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.package-card.popular .package-coins {
    color: white;
}

.package-price {
    font-size: 36px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
}

.package-card.popular .package-price {
    color: #FFD700;
}

.package-desc {
    font-size: 16px;
    color: #555;
}

.package-card.popular .package-desc {
    color: rgba(255, 255, 255, 0.9);
}

.recharge-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.recharge-back-btn {
    padding: 15px 60px;
    font-size: 18px;
    background: linear-gradient(180deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.recharge-back-btn:hover {
    background: linear-gradient(180deg, #7f8c8d 0%, #616a6b 100%);
}

/* 自定义弹窗样式 */
.custom-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-dialog.show {
    opacity: 1;
}

.dialog-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #FFD700;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
}

.dialog-message {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 30px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.dialog-title {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.dialog-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.dialog-btn {
    padding: 12px 50px;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.dialog-btn-primary {
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.dialog-btn-primary:hover {
    background: linear-gradient(180deg, #FFA500 0%, #FF8C00 100%);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.dialog-btn-secondary {
    background: linear-gradient(180deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.dialog-btn-secondary:hover {
    background: linear-gradient(180deg, #7f8c8d 0%, #616a6b 100%);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.5);
}

.shop-items {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.shop-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid #FFD700;
    gap: 15px;
}

/* 未解锁的商城商品 */
.shop-item.locked {
    opacity: 0.5;
    border-left-color: #666;
    background: rgba(100, 100, 100, 0.1);
}

.shop-item.locked .shop-item-icon {
    filter: grayscale(100%);
}

.shop-item.locked .shop-item-name {
    color: #666;
}

.shop-item-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.shop-item-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    font-size: 22px;
    color: #FFD700;
    margin: 0 0 5px 0;
}

.shop-item-desc {
    font-size: 14px;
    color: #bdc3c7;
    margin: 0;
}

.shop-item-buy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.shop-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #FFD700;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.quantity-btn:hover {
    background: #FFA500;
}

/* 数量输入框样式 */
.quantity-input {
    width: 50px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    outline: none;
}

.quantity-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #FFD700;
}

.shop-quantity span {
    font-size: 20px;
    color: white;
    min-width: 30px;
    text-align: center;
}

/* 剩余道具数量显示 */
.shop-item-stock {
    font-size: 14px;
    color: #2ecc71;
    margin: 5px 0 0 0;
}

.buy-btn {
    padding: 10px 30px;
    font-size: 16px;
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin: 0;
}

.buy-btn:hover {
    background: linear-gradient(180deg, #27ae60 0%, #1e8449 100%);
}

/* 未解锁按钮样式 */
.buy-btn.locked-btn {
    background: linear-gradient(180deg, #666 0%, #444 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.buy-btn.locked-btn:hover {
    background: linear-gradient(180deg, #666 0%, #444 100%);
}

.shop-price {
    font-size: 16px;
    color: #FFD700;
}

.shop-back-btn {
    margin-top: 20px;
    flex-shrink: 0;
}

button {
    padding: 15px 40px;
    font-size: 20px;
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
    background: linear-gradient(180deg, #e67e22 0%, #d35400 100%);
    animation: buttonBreathe 2s ease-in-out infinite;
}

button:active {
    transform: translateY(0);
}

/* PC端商城优化 */
@media (min-width: 851px) {
    /* PC端游戏容器固定尺寸 */
    #game-container {
        width: 800px !important;
        max-width: none !important;
        height: 600px !important;
    }
    
    /* PC端关卡完成弹窗优化 */
    .level-complete-content {
        max-height: 540px !important; /* 限制最大高度为游戏容器的90% */
        min-width: 500px !important; /* 减小最小宽度 */
        max-width: 700px !important; /* 限制最大宽度 */
        padding: 30px 60px !important; /* 减小padding */
    }
    
    .level-complete-title {
        font-size: 42px !important; /* 减小标题字号 */
        margin-bottom: 20px !important;
    }
    
    .level-info-row {
        margin: 15px 0 !important;
    }
    
    .level-info-item {
        min-width: 120px !important;
    }
    
    .info-label {
        font-size: 14px !important;
    }
    
    .info-value {
        font-size: 18px !important;
    }
    
    /* 奖励区域优化 */
    .level-reward-section {
        max-height: 200px !important; /* 限制奖励区域高度 */
        margin-top: 15px !important;
        padding: 12px !important;
    }
    
    .level-reward-section .reward-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .level-reward-section .reward-items-list {
        gap: 6px !important;
    }
    
    .level-reward-section .reward-item {
        padding: 5px 10px !important;
        gap: 8px !important;
    }
    
    .level-reward-section .reward-icon {
        font-size: 16px !important;
    }
    
    .level-reward-section .reward-text {
        font-size: 14px !important;
    }
    
    /* 按钮区域优化 */
    .level-complete-buttons {
        margin-top: 20px !important;
    }
    
    .level-complete-buttons button {
        padding: 12px 35px !important;
        font-size: 18px !important;
        margin: 0 10px !important;
    }
    
    /* PC端机械神力图标位置 */
    .mech-container {
        top: 140px;
        left: 140px;
    }
    
    /* PC端加时卡图标位置 */
    .timecard-container {
        top: 140px;
        left: 195px;
    }
    
    /* PC端记录卡图标位置 */
    .recordcard-container {
        top: 140px;
        left: 250px;
    }
    
    /* PC端炸弹图标放大5px */
    .bomb-container {
        width: 55px;
        height: 55px;
    }
    
    .bomb {
        width: 45px;
        height: 45px;
    }
    
    .shop-content {
        width: 800px !important;
        max-width: none !important;
        height: 600px !important;
        max-height: none !important;
        padding: 15px 20px;
    }
    
    .shop-title {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .shop-coins {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .shop-items {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        padding-left: 15px;
    }
    
    .shop-item {
        width: 650px;
        padding: 6px;
        margin: 4px auto;
    }
    
    .shop-item-icon {
        left: 80px;
        width: 100px;
        height: 100px;
    }
    
    .shop-item-icon img {
        width: 60px;
        height: 60px;
    }
    
    .shop-item-name {
        font-size: 13px;
        margin: 0 0 2px 0;
    }
    
    .shop-item-desc {
        font-size: 9px;
        margin: 0 0 2px 0;
    }
    
    .shop-item-stock {
        font-size: 9px;
        margin: 0;
    }
    
    .shop-buttons {
        margin-top: 8px;
        padding-top: 8px;
        flex-shrink: 0;
    }
    
    .recharge-btn,
    .shop-back-btn {
        padding: 8px 25px;
        font-size: 14px;
    }
}

/* 移动端适配 */
@media (max-width: 850px) {
    body {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    /* 移动端全局禁止文本换行 */
    *, *::before, *::after {
        white-space: nowrap !important;
    }
    
    /* 允许多行文本的例外 */
    .shop-item-desc,
    .dialog-message,
    .dialog-title,
    .dialog-btn,
    .message-text,
    .level-btn .level-reward,
    .level-btn .reward-text,
    .level-complete-buttons button,
    .pause-action-btn,
    .buy-btn {
        white-space: normal !important;
    }
    
    /* 移动端弹窗文本字体大小调整 */
    .dialog-message {
        font-size: 18px;
    }
    
    .dialog-title {
        font-size: 22px;
    }
    
    /* 移动端弹窗按钮优化 */
    .dialog-btn {
        padding: 8px 20px;
        font-size: 14px;
        max-width: 180px;
        word-break: break-word;
        line-height: 1.3;
    }
    
    #game-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    #ui-bar {
        padding: 10px 5px;
        padding-top: 40px;
        font-size: 14px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .ui-item {
        gap: 2px;
        min-width: 0;
        flex: 1;
    }
    
    .label {
        font-size: 11px;
    }
    
    #score, #time, #target {
        font-size: 16px;
    }
    
    .pause-container {
        flex: 0 0 auto;
        margin-top: 0;
        margin-left: 10px;
    }
    
    .pause-btn {
        width: 30px;
        height: 30px;
    }
    
    .pause-icon {
        width: 16px;
        height: 16px;
    }
    
    .target-status {
        position: absolute;
        bottom: 5px;
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
        white-space: nowrap;
    }
    
    .bomb-container {
        top: 110px;
        left: 10px;
    }
    
    .power-container {
        top: 110px;
        left: 70px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* 保持所有页面信息横向排列 */
    .level-complete-content {
        min-width: auto !important;
        width: 90% !important;
        padding: 20px 15px !important;
    }
    
    .level-complete-title {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }
    
    /* 移动端关卡完成弹窗优化 */
    .level-info-row {
        gap: 10px !important;
        margin: 15px 0 !important;
        flex-wrap: wrap; /* 允许换行 */
    }
    
    .level-info-item {
        gap: 5px;
        min-width: 80px; /* 最小宽度 */
        flex: 1; /* 自适应宽度 */
        max-width: calc(50% - 5px); /* 每行最多2个 */
    }
    
    .info-label {
        font-size: 11px;
        letter-spacing: 0.5px;
        white-space: normal; /* 移动端允许换行 */
        word-break: break-word;
    }
    
    .info-value {
        font-size: 16px !important;
    }
    
    .level-info-divider {
        display: none; /* 移动端隐藏分隔线 */
    }
    
    .level-complete-buttons {
        gap: 10px;
        margin-top: 20px;
        flex-wrap: wrap; /* 允许按钮换行 */
    }
    
    .level-complete-buttons button {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 90px;
        max-width: calc(50% - 5px); /* 最多并排显示2个按钮 */
        white-space: normal; /* 允许文本换行 */
        word-break: break-word;
        line-height: 1.3;
    }
    
    /* 游戏结束页面适配 */
    .fail-content .fail-title {
        font-size: 32px !important;
    }
    
    .fail-content .fail-message {
        font-size: 16px !important;
    }
    
    #game-over-score, #game-over-target {
        font-size: 20px !important;
    }
    
    /* 最终通关页面适配 */
    .final-win-title {
        font-size: 28px !important;
    }
    
    .final-win-message {
        font-size: 14px !important;
    }
    
    /* 暂停页面适配 */
    .pause-title {
        font-size: 32px !important;
    }
    
    .pause-action-btn {
        padding: 8px 20px;
        font-size: 14px;
        max-width: 180px; /* 限制最大宽度 */
        white-space: normal; /* 允许文本换行 */
        word-break: break-word;
        line-height: 1.3;
    }
    
    /* 预览页面适配 */
    .preview-content {
        width: 90% !important;
        padding: 20px 30px !important;
        white-space: nowrap;
    }
    
    .preview-title {
        font-size: 24px !important;
    }
    
    .preview-target {
        font-size: 48px !important;
    }
    
    .preview-unit {
        font-size: 16px;
    }
    
    /* 开始页面适配 */
    .game-title {
        font-size: 40px !important;
        letter-spacing: 5px;
        margin-top: 25px !important;
    }
    
    /* 移动端设置按钮位置调整：左移10px、上移10px */
    .settings-btn {
        top: 10px;
        left: 10px;
        width: 45px;
        height: 45px;
    }
    
    .settings-btn .settings-icon {
        width: 24px;
        height: 24px;
    }
    
    /* 移动端按钮布局：商城和排行榜横向，开始游戏单独居中上移 */
    .start-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .start-buttons button:nth-child(3) {
        order: -1;
        margin-bottom: 10px;
    }
    
    .start-content button:not(.settings-btn) {
        padding: 12px 20px;
        font-size: 20px;
        margin-bottom: 0;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        white-space: nowrap;
    }
    
    /* 模式选择适配 */
    .mode-select-content,
    .level-select-content {
        align-items: center;
        justify-content: center;
    }
    
    .mode-select-title,
    .level-select-title {
        font-size: 32px !important;
        width: 100%;
        text-align: center;
        margin-top: -20px;
        margin-bottom: 40px;
    }
    
    .mode-buttons {
        gap: 15px;
        flex-direction: column;
        width: 90%;
        margin-top: 0;
    }
    
    .mode-btn {
        padding: 20px 30px;
        min-width: auto;
        width: 100%;
    }
    
    .mode-icon {
        font-size: 36px;
    }
    
    .mode-name {
        font-size: 20px;
    }
    
    .mode-desc {
        font-size: 14px;
    }
    
    /* 关卡选择适配 */
    .level-select-content {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .level-select-title {
        font-size: 36px;
    }
    
    .level-scroll-wrapper {
        padding: 5px 0;
    }
    
    .level-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 90%;
        max-width: 400px;
        justify-content: center;
    }
    
    .level-btn {
        width: 150px;
        height: 120px;
        padding: 10px 8px;
        font-size: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .level-btn .level-info {
        font-size: 10px;
    }
    
    /* 排行榜适配 */
    .rank-title {
        font-size: 28px;
    }
    
    /* 移动端排行榜全屏 */
    #rank-screen {
        width: 100% !important;
        height: 100% !important;
    }
    
    .rank-content {
        min-width: auto;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        padding: 20px;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    
    .rank-list {
        flex: 1;
        overflow-y: auto;
    }
    
    /* 移动端榜单切换按钮 */
    .rank-tabs {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .rank-tab-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .rank-number {
        font-size: 18px;
        width: 30px;
    }
    
    .rank-info {
        padding-left: 10px;
    }
    
    .rank-level {
        font-size: 12px;
    }
    
    .rank-score {
        font-size: 18px;
    }
    
    .rank-player {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .rank-score-container {
        text-align: right;
    }
    
    .rank-date {
        font-size: 11px;
    }
    
    .no-rank {
        font-size: 14px;
        padding: 20px;
    }
    
    /* 商城移动端适配 */
    #shop-screen {
        width: 100% !important;
        height: 100% !important;
    }
    
    .shop-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        padding: 20px;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    
    .shop-title {
        font-size: 32px;
    }
    
    .shop-coins {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .coins-icon {
        font-size: 22px;
    }
    
    /* 充值区域移动端适配 */
    .recharge-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .recharge-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .recharge-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .recharge-option {
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .recharge-amount {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .recharge-price {
        font-size: 24px;
    }
    
    .shop-item {
        padding: 15px;
        margin: 10px 0;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .shop-item-icon {
        width: 60px;
        height: 60px;
    }
    
    .shop-item-icon img {
        width: 45px;
        height: 45px;
    }
    
    .shop-item-name {
        font-size: 18px;
    }
    
    .shop-item-desc {
        font-size: 12px;
    }
    
    .shop-item-buy {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }
    
    .shop-quantity {
        padding: 3px 10px;
    }
    
    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
    
    .shop-quantity span {
        font-size: 16px;
        min-width: 25px;
    }
    
    .buy-btn {
        padding: 8px 15px;
        font-size: 13px;
        max-width: 120px;
        white-space: normal;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .shop-price {
        font-size: 14px;
    }
    
    /* 充值页面移动端适配 */
    #recharge-screen {
        width: 100% !important;
        height: 100% !important;
    }
    
    .recharge-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        padding: 20px;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    
    .recharge-page-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .recharge-balance {
        font-size: 18px;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .balance-icon {
        font-size: 22px;
    }
    
    .balance-amount {
        font-size: 24px;
    }
    
    .package-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .package-card {
        padding: 20px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .package-coins {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    .package-price {
        font-size: 28px;
        margin-bottom: 0;
    }
    
    .package-desc {
        font-size: 14px;
    }
    
    .recharge-back-btn {
        padding: 12px 40px;
        font-size: 16px;
    }
}

/* 奖励通知样式 */
.reward-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    min-width: 300px;
    text-align: center;
}

.reward-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.reward-title {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reward-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    animation: rewardSlideIn 0.3s ease forwards;
    opacity: 0;
}

.reward-item:nth-child(1) { animation-delay: 0.1s; }
.reward-item:nth-child(2) { animation-delay: 0.2s; }
.reward-item:nth-child(3) { animation-delay: 0.3s; }
.reward-item:nth-child(4) { animation-delay: 0.4s; }

.reward-icon {
    font-size: 24px;
}

.reward-text {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

@keyframes rewardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 登录弹窗样式 ==================== */

#login-modal {
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
}

.login-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #FFD700;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.15);
    text-align: center;
}

.login-title {
    font-size: 36px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #95a5a6;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    text-align: left;
}

.login-label {
    display: block;
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 6px;
    font-weight: bold;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-input:focus {
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-error {
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
    padding: 8px 12px;
    background: rgba(231, 76, 60, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.login-submit-btn {
    padding: 14px;
    font-size: 18px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    border: 3px solid #8B4513;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-skip-btn {
    padding: 10px;
    font-size: 14px;
    background: transparent;
    color: #95a5a6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    margin-top: 0;
}

.login-skip-btn:hover {
    color: #ecf0f1;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}
