/* Patch 24: approved wordmark and rapid UI fades. No delayed game actions. */
#menu-principal h1.menu-logo-heading {
    display:block; width:min(100%,520px); line-height:0!important; margin:0 auto!important;
}
#menu-principal h1.menu-logo-heading::before,
#menu-principal h1.menu-logo-heading::after {content:none!important;display:none!important;}
#menu-principal .menu-logo {display:block;width:100%;height:auto;object-fit:contain;}
@media (max-width:768px), (max-width:980px) and (pointer:coarse) {
    #menu-principal h1.menu-logo-heading {width:min(90%,440px);}
    #menu-principal .menu-logo {max-height:clamp(75px,19dvh,150px);}
}
#pantalla-nota-autor {background:var(--lite-page);color:var(--lite-ink);overflow:auto;overscroll-behavior:contain;align-items:center;padding:clamp(18px,5vw,40px);}
#pantalla-nota-autor .nota-autor-pagina {width:min(100%,700px);flex-shrink:0;margin:0 auto;padding-bottom:24px;}
#nota-autor-titulo {font-family:Georgia,serif;font-weight:400;font-size:clamp(26px,5vw,40px);color:var(--lite-heading);text-align:center;margin:8px 0 28px;outline:none;}
#btn-nota-autor-listo {display:inline-block;width:auto;min-width:150px;}

/* Patch 29: keep the outgoing surface visible during the fade, but inert. */
@keyframes lite-ui-enter {from{opacity:0}to{opacity:1}}
@keyframes lite-ui-exit {from{opacity:1}to{opacity:0}}
body {position:relative;}
.pantalla {position:absolute!important;inset:0;height:100%;flex-direction:column;}
.pantalla.activa, .modal, dialog[open], #loading-dots-overlay {animation:lite-ui-enter 300ms ease-out both;}
#menu-principal.activa, #pantalla-juego.lite-reveal {animation:lite-ui-enter 300ms ease-out both!important;}
@supports (transition-behavior: allow-discrete) {
    .pantalla, .modal, dialog, #loading-dots-overlay {
        opacity:1;transition:opacity 300ms ease-in-out,display 300ms allow-discrete,overlay 300ms allow-discrete;
    }
    .pantalla.activa,.modal,dialog[open],#menu-principal.activa,#pantalla-juego.lite-reveal,#loading-dots-overlay {animation:none!important;}
    .pantalla.activa {z-index:0!important;}
    .pantalla:not(.activa) {opacity:0;z-index:1!important;pointer-events:none;}
    .modal:not([style*="display: flex"]):not([style*="display: block"]),dialog:not([open]),#loading-dots-overlay[style*="display: none"] {opacity:0;pointer-events:none;}
    dialog::backdrop {opacity:1;transition:opacity 300ms ease-in-out,display 300ms allow-discrete,overlay 300ms allow-discrete;}
    dialog:not([open])::backdrop {opacity:0;}
    @starting-style {
        .pantalla.activa,.modal[style*="display: flex"],.modal[style*="display: block"],dialog[open],#loading-dots-overlay[style*="display: flex"] {opacity:0;}
        dialog[open]::backdrop {opacity:0;}
    }
}
/* Older WebViews: visual exit only, without delaying application navigation. */
.pantalla.lite-fading-out,.modal.lite-fading-out,#loading-dots-overlay.lite-fading-out {
    display:flex!important;animation:lite-ui-exit 300ms ease-in-out both!important;pointer-events:none!important;
}
.pantalla.lite-fading-out {z-index:1!important;}
@media (prefers-reduced-motion:reduce) {
    .pantalla,.modal,dialog,dialog::backdrop,#loading-dots-overlay {animation:none!important;transition:none!important;}
}

/* Patch 26: a fine violet silhouette preserves the light parts of the approved
   wordmark against the landscape without changing the artwork or intro. */
#menu-principal .menu-logo, #pantalla-auth .auth-logo {
    filter: drop-shadow(.65px 0 0 #73469a) drop-shadow(-.65px 0 0 #73469a)
            drop-shadow(0 .65px 0 #73469a) drop-shadow(0 -.65px 0 #73469a);
}
/* Full-page account access. Forms are mutually exclusive, not tabs in a card. */
#pantalla-auth {
    --auth-acento:var(--lite-heading); --auth-entrada:var(--lite-paper);
    --auth-control:54px; --auth-texto:16px; --auth-etiqueta:14px; --auth-nota:13px; --auth-gap:14px;
    background:var(--lite-page)!important; color:var(--lite-ink)!important;
    padding:clamp(18px,4dvh,36px) clamp(18px,6vw,36px) 28px!important;
    overflow-y:auto!important; overflow-x:hidden!important;
    justify-content:flex-start!important; align-items:center!important;
    max-height:100%; height:calc(var(--auth-vh,1dvh) * 100)!important;
    overscroll-behavior:contain; container-type:normal;
}
#pantalla-auth .portal-fondo {position:fixed!important;inset:0!important;width:100%!important;height:100%!important;transform:none!important;}
#pantalla-auth .portal-imagen {
    inset:0!important;transform:none!important;
    background-image:linear-gradient(180deg,var(--lite-page) 0%,var(--lite-deep) 48%,var(--lite-glow) 70%,var(--lite-glow2) 100%),url('/static/app/menu-valle.webp?v=19')!important;
    background-size:cover!important; background-position:center bottom!important;
}
#pantalla-auth .auth-idiomas {
    position:relative!important;inset:auto!important;transform:none!important;
    align-self:center!important;margin:0 auto 18px!important;
    border:1px solid var(--lite-line)!important;background:var(--lite-paper)!important;
    border-radius:24px!important;flex-shrink:0;
}
#pantalla-auth .auth-idiomas button {width:42px;height:36px;border-radius:20px!important;}
#pantalla-auth .auth-idiomas button[aria-pressed="true"] {background:var(--lite-primary)!important;}
#pantalla-auth .auth-contenido {
    width:min(100%,420px)!important;padding:0!important;margin:0 auto!important;
    background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;
    color:var(--lite-ink)!important;container-type:normal;flex-shrink:0;
}
#pantalla-auth .auth-brand {text-align:center;margin:0 0 18px;}
#pantalla-auth .auth-titulo {margin:0 auto!important;line-height:0!important;width:min(100%,350px);}
#pantalla-auth .auth-logo {display:block;width:100%;height:auto;max-height:126px;object-fit:contain;}
#pantalla-auth .auth-lema {margin:12px 0 16px;font-size:clamp(14px,4vw,17px);line-height:1.45;color:var(--lite-muted);}
#pantalla-auth .auth-divisor {display:flex;align-items:center;gap:13px;color:var(--lite-control);margin:16px 0 0;}
#pantalla-auth .auth-divisor::before,#pantalla-auth .auth-divisor::after {content:"";flex:1;height:1px;background:var(--lite-line);}
#pantalla-auth .auth-divisor span {font-size:20px;line-height:1;}
#pantalla-auth .auth-form:not([hidden]) {display:flex!important;flex-direction:column;gap:14px;animation:lite-ui-enter 180ms ease-out both;}
#pantalla-auth .auth-form[hidden] {display:none!important;}
#pantalla-auth .auth-form-title {font:500 22px/1.25 Georgia,serif;text-align:center;color:var(--lite-heading);margin:0 0 3px;}
#pantalla-auth .auth-campo {position:relative;display:block;}
#pantalla-auth .auth-campo>label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
#pantalla-auth .auth-input {height:54px!important;min-height:54px!important;background:var(--lite-paper)!important;border:1px solid var(--lite-border)!important;border-radius:15px!important;color:var(--lite-ink)!important;padding-inline-start:48px!important;font:400 16px/1.2 system-ui,sans-serif!important;}
#pantalla-auth .auth-input::placeholder {color:var(--lite-placeholder)!important;opacity:1;}
#pantalla-auth .auth-clave .auth-input {padding-inline-end:52px!important;}
#pantalla-auth .auth-campo::before {content:"";position:absolute;z-index:1;left:16px;top:16px;width:22px;height:22px;background:var(--lite-control);pointer-events:none;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3M12 15v2'/%3E%3C/svg%3E") center/contain no-repeat;}
#pantalla-auth .auth-email::before {mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");}
#pantalla-auth .auth-ver-clave {color:var(--lite-control)!important;}
#pantalla-auth .auth-opcion {font-size:14px;line-height:1.4;color:var(--lite-muted)!important;gap:10px;}
#pantalla-auth .auth-opcion input {width:19px;height:19px;flex:0 0 19px;accent-color:var(--lite-control);}
#pantalla-auth .auth-preferencias {display:flex;flex-direction:column;gap:10px;}
#pantalla-auth .auth-ayuda {font-size:12px;line-height:1.4;margin:0;color:var(--lite-muted)!important;}
#pantalla-auth .auth-accion {min-height:52px;border-radius:28px!important;background:var(--lite-control)!important;color:#fff!important;font:600 17px/1.2 system-ui,sans-serif;}
#pantalla-auth .auth-accion:disabled {opacity:.65;}
#pantalla-auth .auth-enlace {color:var(--lite-heading)!important;min-height:44px;font-size:15px;}
#pantalla-auth .auth-switch {width:100%;min-height:50px;border:1px solid var(--lite-control)!important;border-radius:28px!important;background:var(--lite-paper)!important;color:var(--lite-heading)!important;font:600 16px/1.25 system-ui,sans-serif;margin:0!important;}
#pantalla-auth .auth-legal {text-align:center;font-size:13px;}
#pantalla-auth .auth-legal a,#pantalla-auth .auth-opcion a {color:var(--lite-heading);text-underline-offset:3px;}
#pantalla-auth[data-auth-mode="registro"] .auth-lema {display:none;}
#pantalla-auth[data-auth-mode="registro"] .auth-brand {margin-bottom:14px;}
#pantalla-auth[data-auth-mode="registro"] .auth-logo {max-height:96px;}
@media (max-height:620px) {
    #pantalla-auth {padding-top:12px!important;}
    #pantalla-auth .auth-idiomas {margin-bottom:10px!important;}
    #pantalla-auth .auth-brand {margin-bottom:12px;}
    #pantalla-auth .auth-logo {max-height:90px;}
    #pantalla-auth .auth-form:not([hidden]) {gap:10px;}
}
@media (prefers-reduced-motion:reduce) {#pantalla-auth .auth-form:not([hidden]) {animation:none;}}

/* Patch 27: compact, height-aware access; retain scrolling only when content
   truly exceeds the visible viewport (keyboard, zoom, unusually short screens). */
#pantalla-auth {
    --auth-control:clamp(40px,calc(var(--auth-vh,1dvh)*6.8),54px);
    --auth-spacing:clamp(6px,calc(var(--auth-vh,1dvh)*1.45),14px);
    padding:clamp(8px,calc(var(--auth-vh,1dvh)*2.5),24px) clamp(18px,6vw,36px) 10px!important;
}
#pantalla-auth .auth-idiomas {margin:0 auto var(--auth-spacing)!important;}
#pantalla-auth .auth-idiomas button {width:38px;height:32px;}
#pantalla-auth .auth-brand,#pantalla-auth[data-auth-mode="registro"] .auth-brand {margin:0 0 var(--auth-spacing);}
#pantalla-auth .auth-logo {max-height:clamp(64px,calc(var(--auth-vh,1dvh)*18),126px);}
#pantalla-auth[data-auth-mode="registro"] .auth-logo {max-height:clamp(44px,calc(var(--auth-vh,1dvh)*12),96px);}
#pantalla-auth .auth-form:not([hidden]) {gap:var(--auth-spacing);}
#pantalla-auth .auth-form-title {margin:0;font-size:clamp(19px,calc(var(--auth-vh,1dvh)*3.2),22px);}
#pantalla-auth .auth-input {height:var(--auth-control)!important;min-height:var(--auth-control)!important;}
#pantalla-auth .auth-campo::before {top:calc((var(--auth-control) - 22px)/2);}
#pantalla-auth .auth-accion,#pantalla-auth .auth-switch {min-height:var(--auth-control);flex:none;}
#pantalla-auth .auth-preferencias {gap:clamp(4px,calc(var(--auth-vh,1dvh)*.9),9px);}
#pantalla-auth .auth-opcion {min-height:0;line-height:1.3;}
#pantalla-auth .auth-legal {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-items:center;}
#pantalla-auth .auth-legal a,#pantalla-auth .auth-legal button {display:grid;place-items:center;min-height:36px;padding:3px 0;background:none;border:0;box-shadow:none;color:var(--lite-heading)!important;font:600 13px/1.2 system-ui,sans-serif;text-decoration:none;cursor:pointer;}
#pantalla-auth .auth-legal a:hover,#pantalla-auth .auth-legal button:hover {text-decoration:underline;}

#pantalla-que-es,#pantalla-legal-registro {background:var(--lite-page);color:var(--lite-ink);overflow:auto;overscroll-behavior:contain;align-items:center;padding:clamp(18px,5vw,40px);}
#pantalla-que-es .nota-autor-pagina,#pantalla-legal-registro .nota-autor-pagina {width:min(100%,700px);flex-shrink:0;margin:0 auto;padding-bottom:24px;}
#que-es-titulo,#registro-legal-titulo {font:400 clamp(26px,5vw,40px)/1.2 Georgia,serif;color:var(--lite-heading);text-align:center;margin:8px 0 28px;outline:none;}
#btn-que-es-entendido,#btn-registro-legal-volver {display:block;width:auto;min-width:150px;min-height:44px;margin:24px auto 0;}
@media (max-height:680px) {
    #pantalla-auth[data-auth-mode="registro"] {--auth-spacing:6px;--auth-control:44px;padding-top:8px!important;}
    #pantalla-auth[data-auth-mode="registro"] .auth-logo {max-height:clamp(44px,calc(var(--auth-vh,1dvh)*10),65px);}
    #pantalla-auth[data-auth-mode="registro"] .auth-opcion {font-size:13px;}
    #pantalla-auth[data-auth-mode="registro"] .auth-idiomas {margin-bottom:6px!important;}
}

#pantalla-legal-registro [data-register-legal-content] {font-size:1rem;line-height:1.65;overflow-wrap:anywhere;}
#pantalla-legal-registro [data-register-legal-content][hidden] {display:none!important;}
#pantalla-legal-registro p {margin:0 0 1em;}
#pantalla-legal-registro a,#pantalla-legal-registro h2 {color:var(--lite-heading);}

/* Full-page legal documents: same navigation and action hierarchy as mIAstrología. */
#pantalla-legal-registro {padding:clamp(18px,5vw,40px);background:var(--lite-page);}
#pantalla-legal-registro .nota-autor-pagina {background:none;border:0;box-shadow:none;}
#pantalla-legal-registro [data-register-legal-content] h2 {font:600 1.15rem/1.35 system-ui,sans-serif;text-align:left;margin:1.5em 0 .5em;}
#pantalla-legal-registro [data-register-legal-content] ul {padding-inline-start:1.4em;}
#pantalla-legal-registro [data-register-legal-content] li {margin:.45em 0;}
#pantalla-legal-registro .registro-legal-acciones {display:grid;gap:10px;margin-top:24px;}
#pantalla-legal-registro .registro-legal-acciones button {width:100%;min-height:48px;margin:0;border-radius:999px!important;font:600 1rem/1.3 system-ui,sans-serif;padding:12px 16px;}
#pantalla-legal-registro #btn-registro-legal-aceptar {background:var(--lite-control)!important;color:white!important;border:1px solid var(--lite-control)!important;}
#pantalla-legal-registro #btn-registro-legal-aceptar[hidden] {display:none!important;}
#pantalla-legal-registro #btn-registro-legal-volver {background:transparent;color:var(--lite-heading);border:1px solid var(--lite-line);}

#pantalla-legal-registro {padding:0;overflow:hidden;}
#pantalla-legal-registro .registro-legal-cabecera {width:100%;flex:0 0 auto;border-bottom:1px solid var(--lite-line);padding:16px clamp(18px,5vw,40px);}
#pantalla-legal-registro #registro-legal-titulo {font-size:clamp(22px,5.5vw,32px);margin:0;}
#pantalla-legal-registro #registro-legal-lectura {flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px clamp(18px,5vw,40px) 24px;width:min(100%,780px);}

/* Patch 29: options as six actual screens, no modal frame or nested cards. */
.lite-settings {background:var(--lite-page);color:var(--lite-ink);padding:0!important;overflow:hidden!important;min-width:0;align-items:stretch!important;justify-content:flex-start!important;font-family:Georgia,serif;}
.lite-settings-header {display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;flex-shrink:0;gap:8px;width:min(100%,660px);margin:0 auto;padding:12px clamp(16px,5vw,32px);border-bottom:1px solid var(--lite-line);}
.lite-settings-header h2 {margin:0!important;font-size:clamp(23px,6vw,30px)!important;font-weight:400!important;text-align:center;color:var(--lite-heading)!important;line-height:1.25;outline:none;}
.lite-settings-back {display:grid;place-items:center;width:44px;height:44px;padding:0!important;background:transparent!important;border:0!important;color:var(--lite-heading)!important;border-radius:50%!important;cursor:pointer;}
.lite-settings-back:hover {background:var(--lite-lavender)!important;}
.lite-settings-back svg {width:23px;height:23px;}
.lite-settings-body {width:100%;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:18px clamp(18px,6vw,32px) 28px;scrollbar-width:thin;scrollbar-color:var(--lite-border) transparent;}
.lite-settings-list,.lite-settings-detail .lite-settings-body > * {max-width:596px;margin-inline:auto;}
.lite-settings-list {display:flex;flex-direction:column;}
.lite-settings-link {display:grid;grid-template-columns:44px minmax(0,1fr) 19px;align-items:center;gap:14px;text-align:left;padding:16px 2px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--lite-line)!important;border-radius:0!important;color:var(--lite-ink)!important;width:100%;min-height:76px;cursor:pointer;box-shadow:none!important;}
.lite-settings-link:last-child {border-bottom:0!important;}
.lite-settings-link:hover {background:var(--lite-lavender)!important;}
.lite-settings-icon {width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:var(--lite-primary);color:var(--lite-heading);}
.lite-settings-icon svg {width:23px;height:23px;}
.lite-settings-link > svg {width:17px;height:17px;color:var(--lite-muted);}
.lite-settings-text {display:flex;flex-direction:column;gap:4px;min-width:0;}
.lite-settings-text > span {font-size:18px;font-weight:600;line-height:1.2;}
.lite-settings-text small {font-size:13px;color:var(--lite-muted);line-height:1.35;font-weight:400;}
.lite-settings .opciones-seccion,.lite-settings .opciones-voz-bloque {background:transparent!important;border:0!important;border-radius:0!important;padding:16px 0 22px!important;margin-block:0!important;margin-inline:auto!important;border-bottom:1px solid var(--lite-line)!important;gap:10px!important;box-shadow:none!important;}
.lite-settings .opciones-seccion:last-child,.lite-settings .opciones-voz-bloque:last-child {border-bottom:0!important;}
.lite-settings .opciones-seccion-titulo,.lite-settings .opciones-voz-titulo {font-size:18px!important;font-weight:600!important;border:0!important;padding:0!important;margin:0 0 8px!important;}
.lite-settings .opciones-seccion label,.lite-settings .opciones-fuente-item label,.lite-settings .opciones-voz-fila {font-size:15px!important;line-height:1.45;}
.lite-settings .modal-input {font-size:16px!important;width:100%!important;max-width:100%;box-sizing:border-box;min-height:46px;}
.lite-settings .menu-btn,.lite-settings .auth-btn {font-size:15px!important;font-weight:600!important;min-height:46px;max-width:100%!important;box-shadow:none!important;padding:10px 14px!important;}
.lite-settings .opciones-fuentes-fila {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px;}
#btn-cerrar-sesion {display:block;width:100%;margin:22px auto!important;color:#8b4058!important;background:transparent!important;border:1px solid var(--lite-border)!important;border-radius:10px;}
.lite-settings #soporte-contacto-texto,.lite-settings #edgeVoicesNote {color:var(--lite-muted)!important;}
.lite-settings [hidden] {display:none!important;}
.lite-settings button:focus-visible {outline:2px solid var(--lite-control);outline-offset:2px;}
.lite-settings .switch {flex-shrink:0;}
@media(max-width:350px) {.lite-settings .opciones-fuentes-fila{grid-template-columns:1fr!important;}.lite-settings-link{gap:10px;}}
.lite-settings-header h2:focus,.lite-settings-header h2:focus-visible {outline:none!important;box-shadow:none!important;}


/* Patch 30: integrated selectors for full-screen options. */
.lite-select{position:relative;width:100%;margin:0;}
.lite-native-select{display:none!important;}
.lite-select-trigger{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:12px 16px;background:var(--lite-paper)!important;color:var(--lite-ink)!important;border:1px solid var(--lite-border)!important;border-radius:16px!important;font:inherit;text-align:left;box-shadow:none!important;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,transform .18s ease;}
.lite-select-trigger:hover{background:var(--lite-lavender)!important;border-color:var(--lite-heading)!important;}
.lite-select-trigger:focus-visible{outline:2px solid var(--lite-control)!important;outline-offset:2px!important;}
.lite-select.is-disabled .lite-select-trigger{opacity:.6;cursor:not-allowed;}
.lite-select-trigger-value{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lite-select-trigger-arrow{flex-shrink:0;width:18px;height:18px;color:var(--lite-muted);transition:transform .2s ease,color .2s ease;}
.lite-select.open .lite-select-trigger{background:var(--lite-lavender)!important;border-color:var(--lite-heading)!important;}
.lite-select.open .lite-select-trigger-arrow{transform:rotate(180deg);color:var(--lite-heading);}
/* Centered overlay, outside document flow. Only the list scrolls. */
.lite-select-overlay{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px;box-sizing:border-box;background:rgba(35,25,44,.46);opacity:0;visibility:hidden;pointer-events:none;transition:opacity 300ms ease-in-out,visibility 0s linear 300ms;}
.lite-select.open .lite-select-overlay{opacity:1;visibility:visible;pointer-events:auto;transition:opacity 300ms ease-in-out,visibility 0s;}
.lite-select-menu{display:flex;flex-direction:column;gap:4px;box-sizing:border-box;width:min(100%,440px);min-width:0;max-height:calc(100vh - 40px);max-height:min(82dvh,calc(100dvh - 40px));overflow:auto;overscroll-behavior:contain;padding:8px;background:var(--lite-paper);border:1px solid var(--lite-line);border-radius:18px;box-shadow:0 12px 28px rgba(85,65,99,.22);outline:none;}
.lite-select-menu .lite-select-option{flex-shrink:0;overflow-wrap:anywhere;}
@media(prefers-reduced-motion:reduce){.lite-select-overlay,.lite-select.open .lite-select-overlay{transition:none;}}
.lite-select-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;background:transparent;border:0;border-radius:12px;color:var(--lite-ink);font:inherit;text-align:left;cursor:pointer;}
.lite-select-option:hover,.lite-select-option:focus-visible{background:var(--lite-lavender);outline:none;}
.lite-select-option.is-selected{background:var(--lite-primary);color:var(--lite-heading);font-weight:600;}
.lite-select-option-mark{opacity:0;color:var(--lite-heading);font-weight:700;}
.lite-select-option.is-selected .lite-select-option-mark{opacity:1;}
#opciones-panel-soporte .lite-settings-body-support{padding-top:12px;padding-bottom:16px;}
#opciones-panel-soporte .opciones-seccion{padding:12px 0 16px!important;gap:8px!important;}
#opciones-panel-soporte .opciones-cuenta a{padding:7px 0;}
#opciones-panel-soporte .lite-report-disclosure{margin:.15rem 0 .35rem;}
#opciones-panel-soporte #textarea-reporte{min-height:96px;}

/* Patch 32: keep the approved illustration and logo; every interactive
   surface follows the selected palette, including the mobile menu and access. */
#pantalla-auth .auth-accion:active,#pantalla-legal-registro #btn-registro-legal-aceptar:active {background:var(--lite-heading)!important;}
#pantalla-auth .auth-switch:hover {background:var(--lite-lavender)!important;}
#modal-logs #close-logs {background:var(--lite-lavender)!important;color:var(--lite-heading)!important;border-color:var(--lite-border)!important;}
#modal-logs #close-logs:hover {background:var(--lite-primary)!important;}

/* Patch 35: creation shares the app's centered selectors and control style. */
#creacion-personaje .lite-select-trigger {min-height:44px;border-radius:12px!important;font:400 16px/1.4 system-ui,sans-serif!important;padding:10px 14px!important;}
#creacion-personaje .lite-select-option {font:400 16px/1.4 system-ui,sans-serif!important;}
#creacion-personaje .btn-dado {right:0!important;top:0!important;transform:none!important;}
#creacion-personaje input.creacion-input+.btn-dado {height:100%!important;max-height:none!important;border-radius:0 12px 12px 0!important;}
#creacion-personaje textarea.creacion-input+.btn-dado {border-radius:0 12px 0 10px!important;}
#creacion-personaje #btn-comenzar {background:var(--lite-lavender)!important;font-weight:400!important;}
#loading-dots-overlay.lite-turn-wait {background:transparent!important;}
#loading-dots-overlay.lite-turn-wait>div {background:var(--lite-paper);border:1px solid var(--lite-border);border-radius:18px;padding:16px 24px;gap:10px!important;box-shadow:0 8px 24px #30233d22;}
#loading-dots-overlay.lite-turn-wait #loading-texto:empty {display:none;}
#loading-dots-overlay.lite-turn-wait #loading-subtexto {font-size:1rem!important;}
#narrativa img.escenario-imagen {cursor:zoom-in;}
/* The viewer uses the full app surface, and the image alone is transformed by gestures. */
#lite-image-stage {display:grid;place-items:center;position:relative;overflow:hidden;}
#modal-portrait.lite-full-image {padding:0!important;background:#15131a!important;overflow:hidden!important;z-index:9000!important;}
#modal-portrait.lite-full-image .modal-contenido {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#15131a!important;box-shadow:none!important;overflow:hidden!important;}
#modal-portrait.lite-full-image #lite-image-stage {width:100%;height:100%;touch-action:none;user-select:none;}
#modal-portrait.lite-full-image #img-portrait-completo {width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;border:0!important;border-radius:0!important;transform-origin:center;user-select:none;touch-action:none;}
#modal-portrait.lite-full-image .modal-close {position:absolute!important;top:10px!important;right:10px!important;z-index:2!important;background:var(--lite-paper)!important;color:var(--lite-heading)!important;opacity:.93;}
/* WebView rotation is visual, preserving the portrait Activity and all game state.
   The rotated content box occupies every pixel of the portrait viewport. */
@media (orientation:portrait) {
  #modal-portrait.lite-full-image.lite-scenario-viewer .modal-contenido {inset:auto!important;top:50%!important;left:50%!important;width:var(--lite-visible-height,100dvh)!important;height:100vw!important;transform:translate(-50%,-50%) rotate(90deg);}
}

/* Patch 36: the in-turn status is visual only, unlike the initial loading screen. */
#loading-dots-overlay.lite-turn-wait,#loading-dots-overlay.lite-turn-wait * {pointer-events:none!important;}
#lite-image-stage > [hidden] {display:none!important;}
#lite-viewer-canvas {max-width:min(88vw,650px);max-height:calc(100dvh - 52px);width:auto;height:auto;object-fit:contain;border:0;}
#modal-portrait.lite-scenario-viewer #lite-viewer-canvas {max-width:min(94vw,1024px);}
#modal-portrait.lite-full-image #lite-viewer-canvas {width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain;transform-origin:center;user-select:none;touch-action:none;}
