        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background: #000000;
            color: #ffffff;
            font-family: 'Inter', 'Roboto', 'Helvetica Neue', 'Noto Sans JP', sans-serif;
            font-weight: 300;
            letter-spacing: 0.2px;
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
            touch-action: none;
        }

        #canvas-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .fab {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 56px;
            height: 56px;
            border-radius: 28px;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 5;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(0,0,0,0.5);
            border: none;
        }

        .fab svg {
            width: 24px;
            height: 24px;
            stroke: #000000;
            stroke-width: 1.8;
        }

        .fab:active { transform: scale(0.92); }

        .focus-btn {
            position: fixed;
            bottom: 90px;
            right: 24px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #1f3f3f;
            border: 2px solid #5f9f9f;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 6;
            transition: all 0.2s;
            box-shadow: 0 2px 10px rgba(0,200,0,0.3);
            color: #aaffaa;
        }
        .focus-btn:hover { background: #2f5f5f; transform: scale(1.1);}
        .focus-btn svg { width: 24px; height: 24px; stroke: currentColor; }

        .breath-btn {
            position: fixed;
            bottom: 150px;
            right: 24px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #2a4a6f;
            border: 2px solid #6f9fcf;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 6;
            transition: all 0.2s;
            box-shadow: 0 2px 10px rgba(100,150,255,0.3);
            color: #aaccff;
        }
        .breath-btn:hover { background: #3a5f8f; transform: scale(1.1);}
        .breath-btn svg { width: 24px; height: 24px; stroke: currentColor; }
        .breath-btn.active {
            background: #4a7faf;
            border-color: #aaffaa;
            box-shadow: 0 0 15px #88ff88;
        }

        .panel {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            max-width: 420px;
            height: 100vh;
            background: #111111;
            border-left: 1px solid #333333;
            z-index: 20;
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: -10px 0 30px rgba(0,0,0,0.8);
        }

        .panel.open { transform: translateX(0); }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #333333;
            background: #1a2a2a;
        }
        .panel-title { 
            font-size: 14px; 
            font-weight: 500; 
            letter-spacing: 1.2px; 
            text-transform: uppercase; 
            color: #88ff88;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .panel-title svg {
            width: 20px;
            height: 20px;
            stroke: #88ff88;
            fill: none;
        }
        .panel-close {
            width: 32px; height: 32px; border-radius: 16px; background: #222222; border: 1px solid #444444;
            display: flex; align-items: center; justify-content: center; cursor: pointer;
        }
        .panel-close svg { width: 16px; height: 16px; stroke: #ffffff; }

        .panel-content {
            flex: 1; overflow-y: auto; padding: 20px; background: #111111; color: #ffffff;
            scrollbar-width: thin; scrollbar-color: #444 #222;
            -webkit-overflow-scrolling: touch;
        }

        .stats {
            margin-bottom: 20px; background: #1a1a1a; border-radius: 12px; padding: 16px; border: 1px solid #333333;
        }
        .stat-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid #333333; }
        .stat-label { color: #888888; display: flex; align-items: center; gap: 8px; }
        .stat-label svg { width: 16px; height: 16px; stroke: #888888; }
        .stat-value { font-weight: 600; font-family: monospace; color: #ffffff; }

        .progress-container { height: 2px; background: #333333; margin: 16px 0; }
        .progress-fill { height: 100%; width: 0%; background: #88ff88; transition: width 0.3s ease; }

        .time-display { font-size: 42px; font-weight: 300; letter-spacing: 4px; font-family: monospace; text-align: center; padding: 16px 0; border-top: 1px solid #333333; border-bottom: 1px solid #333333; margin: 16px 0; color: #88ff88; }

        .controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
        .ctrl-btn {
            background: #222222; border: 1px solid #444444; color: white; font-size: 16px; padding: 14px 0;
            cursor: pointer; border-radius: 8px; transition: all 0.2s; font-weight: 400;
        }
        .ctrl-btn:active { background: #333333; }
        .ctrl-btn.primary { background: #88ff88; color: #000000; border: none; }

        .breath-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* ANTES ERA 0.9 - AHORA MUCHO MÁS TRANSPARENTE */
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px); /* ANTES ERA 8px - AHORA MÁS SUTIL */
    transition: opacity 0.5s ease;
    pointer-events: none; /* Permite hacer clic a través del overlay */
}

.breath-overlay.active {
    display: flex;
    animation: fadeInBreath 1s ease;
    pointer-events: auto; /* Solo cuando está activo, permite interactuar con los botones */
}

.breath-message {
    font-size: 48px; /* ANTES 64px - UN POCO MÁS PEQUEÑO */
    font-weight: 300;
    color: rgba(170, 200, 255, 0.9); /* Azul más suave */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(100, 150, 255, 0.3);
    opacity: 0.9;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.2); /* Fondo sutil para el texto */
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breath-timer {
    font-size: 72px; /* ANTES 96px */
    font-family: monospace;
    color: rgba(136, 255, 136, 0.9);
    margin-bottom: 20px;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breath-instruction {
    font-size: 20px; /* ANTES 28px */
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.8;
    max-width: 80%;
    text-align: center;
    line-height: 1.6;
    font-weight: 300;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breath-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(42, 42, 42, 0.3);
    border: 1px solid rgba(136, 255, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(136, 255, 136, 0.7);
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.breath-close:hover {
    background: rgba(58, 58, 58, 0.5);
    border-color: #88ff88;
    transform: scale(1.1);
    color: #88ff88;
}
        .breath-close svg { width: 28px; height: 28px; stroke: currentColor; }

        @keyframes fadeInBreath {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        @keyframes breathPulse {
            0% { transform: scale(1); opacity: 0.7; }
            50% { transform: scale(1.05); opacity: 1; }
            100% { transform: scale(1); opacity: 0.7; }
        }

        @keyframes textFade {
            0% { opacity: 0.4; }
            50% { opacity: 0.8; }
            100% { opacity: 0.4; }
        }

        .life-section { margin: 20px 0; padding: 16px; background: #1a2a2a; border-radius: 12px; border: 1px solid #2a3a3a; }
        .section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #88ff88; font-size: 14px; font-weight: 500; }

        .sleep-tracker { background: #1f2f2f; border-radius: 8px; padding: 12px; margin-bottom: 15px; }
        .sleep-input { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
        .sleep-slider { flex: 2; height: 4px; background: #333; -webkit-appearance: none; }
        .sleep-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: #88ff88; border-radius: 50%; cursor: pointer; }
        .sleep-value { color: #fff; padding: 8px 12px; background: #2a3a3a; border-radius: 4px; min-width: 70px; text-align: center; }
        
        .sleep-timer-section {
            background: #1a2a2a;
            border-radius: 12px;
            padding: 16px;
            margin-top: 15px;
            border: 1px solid #3a5a5a;
        }
        .timer-display {
            font-size: 36px;
            font-family: monospace;
            text-align: center;
            color: #88ff88;
            letter-spacing: 4px;
            padding: 10px;
            background: #0f1f1f;
            border-radius: 8px;
            margin-bottom: 15px;
        }
        .timer-controls {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .timer-btn {
            flex: 1;
            min-width: 80px;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        .timer-btn.start { background: #2a6f2a; color: #aaffaa; border: 1px solid #4f9f4f; }
        .timer-btn.stop { background: #6f2a2a; color: #ffaaaa; border: 1px solid #9f4f4f; }
        .timer-btn.reset { background: #2a2a6f; color: #aaaaff; border: 1px solid #4f4f9f; }
        .timer-btn.good-morning { 
            background: #ffaa00; 
            color: #000000; 
            border: 1px solid #ffdd88;
            font-weight: bold;
            width: 100%;
            margin-top: 10px;
        }
        .timer-btn:active { transform: scale(0.95); }
        
        .cooldown-info {
            font-size: 12px;
            text-align: center;
            margin-top: 10px;
            padding: 8px;
            background: #1f2f2f;
            border-radius: 6px;
            color: #88ff88;
        }
        .cooldown-info.disabled { color: #ff8888; }

        .mood-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 15px 0; }
        .mood-btn { background: #2a3a3a; border: 2px solid transparent; border-radius: 8px; padding: 8px; cursor: pointer; transition: all 0.2s; }
        .mood-btn.selected { border-color: #88ff88; background: #2a4a4a; }

        /* === TREE NERUME CUENTA BARRA === */
        .tree-cuenta-barra {
            background: rgba(20, 35, 35, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(136, 255, 136, 0.3);
            border-radius: 10px;
            padding: 10px 14px;
            margin: 5px 0 15px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        /* === MINIMALIST & INTERACTIVE HÁBITOS UI === */
        .habit-item, .task-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px 20px;
            background: rgba(20, 30, 30, 0.4);
            border: 1px solid rgba(136, 255, 136, 0.05);
            border-radius: 16px;
            margin-bottom: 12px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
        }

        .habit-item:hover, .task-item:hover {
            background: rgba(30, 45, 45, 0.6);
            border-color: rgba(136, 255, 136, 0.2);
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }

        .habit-check, .task-check {
            width: 26px;
            height: 26px;
            border: 2px solid rgba(136, 255, 136, 0.3);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: transparent;
            color: transparent;
            font-size: 14px;
            font-weight: bold;
            flex-shrink: 0;
        }

        .habit-check:hover, .task-check:hover {
            border-color: #88ff88;
            background: rgba(136, 255, 136, 0.1);
            transform: scale(1.15);
        }
        
        .habit-check.completed, .task-check.completed {
            background: linear-gradient(135deg, #22c55e, #16a34a);
            border-color: #86efac;
            box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
            transform: scale(1.05);
            color: #fff;
        }

        .habit-info, .task-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .habit-name {
            font-size: 15px;
            font-weight: 500;
            color: #e2e8f0;
            letter-spacing: 0.3px;
            transition: color 0.2s;
        }

        .habit-check.completed + .habit-info .habit-name,
        .task-check.completed + .task-info .habit-name {
            color: #94a3b8;
            text-decoration: line-through;
        }

        .habit-streak {
            font-size: 12px;
            color: #88ff88;
            display: flex;
            align-items: center;
            gap: 4px;
            font-weight: 600;
            text-shadow: 0 0 8px rgba(136, 255, 136, 0.4);
        }

        .priority-high { border-left: 4px solid #ff8888; }
        .priority-medium { border-left: 4px solid #ffff88; }
        .priority-low { border-left: 4px solid #88ff88; }

        .alarm-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 12px;
            background: #1f2f2f;
            border-radius: 8px;
            margin-bottom: 8px;
            border-left: 3px solid #88ff88;
        }
        .alarm-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .alarm-time-input {
            width: 90px;
            padding: 8px;
            background: #2a3a3a;
            border: 1px solid #4a6a6a;
            border-radius: 4px;
            color: #88ff88;
            font-size: 16px;
            font-family: monospace;
        }
        .alarm-label-input {
            flex: 1;
            min-width: 120px;
            padding: 8px;
            background: #2a3a3a;
            border: 1px solid #4a6a6a;
            border-radius: 4px;
            color: white;
            font-size: 14px;
        }
        .alarm-sound-select {
            padding: 8px;
            background: #2a3a3a;
            border: 1px solid #4a6a6a;
            border-radius: 4px;
            color: #88ff88;
            font-size: 12px;
            cursor: pointer;
            flex: 1;
        }
        .alarm-actions {
            display: flex;
            gap: 4px;
            justify-content: flex-end;
        }
        .alarm-toggle-btn {
            width: 44px;
            height: 24px;
            background: #333;
            border-radius: 12px;
            position: relative;
            cursor: pointer;
            border: none;
        }
        .alarm-toggle-btn.active { background: #88ff88; }
        .alarm-toggle-btn::after {
            content: "";
            width: 20px;
            height: 20px;
            background: #fff;
            border-radius: 50%;
            position: absolute;
            top: 2px;
            left: 2px;
            transition: left 0.2s;
        }
        .alarm-toggle-btn.active::after { left: 22px; }
        .alarm-delete-btn, .alarm-test-btn {
            width: 28px;
            height: 28px;
            border-radius: 14px;
            border: none;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .alarm-delete-btn { background: #6f2f2f; color: white; }
        .alarm-test-btn { background: #2a6f2a; color: white; }

        .add-btn {
            background: #2a4a4a; color: #88ff88; border: 1px solid #3a5a5a; padding: 10px; border-radius: 8px;
            width: 100%; margin-top: 10px; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; gap:4px;
        }

        .upload-section { margin: 20px 0; padding: 20px; background: #1a2f2f; border-radius: 16px; border: 1px solid #2f5f5f; }
        .upload-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #aaffaa; font-size: 14px; }
        
        .upload-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }
        
        .action-btn {
            flex: 1;
            min-width: 120px;
            padding: 14px;
            background: #2f5f5f;
            border: 1px solid #4f9f9f;
            border-radius: 12px;
            color: white;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .action-btn:active { background: #3f8f8f; transform: scale(0.98); }
        .action-btn.active { 
            background: #3f9f9f; 
            border-color: #88ff88;
            box-shadow: 0 0 10px #88ff88;
        }
        
        .hidden-input {
            display: none;
        }

        .upload-progress {
            margin-top: 10px;
            padding: 12px;
            background: #1f3f3f;
            border-radius: 20px;
            text-align: center;
            font-size: 13px;
            color: #88ff88;
            border: 1px solid #3f7f7f;
            display: none;
        }
        .upload-progress.active {
            display: block;
        }
        .upload-progress-bar {
            height: 4px;
            background: #2a6f2a;
            border-radius: 2px;
            margin-top: 8px;
            width: 0%;
            transition: width 0.3s;
        }

        .player-controls-enhanced {
            display: flex;
            gap: 8px;
            margin: 15px 0;
            flex-wrap: wrap;
        }
        .player-mode-btn {
            flex: 1;
            min-width: 70px;
            padding: 10px;
            background: #2a3a3a;
            border: 1px solid #4a6a6a;
            border-radius: 8px;
            color: #88ff88;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            transition: all 0.2s;
        }
        .player-mode-btn.active {
            background: #2a6f2a;
            border-color: #88ff88;
            color: white;
        }
        .player-mode-btn:active { transform: scale(0.95); }

        .filter-section {
            margin: 15px 0;
            padding: 12px;
            background: #1f2f2f;
            border-radius: 12px;
        }
        .filter-title {
            color: #88ff88;
            font-size: 12px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .filter-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .filter-btn {
            padding: 8px 12px;
            background: #2a3a3a;
            border: 1px solid #4a6a6a;
            border-radius: 20px;
            color: #aaffaa;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .filter-btn.active {
            background: #2a6f2a;
            border-color: #88ff88;
            color: white;
        }
        .filter-btn:active { transform: scale(0.95); }
        .filter-search {
            width: 100%;
            padding: 10px;
            margin-top: 10px;
            background: #2a3a3a;
            border: 1px solid #4a6a6a;
            border-radius: 20px;
            color: white;
            font-size: 13px;
        }
        .filter-search::placeholder {
            color: #6f8f8f;
        }

        .local-files-title { 
            display: flex; 
            align-items: center; 
            justify-content: space-between;
            margin: 15px 0 10px; 
            color: #88ff88; 
            font-size: 13px; 
        }
        .file-count {
            font-size: 11px;
            color: #aaffaa;
            background: #1f3f3f;
            padding: 2px 8px;
            border-radius: 12px;
        }
        .delete-all-btn {
            background: #4a2a2a;
            color: #ff8888;
            border: 1px solid #6f3f3f;
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .delete-all-btn:active { background: #6f3f3f; }
        
        .local-files-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
            gap: 10px; 
            max-height: 300px; 
            overflow-y: auto; 
            padding: 5px; 
        }
        .local-file-card {
            background: #1f3f3f; 
            border: 1px solid #3f7f7f; 
            border-radius: 12px; 
            padding: 12px 8px;
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            gap: 8px; 
            cursor: pointer; 
            transition: all 0.2s;
            position: relative;
        }
        .local-file-card:active { background: #2f5f5f; transform: scale(0.98); }
        .local-file-card.playing {
            border: 2px solid #88ff88;
            box-shadow: 0 0 15px #88ff88;
        }
        .delete-file-btn {
            position: absolute;
            top: 2px;
            right: 2px;
            width: 20px;
            height: 20px;
            border-radius: 10px;
            background: #6f2f2f;
            color: white;
            border: none;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s;
        }
        .local-file-card:hover .delete-file-btn,
        .local-file-card:active .delete-file-btn {
            opacity: 1;
        }
        .local-file-icon { 
            width: 32px; 
            height: 32px; 
            background: #3f8f8f; 
            border-radius: 50%; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
        }
        .local-file-name { 
            font-size: 11px; 
            color: #ccffcc; 
            text-align: center; 
            word-break: break-word; 
            max-width: 100%;
        }

        .now-playing { 
            margin-top: 20px; 
            padding: 16px; 
            background: #1a3a3a; 
            border-radius: 16px; 
            border: 1px solid #2a6f6f; 
            display: flex; 
            align-items: center; 
            gap: 12px; 
        }
        .now-playing svg { 
            width: 32px; 
            height: 32px; 
            stroke: #88ff88; 
        }
        .now-playing-info { 
            flex: 1; 
        }
        .now-playing-title { 
            color: #aaffaa; 
            font-size: 14px; 
            font-weight: 500; 
            margin-bottom: 4px; 
        }
        .now-playing-channel { 
            font-size: 11px; 
            color: #8fcfcf; 
        }

        .footer { font-size: 9px; color: #444; text-align: center; padding: 20px 0 8px; }

        .toast {
            position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: #222;
            border: 1px solid #444; color: white; padding: 12px 24px; border-radius: 8px; font-size: 13px;
            z-index: 30; opacity: 0; transition: opacity 0.3s; pointer-events: none; white-space: nowrap;
        }

        .overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8);
            z-index: 15; opacity: 0; pointer-events: none; transition: opacity 0.3s;
        }
        .overlay.visible { opacity: 1; pointer-events: auto; }

        #installButton {
            position: fixed;
            bottom: 150px;
            right: 24px;
            background: #2f6f6f;
            color: white;
            border-radius: 40px;
            padding: 14px 24px;
            font-size: 15px;
            font-weight: bold;
            z-index: 100;
            display: none;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(0,80,0,0.5);
            backdrop-filter: blur(10px);
            border: 2px solid #88ff88;
            transition: all 0.3s;
        }
        #installButton:active { transform: scale(0.95); }

       #mensajes-flotantes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* ANTES ERA 10 - AHORA DETRÁS DEL ÁRBOL */
    overflow: hidden;
}

.floating-message {
    position: absolute;
    color: rgba(255, 255, 255, 0.15); /* Blanco muy tenue */
    font-weight: 200; /* Más delgado */
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    pointer-events: none;
    z-index: 1;
    text-shadow: none; /* Sin sombra para que sea más sutil */
    letter-spacing: 2px;
    transition: opacity 0.5s, left 60s linear; /* Movimiento más lento */
    white-space: nowrap;
    opacity: 0;
    left: -450px;
    font-size: 32px !important; /* Tamaño fijo más pequeño */
    mix-blend-mode: overlay; /* Se mezcla con el fondo */
}

/* En móvil, ligeramente más visibles */
@media (max-width: 768px) {
    .floating-message {
        font-size: 24px !important;
        color: rgba(255, 255, 255, 0.2);
        mix-blend-mode: normal;
    }
}

        .growth-indicator {
            position: fixed;
            top: 20px;
            left: 20px;
            background: rgba(0,0,0,0.7);
            border: 1px solid #88ff88;
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 12px;
            color: #88ff88;
            z-index: 7;
            backdrop-filter: blur(5px);
            display: none;
        }
        .growth-indicator.visible {
            display: block;
            animation: fadeInOut 3s ease;
        }
        @keyframes fadeInOut {
            0% { opacity: 0; transform: translateY(-10px); }
            20% { opacity: 1; transform: translateY(0); }
            80% { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(-10px); }
        }
        
        /* BOTÓN DE AYUDA "?" A LA IZQUIERDA */
.help-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: #2a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border: 1px solid #88ff88;
    color: #88ff88;
    font-size: 32px;
    font-weight: bold;
    font-family: monospace;
}
.help-btn:active { transform: scale(0.92); background: #3a6f6f; }

/* PANEL DE AYUDA (EXPLICACIÓN) */
.help-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: #0a1a1a;
    border-right: 1px solid #88ff88;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
}
.help-panel.open { transform: translateX(0); }
.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #88ff88;
    background: #1a3a3a;
}
.help-title { font-size: 20px; font-weight: bold; color: #88ff88; display: flex; align-items: center; gap: 12px; }
.help-close {
    width: 36px; height: 36px; border-radius: 18px; background: #2a4a4a; border: 1px solid #88ff88;
    display: flex; align-items: center; justify-content: center; cursor: pointer; color: white;
}
.help-content { padding: 24px; color: #e0e0e0; line-height: 1.6; }
.help-content h2 { color: #88ff88; margin: 20px 0 10px 0; font-size: 18px; }
.help-content p { margin-bottom: 12px; font-size: 14px; }
.help-content ul { margin-left: 20px; margin-bottom: 12px; }
.help-content li { margin: 8px 0; font-size: 13px; }
.help-content .highlight { color: #aaffaa; font-weight: bold; }

/* === MODAL DE TIENDA Y PERSONALIZACIÓN DE TREE NERUME === */
.modal-tree {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 95%;
    background: rgba(15, 30, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(136, 255, 136, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(136, 255, 136, 0.1);
    border-radius: 16px;
    padding: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: zoomInTree 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomInTree {
    from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.modal-tree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.modal-tree-close {
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    opacity: 0.6;
    transition: all 0.2s;
}

.modal-tree-close:hover {
    opacity: 1;
    color: #ff8888;
}

.modal-tree-tokens {
    font-size: 11px;
    font-family: 'Press Start 2P', cursive;
    color: #ffd700;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
    align-self: flex-start;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-tree-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.modal-tree-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 16px;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-tree-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.modal-tree-tab.active {
    color: #88ff88;
    background: rgba(136, 255, 136, 0.1);
    border: 1px solid rgba(136, 255, 136, 0.3);
}

.modal-tree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}

.modal-tree-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-tree-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(136, 255, 136, 0.4);
    transform: translateY(-2px);
}

.modal-tree-card-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.modal-tree-card-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #fff;
    margin-bottom: 6px;
}

.modal-tree-card-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-tree-card-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #a855f7, #6b21a8);
    border: 1px solid #ffd700;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.modal-tree-card-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c084fc, #9333ea);
    transform: scale(1.03);
}

.modal-tree-card-btn.equipado {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #86efac;
    cursor: default;
}

.modal-tree-card-btn.desbloqueado {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: #3b82f6;
}

.modal-tree-card-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === TEMAS DE PERFIL PARA PANEL DE TREE NERUME === */
.panel.tema-neon {
    background: rgba(30, 10, 45, 0.85) !important;
    border-left: 2px solid #ff007f !important;
    box-shadow: -10px 0 35px rgba(255, 0, 127, 0.2) !important;
}
.panel.tema-neon .panel-title, .panel.tema-neon .stat-label {
    color: #00ffff !important;
}
.panel.tema-neon .stat-value {
    color: #ff007f !important;
}

.panel.tema-zen {
    background: rgba(10, 40, 25, 0.85) !important;
    border-left: 2px solid #00ff88 !important;
    box-shadow: -10px 0 35px rgba(0, 255, 136, 0.15) !important;
}
.panel.tema-zen .panel-title, .panel.tema-zen .stat-label {
    color: #a8ffb2 !important;
}
.panel.tema-zen .stat-value {
    color: #00ff88 !important;
}

.panel.tema-oro {
    background: rgba(35, 25, 5, 0.9) !important;
    border-left: 2px solid #ffd700 !important;
    box-shadow: -10px 0 40px rgba(255, 215, 0, 0.25) !important;
}
.panel.tema-oro .panel-title, .panel.tema-oro .stat-label {
    color: #fff !important;
}
.panel.tema-oro .stat-value {
    color: #ffd700 !important;
}

.panel.tema-abismo {
    background: rgba(5, 5, 15, 0.9) !important;
    border-left: 2px solid #4338ca !important;
    box-shadow: -10px 0 35px rgba(67, 56, 202, 0.25) !important;
}
.panel.tema-abismo .panel-title, .panel.tema-abismo .stat-label {
    color: #818cf8 !important;
}
.panel.tema-abismo .stat-value {
    color: #4f46e5 !important;
}

/* === BORDES DE AVATAR EN TREE NERUME === */
.tree-cuenta-avatar.borde-dorado {
    border: 2px solid #ffd700 !important;
    box-shadow: 0 0 10px #ffd700, inset 0 0 5px #ffd700 !important;
}
.tree-cuenta-avatar.borde-fuego {
    border: 2px solid #ff4500 !important;
    box-shadow: 0 0 12px #ff4500, 0 0 6px #ff8c00 !important;
}
.tree-cuenta-avatar.borde-aura {
    border: 2px solid #00ffff !important;
    box-shadow: 0 0 12px #00ffff, 0 0 6px #0088ff !important;
}
.tree-cuenta-avatar.borde-arcoiris {
    border: 2px solid transparent !important;
    background-image: linear-gradient(#ff6600,#ff6600), linear-gradient(to right,red,orange,yellow,green,cyan,blue,violet);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

/* === INTERFAZ DE RESPIRACIÓN Y GUÍA ANIMADA === */
.breath-guide-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(136, 255, 136, 0.4) 0%, rgba(136, 255, 136, 0.05) 70%);
    border: 3px solid rgba(136, 255, 136, 0.8);
    box-shadow: 0 0 30px rgba(136, 255, 136, 0.4), inset 0 0 20px rgba(136, 255, 136, 0.2);
    margin: 25px auto;
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1), background 4s ease, border-color 4s ease, box-shadow 4s ease;
}

.breath-guide-circle.inhale {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(136, 255, 255, 0.6) 0%, rgba(136, 255, 255, 0.1) 75%);
    border-color: rgba(136, 255, 255, 0.9);
    box-shadow: 0 0 50px rgba(136, 255, 255, 0.6), inset 0 0 30px rgba(136, 255, 255, 0.3);
}

.breath-guide-circle.exhale {
    transform: scale(0.95);
    background: radial-gradient(circle, rgba(136, 255, 136, 0.3) 0%, rgba(136, 255, 136, 0.02) 70%);
    border-color: rgba(136, 255, 136, 0.6);
    box-shadow: 0 0 25px rgba(136, 255, 136, 0.3), inset 0 0 15px rgba(136, 255, 136, 0.1);
}


.overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 50; display: none; }

@media (max-width:768px) { .panel { width: 90% !important; max-width: 90% !important; } .help-panel { width: 90% !important; max-width: 90% !important; } .breath-guide-circle { width: 100px !important; height: 100px !important; } .tree-cuenta-barra { bottom: 10px !important; right: 10px !important; font-size: 12px !important; padding: 6px 12px !important; flex-direction: column !important; align-items: flex-end !important; } .controls { bottom: 20px !important; flex-wrap: wrap !important; justify-content: center !important; } }
