/* 0001E · Biblioteca Renacer · premium pass v1 · staging only */
.libraryPage .topbar{height:72px;padding:0 clamp(14px,4vw,54px);gap:18px}
.libraryPage .brand{min-height:48px;text-decoration:none}
.libraryPage .brand img{width:46px;height:46px;object-fit:cover}
.libraryPage .menuBtn{position:static!important;display:inline-flex!important;align-items:center;justify-content:center;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;border:1px solid rgba(216,178,78,.5);border-radius:14px;background:rgba(255,255,255,.045);color:#f1cf73!important;cursor:pointer}
.libraryPage .menuBtn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.libraryPage .menuBtn:hover{background:rgba(216,178,78,.1)}
.libraryPage .menuBtn:focus-visible,.libraryPage .brand:focus-visible,.libraryBackHome:focus-visible{outline:3px solid #f0c968;outline-offset:3px}
.libraryPage .search{display:grid;grid-template-columns:minmax(220px,1.15fr) minmax(190px,.85fr);gap:10px;min-width:min(100%,520px)}
.libraryPage .search input,.libraryPage .search select{min-height:48px;width:100%;min-width:0;padding:12px 16px}
.libraryPage .search input:focus-visible,.libraryPage .search select:focus-visible{outline:3px solid #f0c968;outline-offset:2px}
.libraryPage .book .buttons .btn{min-height:44px;font-size:12px;padding:10px 12px}
.libraryPage .book .cat{font-size:11px;line-height:1.35}
.libraryEmptyState{margin:26px 0 0;padding:28px 22px;border:1px solid rgba(216,178,78,.38);border-radius:18px;background:rgba(255,255,255,.035);color:#dce7ef;text-align:center;font:15px/1.55 Arial,sans-serif}
.libraryEmptyState strong{display:block;margin-bottom:6px;color:#fff1ca;font:600 22px/1.2 Georgia,'Times New Roman',serif}
.libraryPage .modalTop button{min-width:44px;min-height:44px;border-radius:10px}
.libraryPage .modalTop button:focus-visible{outline:3px solid #f0c968;outline-offset:2px}
@media(max-width:760px){
  .libraryPage .topbar{height:68px;padding:0 14px}.libraryPage .brand b{font-size:12px}.libraryPage .brand small{font-size:9.5px}
  .libraryPage .search{grid-template-columns:1fr;min-width:0;width:100%}
  .libraryPage .book h3{font-size:18px;line-height:1.22}.libraryPage .book .buttons .btn{min-height:46px;font-size:12px}
  .libraryRoomStats span{font-size:10px}.libraryEmptyState{margin-top:20px;padding:24px 18px}
}
@media(prefers-reduced-motion:reduce){.libraryPage .book,.libraryPage .menuBtn{transition:none!important}}

/* K143 · Biblioteca: acento rubi y oro sobre la base oscura (sin azul sobre azul). No toca textos ni portadas. */
html body .libraryRoomHero{background:radial-gradient(ellipse at 50% 0%,rgba(150,22,48,.42) 0%,rgba(96,10,30,.3) 38%,rgba(14,10,22,0) 72%),linear-gradient(180deg,#1a0a16 0%,#12091a 55%,#0c0a14 100%)!important;border-bottom:1px solid rgba(243,205,104,.55)!important}
html body .libraryRoomStats span,html body .libraryRoomStats li,html body .libraryRoomStats>*{border-color:rgba(243,205,104,.6)!important;background:linear-gradient(180deg,rgba(168,18,48,.34),rgba(70,6,22,.5))!important;color:#ffe9a8!important;box-shadow:inset 0 1px 0 rgba(255,244,205,.35),0 2px 0 rgba(90,50,8,.7)}
html body .libraryBackHome{color:#ffe9a8!important;border-bottom-color:rgba(243,205,104,.6)!important}
html body .section.dark{background:linear-gradient(180deg,#0e0a16 0%,#150a14 100%)!important}
html body .search input,html body .search select,html body .section.dark input,html body .section.dark select{border:1.5px solid rgba(243,205,104,.55)!important;background:linear-gradient(180deg,rgba(120,14,38,.3),rgba(30,6,16,.55))!important;color:#fff3d0!important}
html body .tetelestaiCollection{border-color:rgba(243,205,104,.6)!important;background:linear-gradient(180deg,rgba(110,12,34,.38) 0%,rgba(20,10,18,.9) 40%,#0f0a14 100%)!important}
html body .tetelestaiCollectionMeta span{border-color:rgba(243,205,104,.55)!important;background:rgba(120,14,38,.4)!important;color:#ffe9a8!important}
html body .tetelestaiLangSwitch{border-color:rgba(243,205,104,.55)!important;background:rgba(70,6,22,.55)!important}
html body .tetelestaiBookCard{border-color:rgba(243,205,104,.45)!important}

/* K145 · Biblioteca: fondo general y franja del catalogo en vino/rubi (quita el azul restante). */
html body.libraryPage{background:linear-gradient(180deg,#14091a 0%,#12081a 58%,#0b0912 100%)!important}
html body.libraryPage section#biblioteca.section.dark{background-color:transparent!important;background-image:radial-gradient(circle at 12% 8%,rgba(168,18,48,.26),rgba(0,0,0,0) 34%),radial-gradient(circle at 90% 30%,rgba(120,14,38,.2),rgba(0,0,0,0) 36%),linear-gradient(180deg,#160a18 0%,#12091a 100%)!important}
html body.libraryPage .libraryRoomHero~*{--lib-wine:1}

/* K146 · Biblioteca: Catalogo General en el mismo panel vino/oro que la Serie Tetelestai; portadas sin borde claro (recorte fino). */
html body.libraryPage #bookGrid{background:linear-gradient(180deg,rgba(110,12,34,.4) 0%,rgba(20,10,18,.92) 38%,#0f0a14 100%)!important;border:1.5px solid rgba(243,205,104,.6)!important;border-radius:24px!important;padding:14px 11px 16px!important;box-shadow:inset 0 1px 0 rgba(255,244,205,.18),0 10px 26px rgba(0,0,0,.45)!important}
html body.libraryPage #bookGrid .book{background:linear-gradient(180deg,#16101c 0%,#0f0a14 100%)!important;border:1.5px solid rgba(243,205,104,.45)!important}
html body.libraryPage #bookGrid .book .body{background:transparent!important}
html body.libraryPage #bookGrid .bookCover{background:#0f0a14!important;overflow:hidden!important}
html body.libraryPage #bookGrid .bookCover img{transform:scale(1.05)!important;transform-origin:50% 50%!important;display:block}
html body.libraryPage #bookGrid .btn.gold,html body.libraryPage #bookGrid .btn.ghost{border-color:rgba(243,205,104,.6)!important}
