        /* ==================== 皮肤 CSS 变量 ==================== */
        :root {
            --skin-body-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 40%, #0f0f1a 100%);
            --skin-body-pattern: repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(255, 215, 0, 0.02) 50px, rgba(255, 215, 0, 0.02) 100px);
            --skin-container-bg: rgba(10, 10, 10, 0.85);
            --skin-border-color: rgba(255, 215, 0, 0.4);
            --skin-accent: #ffd700;
            --skin-accent-rgb: 255, 215, 0;
            --skin-card-bg: linear-gradient(145deg, #2a2a4a, #1a1a3a);
            --skin-button-gradient: linear-gradient(135deg, #ffd700, #ff8c00);
            --skin-glow: rgba(255, 215, 0, 0.1);
        }

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

        body {
            font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
            background: var(--skin-body-pattern), var(--skin-body-bg);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            overflow: hidden;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--skin-body-pattern);
            pointer-events: none;
            z-index: 0;
        }

        .avatar-bg {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 800px;
            height: 800px;
            background: radial-gradient(
                circle,
                rgba(255, 215, 0, 0.08) 0%,
                rgba(255, 140, 0, 0.04) 30%,
                transparent 70%
            );
            border-radius: 50%;
            z-index: 0;
            pointer-events: none;
            animation: pulse 8s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
            50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
        }

        .mask-icon {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 300px;
            opacity: 0.03;
            z-index: 0;
            pointer-events: none;
            filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.3));
        }

        .container {
            text-align: center;
            padding: 40px;
            background: var(--skin-container-bg);
            border-radius: 20px;
            backdrop-filter: blur(15px);
            border: 2px solid var(--skin-border-color);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.8),
                inset 0 0 60px rgba(var(--skin-accent-rgb), 0.05),
                0 0 100px rgba(var(--skin-accent-rgb), 0.1);
            max-width: 850px;
            width: 90%;
            position: relative;
            z-index: 1;
        }

        .main-layout {
            display: flex;
            gap: 30px;
            align-items: flex-start;
            justify-content: center;
        }

        .game-area {
            flex: 1;
            min-width: 0;
            text-align: center;
        }

        .history-sidebar {
            width: 280px;
            flex-shrink: 0;
            text-align: left;
        }

        .container::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #ffd700, #ff8c00, #ffd700);
            border-radius: 22px;
            z-index: -1;
            animation: glow 3s ease-in-out infinite;
        }

        @keyframes glow {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            color: var(--skin-accent);
            text-shadow: 0 0 20px rgba(var(--skin-accent-rgb), 0.5);
            letter-spacing: 3px;
        }

        .subtitle {
            font-size: 1.1em;
            color: #ffffff;
            margin-bottom: 20px;
            font-style: italic;
            font-weight: 900;
            text-shadow: 
                0 0 20px rgba(255, 255, 255, 0.6),
                0 2px 8px rgba(0, 0, 0, 0.9);
            background: linear-gradient(180deg, 
                rgba(0, 0, 0, 0.7) 0%, 
                rgba(0, 0, 0, 0.4) 100%);
            padding: 10px 25px;
            border-radius: 10px;
            display: inline-block;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 
                inset 0 0 30px rgba(0, 0, 0, 0.6),
                0 4px 15px rgba(0, 0, 0, 0.4);
            letter-spacing: 1px;
        }

        /* 筹码显示 */
        .chip-display {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
            border: 2px solid rgba(255, 215, 0, 0.5);
            border-radius: 15px;
            padding: 15px 25px;
            margin-bottom: 20px;
            display: inline-block;
            box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1);
        }

        .chip-count {
            font-size: 2em;
            color: var(--skin-accent);
            font-weight: bold;
            text-shadow: 0 0 15px rgba(var(--skin-accent-rgb), 0.6);
            transition: all 0.3s ease;
            display: inline-block;
        }

        .chip-count.chip-animating {
            animation: chipPulse 0.3s ease-in-out;
            color: #00ff00;
            text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
            transform: scale(1.1);
        }

        @keyframes chipPulse {
            0% { transform: scale(1.1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        /* 筹码增加时的绿色闪光效果 */
        .chip-count.chip-increase {
            animation: chipIncrease 0.5s ease-out;
        }

        @keyframes chipIncrease {
            0% { color: #00ff00; transform: scale(1.3); }
            50% { color: var(--skin-accent); transform: scale(1.1); }
            100% { color: var(--skin-accent); transform: scale(1); }
        }

        /* 筹码减少时的红色闪光效果 */
        .chip-count.chip-decrease {
            animation: chipDecrease 0.5s ease-out;
        }

        @keyframes chipDecrease {
            0% { color: #ff4444; transform: scale(1.1); }
            50% { color: var(--skin-accent); transform: scale(1.05); }
            100% { color: var(--skin-accent); transform: scale(1); }
        }

        .chip-label {
            font-size: 0.9em;
            color: #aaa;
            margin-top: 5px;
        }

        .payday-timer {
            font-size: 0.9em;
            color: #00ff00;
            margin-top: 8px;
            font-weight: bold;
        }

        .card-area {
            margin: 20px 0;
            min-height: 260px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .card {
            width: 200px;
            height: 280px;
            background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
            border-radius: 15px;
            border: 3px solid #ffd700;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                        inset 0 0 30px rgba(255, 215, 0, 0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .card.shuffling {
            animation: shuffle 0.5s ease-in-out infinite;
        }

        @keyframes shuffle {
            0%, 100% { transform: rotate(-5deg) scale(0.95); }
            50% { transform: rotate(5deg) scale(1.05); }
        }

        .card-icon {
            font-size: 4em;
            margin-bottom: 20px;
            filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
        }

        .card-title {
            font-size: 1.8em;
            color: var(--skin-accent);
            margin-bottom: 10px;
            font-weight: bold;
            text-shadow: 0 0 10px rgba(var(--skin-accent-rgb), 0.3);
        }

        .card-desc {
            font-size: 0.9em;
            color: #aaa;
            line-height: 1.5;
        }

        .card-luck {
            margin-top: 15px;
            font-size: 1.2em;
            color: #fff;
            font-weight: bold;
        }

        .luck-legend { 
            color: #ff00ff; 
            text-shadow: 
                0 0 20px rgba(255, 0, 255, 0.8),
                0 0 40px rgba(255, 0, 255, 0.5),
                0 0 60px rgba(255, 0, 255, 0.3);
            font-size: 1.4em;
            animation: legend-pulse 2s ease-in-out infinite;
        }

        @keyframes legend-pulse {
            0%, 100% { opacity: 0.8; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.05); }
        }

        .luck-high { color: #00ff00; text-shadow: 0 0 10px rgba(0, 255, 0, 0.5); }
        .luck-medium { color: var(--skin-accent); text-shadow: 0 0 10px rgba(var(--skin-accent-rgb), 0.5); }
        .luck-low { color: #ff6b6b; text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }

        /* ==================== 命运牌局 ==================== */

        /* 待命卡牌 */
        .card-idle {
            width: 200px;
            height: 280px;
            background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
            border-radius: 15px;
            border: 3px solid #ffd700;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                        inset 0 0 30px rgba(255, 215, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        .card-idle::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
            animation: shimmer 2s infinite;
        }

        /* 牌桌容器 */
        .fate-table {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        /* 倒计时环 */
        .fate-timer {
            position: relative;
            width: 40px;
            height: 40px;
        }

        .fate-timer-ring {
            width: 40px;
            height: 40px;
            transform: rotate(-90deg);
        }

        .fate-timer-bg {
            fill: none;
            stroke: rgba(255, 255, 255, 0.1);
            stroke-width: 3;
        }

        .fate-timer-fill {
            fill: none;
            stroke: var(--skin-accent);
            stroke-width: 3;
            stroke-dasharray: 100;
            stroke-dashoffset: 0;
            stroke-linecap: round;
            transition: stroke-dashoffset 1s linear;
        }

        .fate-timer-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 14px;
            font-weight: bold;
            color: var(--skin-accent);
        }

        /* 5张牌的容器 */
        .fate-slots {
            display: flex;
            gap: 8px;
            justify-content: center;
            flex-wrap: nowrap;
        }

        /* 单张命运牌 */
        .fate-card {
            width: 100px;
            height: 150px;
            perspective: 600px;
            cursor: pointer;
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }

        .fate-card:hover:not(.fate-card-revealed):not(.fate-card-disabled) {
            transform: translateY(-6px);
        }

        .fate-card.disabled {
            cursor: default;
        }

        .fate-card-inner {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.6s ease;
        }

        .fate-card.flipped .fate-card-inner {
            transform: rotateY(180deg);
        }

        .fate-card-front,
        .fate-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 8px;
            box-sizing: border-box;
        }

        /* 牌背面 */
        .fate-card-front {
            background: linear-gradient(135deg, #1a1a3a, #2a2a5a);
            border: 2px solid rgba(255, 215, 0, 0.4);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        }

        .fate-card-front::after {
            content: '🎴';
            font-size: 2.5em;
            filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
        }

        /* 悬浮动画（未翻开时） */
        .fate-card:not(.flipped) .fate-card-front {
            animation: fate-float 2.5s ease-in-out infinite;
        }

        .fate-card:nth-child(2):not(.flipped) .fate-card-front { animation-delay: 0.3s; }
        .fate-card:nth-child(3):not(.flipped) .fate-card-front { animation-delay: 0.6s; }
        .fate-card:nth-child(4):not(.flipped) .fate-card-front { animation-delay: 0.9s; }
        .fate-card:nth-child(5):not(.flipped) .fate-card-front { animation-delay: 1.2s; }

        @keyframes fate-float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        /* 牌正面（翻面后） */
        .fate-card-back {
            transform: rotateY(180deg);
            text-align: center;
            overflow: hidden;
        }

        /* 各命运层级颜色 */
        .fate-level-major .fate-card-back {
            background: linear-gradient(145deg, #3a2800, #1a1400);
            border: 2px solid #ffd700;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }

        .fate-level-good .fate-card-back {
            background: linear-gradient(145deg, #1a2a3a, #0f1a25);
            border: 2px solid #87ceeb;
            box-shadow: 0 0 15px rgba(135, 206, 235, 0.3);
        }

        .fate-level-slight .fate-card-back {
            background: linear-gradient(145deg, #1a1a2e, #12122a);
            border: 2px solid rgba(150, 150, 200, 0.4);
            box-shadow: 0 0 10px rgba(150, 150, 200, 0.2);
        }

        .fate-level-reversal .fate-card-back {
            background: linear-gradient(145deg, #2a0f0f, #1a0808);
            border: 2px solid #e74c3c;
            box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
        }

        .fate-level-drama .fate-card-back {
            background: linear-gradient(145deg, #2a1a3a, #1a0f25);
            border: 2px solid #9b59b6;
            box-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
            animation: drama-shimmer 1.5s linear infinite;
        }

        @keyframes drama-shimmer {
            0% { border-color: #e74c3c; box-shadow: 0 0 15px rgba(231, 76, 60, 0.4); }
            33% { border-color: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
            66% { border-color: #2ecc71; box-shadow: 0 0 15px rgba(46, 204, 113, 0.4); }
            100% { border-color: #e74c3c; box-shadow: 0 0 15px rgba(231, 76, 60, 0.4); }
        }

        /* 牌面内容 */
        .fate-card-icon {
            font-size: 1.8em;
            margin-bottom: 4px;
        }

        .fate-card-label {
            font-size: 0.75em;
            font-weight: bold;
            margin-bottom: 2px;
        }

        .fate-card-reward {
            font-size: 1em;
            font-weight: bold;
        }

        .fate-card-modifier {
            font-size: 0.65em;
            margin-top: 2px;
            opacity: 0.8;
        }

        /* 命运层级文字颜色 */
        .fate-level-major .fate-card-label { color: #ffd700; }
        .fate-level-major .fate-card-reward { color: #ffd700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); }

        .fate-level-good .fate-card-label { color: #87ceeb; }
        .fate-level-good .fate-card-reward { color: #87ceeb; }

        .fate-level-slight .fate-card-label { color: #9999cc; }
        .fate-level-slight .fate-card-reward { color: #9999cc; }

        .fate-level-reversal .fate-card-label { color: #e74c3c; }
        .fate-level-reversal .fate-card-reward { color: #ff6b6b; }

        .fate-level-drama .fate-card-label { color: #bb77dd; }
        .fate-level-drama .fate-card-reward { color: #bb77dd; }

        /* 选中的牌高亮 */
        .fate-card.fate-card-chosen {
            z-index: 10;
        }

        .fate-card.fate-card-chosen .fate-card-back {
            border-color: #ffd700 !important;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3) !important;
            animation: chosen-glow 1.5s ease-in-out infinite;
        }

        @keyframes chosen-glow {
            0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3); }
            50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.5); }
        }

        /* 揭示其他牌时的暗淡效果 */
        .fate-card.fate-card-revealed {
            opacity: 0.65;
        }

        /* 修饰标签样式 */
        .fate-mod-double { color: #ffd700; }
        .fate-mod-triple { color: #ff8c00; }
        .fate-mod-flip { color: #e74c3c; }
        .fate-mod-immune { color: #2ecc71; }
        .fate-mod-chain { color: #00bcd4; }
        .fate-mod-bankrupt { color: #ff0000; }
        .fate-mod-absorb { color: #9b59b6; }
        .fate-mod-lock { color: #3498db; }
        .fate-mod-curse { color: #e67e22; }

        /* 事件弹窗提示 */
        .fate-event-toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.5);
            background: linear-gradient(135deg, rgba(10, 10, 20, 0.97), rgba(5, 5, 15, 0.98));
            border: 2px solid #ffd700;
            border-radius: 15px;
            padding: 20px 30px;
            z-index: 5000;
            text-align: center;
            opacity: 0;
            transition: all 0.4s ease;
            pointer-events: none;
        }

        .fate-event-toast.show {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        .fate-event-toast .event-icon {
            font-size: 2.5em;
            margin-bottom: 8px;
        }

        .fate-event-toast .event-title {
            font-size: 1.2em;
            font-weight: bold;
            color: #ffd700;
            margin-bottom: 4px;
        }

        .fate-event-toast .event-desc {
            font-size: 0.9em;
            color: #ccc;
        }

        /* 移动端适配 */
        @media (max-width: 600px) {
            .fate-card {
                width: 62px;
                height: 100px;
            }
            .fate-slots {
                gap: 5px;
            }
            .fate-card-icon { font-size: 1.4em; margin-bottom: 2px; }
            .fate-card-label { font-size: 0.6em; }
            .fate-card-reward { font-size: 0.8em; }
            .fate-card-modifier { font-size: 0.55em; }
        }

        @media (max-width: 400px) {
            .fate-card {
                width: 54px;
                height: 86px;
            }
            .fate-slots {
                gap: 3px;
            }
        }

        .btn {
            background: var(--skin-button-gradient);
            color: #1a1a2e;
            border: none;
            padding: 13px 32px;
            font-size: 1.15em;
            font-weight: bold;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: 0 4px 15px rgba(var(--skin-accent-rgb), 0.3);
            margin: 6px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 22px rgba(var(--skin-accent-rgb), 0.5);
            filter: brightness(1.05);
        }

        .btn:active {
            transform: translateY(0);
            filter: brightness(0.95);
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .btn-shop {
            background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
            padding: 13px 32px;
            font-size: 1.15em;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
        }

        .btn-shop:hover {
            box-shadow: 0 6px 22px rgba(255, 107, 107, 0.5);
            filter: brightness(1.05);
        }

        .history {
            margin-top: 0;
            text-align: left;
            background: rgba(0, 0, 0, 0.2);
            padding: 20px;
            border-radius: 10px;
            max-height: 500px;
            overflow-y: auto;
            overflow-x: hidden;
            border: 1px solid rgba(255, 215, 0, 0.2);
        }

        /* 历史记录滚动条 - 与皮肤库一致 */
        .history::-webkit-scrollbar {
            width: 12px;
        }

        .history::-webkit-scrollbar-track {
            background: linear-gradient(180deg, 
                rgba(255, 215, 0, 0.05) 0%, 
                rgba(255, 215, 0, 0.1) 50%, 
                rgba(255, 215, 0, 0.05) 100%);
            border-radius: 6px;
            border: 1px solid rgba(255, 215, 0, 0.15);
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
        }

        .history::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, 
                #ffd700 0%, 
                #ffaa00 50%, 
                #ff8c00 100%);
            border-radius: 6px;
            border: 2px solid rgba(10, 10, 20, 0.5);
            box-shadow: 
                0 0 10px rgba(255, 215, 0, 0.5),
                inset 0 0 5px rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
        }

        .history::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, 
                #ffe04a 0%, 
                #ffbb00 50%, 
                #ff9900 100%);
            box-shadow: 
                0 0 15px rgba(255, 215, 0, 0.8),
                inset 0 0 5px rgba(255, 255, 255, 0.5);
            transform: scale(1.05);
        }

        .history::-webkit-scrollbar-thumb:active {
            background: linear-gradient(180deg, 
                #ffcc00 0%, 
                #ff9900 50%, 
                #ff7700 100%);
            box-shadow: 
                0 0 8px rgba(255, 215, 0, 0.6),
                inset 0 0 8px rgba(0, 0, 0, 0.2);
            transform: scale(0.98);
        }

        .history h3 {
            color: var(--skin-accent);
            margin-bottom: 15px;
            font-size: 1.2em;
            border-bottom: 1px solid rgba(var(--skin-accent-rgb), 0.3);
            padding-bottom: 10px;
        }

        .history-item {
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9em;
            word-wrap: break-word;
            white-space: normal;
        }

        .history-item:last-child {
            border-bottom: none;
        }

        .history-time {
            color: #888;
            font-size: 0.8em;
            margin-right: 10px;
        }

        .signature {
            margin-top: 30px;
            font-size: 1em;
            color: #ffffff;
            font-style: italic;
            font-weight: 700;
            text-shadow: 
                0 0 15px rgba(255, 255, 255, 0.4),
                0 2px 6px rgba(0, 0, 0, 0.8);
            letter-spacing: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.05) 50%, 
                transparent 100%);
            padding: 8px 20px;
            border-radius: 5px;
        }

        .sound-control {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 100;
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .sound-btn {
            background: rgba(0, 0, 0, 0.6);
            border: 2px solid var(--skin-accent);
            color: var(--skin-accent);
            padding: 10px 15px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1.2em;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .sound-btn:hover {
            background: rgba(255, 215, 0, 0.2);
            transform: scale(1.1);
        }

        .sound-btn.muted::after {
            content: ' 🔇';
        }

        .sound-btn:not(.muted)::after {
            content: ' 🔊';
        }

        .bgm-btn {
            background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
            border-color: #ff6b6b;
            font-size: 1em;
            padding: 8px 12px;
        }

        .bgm-btn.playing {
            background: linear-gradient(135deg, #00ff00, #00cc00);
            border-color: #00ff00;
            color: #000;
        }

        .skin-lib-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: linear-gradient(135deg, #9b59b6, #8e44ad);
            border: 2px solid #9b59b6;
            color: #fff;
            font-size: 1.4em;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
        }

        .skin-lib-btn:hover {
            transform: scale(1.15) rotate(5deg);
            box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6);
            background: linear-gradient(135deg, #a56ac8, #9b59b6);
        }

        .skin-lib-btn:active {
            transform: scale(1.05);
        }

        /* 商店弹窗 */
        .shop-modal, .skin-library-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .shop-modal.active, .skin-library-modal.active {
            display: flex;
        }

        .shop-content, .skin-library-content {
            background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
            border: 3px solid #ffd700;
            border-radius: 20px;
            padding: 30px;
            width: 650px;
            height: 580px;
            position: relative;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            overflow: hidden;
        }

        /* 响应式调整 */
        @media (max-width: 700px) {
            .shop-content, .skin-library-content {
                width: 90%;
                height: 80vh;
            }
        }

        .skin-library-content {
            overflow: hidden; /* 外层不滚动 */
        }

        .skin-library-header {
            flex-shrink: 0;
        }

        .skin-library-body {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            margin: -30px -30px 0 -30px;
            padding: 0 30px 30px 30px;
        }

        /* 皮肤库主体滚动条 - 与皮肤网格一致 */
        .skin-library-body::-webkit-scrollbar {
            width: 12px;
        }

        .skin-library-body::-webkit-scrollbar-track {
            background: linear-gradient(180deg, 
                rgba(255, 215, 0, 0.05) 0%, 
                rgba(255, 215, 0, 0.1) 50%, 
                rgba(255, 215, 0, 0.05) 100%);
            border-radius: 6px;
            border: 1px solid rgba(255, 215, 0, 0.15);
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
        }

        .skin-library-body::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, 
                #ffd700 0%, 
                #ffaa00 50%, 
                #ff8c00 100%);
            border-radius: 6px;
            border: 2px solid rgba(10, 10, 20, 0.5);
            box-shadow: 
                0 0 10px rgba(255, 215, 0, 0.5),
                inset 0 0 5px rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
        }

        .skin-library-body::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, 
                #ffe04a 0%, 
                #ffbb00 50%, 
                #ff9900 100%);
            box-shadow: 
                0 0 15px rgba(255, 215, 0, 0.8),
                inset 0 0 5px rgba(255, 255, 255, 0.5);
            transform: scale(1.05);
        }

        .skin-library-body::-webkit-scrollbar-thumb:active {
            background: linear-gradient(180deg, 
                #ffcc00 0%, 
                #ff9900 50%, 
                #ff7700 100%);
            box-shadow: 
                0 0 8px rgba(255, 215, 0, 0.6),
                inset 0 0 8px rgba(0, 0, 0, 0.2);
            transform: scale(0.98);
        }

        .skin-library-footer {
            flex-shrink: 0;
            margin-top: 20px;
        }

        /* 商店标题 */
        .shop-content .shop-title {
            flex-shrink: 0;
            margin-bottom: 15px;
        }

        /* 商店整体布局 */
        .shop-layout {
            display: flex;
            gap: 20px;
            flex: 1;
            overflow: hidden;
            min-height: 0;
        }

        /* 左侧分类菜单 */
        .shop-sidebar {
            width: 120px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 5px;
            max-height: 100%;
        }

        /* 分类菜单滚动条样式 */
        .shop-sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .shop-sidebar::-webkit-scrollbar-track {
            background: rgba(255, 215, 0, 0.05);
            border-radius: 3px;
        }

        .shop-sidebar::-webkit-scrollbar-thumb {
            background: rgba(255, 215, 0, 0.3);
            border-radius: 3px;
        }

        .shop-sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 215, 0, 0.5);
        }

        .shop-category-btn {
            background: rgba(255, 215, 0, 0.1);
            border: 2px solid rgba(255, 215, 0, 0.3);
            color: #ffd700;
            padding: 12px 15px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: bold;
            font-size: 0.9em;
            transition: all 0.3s ease;
            text-align: left;
            flex-shrink: 0;
        }

        .shop-category-btn:hover {
            background: rgba(255, 215, 0, 0.2);
            border-color: #ffd700;
            transform: translateX(5px);
        }

        .shop-category-btn.active {
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            color: #1a1a2e;
            border-color: #ffd700;
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        }

        /* 右侧商品区域 */
        .shop-main {
            flex: 1;
            min-width: 0;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* 分类标题 */
        .shop-category-title {
            color: #ffd700;
            font-size: 1.1em;
            font-weight: bold;
            margin: 0 0 10px 0;
            padding-bottom: 8px;
            border-bottom: 2px solid rgba(255, 215, 0, 0.3);
            flex-shrink: 0;
        }

        /* 商店九宫格布局 */
        .shop-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 10px;
            min-height: 0;
            min-width: 0;
        }

        /* 商品网格滚动条样式 */
        .shop-grid::-webkit-scrollbar {
            width: 8px;
        }

        .shop-grid::-webkit-scrollbar-track {
            background: rgba(255, 215, 0, 0.1);
            border-radius: 4px;
        }

        .shop-grid::-webkit-scrollbar-thumb {
            background: rgba(255, 215, 0, 0.4);
            border-radius: 4px;
        }

        .shop-grid::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 215, 0, 0.6);
        }

        /* 通用滚动条样式 - 所有可滚动面板复用 */
        .custom-scrollbar::-webkit-scrollbar {
            width: 8px;
        }

        .custom-scrollbar::-webkit-scrollbar-track {
            background: rgba(255, 215, 0, 0.1);
            border-radius: 4px;
        }

        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(255, 215, 0, 0.4);
            border-radius: 4px;
        }

        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 215, 0, 0.6);
        }

        .shop-grid-item {
            background: rgba(255, 215, 0, 0.1);
            border: 2px solid rgba(255, 215, 0, 0.3);
            border-radius: 15px;
            padding: 15px 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            min-width: 134.66px;
            min-height: 167.39px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
        }

        .shop-grid-item:hover {
            transform: scale(1.05);
            border-color: #ffd700;
            background: rgba(255, 215, 0, 0.15);
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        }

        .shop-grid-item.owned {
            opacity: 0.7;
            cursor: default;
        }

        .shop-grid-item.owned:hover {
            transform: none;
            box-shadow: none;
        }

        .shop-grid-icon {
            font-size: 3em;
            margin-bottom: 10px;
            filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
        }

        .shop-grid-name {
            font-size: 0.7em;
            color: #ffd700;
            font-weight: bold;
            margin: 8px 0 5px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            padding: 0 5px;
            min-height: 1.2em;
            line-height: 1.2;
        }

        .shop-grid-price {
            font-size: 0.85em;
            color: #fff;
            background: rgba(255, 215, 0, 0.2);
            padding: 3px 10px;
            border-radius: 10px;
            margin-top: auto;
            margin-bottom: 5px;
        }

        /* 悬浮时显示详细信息 */
        .shop-grid-tooltip {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(10, 10, 20, 0.95);
            border-top: 1px solid rgba(255, 215, 0, 0.5);
            padding: 12px 10px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            z-index: 10;
            overflow: hidden;
        }

        .shop-grid-item:hover .shop-grid-tooltip {
            transform: translateY(0);
        }

        .shop-grid-desc {
            font-size: 0.85em;
            color: #aaa;
            line-height: 1.5;
            text-align: left;
            word-wrap: break-word;
        }

        .shop-grid-btn {
            background: linear-gradient(135deg, #00ff00, #00cc00);
            color: #000;
            border: none;
            padding: 8px 15px;
            border-radius: 15px;
            font-weight: bold;
            cursor: pointer;
            font-size: 0.85em;
            width: 100%;
            transition: all 0.3s ease;
        }

        .shop-grid-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
        }

        .shop-grid-btn:disabled {
            background: #666;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .shop-grid-btn.owned {
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            cursor: default;
        }

        .shop-title, .skin-library-title {
            font-size: 2em;
            color: var(--skin-accent);
            margin-bottom: 20px;
            text-shadow: 0 0 15px rgba(var(--skin-accent-rgb), 0.5);
        }

        .skin-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
            /* 移除滚动，让父容器滚动 */
            overflow: visible;
            max-height: none;
        }

        .skin-card {
            background: rgba(255, 215, 0, 0.1);
            border: 2px solid rgba(255, 215, 0, 0.3);
            border-radius: 15px;
            padding: 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .skin-card:hover {
            transform: scale(1.05);
            border-color: #ffd700;
        }

        .skin-card.active {
            border-color: #00ff00;
            box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
        }

        .skin-card.active::after {
            content: '✓';
            position: absolute;
            top: 10px;
            right: 10px;
            background: #00ff00;
            color: #000;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2em;
        }

        .skin-preview {
            width: 100%;
            height: 80px;
            border-radius: 10px;
            margin-bottom: 10px;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .skin-name {
            font-size: 1em;
            color: #fff;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .skin-status {
            font-size: 0.85em;
            color: #aaa;
        }

        .skin-card.locked .skin-preview {
            filter: grayscale(100%) opacity(0.5);
        }

        .skin-card.locked .skin-status {
            color: #ff6b6b;
        }

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

        .skin-action-btn {
            padding: 10px 20px;
            border-radius: 25px;
            border: none;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .skin-equip-btn {
            background: linear-gradient(135deg, #00ff00, #00cc00);
            color: #000;
        }

        .skin-equip-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
        }

        .skin-equip-btn:disabled {
            background: #666;
            cursor: not-allowed;
            transform: none;
        }

        .skin-library-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(255, 215, 0, 0.3);
            padding-bottom: 10px;
        }

        .skin-tab {
            background: transparent;
            border: 2px solid rgba(255, 215, 0, 0.5);
            color: #ffd700;
            padding: 8px 20px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .skin-tab.active {
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            color: #1a1a2e;
        }

        .skin-tab:hover:not(.active) {
            background: rgba(255, 215, 0, 0.2);
        }

        .shop-item {
            background: rgba(255, 215, 0, 0.1);
            border: 2px solid rgba(255, 215, 0, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }

        .shop-item:hover {
            border-color: #ffd700;
            transform: scale(1.02);
        }

        .shop-item-info {
            text-align: left;
        }

        .shop-item-name {
            font-size: 1.2em;
            color: #fff;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .shop-item-desc {
            font-size: 0.9em;
            color: #aaa;
        }

        .shop-item-price {
            text-align: right;
        }

        .shop-price {
            font-size: 1.3em;
            color: #ffd700;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .shop-btn {
            background: linear-gradient(135deg, #00ff00, #00cc00);
            color: #000;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .shop-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
        }

        .shop-btn:disabled {
            background: #666;
            cursor: not-allowed;
            transform: none;
        }

        .shop-btn.owned {
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            cursor: default;
        }

        .close-shop {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: #ffd700;
            font-size: 1.5em;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .close-shop:hover {
            color: #fff;
            transform: scale(1.2);
        }

        @media (max-width: 900px) {
            .main-layout {
                flex-direction: column;
                gap: 20px;
            }
            
            .history-sidebar {
                width: 100%;
                max-width: 100%;
            }
            
            .history {
                max-height: 220px;
            }
        }

        @media (max-width: 600px) {
            h1 { font-size: 1.8em; }
            .card { width: 160px; height: 240px; }
            .card-icon { font-size: 3em; }
            .card-title { font-size: 1.4em; }
            .btn { padding: 12px 30px; font-size: 1.1em; }
            .sound-control {
                top: 10px;
                right: 10px;
            }
            .sound-btn {
                padding: 8px 12px;
                font-size: 1em;
            }
            .chip-count { font-size: 1.5em; }
            .container { padding: 30px 20px; }
        }

        /* 特效 Canvas */
        #effectCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        /* ==================== 公共 Tooltip 组件 ==================== */
        .global-tooltip {
            position: fixed;
            top: 80px;
            right: 20px;
            min-width: 200px;
            max-width: 320px;
            padding: 15px 20px;
            background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(5, 5, 10, 0.98));
            border: 2px solid rgba(255, 215, 0, 0.6);
            border-radius: 12px;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(255, 215, 0, 0.3),
                inset 0 0 20px rgba(255, 215, 0, 0.05);
            backdrop-filter: blur(10px);
            z-index: 9999;
            transform: translateX(400px);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            pointer-events: none;
        }

        .global-tooltip.show {
            transform: translateX(0);
            opacity: 1;
        }

        .global-tooltip::before {
            content: '';
            position: absolute;
            top: -8px;
            right: 30px;
            width: 16px;
            height: 16px;
            background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(5, 5, 10, 0.98));
            border-top: 2px solid rgba(255, 215, 0, 0.6);
            border-right: 2px solid rgba(255, 215, 0, 0.6);
            border-radius: 4px 0 0 0;
            transform: rotate(45deg);
        }

        .global-tooltip-icon {
            font-size: 1.8em;
            margin-bottom: 8px;
            filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
        }

        .global-tooltip-title {
            font-size: 1.1em;
            font-weight: bold;
            color: #ffd700;
            margin-bottom: 6px;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        .global-tooltip-message {
            font-size: 0.95em;
            color: #fff;
            line-height: 1.5;
        }

        .global-tooltip.success {
            border-color: rgba(0, 255, 0, 0.6);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(0, 255, 0, 0.3),
                inset 0 0 20px rgba(0, 255, 0, 0.05);
        }

        .global-tooltip.success .global-tooltip-title {
            color: #00ff00;
            text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
        }

        .global-tooltip.error {
            border-color: rgba(255, 107, 107, 0.6);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(255, 107, 107, 0.3),
                inset 0 0 20px rgba(255, 107, 107, 0.05);
        }

        .global-tooltip.error .global-tooltip-title {
            color: #ff6b6b;
            text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
        }

        .global-tooltip.info {
            border-color: rgba(0, 255, 255, 0.6);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(0, 255, 255, 0.3),
                inset 0 0 20px rgba(0, 255, 255, 0.05);
        }

        .global-tooltip.info .global-tooltip-title {
            color: #00ffff;
            text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
        }

        /* ==================== 连抽暴击系统样式 ==================== */
        .combo-indicator {
            position: fixed;
            top: 80px;
            left: 20px;
            min-width: 180px;
            padding: 12px 18px;
            background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(5, 5, 10, 0.98));
            border: 2px solid;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 9998;
            transform: translateX(-400px);
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            pointer-events: none;
        }

        .combo-indicator.show {
            transform: translateX(0);
            opacity: 1;
        }

        .combo-indicator.level-1 {
            border-color: #00ff00;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(0, 255, 0, 0.4);
        }

        .combo-indicator.level-2 {
            border-color: #00ffff;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.8),
                0 0 25px rgba(0, 255, 255, 0.5);
            animation: combo-pulse-2 1.5s ease-in-out infinite;
        }

        .combo-indicator.level-3 {
            border-color: #ff00ff;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.8),
                0 0 30px rgba(255, 0, 255, 0.6),
                0 0 50px rgba(255, 0, 255, 0.3);
            animation: combo-pulse-3 0.8s ease-in-out infinite;
        }

        @keyframes combo-pulse-2 {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes combo-pulse-3 {
            0%, 100% { 
                transform: scale(1);
                box-shadow: 
                    0 8px 32px rgba(0, 0, 0, 0.8),
                    0 0 30px rgba(255, 0, 255, 0.6),
                    0 0 50px rgba(255, 0, 255, 0.3);
            }
            50% { 
                transform: scale(1.08);
                box-shadow: 
                    0 8px 32px rgba(0, 0, 0, 0.8),
                    0 0 40px rgba(255, 0, 255, 0.8),
                    0 0 70px rgba(255, 0, 255, 0.5);
            }
        }

        .combo-icon {
            font-size: 2.2em;
            text-align: center;
            margin-bottom: 5px;
            filter: drop-shadow(0 0 10px currentColor);
        }

        .combo-count {
            font-size: 2em;
            font-weight: bold;
            text-align: center;
            margin-bottom: 3px;
            text-shadow: 0 0 15px currentColor;
        }

        .combo-title {
            font-size: 0.9em;
            text-align: center;
            margin-bottom: 5px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .combo-bonus {
            font-size: 0.85em;
            text-align: center;
            color: #fff;
            line-height: 1.3;
        }

        .combo-bonus span {
            display: block;
            margin-top: 2px;
        }

        /* 连抽特效文字 */
        .combo-text-effect {
            position: fixed;
            font-size: 2.5em;
            font-weight: bold;
            pointer-events: none;
            z-index: 9999;
            animation: combo-text-float 2s ease-out forwards;
            text-shadow: 
                0 0 20px currentColor,
                0 0 40px currentColor,
                2px 2px 0 #000;
        }

        @keyframes combo-text-float {
            0% {
                opacity: 1;
                transform: translateY(0) scale(0.5) rotate(-10deg);
            }
            20% {
                transform: translateY(-30px) scale(1.2) rotate(5deg);
            }
            100% {
                opacity: 0;
                transform: translateY(-150px) scale(1) rotate(0deg);
            }
        }

        /* ==================== 多元化筹码获取系统样式 ==================== */
        
        /* 功能按钮组 */
        .bonus-buttons {
            display: flex;
            gap: 12px;
            margin: 12px auto;
            justify-content: center;
            flex-wrap: nowrap;
            max-width: 340px;
        }

        .bonus-btn {
            width: 150px;
            height: 40px;
            background: linear-gradient(135deg, #9b59b6, #8e44ad);
            color: #fff;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 0.92em;
            font-weight: bold;
            transition: all 0.25s ease;
            white-space: nowrap;
            box-shadow: 0 3px 10px rgba(155, 89, 182, 0.25);
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .bonus-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 16px rgba(155, 89, 182, 0.4);
            filter: brightness(1.1);
        }

        .bonus-btn:active {
            transform: translateY(0);
            filter: brightness(0.95);
        }

        .bonus-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
            filter: grayscale(0.3);
        }

        .bonus-btn.mining {
            background: linear-gradient(135deg, #27ae60, #1e8449);
            box-shadow: 0 3px 10px rgba(39, 174, 96, 0.25);
        }

        .bonus-btn.mining:hover {
            box-shadow: 0 5px 16px rgba(39, 174, 96, 0.4);
        }

        @media (max-width: 380px) {
            .bonus-buttons {
                gap: 8px;
                max-width: 100%;
            }
            .bonus-btn {
                min-width: 0;
                font-size: 0.85em;
            }
        }

        /* 我的物品面板 */
        .inventory-panel {
            position: fixed;
            top: 80px;
            right: 20px;
            width: 280px;
            background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(5, 5, 10, 0.98));
            border: 2px solid rgba(255, 215, 0, 0.5);
            border-radius: 15px;
            padding: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 9997;
            max-height: 350px;
            overflow-y: auto;
        }

        .inventory-title {
            color: #ffd700;
            font-size: 1.1em;
            font-weight: bold;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 2px solid rgba(255, 215, 0, 0.3);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .inventory-item {
            background: rgba(255, 215, 0, 0.05);
            border: 1px solid rgba(255, 215, 0, 0.2);
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }

        .inventory-item:hover {
            background: rgba(255, 215, 0, 0.1);
            border-color: rgba(255, 215, 0, 0.4);
        }

        .inventory-item-info {
            flex: 1;
        }

        .inventory-item-name {
            color: #fff;
            font-weight: bold;
            font-size: 0.9em;
            margin-bottom: 3px;
        }

        .inventory-item-desc {
            color: #aaa;
            font-size: 0.8em;
        }

        .inventory-item-count {
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            color: #000;
            font-weight: bold;
            font-size: 0.9em;
            padding: 4px 10px;
            border-radius: 12px;
            min-width: 50px;
            text-align: center;
            margin-left: 10px;
        }

        .inventory-empty {
            text-align: center;
            padding: 30px 20px;
            color: #888;
        }

        .inventory-empty-icon {
            font-size: 3em;
            margin-bottom: 10px;
            opacity: 0.5;
        }

        /* 任务面板 */
        .tasks-panel {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 280px;
            background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(5, 5, 10, 0.98));
            border: 2px solid rgba(255, 215, 0, 0.5);
            border-radius: 15px;
            padding: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 9997;
            max-height: 400px;
            overflow-y: auto;
        }

        .tasks-title {
            color: #ffd700;
            font-size: 1.1em;
            font-weight: bold;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 2px solid rgba(255, 215, 0, 0.3);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .task-item {
            background: rgba(255, 215, 0, 0.05);
            border: 1px solid rgba(255, 215, 0, 0.2);
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }

        .task-item.completed {
            background: rgba(0, 255, 0, 0.05);
            border-color: rgba(0, 255, 0, 0.3);
        }

        .task-info {
            flex: 1;
        }

        .task-name {
            color: #fff;
            font-weight: bold;
            font-size: 0.9em;
            margin-bottom: 3px;
        }

        .task-desc {
            color: #aaa;
            font-size: 0.8em;
        }

        .task-reward {
            color: #ffd700;
            font-weight: bold;
            font-size: 0.9em;
            margin-left: 10px;
        }

        .task-btn {
            background: linear-gradient(135deg, #00ff00, #00cc00);
            color: #000;
            border: none;
            padding: 6px 12px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 0.8em;
            font-weight: bold;
            margin-left: 10px;
            transition: all 0.3s ease;
        }

        .task-btn:hover:not(:disabled) {
            transform: scale(1.05);
            box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
        }

        .task-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* 挖矿显示 */
        .mining-display {
            background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(34, 153, 84, 0.1));
            border: 1px solid rgba(39, 174, 96, 0.3);
            border-radius: 10px;
            padding: 10px 15px;
            margin-top: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mining-info {
            color: #2ecc71;
            font-size: 0.9em;
        }

        .mining-amount {
            color: #ffd700;
            font-weight: bold;
            font-size: 1.1em;
        }

        /* 活动提示 */
        .bonus-banner {
            position: fixed;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
            color: #fff;
            padding: 10px 25px;
            border-radius: 25px;
            font-weight: bold;
            box-shadow: 0 4px 20px rgba(238, 90, 111, 0.4);
            z-index: 9996;
            animation: bonus-pulse 2s ease-in-out infinite;
        }

        @keyframes bonus-pulse {
            0%, 100% { transform: translateX(-50%) scale(1); }
            50% { transform: translateX(-50%) scale(1.05); }
        }

        /* ==================== 老虎机弹窗 ==================== */
        .slot-machine-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .slot-machine-modal.active {
            display: flex;
        }

        .slot-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
        }

        .slot-content {
            position: relative;
            background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
            border: 4px solid #ffd700;
            border-radius: 25px;
            padding: 30px 40px 40px 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
            z-index: 2001;
            min-width: 480px;
        }

        .slot-close {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            color: #ffd700;
            font-size: 28px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .slot-close:hover {
            color: #fff;
            transform: rotate(90deg);
        }

        .slot-header {
            text-align: center;
            margin-bottom: 15px;
        }

        .slot-title {
            color: #ffd700;
            font-size: 28px;
            margin: 0 0 5px 0;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }

        .slot-subtitle {
            color: #ccc;
            font-size: 13px;
            margin: 0;
        }

        /* 赔付表 */
        .slot-paytable {
            background: rgba(255, 215, 0, 0.08);
            border: 1px solid rgba(255, 215, 0, 0.25);
            border-radius: 12px;
            padding: 10px 20px;
            margin-bottom: 20px;
            width: 100%;
            box-sizing: border-box;
        }

        .slot-paytable-title {
            color: #ffd700;
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 8px;
            text-align: center;
        }

        .slot-paytable-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px 20px;
        }

        .slot-pay-item {
            color: #ddd;
            font-size: 12px;
            display: flex;
            justify-content: space-between;
            padding: 2px 0;
        }

        .slot-pay-item.jackpot {
            color: #ffd700;
            font-weight: bold;
            grid-column: 1 / -1;
            justify-content: center;
            gap: 8px;
        }

        .slot-pay-item span {
            color: #fff;
        }

        /* 转轮容器 */
        .slot-reels-container {
            display: flex;
            gap: 12px;
            justify-content: center;
            align-items: center;
            margin: 10px 0 20px 0;
            background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
            border: 3px solid #ffd700;
            border-radius: 15px;
            padding: 15px 20px;
            box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
        }

        .slot-reel {
            width: 100px;
            height: 120px;
            overflow: hidden;
            border-radius: 10px;
            background: #000;
            border: 2px solid rgba(255, 215, 0, 0.4);
            position: relative;
        }

        .slot-reel-inner {
            transition: transform 0.1s linear;
        }

        .slot-symbol {
            width: 100px;
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3em;
            box-sizing: border-box;
        }

        .slot-reel.winning .slot-symbol {
            animation: slot-symbol-glow 0.5s ease-in-out infinite alternate;
        }

        @keyframes slot-symbol-glow {
            from { filter: drop-shadow(0 0 5px #ffd700) drop-shadow(0 0 10px #ff8c00); }
            to   { filter: drop-shadow(0 0 15px #ffd700) drop-shadow(0 0 30px #ff8c00); }
        }

        /* 结果展示 */
        .slot-result {
            min-height: 36px;
            text-align: center;
            margin-bottom: 10px;
            font-size: 18px;
            font-weight: bold;
        }

        .slot-result.win {
            color: #ffd700;
            animation: slot-result-pop 0.4s ease-out;
        }

        .slot-result.lose {
            color: #888;
        }

        @keyframes slot-result-pop {
            0%   { transform: scale(0.5); opacity: 0; }
            70%  { transform: scale(1.15); }
            100% { transform: scale(1); opacity: 1; }
        }

        /* 中奖全屏闪光 */
        .slot-win-flash {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: radial-gradient(circle, rgba(255,215,0,0.4), transparent 70%);
            z-index: 9999;
            pointer-events: none;
            animation: slot-flash-anim 1.2s ease-out forwards;
        }

        @keyframes slot-flash-anim {
            0%   { opacity: 1; }
            100% { opacity: 0; }
        }

        /* 按钮 */
        .slot-controls {
            margin: 10px 0;
        }

        .slot-spin-btn {
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            color: #000;
            border: none;
            padding: 14px 50px;
            font-size: 20px;
            font-weight: bold;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
        }

        .slot-spin-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
        }

        .slot-spin-btn:disabled {
            background: linear-gradient(135deg, #666, #444);
            cursor: not-allowed;
            opacity: 0.6;
            transform: none;
        }

        .slot-info {
            background: rgba(255, 215, 0, 0.1);
            border: 1px solid rgba(255, 215, 0, 0.3);
            border-radius: 12px;
            padding: 10px 20px;
            width: 100%;
            box-sizing: border-box;
            text-align: center;
        }

        .slot-info p {
            color: #ccc;
            margin: 4px 0;
            font-size: 13px;
        }

        .slot-info strong {
            color: #ffd700;
        }

        .slot-chips-display {
            color: #ffd700 !important;
            font-size: 15px !important;
            font-weight: bold;
        }

        /* 移动端适配 */
        @media (max-width: 600px) {
            .slot-content {
                min-width: auto;
                padding: 20px 15px 25px 15px;
            }
            .slot-reel {
                width: 80px;
                height: 100px;
            }
            .slot-symbol {
                width: 80px;
                height: 100px;
                font-size: 2.2em;
            }
            .slot-paytable-grid {
                grid-template-columns: 1fr;
            }
        }


        /* ==================== 成就弹窗 ==================== */
        .achievement-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 3000;
            justify-content: center;
            align-items: center;
        }

        .achievement-modal.active {
            display: flex;
        }

        .achievement-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
        }

        .achievement-content {
            position: relative;
            background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
            border: 4px solid #ffd700;
            border-radius: 25px;
            padding: 40px;
            width: 700px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
            z-index: 3001;
            overflow: hidden;
        }

        .achievement-close {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            color: #ffd700;
            font-size: 28px;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 3002;
        }

        .achievement-close:hover {
            color: #fff;
            transform: rotate(90deg);
        }

        .achievement-header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid rgba(255, 215, 0, 0.3);
            flex-shrink: 0;
        }

        .achievement-title {
            color: #ffd700;
            font-size: 32px;
            margin: 0 0 10px 0;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }

        .achievement-subtitle {
            color: #ccc;
            font-size: 14px;
            margin: 0 0 15px 0;
            font-style: italic;
        }

        .achievement-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            color: #ffd700;
            font-size: 16px;
        }

        .achievement-stats strong {
            color: #fff;
            font-size: 18px;
        }

        .achievement-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            padding: 10px;
            overflow-y: auto;
            max-height: calc(80vh - 200px);
        }

        .achievement-card {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
            border: 2px solid rgba(255, 215, 0, 0.3);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            opacity: 0.4;
            filter: grayscale(0.8);
        }

        .achievement-card.unlocked {
            opacity: 1;
            filter: grayscale(0);
            border-color: #ffd700;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        }

        .achievement-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
        }

        .achievement-badge {
            font-size: 60px;
            margin-bottom: 10px;
            display: block;
        }

        .achievement-name {
            color: #ffd700;
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 8px;
            display: block;
        }

        .achievement-desc {
            color: #ccc;
            font-size: 12px;
            margin-bottom: 10px;
            display: block;
        }

        .achievement-quote {
            color: #ff8c00;
            font-size: 11px;
            font-style: italic;
            display: block;
            border-top: 1px solid rgba(255, 215, 0, 0.2);
            padding-top: 8px;
        }

        .achievement-progress-bar {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            margin-top: 10px;
            overflow: hidden;
        }

        .achievement-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #ffd700, #ff8c00);
            transition: width 0.5s ease;
        }

        /* 滚动条样式 - 应用到成就网格 */
        .achievement-grid::-webkit-scrollbar {
            width: 8px;
        }

        .achievement-grid::-webkit-scrollbar-track {
            background: rgba(255, 215, 0, 0.1);
            border-radius: 4px;
        }

        .achievement-grid::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #ffd700, #ff8c00);
            border-radius: 4px;
        }

        /* ==================== 我的物品弹窗 ==================== */
        .inventory-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 3000;
            justify-content: center;
            align-items: center;
        }

        .inventory-modal.active {
            display: flex;
        }

        .inventory-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
        }

        .inventory-content {
            position: relative;
            background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
            border: 4px solid #ffd700;
            border-radius: 25px;
            padding: 40px;
            width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
            z-index: 3001;
            overflow: hidden;
        }

        .inventory-header {
            text-align: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(255, 215, 0, 0.3);
            flex-shrink: 0;
        }

        .inventory-title {
            color: #ffd700;
            font-size: 28px;
            margin: 0 0 8px 0;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }

        .inventory-subtitle {
            color: #ccc;
            font-size: 14px;
            margin: 0;
            font-style: italic;
        }

        .inventory-grid {
            display: flex;
            flex-direction: column;
            gap: 15px;
            overflow-y: auto;
            flex: 1;
            padding: 5px;
        }

        .inventory-grid::-webkit-scrollbar {
            width: 8px;
        }

        .inventory-grid::-webkit-scrollbar-track {
            background: rgba(255, 215, 0, 0.1);
            border-radius: 4px;
        }

        .inventory-grid::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #ffd700, #ff8c00);
            border-radius: 4px;
        }

        .inventory-item {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 140, 0, 0.05));
            border: 2px solid rgba(255, 215, 0, 0.3);
            border-radius: 15px;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s ease;
        }

        .inventory-item:hover {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.1));
            border-color: rgba(255, 215, 0, 0.6);
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
        }

        .inventory-item-icon {
            font-size: 40px;
            flex-shrink: 0;
        }

        .inventory-item-info {
            flex: 1;
            min-width: 0;
        }

        .inventory-item-name {
            color: #fff;
            font-weight: bold;
            font-size: 1em;
            margin-bottom: 4px;
        }

        .inventory-item-desc {
            color: #aaa;
            font-size: 0.8em;
            margin-bottom: 4px;
        }

        .inventory-item-count {
            display: inline-block;
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            color: #000;
            font-weight: bold;
            font-size: 0.85em;
            padding: 3px 10px;
            border-radius: 12px;
        }

        .inventory-use-btn {
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            color: #000;
            border: none;
            border-radius: 10px;
            padding: 10px 20px;
            font-weight: bold;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .inventory-use-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        }

        .inventory-use-btn:active {
            transform: scale(0.95);
        }

        .inventory-empty {
            text-align: center;
            padding: 50px 20px;
            color: #888;
            font-size: 16px;
        }

        /* ==================== 登录/注册弹窗（强制登录，全屏遮罩） ==================== */
        .auth-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 4000;
            justify-content: center;
            align-items: center;
            background: rgba(0, 0, 0, 0.92);
        }

        .auth-modal.active {
            display: flex;
        }

        .auth-content {
            position: relative;
            background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
            border: 4px solid #ffd700;
            border-radius: 25px;
            padding: 40px;
            width: 420px;
            max-width: 90vw;
            box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
            z-index: 4001;
        }

        .auth-header {
            text-align: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(255, 215, 0, 0.3);
        }

        .auth-title {
            color: #ffd700;
            font-size: 24px;
            margin: 0 0 8px 0;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }

        .auth-subtitle {
            color: #ccc;
            font-size: 13px;
            margin: 0;
        }

        .auth-field {
            margin-bottom: 16px;
        }

        .auth-label {
            display: block;
            color: #ffd700;
            font-size: 13px;
            margin-bottom: 6px;
            font-weight: bold;
        }

        .auth-input {
            width: 100%;
            box-sizing: border-box;
            padding: 12px 16px;
            background: rgba(255, 215, 0, 0.05);
            border: 2px solid rgba(255, 215, 0, 0.3);
            border-radius: 12px;
            color: #fff;
            font-size: 15px;
            outline: none;
            transition: all 0.3s ease;
        }

        .auth-input:focus {
            border-color: #ffd700;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
        }

        .auth-input::placeholder {
            color: #666;
        }

        .auth-submit-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            border: none;
            border-radius: 12px;
            color: #000;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 8px;
        }

        .auth-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
        }

        .auth-switch {
            text-align: center;
            margin-top: 14px;
            color: #888;
            font-size: 13px;
        }

        .auth-switch a {
            color: #ffd700;
            text-decoration: none;
            font-weight: bold;
            cursor: pointer;
        }

        .auth-switch a:hover {
            text-decoration: underline;
        }

        /* 已登录状态 */
        .auth-logged-in {
            text-align: center;
        }

        .auth-user-info {
            margin-bottom: 20px;
        }

        .auth-avatar {
            font-size: 50px;
            margin-bottom: 10px;
        }

        .auth-user-email {
            color: #fff;
            font-size: 16px;
            margin-bottom: 8px;
            word-break: break-all;
        }

        .auth-logout-btn {
            width: 100%;
            padding: 12px;
            background: transparent;
            border: 2px solid rgba(244, 67, 54, 0.4);
            border-radius: 12px;
            color: #f44336;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .auth-logout-btn:hover {
            border-color: #f44336;
            background: rgba(244, 67, 54, 0.1);
        }

        /* 关闭按钮 */
        .auth-close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 4002;
            width: 32px;
            height: 32px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            color: #aaa;
            font-size: 18px;
            border-radius: 50%;
            cursor: pointer;
            display: none;
            transition: all 0.2s ease;
            line-height: 1;
        }

        .auth-close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }

        /* 返回游戏按钮 */
        .auth-back-btn {
            width: 100%;
            padding: 12px;
            margin-top: 10px;
            background: transparent;
            border: 2px solid rgba(255, 215, 0, 0.4);
            border-radius: 12px;
            color: #ffd700;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .auth-back-btn:hover {
            border-color: #ffd700;
            background: rgba(255, 215, 0, 0.1);
        }

        /* 退出登录确认 */
        .auth-logout-confirm {
            text-align: center;
        }

        .auth-logout-confirm-text {
            color: #fff;
            font-size: 18px;
            margin-bottom: 8px;
        }

        .auth-logout-confirm-sub {
            color: #999;
            font-size: 13px;
            margin: 0 0 20px 0;
        }

        .auth-logout-confirm-btn {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #f44336, #d32f2f);
            border: none;
            border-radius: 12px;
            color: #fff;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .auth-logout-confirm-btn:hover {
            opacity: 0.9;
            box-shadow: 0 0 15px rgba(244, 67, 54, 0.5);
        }

        /* 用户状态指示器（按钮旁） */
        .auth-btn-logged-in {
            border-color: #4caf50 !important;
            box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
        }
