:root {
    --mass-color: #e2e8f0;
    --rage-color: #ff4444;
    --dark-color: #8b5cf6;
    --atom-color: #3b82f6;
    --star-color: #fbbf24;
    --supernova-color: #ffffff;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.glow-mass { text-shadow: 0 0 10px rgba(226, 232, 240, 0.5); }
.glow-rage { text-shadow: 0 0 10px rgba(255, 68, 68, 0.5); }
.glow-dark { text-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
.glow-atom { text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
.glow-star { text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.3s ease-in-out infinite;
}

.btn-prestige {
    transition: all 0.2s ease;
}

.btn-prestige:hover {
    transform: scale(1.02);
}

.btn-prestige.available {
    animation: shake 0.5s ease-in-out infinite;
    box-shadow: 0 0 20px currentColor;
}

.card {
    background: #1a1a2e;
    border-radius: 8px;
    border: 1px solid #2a2a4e;
    padding: 12px;
    transition: border-color 0.2s;
}

@media (min-width: 768px) {
    .card {
        padding: 16px;
    }
}

.card:hover {
    border-color: #4a4a6e;
}

.card.affordable {
    border-color: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.15);
}

.progress-bar {
    background: #2a2a4e;
    border-radius: 4px;
    overflow: hidden;
    height: 6px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.tab-active {
    border-bottom: 2px solid currentColor;
}

.tab-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex-shrink: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.2s ease-out;
}

.resource-bar {
    background: linear-gradient(180deg, #12121f 0%, #0a0a0f 100%);
    border-bottom: 1px solid #2a2a4e;
}

.challenge-card {
    border: 1px solid #dc2626;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.1);
}

/* Mobile touch targets */
@media (max-width: 640px) {
    button {
        min-height: 40px;
    }
}

/* Scrollbar for main content */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: #4a4a6e;
    border-radius: 3px;
}