/* ============================================================
   VELOMANCIA v1 — Estilos
   Estética: Oscuro ritual, luz de vela, oro envejecido
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ============================================================
   VARIABLES
   ============================================================ */
#velomancia-app {
    --vel-bg: #0a0704;
    --vel-bg-mid: #110e08;
    --vel-bg-surface: #1a1208;
    --vel-gold: #c9943a;
    --vel-gold-light: #e8b85a;
    --vel-gold-pale: #f0d090;
    --vel-amber: #ff8c00;
    --vel-fire-outer: #ff6b00;
    --vel-fire-mid: #ff9500;
    --vel-fire-inner: #ffcc44;
    --vel-fire-core: #fff5cc;
    --vel-fire-blue: #4488ff;
    --vel-smoke: rgba(180, 160, 120, 0.15);
    --vel-text: #e8d5a0;
    --vel-text-dim: #8a7550;
    --vel-candle-body: linear-gradient(135deg, #f5e8d0 0%, #e8d4b0 30%, #d4bc8a 60%, #c4a870 100%);
    --vel-candle-shadow: rgba(0,0,0,0.6);
    --vel-positive: #4caf72;
    --vel-negative: #e05555;
    --vel-neutral: #c9943a;
    --vel-sagrado: #6688ee;

    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--vel-text);
    background: var(--vel-bg);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   RESET DENTRO DEL APP
   ============================================================ */
#velomancia-app *, #velomancia-app *::before, #velomancia-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#velomancia-app button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

#velomancia-app .hidden {
    display: none !important;
}

/* ============================================================
   ESTRUCTURA BASE
   ============================================================ */
#velomancia-app .vel-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 580px;
    padding: 40px 20px 60px;
    text-align: center;
    overflow: hidden;
}

/* ============================================================
   FONDO AMBIENTE
   ============================================================ */
#velomancia-app .vel-ambient-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center 40%, rgba(180, 100, 10, 0.12) 0%, transparent 65%),
                radial-gradient(ellipse at center, var(--vel-bg-mid) 0%, var(--vel-bg) 100%);
}

#velomancia-app .vel-ambient-bg--dark {
    background: radial-gradient(ellipse at center 55%, rgba(200, 120, 10, 0.2) 0%, transparent 70%),
                radial-gradient(ellipse at center, #140f05 0%, var(--vel-bg) 100%);
}

/* Estrellas decorativas */
#velomancia-app .vel-star {
    position: absolute;
    color: var(--vel-gold);
    opacity: 0;
    font-size: 12px;
    animation: vel-star-twinkle 4s ease-in-out infinite;
}
#velomancia-app .vel-star--1 { top: 8%; left: 10%; animation-delay: 0s; font-size: 10px; }
#velomancia-app .vel-star--2 { top: 15%; right: 12%; animation-delay: 1.2s; font-size: 14px; }
#velomancia-app .vel-star--3 { top: 60%; left: 6%; animation-delay: 2.5s; font-size: 8px; }
#velomancia-app .vel-star--4 { top: 70%; right: 8%; animation-delay: 0.7s; font-size: 11px; }
#velomancia-app .vel-star--5 { bottom: 15%; left: 20%; animation-delay: 3s; font-size: 9px; }
#velomancia-app .vel-star--6 { bottom: 20%; right: 15%; animation-delay: 1.8s; font-size: 13px; }

@keyframes vel-star-twinkle {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Brasas flotantes (pantalla ritual) */
#velomancia-app .vel-ember {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--vel-amber);
    opacity: 0;
    animation: vel-ember-float 6s ease-in-out infinite;
}
#velomancia-app .vel-ember--1 { left: 45%; bottom: 35%; animation-delay: 0s; }
#velomancia-app .vel-ember--2 { left: 55%; bottom: 30%; animation-delay: 1.5s; background: var(--vel-fire-outer); }
#velomancia-app .vel-ember--3 { left: 50%; bottom: 40%; animation-delay: 3s; }
#velomancia-app .vel-ember--4 { left: 48%; bottom: 25%; animation-delay: 4.5s; width: 2px; height: 2px; }

@keyframes vel-ember-float {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    20% { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(-120px) translateX(calc(var(--drift, 1) * 30px)); }
}
#velomancia-app .vel-ember--1 { --drift: -1; }
#velomancia-app .vel-ember--2 { --drift: 1.5; }
#velomancia-app .vel-ember--3 { --drift: -0.5; }
#velomancia-app .vel-ember--4 { --drift: 2; }

/* ============================================================
   HEADER / INTRO
   ============================================================ */
#velomancia-app .vel-header {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

#velomancia-app .vel-sigil {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--vel-gold);
    animation: vel-sigil-rotate 20s linear infinite;
    opacity: 0.7;
}
#velomancia-app .vel-sigil__svg {
    width: 100%;
    height: 100%;
}

@keyframes vel-sigil-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#velomancia-app .vel-title {
    font-family: 'Uncial Antiqua', 'Georgia', serif;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 400;
    color: var(--vel-gold-light);
    letter-spacing: 0.08em;
    text-shadow: 0 0 40px rgba(200, 140, 40, 0.6), 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 8px;
    line-height: 1.1;
}

#velomancia-app .vel-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-style: italic;
    color: var(--vel-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.85;
}

#velomancia-app .vel-description {
    position: relative;
    z-index: 1;
    max-width: 480px;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.75;
    color: var(--vel-text-dim);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 40px;
    padding: 0 10px;
}

/* ============================================================
   BOTONES
   ============================================================ */
#velomancia-app .vel-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border: 1px solid rgba(200, 148, 58, 0.4);
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(30, 20, 5, 0.9), rgba(50, 35, 8, 0.95));
    color: var(--vel-gold-light);
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(200, 148, 58, 0.2);
    backdrop-filter: blur(4px);
}

#velomancia-app .vel-btn:hover {
    border-color: var(--vel-gold);
    color: var(--vel-gold-pale);
    box-shadow: 0 6px 30px rgba(200, 148, 58, 0.3), inset 0 1px 0 rgba(200, 148, 58, 0.3);
    transform: translateY(-1px);
}

#velomancia-app .vel-btn:active {
    transform: translateY(0);
}

#velomancia-app .vel-btn--encender .vel-btn__flame {
    font-size: 1.3rem;
    animation: vel-flame-icon 2s ease-in-out infinite;
}

@keyframes vel-flame-icon {
    0%, 100% { transform: scaleY(1) rotate(-3deg); }
    50% { transform: scaleY(1.1) rotate(3deg); }
}

/* ============================================================
   ESCENA DE LA VELA
   ============================================================ */
#velomancia-app .vel-candle-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

/* --- LLAMA --- */
#velomancia-app .vel-flame-wrapper {
    position: relative;
    width: 60px;
    height: 100px;
    margin: 0 auto;
}

#velomancia-app .vel-flame {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50% 50% 20% 20% / 60% 60% 20% 20%;
    transform-origin: center bottom;
    animation: vel-flame-flicker 0.8s ease-in-out infinite alternate;
}

#velomancia-app .vel-flame--outer {
    width: 50px;
    height: 90px;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 80%, var(--vel-fire-outer) 0%, rgba(255, 60, 0, 0.3) 60%, transparent 100%);
    filter: blur(2px);
    animation-duration: 0.9s;
    animation-delay: 0s;
    opacity: 0.85;
}

#velomancia-app .vel-flame--inner {
    width: 36px;
    height: 70px;
    bottom: 5px;
    background: radial-gradient(ellipse at 50% 75%, var(--vel-fire-mid) 0%, var(--vel-fire-outer) 50%, transparent 100%);
    filter: blur(1px);
    animation-duration: 0.7s;
    animation-delay: 0.1s;
}

#velomancia-app .vel-flame--core {
    width: 20px;
    height: 45px;
    bottom: 10px;
    background: radial-gradient(ellipse at 50% 70%, var(--vel-fire-core) 0%, var(--vel-fire-inner) 50%, transparent 100%);
    animation-duration: 0.6s;
    animation-delay: 0.05s;
}

#velomancia-app .vel-flame--blue {
    width: 10px;
    height: 20px;
    bottom: 8px;
    background: radial-gradient(ellipse at 50% 100%, var(--vel-fire-blue) 0%, rgba(68, 136, 255, 0.5) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation-duration: 0.5s;
    animation-delay: 0.15s;
}

@keyframes vel-flame-flicker {
    0% { transform: translateX(-50%) scaleX(1) scaleY(1) rotate(-1deg); }
    30% { transform: translateX(-50%) scaleX(0.92) scaleY(1.05) rotate(1deg); }
    60% { transform: translateX(-50%) scaleX(1.05) scaleY(0.97) rotate(-0.5deg); }
    100% { transform: translateX(-50%) scaleX(0.95) scaleY(1.08) rotate(0.5deg); }
}

/* Estado animado: ALTA */
#velomancia-app.anim-llama-alta-estable .vel-flame--outer { height: 110px; animation-duration: 0.5s; }
#velomancia-app.anim-llama-alta-estable .vel-flame--inner { height: 85px; }
#velomancia-app.anim-llama-alta-estable .vel-flame--core { height: 55px; }
#velomancia-app.anim-llama-alta-estable .vel-flame-wrapper { height: 120px; }

/* Estado animado: BAJA */
#velomancia-app.anim-llama-baja-debil .vel-flame--outer { height: 50px; width: 35px; animation-duration: 1.5s; }
#velomancia-app.anim-llama-baja-debil .vel-flame--inner { height: 35px; width: 24px; }
#velomancia-app.anim-llama-baja-debil .vel-flame--core { height: 22px; width: 12px; }

/* Estado animado: OSCILANTE */
#velomancia-app.anim-llama-oscilante .vel-flame--outer { animation-name: vel-flame-oscillate; animation-duration: 0.3s; }
#velomancia-app.anim-llama-oscilante .vel-flame--inner { animation-name: vel-flame-oscillate; animation-duration: 0.25s; animation-delay: 0.05s; }

@keyframes vel-flame-oscillate {
    0% { transform: translateX(-50%) rotate(-10deg) scaleX(1.1); }
    50% { transform: translateX(-50%) rotate(10deg) scaleX(0.9); }
    100% { transform: translateX(-50%) rotate(-10deg) scaleX(1.1); }
}

/* Estado animado: GIRATORIA */
#velomancia-app.anim-llama-giratoria .vel-flame-wrapper {
    animation: vel-flame-rotate-wrapper 2s ease-in-out infinite;
}
@keyframes vel-flame-rotate-wrapper {
    0% { transform: rotate(-8deg); }
    25% { transform: rotate(8deg) scale(1.05); }
    50% { transform: rotate(-5deg) scale(0.97); }
    75% { transform: rotate(5deg) scale(1.03); }
    100% { transform: rotate(-8deg); }
}

/* Estado animado: BIFURCADA */
#velomancia-app.anim-llama-bifurcada .vel-flame--outer {
    clip-path: polygon(30% 100%, 20% 50%, 0% 0%, 50% 30%, 100% 0%, 80% 50%, 70% 100%);
    animation-name: vel-flame-split;
    animation-duration: 0.6s;
}
@keyframes vel-flame-split {
    0% { transform: translateX(-50%) scaleX(1); }
    40% { transform: translateX(-50%) scaleX(1.3) rotate(-3deg); }
    70% { transform: translateX(-50%) scaleX(0.9) rotate(3deg); }
    100% { transform: translateX(-50%) scaleX(1); }
}

/* Estado animado: EXTINGUIR */
#velomancia-app.anim-llama-que-se-extingue .vel-flame--outer {
    animation-name: vel-flame-die;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
@keyframes vel-flame-die {
    0% { opacity: 1; height: 90px; }
    60% { opacity: 0.6; height: 40px; }
    80% { opacity: 0.3; height: 20px; }
    100% { opacity: 0.05; height: 10px; }
}

/* Estado animado: HUMO BLANCO */
#velomancia-app.anim-humo-blanco-ascendente .vel-smoke--1,
#velomancia-app.anim-humo-blanco-ascendente .vel-smoke--2,
#velomancia-app.anim-humo-blanco-ascendente .vel-smoke--3 {
    background: rgba(220, 210, 195, 0.25);
    animation-duration: 2s;
}

/* Estado animado: HUMO NEGRO */
#velomancia-app.anim-humo-negro-denso .vel-smoke--1,
#velomancia-app.anim-humo-negro-denso .vel-smoke--2,
#velomancia-app.anim-humo-negro-denso .vel-smoke--3 {
    background: rgba(30, 20, 10, 0.6);
    width: 16px;
    animation-duration: 1.5s;
}

/* Estado animado: HUMO CURVO */
#velomancia-app.anim-humo-que-se-curva .vel-smoke--1 { animation-name: vel-smoke-curve; }
#velomancia-app.anim-humo-que-se-curva .vel-smoke--2 { animation-name: vel-smoke-curve; animation-delay: 0.5s; }
#velomancia-app.anim-humo-que-se-curva .vel-smoke--3 { animation-name: vel-smoke-curve; animation-delay: 1s; }
@keyframes vel-smoke-curve {
    0% { opacity: 0; transform: translateX(0) translateY(0) scaleX(1); }
    30% { opacity: 0.6; transform: translateX(20px) translateY(-30px) scaleX(1.2); }
    60% { opacity: 0.4; transform: translateX(-15px) translateY(-60px) scaleX(1.5); }
    100% { opacity: 0; transform: translateX(10px) translateY(-100px) scaleX(2); }
}

/* Estado animado: CHISPORROTEO */
#velomancia-app.anim-chisporroteo .vel-sparks .vel-spark { display: block; }
#velomancia-app.anim-chisporroteo .vel-flame--outer { animation-duration: 0.25s; }

/* Estado animado: LLAMA AZUL */
#velomancia-app.anim-llama-azul .vel-flame--blue { opacity: 1; }
#velomancia-app.anim-llama-azul .vel-flame--core {
    background: radial-gradient(ellipse at 50% 70%, #ccddff 0%, #6688ee 50%, transparent 100%);
}
#velomancia-app.anim-llama-azul .vel-flame--inner {
    background: radial-gradient(ellipse at 50% 75%, #aabbff 0%, #4466dd 50%, transparent 100%);
}

/* Estado animado: LLAMA DANZANTE */
#velomancia-app.anim-llama-que-baila .vel-flame--outer { animation-name: vel-flame-dance; animation-duration: 1.2s; }
#velomancia-app.anim-llama-que-baila .vel-flame--inner { animation-name: vel-flame-dance; animation-duration: 0.9s; animation-delay: 0.1s; }
@keyframes vel-flame-dance {
    0% { transform: translateX(-50%) rotate(-15deg) scaleY(0.9); }
    25% { transform: translateX(-50%) rotate(15deg) scaleY(1.1) scaleX(0.95); }
    50% { transform: translateX(-50%) rotate(-10deg) scaleY(1.05); }
    75% { transform: translateX(-50%) rotate(12deg) scaleY(0.95) scaleX(1.05); }
    100% { transform: translateX(-50%) rotate(-15deg) scaleY(0.9); }
}

/* Estado animado: GOTAS DE CERA */
#velomancia-app.anim-gotas-de-cera .vel-wax-tear--l,
#velomancia-app.anim-gotas-de-cera .vel-wax-tear--r { display: block; animation: vel-wax-drip 3s ease-in-out infinite; }
#velomancia-app.anim-gotas-de-cera .vel-wax-tear--r { animation-delay: 1.5s; }

/* Estado animado: CREPITANTE INTENSA */
#velomancia-app.anim-llama-crepitante-intensa .vel-flame--outer { 
    height: 105px; 
    animation-name: vel-flame-intense;
    animation-duration: 0.2s;
}
#velomancia-app.anim-llama-crepitante-intensa .vel-sparks .vel-spark { display: block; animation-duration: 0.8s; }
@keyframes vel-flame-intense {
    0% { transform: translateX(-50%) scaleX(0.85) scaleY(1.1) rotate(-3deg); opacity: 0.9; }
    20% { transform: translateX(-50%) scaleX(1.15) scaleY(0.9) rotate(4deg); opacity: 1; }
    40% { transform: translateX(-50%) scaleX(0.9) scaleY(1.15) rotate(-2deg); opacity: 0.95; }
    70% { transform: translateX(-50%) scaleX(1.1) scaleY(0.95) rotate(3deg); opacity: 1; }
    100% { transform: translateX(-50%) scaleX(0.85) scaleY(1.1) rotate(-3deg); opacity: 0.9; }
}

/* --- HUMO --- */
#velomancia-app .vel-smoke-container {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 100px;
    pointer-events: none;
}

#velomancia-app .vel-smoke {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(180, 160, 130, 0.18);
    transform: translateX(-50%);
    animation: vel-smoke-rise 3s ease-out infinite;
}
#velomancia-app .vel-smoke--1 { animation-delay: 0s; }
#velomancia-app .vel-smoke--2 { animation-delay: 1s; }
#velomancia-app .vel-smoke--3 { animation-delay: 2s; }

@keyframes vel-smoke-rise {
    0% { opacity: 0; transform: translateX(-50%) translateY(0) scale(0.5); }
    15% { opacity: 0.8; }
    100% { opacity: 0; transform: translateX(calc(-50% + var(--smoke-drift, 8px))) translateY(-90px) scale(2.5); }
}
#velomancia-app .vel-smoke--1 { --smoke-drift: 10px; }
#velomancia-app .vel-smoke--2 { --smoke-drift: -8px; }
#velomancia-app .vel-smoke--3 { --smoke-drift: 5px; }

/* --- CHISPAS --- */
#velomancia-app .vel-sparks {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
}

#velomancia-app .vel-spark {
    display: none;
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--vel-fire-core);
    animation: vel-spark-fly 1s ease-out infinite;
}
#velomancia-app .vel-spark--1 { left: 50%; top: 30%; animation-delay: 0s; }
#velomancia-app .vel-spark--2 { left: 40%; top: 20%; animation-delay: 0.2s; background: var(--vel-gold-light); }
#velomancia-app .vel-spark--3 { left: 60%; top: 25%; animation-delay: 0.4s; }
#velomancia-app .vel-spark--4 { left: 35%; top: 35%; animation-delay: 0.15s; background: var(--vel-fire-mid); }
#velomancia-app .vel-spark--5 { left: 65%; top: 40%; animation-delay: 0.35s; }

@keyframes vel-spark-fly {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--sx, 15px), var(--sy, -25px)) scale(0); }
}
#velomancia-app .vel-spark--1 { --sx: -10px; --sy: -30px; }
#velomancia-app .vel-spark--2 { --sx: -20px; --sy: -20px; }
#velomancia-app .vel-spark--3 { --sx: 18px; --sy: -25px; }
#velomancia-app .vel-spark--4 { --sx: -25px; --sy: -15px; }
#velomancia-app .vel-spark--5 { --sx: 22px; --sy: -18px; }

/* --- CUERPO DE LA VELA --- */
#velomancia-app .vel-candle-body {
    position: relative;
    width: 54px;
    height: 160px;
    background: var(--vel-candle-body);
    border-radius: 4px 4px 2px 2px;
    box-shadow: 
        inset -8px 0 15px rgba(0,0,0,0.3),
        inset 5px 0 10px rgba(255, 255, 255, 0.15),
        2px 0 8px rgba(0,0,0,0.4);
    overflow: hidden;
}

#velomancia-app .vel-candle-body__wax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: rgba(255, 240, 200, 0.6);
    border-radius: 4px 4px 0 0;
}

#velomancia-app .vel-candle-body__shine {
    position: absolute;
    top: 5px;
    left: 8px;
    width: 6px;
    bottom: 5px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    border-radius: 3px;
}

#velomancia-app .vel-candle-wick {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: linear-gradient(to top, #333, #666);
    border-radius: 1px 1px 0 0;
}

/* Lágrimas de cera */
#velomancia-app .vel-wax-tear {
    display: none;
    position: absolute;
    width: 5px;
    height: 0;
    border-radius: 0 0 3px 3px;
    background: rgba(240, 220, 180, 0.8);
}
#velomancia-app .vel-wax-tear--l { top: 15px; left: 8px; }
#velomancia-app .vel-wax-tear--r { top: 10px; right: 10px; }

@keyframes vel-wax-drip {
    0% { height: 0; opacity: 0; }
    20% { height: 20px; opacity: 0.9; }
    80% { height: 35px; opacity: 0.8; }
    100% { height: 40px; opacity: 0; }
}

/* --- BASE Y PLATILLO --- */
#velomancia-app .vel-candle-base {
    display: flex;
    justify-content: center;
}
#velomancia-app .vel-candle-plate {
    width: 80px;
    height: 12px;
    background: linear-gradient(135deg, #b8932a, #8a6820, #c8a040, #9a7830);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* --- MENSAJE OBSERVANDO --- */
#velomancia-app .vel-watching-msg {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--vel-gold);
    letter-spacing: 0.1em;
    animation: vel-pulse-text 2s ease-in-out infinite;
}

@keyframes vel-pulse-text {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================================
   PANTALLA DE RESULTADO
   ============================================================ */
#velomancia-app .vel-result-candle {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

#velomancia-app .vel-result-flame-wrapper {
    position: relative;
    width: 30px;
    height: 50px;
}

#velomancia-app .vel-result-flame {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50% 50% 20% 20% / 60% 60% 20% 20%;
    transform-origin: center bottom;
    animation: vel-flame-flicker 0.8s ease-in-out infinite alternate;
}

#velomancia-app .vel-result-flame--outer {
    width: 26px; height: 45px; bottom: 0;
    background: radial-gradient(ellipse at 50% 80%, var(--vel-fire-outer) 0%, rgba(255, 60, 0, 0.3) 60%, transparent 100%);
    filter: blur(1px); animation-duration: 0.9s;
}
#velomancia-app .vel-result-flame--inner {
    width: 18px; height: 34px; bottom: 3px;
    background: radial-gradient(ellipse at 50% 75%, var(--vel-fire-mid) 0%, var(--vel-fire-outer) 50%, transparent 100%);
    animation-duration: 0.7s; animation-delay: 0.1s;
}
#velomancia-app .vel-result-flame--core {
    width: 10px; height: 22px; bottom: 5px;
    background: radial-gradient(ellipse at 50% 70%, var(--vel-fire-core) 0%, var(--vel-fire-inner) 50%, transparent 100%);
    animation-duration: 0.6s; animation-delay: 0.05s;
}

#velomancia-app .vel-result-candle-body {
    width: 28px;
    height: 60px;
    background: var(--vel-candle-body);
    border-radius: 3px 3px 2px 2px;
    box-shadow: inset -4px 0 8px rgba(0,0,0,0.3), inset 3px 0 6px rgba(255,255,255,0.15);
    margin-top: -2px;
}

/* Tarjeta de resultado */
#velomancia-app .vel-result-card {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    background: linear-gradient(135deg, rgba(25, 18, 6, 0.95), rgba(35, 25, 8, 0.98));
    border: 1px solid rgba(200, 148, 58, 0.3);
    border-radius: 4px;
    padding: 32px 28px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.7),
        0 0 0 1px rgba(200, 148, 58, 0.1),
        inset 0 1px 0 rgba(200, 148, 58, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin: 0 10px;
}

#velomancia-app .vel-result-card.visible {
    opacity: 1;
    transform: translateY(0);
}

#velomancia-app .vel-result-header {
    margin-bottom: 20px;
}

#velomancia-app .vel-result-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 16px;
    padding: 4px 16px;
    display: inline-block;
    border-radius: 2px;
}

.vel-result-label--positivo { color: var(--vel-positive); border: 1px solid rgba(76, 175, 114, 0.3); background: rgba(76, 175, 114, 0.08); }
.vel-result-label--negativo { color: var(--vel-negative); border: 1px solid rgba(224, 85, 85, 0.3); background: rgba(224, 85, 85, 0.08); }
.vel-result-label--neutral { color: var(--vel-neutral); border: 1px solid rgba(200, 148, 58, 0.3); background: rgba(200, 148, 58, 0.08); }
.vel-result-label--sagrado { color: var(--vel-sagrado); border: 1px solid rgba(102, 136, 238, 0.3); background: rgba(102, 136, 238, 0.08); }

#velomancia-app .vel-result-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(200, 148, 58, 0.4));
    animation: vel-icon-glow 3s ease-in-out infinite;
}

@keyframes vel-icon-glow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(200, 148, 58, 0.3)); }
    50% { filter: drop-shadow(0 0 16px rgba(200, 148, 58, 0.7)); }
}

#velomancia-app .vel-result-pretext {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--vel-text-dim);
    margin-bottom: 10px;
    font-weight: 300;
}

#velomancia-app .vel-result-titulo {
    font-family: 'Uncial Antiqua', 'Georgia', serif;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 400;
    color: var(--vel-gold-light);
    text-shadow: 0 0 20px rgba(200, 148, 58, 0.4);
    line-height: 1.2;
}

#velomancia-app .vel-result-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--vel-gold);
    opacity: 0.5;
}
#velomancia-app .vel-result-divider::before,
#velomancia-app .vel-result-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 148, 58, 0.4), transparent);
}

#velomancia-app .vel-result-interpretacion {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.85;
    color: rgba(220, 200, 160, 0.9);
    font-weight: 300;
    font-style: italic;
    text-align: left;
}

/* ============================================================
   ERRORES
   ============================================================ */
#velomancia-app .vel-error-msg {
    font-size: 1rem;
    color: var(--vel-negative);
    margin-bottom: 24px;
    font-style: italic;
}

/* ============================================================
   LOADING DOTS
   ============================================================ */
#velomancia-app .vel-watching-msg::after {
    content: '...';
    display: inline-block;
    animation: vel-dots 1.5s steps(4, end) infinite;
    width: 20px;
    text-align: left;
}

@keyframes vel-dots {
    0%, 100% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    #velomancia-app .vel-screen { padding: 30px 16px 50px; min-height: 520px; }
    #velomancia-app .vel-btn { padding: 14px 28px; font-size: 0.95rem; }
    #velomancia-app .vel-result-card { padding: 24px 20px; margin: 0; }
    #velomancia-app .vel-result-interpretacion { font-size: 0.98rem; }
    #velomancia-app .vel-candle-body { height: 130px; width: 46px; }
}

@media (max-width: 360px) {
    #velomancia-app .vel-title { font-size: 1.8rem; }
    #velomancia-app .vel-result-titulo { font-size: 1.3rem; }
}
