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

body {
    background: #050a14;
    color: #e8e0d4;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#worldCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

#root {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

#root > * { pointer-events: auto; }

.glass-panel {
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(57, 255, 20, 0.15);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.05), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.glass-panel-warm {
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.05);
}

.glow-green { text-shadow: 0 0 10px rgba(57, 255, 20, 0.5); }
.glow-orange { text-shadow: 0 0 10px rgba(255, 107, 53, 0.5); }
.glow-purple { text-shadow: 0 0 10px rgba(191, 0, 255, 0.5); }
.glow-cyan { text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
.glow-red { text-shadow: 0 0 10px rgba(139, 0, 0, 0.7); }

.stat-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes float-up {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-40px); }
}

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

.float-ep {
    animation: float-up 1.5s ease-out forwards;
    position: absolute;
    font-weight: 700;
    color: #39ff14;
    pointer-events: none;
}

@keyframes dna-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dna-spinner {
    animation: dna-spin 2s linear infinite;
    display: inline-block;
}

.trait-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: #39ff14;
    white-space: nowrap;
}

.toast-enter {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

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

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

.radial-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    background: rgba(10, 22, 40, 0.8);
}
.radial-btn:hover:not(:disabled) {
    transform: scale(1.15);
    border-color: #39ff14;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}
.radial-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.evo-node {
    cursor: pointer;
    transition: all 0.2s;
}
.evo-node:hover { transform: scale(1.1); }

.lore-font { font-family: 'Cinzel', serif; }
.mono-font { font-family: 'JetBrains Mono', monospace; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(57, 255, 20, 0.2); border-radius: 2px; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}
@media (min-width: 769px) {
    .mobile-only { display: none !important; }
}