:root {
    --bg: #0b101b;
    --panel: #161e31;
    --text: #e2e8f0;
    --accent: #3b82f6;
    --gold: #f59e0b;
    --gold-grad: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    --red: #ef4444;
    --green: #10b981;
}

body.light-mode {
    --bg: #f1f5f9;
    --panel: #ffffff;
    --text: #1e293b;
    --accent: #2563eb;
}

body.light-mode .glass {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .glass-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light-mode .text-slate-400 {
    color: #64748b;
}

body.light-mode .text-slate-500 {
    color: #475569;
}

body.light-mode .text-slate-300 {
    color: #334155;
}

body.light-mode .text-white {
    color: #0f172a;
}

body.light-mode .bg-slate-900 {
    background-color: #f8fafc;
}

body.light-mode .bg-slate-950 {
    background-color: #f1f5f9;
}

body.light-mode .bg-slate-800 {
    background-color: #e2e8f0;
}

body.light-mode .border-slate-700 {
    border-color: #cbd5e1;
}

body.light-mode .border-slate-800 {
    border-color: #e2e8f0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    touch-action: none;
}

h1,
h2,
h3,
.font-display {
    font-family: 'Poppins', sans-serif;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(22, 30, 49, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.glass-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(180, 83, 9, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

/* Text Gradients */
.text-gradient-gold {
    background: linear-gradient(to right, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* View Transitions */
.view-section {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98) translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    background: var(--bg);
}

.view-section.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
    z-index: 10;
}

/* Animation Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes shine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
}

.anim-float {
    animation: float 3s ease-in-out infinite;
}

/* XP Ring Loader */
.xp-ring {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.xp-ring-circle {
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    transition: stroke-dashoffset 1.5s ease-out;
}

/* Interactive Elements */
.btn-press {
    transition: transform 0.1s;
}

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

.scroll-hide::-webkit-scrollbar {
    display: none;
}

/* List Item Stagger */
.list-item-anim {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Candle Loader */
.candle-loader {
    width: 16px;
    height: 40px;
    border: 2px solid #475569;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.candle-loader::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #3b82f6;
    animation: fillUp 1.5s infinite ease-in-out;
}

@keyframes fillUp {
    0% {
        height: 0;
        opacity: 0.5
    }

    50% {
        height: 100%;
        opacity: 1
    }

    100% {
        height: 0;
        opacity: 0.5
    }
}

.slide-up {
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up.open {
    transform: translateY(0);
}

/* Safe Area Padding */
.pb-safe {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}