        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            overflow-x: hidden;
            user-select: none;
        }

        .container {
            display: flex;
            min-height: 100vh;
        }

        .left-panel {
            flex: 1;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .right-panel {
            width: 450px;
            background: rgba(0, 0, 0, 0.3);
            overflow-y: auto;
            backdrop-filter: blur(10px);
            border-left: 2px solid rgba(255, 255, 255, 0.1);
        }

        .panel-content {
            padding: 20px;
        }

        .stats {
            text-align: center;
            margin-bottom: 30px;
        }

        .crystals-count {
            font-size: 3rem;
            font-weight: bold;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
            margin-bottom: 10px;
        }

        .crystals-per-second {
            font-size: 1.2rem;
            opacity: 0.8;
            margin-bottom: 10px;
        }

        .total-crystals {
            font-size: 1rem;
            opacity: 0.7;
            color: #f9ca24;
        }

        .crystal-button {
            width: 200px;
            height: 200px;
            border: none;
            border-radius: 50%;
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
            background-size: 400% 400%;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            animation: crystalGlow 3s ease-in-out infinite alternate;
        }

        @keyframes crystalGlow {
            0% { background-position: 0% 50%; }
            100% { background-position: 100% 50%; }
        }

        .crystal-button:hover {
            transform: scale(1.05);
        }

        .crystal-button:active {
            transform: scale(0.95);
        }

        .crystal-button::before {
            content: '💎';
            font-size: 4rem;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
        }

        .click-effect {
            position: absolute;
            pointer-events: none;
            font-size: 1.5rem;
            font-weight: bold;
            color: #fff;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            animation: floatUp 1s ease-out forwards;
            z-index: 100;
        }

        @keyframes floatUp {
            0% {
                opacity: 1;
                transform: translateY(0px) scale(1);
            }
            100% {
                opacity: 0;
                transform: translateY(-80px) scale(1.2);
            }
        }

        .section {
            margin-bottom: 25px;
        }

        .section-title {
            font-size: 1.4rem;
            margin-bottom: 15px;
            text-align: center;
            color: #f9ca24;
            text-shadow: 0 0 10px rgba(249, 202, 36, 0.5);
            padding: 10px;
            background: rgba(249, 202, 36, 0.1);
            border-radius: 10px;
            border: 2px solid rgba(249, 202, 36, 0.3);
        }

        .upgrade-item, .generator-item {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .upgrade-item:hover, .generator-item:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateX(3px);
        }

        .upgrade-item.affordable, .generator-item.affordable {
            border-color: #4ecdc4;
            background: rgba(78, 205, 196, 0.1);
        }

        .upgrade-item.disabled, .generator-item.disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .upgrade-item.disabled:hover, .generator-item.disabled:hover {
            transform: none;
            background: rgba(255, 255, 255, 0.1);
        }

        .item-name {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 1.1rem;
        }

        .item-description {
            font-size: 0.85rem;
            opacity: 0.8;
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .item-cost {
            color: #f9ca24;
            font-weight: bold;
            font-size: 0.9rem;
        }

        .generator-count {
            position: absolute;
            top: 10px;
            right: 12px;
            background: rgba(0, 0, 0, 0.4);
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.85rem;
            font-weight: bold;
            color: #4ecdc4;
        }

        .achievements {
            max-height: 400px;
            overflow-y: auto;
        }

        .achievement {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 6px;
            font-size: 0.85rem;
            border: 2px solid transparent;
        }

        .achievement.unlocked {
            background: rgba(76, 175, 80, 0.2);
            border-color: #4caf50;
            box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
        }

        .achievement-name {
            font-weight: bold;
            margin-bottom: 3px;
        }

        .achievement-description {
            opacity: 0.8;
        }

        .prestige-section {
            background: linear-gradient(45deg, #8e2de2, #4a00e0);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            margin-bottom: 20px;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .prestige-button {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            border: none;
            color: white;
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 10px;
        }

        .prestige-button:hover:not(:disabled) {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(238, 90, 36, 0.4);
        }

        .prestige-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .save-load {
            position: fixed;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 8px;
            z-index: 1000;
        }

        .save-load button {
            background: rgba(0, 0, 0, 0.7);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 6px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.85rem;
        }

        .save-load button:hover {
            background: rgba(0, 0, 0, 0.9);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .particle {
            position: absolute;
            width: 3px;
            height: 3px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            animation: float 8s linear infinite;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-10vh) rotate(360deg);
                opacity: 0;
            }
        }

        .tabs {
            display: flex;
            background: rgba(0, 0, 0, 0.3);
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }

        .tab {
            flex: 1;
            padding: 15px 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: bold;
            font-size: 0.9rem;
        }

        .tab.active {
            background: rgba(249, 202, 36, 0.2);
            color: #f9ca24;
            border-bottom: 3px solid #f9ca24;
        }

        .tab:hover:not(.active) {
            background: rgba(255, 255, 255, 0.1);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 20px;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.1);
            padding: 10px;
            border-radius: 8px;
            text-align: center;
        }

        .stat-value {
            font-size: 1.2rem;
            font-weight: bold;
            color: #4ecdc4;
        }

        .stat-label {
            font-size: 0.8rem;
            opacity: 0.8;
        }

        .notification {
            position: fixed;
            top: 80px;
            right: 20px;
            background: linear-gradient(45deg, #4caf50, #45a049);
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            font-weight: bold;
            z-index: 1000;
            animation: slideInRight 0.3s ease;
            max-width: 300px;
        }

        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes slideOutRight {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            
            .right-panel {
                width: 100%;
                height: 60vh;
            }
            
            .crystal-button {
                width: 150px;
                height: 150px;
            }
            
            .crystals-count {
                font-size: 2rem;
            }

            .save-load {
                position: relative;
                top: auto;
                right: auto;
                justify-content: center;
                margin-bottom: 20px;
            }
        }

        .right-panel::-webkit-scrollbar {
            width: 8px;
        }

        .left-load:-webkit-scrollbar {
            width: 8px;
            align-items: center;
            text-align: center;
            grid-auto-flow: column;
        }

        .right-panel::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
        }

        .right-panel::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
        }

        .right-panel::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }