/* Lupa Lectura Accesible Premium v1.7.0 */

:root {
    --lla-black: #000000;
    --lla-orange: #df7428;
    --lla-white: #ffffff;
    --lla-shadow: rgba(0,0,0,0.35);
    --lla-button-bottom: 90px;
    --lla-panel-bottom: 170px;
    --lla-button-size: 70px;
}

#lla-toggle {
    position: fixed;
    right: 18px;
    bottom: calc(var(--lla-button-bottom) + env(safe-area-inset-bottom));
    width: var(--lla-button-size);
    height: var(--lla-button-size);
    z-index: 999999;
    background: var(--lla-black);
    color: var(--lla-orange);
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--lla-shadow);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: lla-pulse 2.7s infinite;
}

#lla-toggle .lla-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lla-toggle .lla-icon svg {
    width: 34px;
    height: 34px;
    display: block;
}

#lla-toggle:active {
    transform: scale(0.92);
}

#lla-toggle.lla-active {
    outline: 5px solid rgba(223,116,40,0.3);
}

@keyframes lla-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.07); }
    100% { transform: scale(1); }
}

#lla-panel {
    display: none;
    position: fixed;
    right: 18px;
    bottom: calc(var(--lla-panel-bottom) + env(safe-area-inset-bottom));
    z-index: 999999;
    width: min(90vw, 350px);
    background: #111111;
    color: #ffffff;
    border: 2px solid var(--lla-orange);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 12px 32px var(--lla-shadow);
}

#lla-panel.lla-show {
    display: block;
}

.lla-panel-title {
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 3px;
}

.lla-panel-subtitle {
    font-size: 15px;
    opacity: .9;
    margin-bottom: 10px;
    color: var(--lla-orange);
    font-weight: 800;
}

.lla-help {
    font-size: 15px;
    line-height: 1.38;
    opacity: .92;
}

#lla-lens {
    display: none;
    position: fixed;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    z-index: 999998;
    width: min(92vw, 760px);
    max-height: 32vh;
    overflow-y: auto;
    pointer-events: none;
    background: var(--lla-white);
    color: #111111;
    border: 5px solid var(--lla-orange);
    border-radius: 24px;
    box-shadow: 0 12px 34px var(--lla-shadow);
    padding: 16px 18px;
    user-select: none;
    -webkit-user-select: none;
}

#lla-lens.lla-show {
    display: block;
}

#lla-label {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--lla-orange);
    margin-bottom: 8px;
}

#lla-text {
    font-size: 34px;
    line-height: 1.28;
    font-weight: 900;
}

.lla-highlight {
    background: rgba(223,116,40,0.22);
    border-radius: 7px;
    box-shadow: 0 0 0 4px rgba(223,116,40,0.20);
}

html.lla-scroll-locked,
html.lla-scroll-locked body {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none !important;
}

html.lla-scroll-locked * {
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

@media (max-width: 600px) {
    #lla-toggle {
        right: 16px;
    }

    #lla-panel {
        right: 16px;
        width: min(90vw, 340px);
    }

    #lla-lens {
        top: 10px;
        width: 92vw;
        max-height: 34vh;
        padding: 15px 16px;
    }

    #lla-text {
        font-size: 32px;
    }
}
