.home-page{--home-index-width:104px;--home-index-right:12px}
.home-compass{position:fixed;right:var(--home-index-right);top:50%;transform:translateY(-50%);z-index:35;width:var(--home-index-width);color:#adc0cf}
.compass-toggle,.compass-heading{display:none}
.compass-links{position:relative;display:flex;flex-direction:column;padding:12px 9px 12px 0}
.compass-links::before{content:'';position:absolute;right:12px;top:35px;bottom:35px;width:1px;background:linear-gradient(180deg,#acc0cf12,#acc0cf35 50%,#acc0cf12);pointer-events:none}
.compass-links a{position:relative;display:flex;justify-content:flex-end;align-items:center;gap:10px;min-height:46px;padding:0;text-decoration:none;font-family:inherit;font-size:12px;font-weight:400;line-height:1.3;color:#adc0cf;white-space:nowrap;text-shadow:0 1px 5px #09131f,0 0 12px #09131fa6;transition:color .2s}
.compass-links a i{display:block;position:relative;width:7px;height:7px;flex-shrink:0;border:1px solid #8199aa88;border-radius:50%;background:#122432}
.compass-links a[aria-current]{color:#d6bd8d}
.compass-links a[aria-current] i{background:#d6bd8d;border-color:#d6bd8d}
.compass-links a:hover{color:#e0e9ef}
.compass-links a:hover i{border-color:#d6bd8d}
.home-compass :focus-visible{outline:2px solid #d6bd8d;outline-offset:4px;border-radius:3px}
.home-compass.compass-obstructed{visibility:hidden;pointer-events:none}
#actualidad,#comunidad,#explorar,#legado-home,#herramientas-home,#notas-de-clases-home{scroll-margin-top:100px}
/* Local contrast follows the index while it is over the bright hero. Soft
   vertical edges avoid drawing a separate rectangular panel over the sky. */
@media(min-width:1100px){
 .home-page .hero-atmosphere-controls{right:calc(var(--home-index-width) + var(--home-index-right) + 24px)}
 .compass-over-hero .compass-links::after{content:'';position:absolute;inset:-35px -14px;z-index:-1;pointer-events:none;background:linear-gradient(90deg,transparent,#09131f99 55%,#09131fc9);mask-image:linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent)}
 .compass-over-hero .compass-links a{color:#edf3f7;text-shadow:0 1px 3px #000,0 0 9px #09131f}
 .compass-over-hero .compass-links::before{background:#c2d0db66}
 .compass-over-hero .compass-links a i{background:#132637;border-color:#c6d4df}
 .compass-over-hero .compass-links a[aria-current]{color:#f0d59f}
 .compass-over-hero .compass-links a[aria-current] i{background:#f0d59f;border-color:#f0d59f}
}
@media(min-width:1600px){
 .home-page{--home-index-width:126px;--home-index-right:22px}
 .compass-links{padding-right:12px}
 .compass-links::before{right:15px;top:38px;bottom:38px}
 .compass-links a{font-size:14px;min-height:52px;gap:13px}
}
@media(max-width:1099px){
 .home-compass{top:auto;bottom:calc(82px + env(safe-area-inset-bottom));right:16px;transform:none;width:auto;max-width:calc(100vw - 32px)}
 .compass-toggle{display:flex;align-items:center;min-height:44px;padding:12px 18px;border:1px solid #8e9da75c;border-radius:8px;background:#102431f5;color:#e3d2ac;font:13px/1.3 Arial,sans-serif;cursor:pointer;box-shadow:0 5px 25px #0006}
 .compass-toggle>span{display:none}
 .compass-links{display:none;position:absolute;bottom:calc(100% + 10px);right:0;min-width:180px;padding:14px 20px;border:1px solid #8e9da75c;border-radius:17px;background:#102431fa;box-shadow:0 12px 30px #0006}
 .home-compass.is-open .compass-links{display:flex}
 .compass-links::before{content:none}
 .compass-links a{font-size:14px;min-height:43px;justify-content:space-between;gap:24px}
}
@media(max-width:760px){
 .home-page .hero-mobile-actions{display:none}
 .home-compass{left:50%;right:auto;bottom:calc(20px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100vw - 40px)}
 body:has(.mobile-back-top:not([hidden])) .home-compass{bottom:calc(82px + env(safe-area-inset-bottom))}
 .compass-links{left:50%;right:auto;transform:translateX(-50%);width:min(290px,calc(100vw - 40px));max-height:calc(100dvh - 190px);overflow-y:auto}
 .home-compass .compass-toggle,.home-page .mobile-back-top{min-height:44px;padding:11px 17px;border:1px solid #9bb0c08c;border-radius:8px;background:linear-gradient(180deg,#193244f5,#102431fa);color:#e7eef3;font:400 13px/1.3 Arial,sans-serif;box-shadow:inset 0 1px 0 #d4e4ee0b,0 5px 18px #0005;text-shadow:none}
 .home-compass .compass-toggle:hover,.home-page .mobile-back-top:hover{background:#243e50;border-color:#c8ae7c;color:#f0d7a6}
 .home-compass.is-open .compass-toggle{border-color:#c8ae7c;color:#f0d7a6}
 .home-compass .compass-toggle:focus-visible,.home-page .mobile-back-top:focus-visible{outline:2px solid #d6bd8d;outline-offset:4px}
 /* Existing notices keep their text, consent handling and display frequency. */
 .home-page .home-discord-invite,.home-page:has(.mobile-back-top:not([hidden])) .home-discord-invite{bottom:var(--mobile-index-clearance,142px);max-height:calc(100dvh - var(--mobile-index-clearance,142px) - 80px)}
 .home-page .home-discord-invite{overflow:visible}
 .home-page:has(.home-compass.is-open) .home-discord-invite{overflow:auto}
 .home-page .release-consent{bottom:var(--mobile-index-clearance,142px);max-height:calc(100dvh - var(--mobile-index-clearance,142px) - 24px)}

}
@media(max-width:760px) and (max-height:650px){.home-page .home-discord-invite{overflow:auto}}
@media(prefers-reduced-motion:reduce){.compass-links a{transition:none}}

/* Keep every large-screen section link above the floating broadcast. */
@media(min-width:1600px) and (min-height:720px){
 .home-page:has(.live-floating:not([hidden]):not(.is-docked)) .home-compass{top:auto;bottom:364px;transform:none}
 .home-page:has(.live-floating:not([hidden]):not(.is-docked)) .compass-links a{min-height:clamp(26px,calc((100dvh - 500px)/7),46px)}
}

@media(min-width:1600px) and (min-height:720px){.home-page:has(.live-floating:not([hidden]):not(.is-docked)):has(.release-consent:not([hidden])) .home-compass{bottom:460px}}
