:root {
    --color-dark: #0d0d0d;
    --color-card: #1a1a1a;
    --color-orange: #ff6b35;
    --color-red: #ff4444;
    --color-fire: #ff8c00;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--color-dark);
    color: white;
    min-height: 100vh;
}

.bg-dark {
    background: linear-gradient(180deg, #0d0d0d 0%, #1a0a0a 50%, #0d0d0d 100%);
}

.title-text {
    font-family: 'Anton', sans-serif;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4444 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(255, 107, 53, 0.5);
    animation: title-glow 2s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 1px); }
    94% { transform: translate(2px, -1px); }
    96% { transform: translate(-1px, 2px); }
    98% { transform: translate(1px, -2px); }
}

.glass-card {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.doom-input {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    animation: input-pulse 2s ease-in-out infinite;
}

@keyframes input-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 68, 68, 0.5); }
}

.doom-button {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4444 100%);
    color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

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

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

.doom-button:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
}

.loading-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff4444, #ff6b35);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { width: 0%; background-position: 0% 50%; }
    50% { width: 70%; background-position: 100% 50%; }
    100% { width: 100%; background-position: 0% 50%; }
}

.results-appear {
    animation: results-in 0.5s ease-out;
}

@keyframes results-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cooked-meter {
    background: linear-gradient(90deg, 
        #1a1a1a 0%, 
        rgba(74, 222, 128, 0.2) 20%, 
        rgba(250, 204, 21, 0.2) 40%, 
        rgba(251, 146, 60, 0.2) 60%, 
        rgba(239, 68, 68, 0.2) 80%, 
        rgba(124, 58, 237, 0.2) 100%
    );
    border: 1px solid #333;
}

.cooked-meter-fill {
    animation: fill-meter 1s ease-out;
    box-shadow: 0 0 20px currentColor;
}

@keyframes fill-meter {
    from { width: 0%; }
}

.result-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: rgba(255, 107, 53, 0.6);
    transform: translateX(4px);
}

.action-btn {
    border: 1px solid currentColor;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.05);
}

.leaderboard-entry {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    transition: all 0.2s ease;
}

.leaderboard-entry:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
}

.fire-glow {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    animation: fire-pulse 2s ease-in-out infinite;
}

@keyframes fire-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 68, 68, 0.5); }
}

.toast {
    animation: toast-in 0.3s ease-out;
    max-width: 90vw;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.fire-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.fire-particle {
    position: absolute;
    bottom: -20px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ff6b35 0%, #ff4444 50%, transparent 70%);
    border-radius: 50%;
    animation: rise-up linear infinite;
    opacity: 0.6;
}

@keyframes rise-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .title-text {
        font-size: 2.5rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Font mono for data */
.font-mono {
    font-family: 'Space Mono', monospace;
}