@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Young+Serif&display=swap');
:root{color-scheme:dark;--ink:#fff1e2;--muted:#cdb8d2;--bg:#140d22;--violet:#261735;--line:#67487c;--gold:#ffd06a;--pink:#ef4a86;--turquoise:#98eed8}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at top,#352047,var(--bg) 45rem);color:var(--ink);font:1rem/1.55 "DM Sans",system-ui,sans-serif}
a{color:inherit}img{display:block;max-width:100%;height:auto}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}button:disabled{opacity:.5;cursor:default}
button,input,select{background:#291d3a;border:1px solid #9574a9;border-radius:.45rem;padding:.45em .7em}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--turquoise);outline-offset:4px}
[hidden]{display:none!important}.skip{position:absolute;top:-5rem;left:1rem;z-index:10;background:var(--bg);padding:.8rem}.skip:focus{top:.5rem}
.site-header,footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem clamp(1rem,5vw,5rem);background:#140d22;border-bottom:1px solid #432f56}
.site-header nav{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem 1.2rem}.site-header nav a{text-decoration:none;color:var(--muted);font-weight:700;font-size:.92rem}.site-header nav a:hover,.site-header nav a[aria-current]{color:var(--gold)}
.brand{flex:none;width:88px}.brand img{max-height:64px;object-fit:contain}
.button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;text-align:center;text-decoration:none;border-radius:.55rem;padding:.65rem 1.15rem;font-weight:700;line-height:1.15;border:1px solid transparent;transition:transform .18s,background .18s}
.button:hover{transform:translateY(-2px)}.button.solid{background:var(--gold);color:#25102d;box-shadow:0 3px #a76046}.button.game{background:#8d2553;border-color:#f46c9f;color:white;box-shadow:0 3px #521437}.button.outline{border-color:var(--line);background:#21172f}
.actions{display:flex;flex-wrap:wrap;gap:.7rem}
h1,h2,h3{font-family:"Young Serif",Georgia,serif;font-weight:400;line-height:1.09;margin:0 0 .6em}h1{font-size:clamp(2.3rem,6vw,5.25rem)}h2{font-size:clamp(1.7rem,3.5vw,3rem)}h3{font-size:clamp(1.3rem,2.6vw,2rem)}p{margin:0 0 1rem}.eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:.19em;color:var(--turquoise);font-weight:700}
.hero{max-width:1500px;margin:auto;display:grid;grid-template-columns: .8fr 1.2fr;min-height:clamp(400px,47vw,660px);overflow:hidden;position:relative;background:#281133;border-bottom:2px solid #f45a67}
.hero-copy{padding:clamp(2rem,6vw,7rem) clamp(1.25rem,6vw,6rem);align-self:center;position:relative;z-index:1}.hero-copy h1 img{width:clamp(185px,27vw,380px);filter:drop-shadow(0 10px 25px #170924)}.intro{font-size:clamp(1.05rem,2vw,1.45rem);margin-bottom:1.5rem}
.hero-art{position:relative;display:grid;overflow:hidden}.hero-art img{width:100%;height:100%;object-fit:cover;object-position:center}.hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#281133,transparent 26%),linear-gradient(0deg,#28113366,transparent 35%);pointer-events:none}
.section,.page-heading{width:min(1120px,calc(100% - 2.5rem));margin:clamp(2rem,6vw,5.5rem) auto}.page-heading p:last-child,.welcome p:last-child,.pending{color:var(--muted)}.welcome{max-width:760px;text-align:center}.page-heading h1{margin-bottom:.2em}.book-detail .page-heading{width:auto;margin:0 0 1.25rem}
.book-grid,.two-up{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.book-card,.two-up article{background:var(--violet);border:1px solid var(--line);border-radius:1rem;padding:clamp(1rem,2vw,1.6rem)}
.book-card{display:grid;grid-template-columns:minmax(90px,.7fr) 1fr;align-items:center;gap:clamp(.8rem,2vw,1.7rem)}.cover img,.book-detail>img{border-radius:.4rem;box-shadow:0 12px 20px #0d0816;transition:transform .22s}.cover:hover img{transform:translateY(-5px) rotate(-2deg)}
.book-detail{display:grid;grid-template-columns:minmax(0,1fr) 1.45fr;align-items:center;gap:clamp(1.5rem,6vw,5rem)}.book-detail>img{width:min(100%,430px);max-height:570px;object-fit:contain;background:#251933}dl{display:grid;grid-template-columns:max-content 1fr;gap:.4rem 1rem}dt{color:var(--turquoise)}dd{margin:0}
.gallery,.universe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.gallery img{border-radius:.4rem}.filters{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.filters label{display:grid;gap:.3rem}
.universe-card{border:1px solid var(--line);background:#2b1a40;border-radius:1rem;overflow:hidden;text-decoration:none;transition:transform .2s}.universe-card:hover{transform:translateY(-4px);border-color:var(--gold)}.universe-card div{height:230px;display:grid;place-items:center;background:radial-gradient(ellipse at bottom,#634b78,#251630 70%)}.universe-card img{width:100%;height:100%;max-height:230px;padding:1rem;object-fit:contain}.universe-card h2,.universe-card p{margin:.65rem 1rem}.universe-card h2{font-size:1.4rem}.universe-card p{color:var(--turquoise)}
.expedition,.game-banner{display:grid;grid-template-columns:1fr 1.15fr;min-height:280px;overflow:hidden;border-radius:1rem;border:1px solid var(--line);background:linear-gradient(120deg,#362046,#261c55)}.expedition>div:first-child,.game-banner>div{padding:clamp(1.4rem,4vw,3rem);align-self:center}.expedition-art{display:flex;align-items:end;justify-content:center;overflow:hidden}.expedition-art img{width:44%;height:250px;object-fit:contain;align-self:end}.game-banner>img{width:100%;height:100%;object-fit:cover}.publisher{width:min(250px,65%);margin-bottom:1rem}
footer{border:0;border-top:1px solid #432f56;margin-top:3rem}.credits{display:flex;gap:clamp(.6rem,3vw,2rem);align-items:center;justify-content:center;flex-wrap:wrap}.credits img{width:clamp(75px,13vw,150px);max-height:45px;object-fit:contain}
.reading{background:#110c16}.reading footer{display:none}#lector{background:#110c16;min-height:80vh;text-align:center}#lector:fullscreen{overflow:auto}
.reader-header,.controls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.55rem;padding:.55rem 1rem;background:#21172d}.reader-header{justify-content:space-between}.reader-header h1{font-size:clamp(1rem,3vw,1.55rem);margin:0}.controls input{width:4.5rem}.controls label{display:inline-flex;align-items:center;gap:.3rem}progress{width:100%;height:.45rem;display:block;accent-color:var(--gold)}
#pages{--page-width:730px;display:flex;justify-content:center;gap:.15rem;padding:.55rem;overflow:auto}
#pages>img,.comic-page{width:min(96vw,var(--page-width));max-width:none;flex:none;object-fit:contain;align-self:start}#pages[data-spread=true]>img{width:min(47vw,calc(var(--page-width) * .75))}
#pages[data-mode=scroll]{flex-direction:column;align-items:center;gap:.6rem}.comic-page{aspect-ratio:4/5;background:#21172d;align-self:center}.comic-page img{width:100%;height:100%;object-fit:contain}
.zoom-75 #pages{--page-width:540px}.zoom-125 #pages{--page-width:915px}.zoom-150 #pages{--page-width:1095px}.zoom-200 #pages{--page-width:1460px}
:is(.zoom-125,.zoom-150,.zoom-200) #pages{justify-content:safe center}.zoom-125 #pages>img,.zoom-125 .comic-page{width:min(122vw,var(--page-width))}.zoom-150 #pages>img,.zoom-150 .comic-page{width:min(146vw,var(--page-width))}.zoom-200 #pages>img,.zoom-200 .comic-page{width:min(195vw,var(--page-width))}
@media(max-width:850px){.site-header{flex-wrap:wrap}.site-header nav{order:3;width:100%;padding-top:.65rem;border-top:1px solid #432f56}.book-grid{grid-template-columns:1fr}.book-card img{max-height:250px}.universe-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.hero{grid-template-columns:1fr}.hero-art{height:260px;grid-row:1}.hero-art:after{background:linear-gradient(0deg,#281133,transparent 40%)}.hero-copy{padding-top:0;margin-top:-1.3rem}.book-detail,.expedition,.game-banner,.two-up{grid-template-columns:1fr}.expedition-art img{height:155px}.publisher{width:55%}.universe-card div,.universe-card img{height:150px}.site-header nav{gap:.55rem 1rem}.reader-header{justify-content:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Portal palette from the red, turquoise and gold artwork. */
:root{--ink:#fff6e5;--muted:#ebd8e8;--bg:#28134f;--violet:#45235f;--line:#9763ad;--gold:#ffd269;--turquoise:#a9ffe6}
body:not(.reading){background:radial-gradient(ellipse at 94% 8%,#964580 0,transparent 34rem),radial-gradient(ellipse at 4% 36%,#48398f 0,transparent 46rem),var(--bg)}
.site-header,footer{background:#27124a;border-color:#8d4e91}
.header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}.header-actions .button{white-space:nowrap}
#menu-music{min-height:44px;background:#53316d;border-color:#b27fc4;font-weight:700}
#menu-music[aria-pressed=true]{background:#174f54;border-color:var(--turquoise);color:#d8fff4}
.button.game{background:#a81759;border-color:#ff8eb8;box-shadow:0 3px #671543}
.hero{background:linear-gradient(125deg,#741b50 0%,#a53158 54%,#ba4a4f 100%);grid-template-columns:1fr minmax(0,.95fr);min-height:0;border-bottom:3px solid #ffc86c}
.hero-copy{padding-block:clamp(2rem,5vw,5.5rem)}
.hero-art{align-items:center;justify-items:center;background:#a53c40}.hero-art img{object-fit:contain;max-height:610px}.hero-art:after{display:none}
.book-card:nth-child(1){background:linear-gradient(135deg,#722652,#472456);border-color:#ee84a9}
.book-card:nth-child(2){background:linear-gradient(135deg,#176068,#34346b);border-color:#62bfbb}
.book-card .actions{margin-top:1rem}.source-note{color:var(--muted);font-size:.9rem}
.expedition{background:linear-gradient(125deg,#19555f,#2c476a)}.expedition>img{width:100%;height:100%;object-fit:cover}
.game-banner{grid-template-columns:1fr;background:linear-gradient(125deg,#652765,#342b70);border-color:#e17b9e}
.game-art-link{display:block;overflow:hidden;background:#302152}.game-art-link img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;transition:transform .2s}.game-art-link:hover img{transform:scale(1.015)}
.game-banner>div{display:grid;justify-items:start;gap:.45rem}.game-banner>div :is(h2,p){margin:0}
.world-grid,.social-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.world-card,.social-card{overflow:hidden;border:1px solid #b976b2;border-radius:1rem;background:#4b265d}
.world-card:nth-child(even){background:#204d60;border-color:#648ebe}
.world-card img{aspect-ratio:16/10;width:100%;object-fit:cover}
.world-card>div{padding:1.1rem}.world-card h2{font-size:clamp(1.25rem,2.4vw,1.8rem)}.world-card p{color:var(--muted)}.world-card a{color:var(--turquoise)}
.social-card{display:grid;gap:.4rem;padding:1.2rem;text-decoration:none;background:linear-gradient(130deg,#762450,#4b367a);transition:transform .2s}
.social-card:nth-child(2){background:linear-gradient(130deg,#215961,#4b367a)}.social-card strong{font-size:1.3rem}.social-card:hover{transform:translateY(-4px);border-color:var(--gold)}
.profile-copy{max-width:770px;margin-inline:auto;font-size:1.12rem}.profile-copy .publisher{background:#502661;padding:1rem;border-radius:1rem}
@media(max-width:850px){.world-grid,.social-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.hero{grid-template-columns:1fr}.hero-art{height:auto;max-height:390px}.hero-art img{max-height:390px}.hero-copy{padding-top:1.4rem;margin:0}.world-grid,.social-grid{grid-template-columns:1fr}}

/* The panoramic illustration supplies its own background and keeps its aspect ratio. */
.hero{display:grid;grid-template-columns:1fr;width:100%;min-height:0;aspect-ratio:1672 / 941;isolation:isolate}
.hero-art{position:absolute;inset:0;z-index:-1;background:none}
.hero-art img{width:100%;height:100%;max-height:none;object-fit:contain}
.hero-copy{width:min(49%,680px);padding-inline:clamp(1rem,5vw,6rem)}
.hero-copy h1 img{width:min(100%,390px)}
.hero-copy .intro{max-width:27ch}
.page-banner{width:min(1400px,100%);margin:auto;min-height:290px;display:grid;grid-template-columns:1fr 1fr;position:relative;isolation:isolate;overflow:hidden;background:#344167;border-bottom:3px solid var(--gold)}
.page-banner .page-heading{width:auto;align-self:center;z-index:1;margin:0;padding:clamp(1.5rem,5vw,5rem)}
.page-banner .page-heading p:last-child{color:#fff1e2;max-width:36ch}
.banner-art{width:100%;height:100%;min-height:0;object-fit:cover;position:absolute;inset:0 0 0 auto;width:61%;z-index:-2}
.page-banner::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--banner-tone,#213c57) 0%,var(--banner-tone,#213c57) 31%,transparent 82%)}
.banner-biblioteca,.banner-volumen-1{--banner-tone:#6c234e}.banner-universo{--banner-tone:#163f60}.banner-autor{--banner-tone:#69293d}.banner-redes,.banner-volumen-2{--banner-tone:#155259}
.banner-editorial{display:block;background:#762e16}.banner-editorial .banner-art{position:relative;width:100%;height:auto;object-fit:contain;z-index:auto}.banner-editorial::after{display:none}.banner-editorial .page-heading{padding-block:1rem}.banner-editorial .page-heading h1{font-size:clamp(2rem,4vw,3.3rem)}
.publication{border:1px solid #db90a7;background:linear-gradient(125deg,#692951,#4b326f);border-radius:1rem;padding:clamp(1.1rem,3vw,2.4rem)}
.publication h2{font-size:clamp(1.6rem,3vw,2.4rem)}.publication ol{margin:1rem 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.publication li{border-left:3px solid var(--gold);padding:.3rem .8rem;display:grid;gap:.18rem}.publication li strong,.book-date{color:var(--gold);font-weight:700}.book-date{margin:0 0 .3rem}
.author-feature{display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);gap:clamp(1rem,5vw,4rem);align-items:center}
.author-feature>img{width:min(100%,375px);aspect-ratio:1;object-fit:cover;object-position:center 52%;border:4px solid #ffd179;border-radius:50%;justify-self:center}
.author-teaser>img{width:90px;aspect-ratio:1;object-fit:cover;border-radius:50%;float:right;margin:0 0 .5rem .7rem}
.instagram-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.instagram-grid article{min-width:0;padding:.9rem;background:#422660;border:1px solid #b976b2;border-radius:1rem}.instagram-grid h3{font-size:1.25rem}.instagram-grid iframe{display:block;width:100%;height:450px;border:0;border-radius:.65rem;background:white;margin-bottom:.75rem}
@media(max-width:850px){.instagram-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .hero{aspect-ratio:auto;background:#722644}.hero-art{position:relative;z-index:0;height:auto;max-height:none;grid-row:1}.hero-art img{height:auto;max-height:none}.hero-copy{width:100%;padding:1rem 1.25rem 1.5rem}.hero-copy h1 img{width:min(58%,230px)}
 .page-banner{grid-template-columns:1fr;min-height:210px}.page-banner::after{background:linear-gradient(90deg,var(--banner-tone) 1%,transparent 125%)}.banner-art{width:100%}
 .author-feature,.instagram-grid{grid-template-columns:1fr}.author-feature>img{width:190px}.publication ol{grid-template-columns:1fr}
}

.illustrated-route a{position:relative;display:grid;isolation:isolate;overflow:hidden;text-decoration:none;border:2px solid #f7bd67;border-radius:1rem;background:#29234d;min-height:clamp(260px,42vw,480px);align-items:end}
.illustrated-route img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .3s}
.illustrated-route a::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#211134 0%,#211134b8 31%,transparent 66%)}
.illustrated-route a:hover img{transform:scale(1.025)}.illustrated-route a>div{padding:clamp(1.25rem,4vw,3rem)}.illustrated-route span{color:var(--gold);font-weight:700}
.world-panorama{background:#452663;border:1px solid #b77bb4;border-radius:1rem;overflow:hidden}.world-panorama img{width:100%;height:auto}.world-panorama figcaption{padding:1rem 1.3rem}.world-panorama a{color:var(--turquoise)}
.site-header nav a[aria-current]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.32em}
@media(max-width:600px){.illustrated-route a{min-height:330px}.illustrated-route img{object-position:62% center}}

footer.portal-footer {
 display:block;
 padding:3.75rem clamp(1.25rem,5vw,5rem) 1.75rem;
 background:#06142e;
 border-top:1px solid #233552;
 color:#aab9cb;
}
.portal-footer-main,.portal-footer-bottom {width:min(100%,1120px);margin-inline:auto}
.portal-footer-main {display:grid;grid-template-columns:1.2fr repeat(3,.75fr);gap:clamp(1.3rem,4vw,3.15rem)}
.portal-footer-main>nav,.portal-footer-brand {display:grid;align-content:start;justify-items:start;gap:.5rem}
.portal-footer-brand img {width:155px;height:auto;margin-bottom:.65rem}
.portal-footer-brand p {margin:0}
.portal-footer-main nav strong {margin-bottom:.6rem;color:#fff;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase}
.portal-footer a {text-decoration:none;line-height:1.45}
.portal-footer a:hover {color:#fff;text-decoration:underline;text-underline-offset:.2em}
.portal-footer-bottom {display:flex;justify-content:space-between;flex-wrap:wrap;gap:.8rem 1.25rem;margin-top:3rem;padding-top:1.35rem;border-top:1px solid #233552;font-size:.83rem}
.portal-footer-bottom strong {color:#fff}
@media(max-width:820px) {.portal-footer-main {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px) {.portal-footer-main {grid-template-columns:1fr;gap:1.7rem}}
