@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap");

:root{
  --bg:#020506;
  --bg-soft:#0b1015;
  --bg-card:#0f141b;
  --bg-elev:#151b22;
  --ink:#f7f7f7;
  --text:#ffffff;
  --muted:#aeb5bc;
  --muted-2:#7f878f;
  --line:rgba(255,255,255,.10);
  --line-strong:rgba(255,255,255,.18);
  --accent:#f3f3f3;
  --accent-dark:#0b0d10;
  --glow:0 0 0 1px rgba(255,255,255,.72),0 0 20px rgba(255,255,255,.16);
  --shadow-lg:0 24px 60px rgba(0,0,0,.55);
  --shadow-md:0 10px 30px rgba(0,0,0,.4);
  --radius:18px;
  --radius-sm:10px;
  --wrap:min(1540px, calc(100vw - 48px));
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{
  margin:0;
  background:
    radial-gradient(circle at 70% 6%, rgba(44,51,61,.22), transparent 28%),
    linear-gradient(180deg, #05080a 0%, #020506 100%);
  color:var(--ink);
  font-family:"DM Sans", Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
img{max-width:100%;display:block}
[hidden]{display:none!important}
::selection{background:#fff;color:#000}

body::-webkit-scrollbar,.books-grid::-webkit-scrollbar,.filters::-webkit-scrollbar{height:10px;width:10px}
body::-webkit-scrollbar-track,.books-grid::-webkit-scrollbar-track,.filters::-webkit-scrollbar-track{background:#06090c}
body::-webkit-scrollbar-thumb,.books-grid::-webkit-scrollbar-thumb,.filters::-webkit-scrollbar-thumb{background:#212833;border-radius:5px;border:2px solid #06090c}

.wrap{width:var(--wrap);max-width:var(--wrap);margin:0 auto}

.notice{
  margin:14px auto 0;
  padding:12px 16px;
  border-radius:5px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
  color:#e9edf0;
  font-size:13px;
}
.notice a{text-decoration:underline}

.site-header{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  gap:34px;
  width:100%;
  padding:14px 24px;
  min-height:76px;
  backdrop-filter:blur(16px);
  background:linear-gradient(180deg, rgba(2,5,6,.94) 0%, rgba(2,5,6,.78) 100%);
}
.site-header.wrap{max-width:none}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:max-content;
}
.brand img{width:32px;height:42px;object-fit:contain;filter:brightness(1.08)}
.brand span{
  font-family:"Outfit", sans-serif;
  font-size:29px;
  font-weight:500;
  letter-spacing:-1.6px;
  line-height:1;
}
.site-header nav{
  display:flex;
  align-items:center;
  gap:36px;
  flex:1;
  min-width:0;
}
.site-header nav a{
  font-size:14px;
  font-weight:600;
  color:#d8dde2;
  padding:10px 0;
  border-bottom:2px solid transparent;
  transition:color .2s ease,border-color .2s ease;
}
.site-header nav a:hover,.site-header nav a:focus-visible{color:#fff}
.site-header nav a:first-child{color:#fff;border-color:#fff}

.button,
.inline-link,
.text-link,
.icon-button,
.danger-link{appearance:none;border:0;background:none;color:inherit;cursor:pointer}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 28px;
  border-radius:5px;
  font-size:15px;
  font-weight:700;
  line-height:1;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  will-change:transform;
}
.button:hover,.button:focus-visible{transform:translateY(-1px)}
.button.small{padding:15px 28px;font-size:14px;background:#f2f2f2;color:#0d1014;box-shadow:none;border:1px solid rgba(255,255,255,.75);margin-left:auto}
.button.small:hover,.button.small:focus-visible{box-shadow:0 8px 24px rgba(255,255,255,.10)}
.feature-actions .button:first-child,
.publish-strip .button,
#copy-link.button,
.review-form .button,
#submit-book.button{
  background:#f4f4f4;
  color:#090c10;
  border:1px solid rgba(255,255,255,.88);
  box-shadow:0 0 0 1px rgba(255,255,255,.05), 0 0 24px rgba(255,255,255,.12);
}
.feature-actions .button.ghost,
.publish-strip .button.ghost{
  background:rgba(7,11,14,.15);
  color:#fbfbfb;
  border:1px solid rgba(255,255,255,.55);
  box-shadow:none;
}
.inline-link,.text-link,.danger-link{
  padding:0;
  font-size:13px;
  font-weight:600;
  color:#eceff2;
  text-decoration:underline;
  text-decoration-color:rgba(255,255,255,.26);
  text-underline-offset:3px;
}
.inline-link:hover,.text-link:hover,.danger-link:hover{color:#fff;text-decoration-color:rgba(255,255,255,.7)}
.danger-link{color:#ffb0b0;text-decoration-color:rgba(255,176,176,.45)}
.icon-button{
  width:34px;height:34px;border-radius:5px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.18);
  color:#fff;background:rgba(10,14,18,.78);
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.icon-button:hover,.icon-button:focus-visible{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.32);transform:translateY(-1px)}

main{padding-bottom:56px}
.feature{
  position:relative;
  display:grid;
  grid-template-columns:43.5% 56.5%;
  align-items:start;
  min-height:392px;
  padding:0;
  width:var(--wrap);
  margin:0 auto 12px;
  overflow:hidden;
}
.feature-copy{
  position:relative;
  z-index:2;
  padding:14px 12px 0 4px;
}
.eyebrow{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#aab2b8;
}
.feature .eyebrow{display:none}
.feature h1{
  margin:8px 0 16px;
  font-family:"Outfit", "DM Sans", sans-serif;
  font-weight:800;
  font-size:clamp(60px, 5.45vw, 96px);
  line-height:.90;
  letter-spacing:-4px;
  color:#fff;
}
.feature h1 em{
  font-style:normal;
  background:linear-gradient(180deg,#fbfbfb 0%,#c8ced4 42%,#7a8188 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.feature-copy>p{
  margin:0 0 22px;
  max-width:540px;
  color:#f0f2f4;
  font-size:20px;
  line-height:1.28;
}
.feature-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.feature-actions .button{min-width:164px;padding:15px 28px}
.feature-art{
  min-height:392px;
  height:392px;
  border-radius:0;
  background:url("reference-hero.webp") center center / contain no-repeat;
  position:relative;
}
.feature-art .art-note,
.feature-art .door-art,
.feature-art .orbit{display:none}

.discovery{display:none}
.library{padding-top:0}
.library>.section-heading,
.library-tools,
.ai-collection{display:none}
#shelves{position:relative}
.shelf{margin:0 0 26px}
.shelf-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 10px;
}
.shelf-title h3{
  margin:0;
  font-family:"Outfit", sans-serif;
  font-size:19px;
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.3px;
}
.shelf-title h3 span{font-size:25px;color:#d7dce0;vertical-align:-2px}
.shelf-nav{display:flex;gap:8px}
.shelf-nav .icon-button{width:31px;height:31px;font-size:20px;border-color:rgba(255,255,255,.22)}
.books-grid{display:flex;gap:13px;overflow:auto;padding:3px 1px 12px;scroll-snap-type:x proximity}
.book-card{flex:0 0 auto;scroll-snap-align:start;min-width:0}
.cover-button{
  position:relative;
  width:100%;
  padding:0;
  border:0;
  border-radius:5px;
  overflow:hidden;
  background:#0c1015;
  box-shadow:0 6px 18px rgba(0,0,0,.32);
  transition:transform .2s ease, box-shadow .2s ease;
}
.cover-button:hover,.cover-button:focus-visible{transform:translateY(-2px);box-shadow:var(--glow)}
.cover-button img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease, filter .25s ease;
}
.cover-button:hover img,.cover-button:focus-visible img{transform:scale(1.03);filter:brightness(1.08)}
.selected-cover{box-shadow:0 0 0 2px rgba(255,255,255,.8),0 0 24px rgba(255,255,255,.22)}
.selected-cover::after{
  content:"";
  position:absolute;inset:0;
  border:1px solid rgba(255,255,255,.5);
  border-radius:5px;
  pointer-events:none;
}
.shelf-featured .book-card{width:calc((var(--wrap) - 7 * 13px) / 8)}
.shelf-featured .cover-button{aspect-ratio:1 / 1.06}
.shelf-compact{display:inline-block;vertical-align:top;width:49.3%;padding-right:1.4%}
.shelf-compact:nth-of-type(n/**/+4){width:32.8%;padding-right:1%}
.shelf-compact .books-grid{gap:12px;padding-top:2px}
.shelf-compact .book-card{width:calc((var(--wrap) * .486 - 5 * 12px) / 6)}
.shelf-compact:nth-of-type(n/**/+4) .book-card{width:calc((var(--wrap) * .318 - 3 * 10px) / 4)}
.shelf-compact .cover-button{aspect-ratio:1.78 / 1}
.shelf-compact:nth-of-type(n/**/+4) .cover-button{aspect-ratio:1.23 / 1}
.book-card h4{margin:8px 0 3px;font-size:12px;font-weight:700;line-height:1.2;color:#fff}
.book-card p{margin:0;font-size:10px;line-height:1.25;color:var(--muted)}
.card-meta{
  position:absolute;left:8px;right:8px;bottom:8px;
  display:flex;align-items:center;gap:8px;
  min-height:28px;padding:6px 8px;
  border-radius:5px;
  background:rgba(6,9,12,.78);
  color:#fff;font-size:10px;font-weight:600;
  backdrop-filter:blur(8px);
}
.badge-pill{left:auto;right:8px;min-height:22px;padding:4px 8px;background:rgba(0,0,0,.62);font-size:11px}
.preview-meta{justify-content:space-between;padding-right:10px}
.preview-meta .play-circle{
  width:20px;height:20px;border-radius:5px;border:1px solid rgba(255,255,255,.8);
  display:inline-flex;align-items:center;justify-content:center;font-size:10px;line-height:1;flex:0 0 20px
}
.preview-meta .meta-bookmark{margin-left:auto;font-size:15px;line-height:1;opacity:.92}

.empty-state{
  display:grid;place-items:center;gap:8px;
  padding:48px 24px;border-radius:5px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.03);text-align:center
}
.empty-symbol{font-size:28px;color:#dfe4e8}
.empty-state h3{margin:0;font-size:22px;font-family:"Outfit",sans-serif}
.empty-state p{margin:0;color:var(--muted)}
.demo-preview{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:#fff}

.publish-strip{
  margin-top:38px;
  display:flex;align-items:center;justify-content:space-between;gap:22px;
  padding:26px 30px;
  border:1px solid var(--line);
  border-radius:5px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  box-shadow:var(--shadow-md);
}
.publish-strip h2{margin:0 0 6px;font-family:"Outfit",sans-serif;font-size:34px;letter-spacing:-1.2px}
.publish-strip p{margin:0;color:var(--muted)}

.footer{
  margin-top:42px;
  padding:26px 0 48px;
  border-top:1px solid rgba(255,255,255,.06);
  color:var(--muted);
}
.footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.footer .brand span{font-size:24px}
.footer .brand img{width:27px;height:35px}
.footer p,.footer span,.footer a,.footer button{font-size:12px}
.footer>div>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap}

/* dialogs */
dialog{
  border:1px solid rgba(255,255,255,.10);
  border-radius:5px;
  padding:0;
  background:linear-gradient(180deg, rgba(13,18,24,.98), rgba(11,16,22,.98));
  color:#fff;
  box-shadow:0 40px 100px rgba(0,0,0,.65);
}
dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(10px)}
.dialog-close{
  position:absolute;top:18px;right:18px;z-index:5;
  width:34px;height:34px;border-radius:5px;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);
}
.book-dialog{width:min(780px, calc(100vw - 36px));max-height:calc(100vh - 52px);overflow:auto}
.publish-dialog,.info-dialog{width:min(860px, calc(100vw - 36px));max-height:calc(100vh - 52px);overflow:auto}
#book-detail,.publish-dialog > *,#review-manage-detail,.info-dialog > *{position:relative}
.book-dialog #book-detail{padding:34px 36px 30px}
.popup-heading{padding:34px 34px 0}
#pubblica{padding:14px 34px 34px}
#review-manage-detail,.info-dialog{padding:34px}

.detail-top{
  display:grid;
  grid-template-columns:185px 1fr;
  gap:26px;
  align-items:start;
  margin-bottom:26px;
}
.detail-top img{width:185px;height:auto;border-radius:5px;box-shadow:0 10px 28px rgba(0,0,0,.36)}
.pill{
  display:inline-flex;align-items:center;min-height:18px;padding:2px 8px;margin-bottom:12px;
  border-radius:5px;background:rgba(255,255,255,.10);color:#f2f4f7;font-size:10px;font-weight:700;text-transform:none
}
.ai-pill{display:inline-flex}
.book-dialog h2,.publish-dialog h2,.info-dialog h2,#review-manage-detail h2{
  margin:0 0 10px;
  font-family:"Outfit",sans-serif;
  font-size:31px;
  line-height:1;
  letter-spacing:-1.3px;
}
.detail-top p{margin:0 0 10px;color:#d6dbe0}
.detail-top .button{margin-top:14px}
.detail-text h3,.managed-review h5,.info-dialog h3{
  margin:0 0 12px;
  font-family:"Outfit",sans-serif;
  font-size:18px;
  letter-spacing:-.4px;
}
.detail-text{display:grid;gap:24px}
.detail-text p{margin:0;color:#dce0e4;font-size:15px;line-height:1.62}
.reading{
  padding-left:18px;
  border-left:2px solid rgba(221,190,101,.7);
  color:#f0f2f4!important;
}
.ai-process{
  background:linear-gradient(180deg, rgba(57,78,33,.60), rgba(49,65,30,.72));
  border:1px solid rgba(157,196,86,.14);
  border-radius:5px;
  padding:16px 18px;
}
.ai-process .eyebrow{margin-bottom:10px}
.detail-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:18px;padding-top:2px}
.detail-actions .text-link{font-size:13px}

.reviews-panel{margin-top:22px;padding-top:22px;border-top:1px solid rgba(255,255,255,.08)}
.reviews-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:8px}
.reviews-heading h3{margin:0;font-family:"Outfit",sans-serif;font-size:22px;letter-spacing:-.4px}
.review-disclaimer,.fine,.field-note{color:var(--muted);font-size:12px;line-height:1.5}
.review-disclaimer{margin:0 0 16px}
.reader-review{
  padding:16px 0;
  border-top:1px solid rgba(255,255,255,.06);
}
.reader-review:first-child{border-top:0}
.review-byline{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.review-byline h4{margin:0;font-size:16px;font-weight:700}
.review-stars{color:#fff;letter-spacing:.15em;font-size:13px}
.review-meta{margin:6px 0 12px;color:var(--muted);font-size:12px}
.reader-review h5{margin:14px 0 6px;font-size:13px}
.reader-review p{margin:0;color:#dfe3e7;font-size:14px;line-height:1.55}
.spoiler{padding:10px 12px;border-radius:5px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.spoiler summary{cursor:pointer;font-weight:700;font-size:13px}
.review-form,.report-form,.book-form{display:grid;gap:14px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
label{display:grid;gap:8px;font-size:13px;font-weight:600;color:#f2f4f7}
input,textarea,select{
  width:100%;
  padding:13px 14px;
  border-radius:5px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#fff;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input::placeholder,textarea::placeholder{color:#7e8791}
input:focus,textarea:focus,select:focus{border-color:rgba(255,255,255,.34);box-shadow:0 0 0 4px rgba(255,255,255,.06);background:rgba(255,255,255,.055)}
textarea{resize:vertical;min-height:92px}
select{appearance:none;background-image:linear-gradient(45deg, transparent 50%, #cfd4d9 50%),linear-gradient(135deg, #cfd4d9 50%, transparent 50%);background-position:calc(100% - 18px) calc(1em + 5px),calc(100% - 13px) calc(1em + 5px);background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:42px}
.checkbox{grid-template-columns:auto 1fr;align-items:start;gap:12px;color:#dde2e7;font-weight:500}
.checkbox input{width:18px;height:18px;margin-top:2px;padding:0}
.checkbox span small{display:block;margin-top:6px}
.form-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-top:4px}
.form-message{min-height:20px;margin:0;color:#dbe1e6;font-size:12px}
.form-message.error{color:#ffb3b3}
.cover-label input[type=file]{display:none}
.upload-area{
  display:grid;place-items:center;min-height:190px;padding:16px;border-radius:5px;
  background:rgba(255,255,255,.04);border:1px dashed rgba(255,255,255,.18);text-align:center;color:#e8ebee
}
.upload-area b{display:block;font-size:17px;margin-bottom:8px}
.upload-area img{max-height:240px;width:auto;border-radius:5px;box-shadow:0 10px 24px rgba(0,0,0,.3)}
.captcha-row{display:grid;grid-template-columns:auto auto 1fr;align-items:end;gap:12px}
.captcha-row img{border-radius:5px;border:1px solid rgba(255,255,255,.12);background:#fff;min-height:66px}
.honeypot{display:none!important}
.review-receipt,.managed-review{padding-top:8px}
#private-link,#review-private-link{margin-top:8px}

.search{
  display:flex;align-items:center;gap:10px;padding:0 16px;height:50px;border-radius:5px;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);max-width:360px
}
.search input{background:none;border:0;padding:0;box-shadow:none}
.filters{display:flex;gap:10px;overflow:auto}
.filters button{
  padding:11px 16px;border-radius:5px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.045);
  color:#dfe4e9;font-size:13px;font-weight:600;white-space:nowrap
}
.filters button.active{background:#f1f1f1;color:#111317}
.section-heading h2{margin:0;font-family:"Outfit",sans-serif;font-size:34px;letter-spacing:-1.2px}
.collection-intro{color:var(--muted)}
.accent{color:#fff}

@media (max-width:1360px){
  :root{--wrap:min(1260px, calc(100vw - 42px))}
  .feature{grid-template-columns:46% 54%;min-height:360px}
  .feature-art,.feature{min-height:360px;height:auto}
  .shelf-featured .book-card{width:188px}
  .shelf-compact .book-card,.shelf-compact:nth-of-type(n/**/+4) .book-card{width:150px}
}

@media (max-width:1080px){
  .site-header{gap:24px;padding-inline:18px}
  .site-header nav{gap:22px}
  .feature{grid-template-columns:1fr;min-height:auto;gap:12px}
  .feature-copy{padding-top:6px}
  .feature-art{height:300px;min-height:300px;background-position:center center}
  .shelf-compact,.shelf-compact:nth-of-type(n/**/+4){display:block;width:100%;padding-right:0}
  .shelf-compact .book-card,.shelf-compact:nth-of-type(n/**/+4) .book-card{width:160px}
  .publish-strip{flex-direction:column;align-items:flex-start}
  .footer .wrap{flex-direction:column;align-items:flex-start}
}

@media (max-width:760px){
  :root{--wrap:calc(100vw - 24px)}
  .site-header{min-height:68px;padding:12px}
  .brand span{font-size:24px}
  .site-header nav a{display:none}
  .site-header nav .button.small{padding:12px 16px;font-size:12px}
  .feature-copy{padding-inline:2px}
  .feature h1{font-size:clamp(42px, 12vw, 72px);letter-spacing:-2.3px}
  .feature-copy>p{font-size:16px;max-width:unset}
  .feature-actions .button{min-width:0;padding:13px 18px;font-size:14px}
  .feature-art{height:230px;min-height:230px;background-size:cover}
  .shelf-title{gap:12px}
  .shelf-title h3{font-size:18px}
  .shelf-featured .book-card{width:148px}
  .shelf-compact .book-card,.shelf-compact:nth-of-type(n/**/+4) .book-card{width:136px}
  .detail-top,.form-row,.captcha-row{grid-template-columns:1fr}
  .book-dialog #book-detail,.popup-heading,#pubblica,#review-manage-detail,.info-dialog{padding:24px}
  .dialog-close{top:12px;right:12px}
  .publish-strip h2,.section-heading h2{font-size:28px}
  .detail-top img{width:160px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* v7 — rotating cinematic hero & responsive consistency */
.feature{position:relative;isolation:isolate;min-height:398px}
.feature .hero-frame{display:grid;grid-template-columns:43.5% 56.5%;width:100%;height:100%;min-height:398px;align-items:start;overflow:hidden}
.feature .hero-frame.hero-enter{animation:heroFadeIn .78s cubic-bezier(.2,.7,.3,1) both}
@keyframes heroFadeIn{from{opacity:0;filter:blur(7px)}to{opacity:1;filter:blur(0)}}
.hero-kicker{display:block;color:#ced4da;font-size:11px;letter-spacing:.22em;font-weight:700;text-transform:uppercase;margin:22px 0 12px}
.feature h1.hero-title{font-size:clamp(48px,5vw,84px);line-height:.97;letter-spacing:-.055em;overflow-wrap:anywhere;text-wrap:balance;max-width:630px}
.feature .hero-author{margin:0 0 18px;color:#d5dade;font-size:16px}
.feature .hero-description{max-width:550px;font-size:17px;line-height:1.45;color:#e3e7ea;margin:0 0 24px}
.hero-visual{min-width:0;height:398px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at 52% 40%,#303640 0%,#11171c 34%,#020506 74%)}
.hero-visual::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#020506 0%,transparent 25%,transparent 75%,#020506 100%);z-index:1;pointer-events:none}
.hero-visual img{height:94%;max-width:70%;width:auto;object-fit:contain;box-shadow:0 20px 50px #000b;border-radius:5px;filter:drop-shadow(0 0 25px #ffffff1e)}
.hero-visual>span{position:absolute;right:6%;bottom:10%;z-index:2;font-size:10px;letter-spacing:.2em;font-weight:800;color:#fff;background:#020506b0;padding:11px 14px;border:1px solid #ffffff2b;border-radius:5px}
.hero-controls{position:absolute;z-index:8;right:20px;bottom:9px;display:flex;align-items:center;gap:12px}
.hero-controls>button,.hero-dots button{cursor:pointer;color:#fff;background:#0b0f14be;border:1px solid #ffffff52}
.hero-controls>button{width:30px;height:30px;display:grid;place-items:center;border-radius:5px;font-size:23px;line-height:1}
.hero-controls>button:hover,.hero-controls>button:focus-visible{background:#ffffff25}
.hero-dots{display:flex;gap:6px;align-items:center}
.hero-dots button{width:6px;height:6px;padding:0;border:0;border-radius:5px;background:#ffffff70;transition:width .2s,background .2s}
.hero-dots button.on{width:20px;border-radius:5px;background:#fff}
.hero-embed{width:100%;height:100%;min-height:280px;position:relative;z-index:3;background:#000}
.hero-embed iframe{width:100%;height:100%;border:0}
.hero-video-close{position:absolute;z-index:5;right:8px;top:8px;border:1px solid #fff8;background:#111c;color:white;cursor:pointer;width:38px;height:38px;border-radius:5px;font-size:22px}
.detail-trailer{margin:-4px 0 24px}
.detail-trailer .button{background:#202730;color:#fff;border:1px solid #ffffff45;box-shadow:none}
@media(max-width:1080px){
 .feature{display:block;min-height:0;height:auto;margin-bottom:12px}
 .feature .hero-frame{grid-template-columns:1fr 1fr;min-height:400px}
 .feature .feature-copy{padding-top:20px}
 .feature .feature-art{height:400px;min-height:400px;background-size:contain}
 .hero-visual{height:400px}
 .feature h1{font-size:clamp(48px,6.2vw,76px)}
 .feature .hero-title{font-size:clamp(45px,5.3vw,70px)}
 .shelf-compact .books-grid,.shelf-featured .books-grid{width:100%}
}
@media(max-width:760px){
 html{scroll-padding-top:74px}
 .site-header{gap:8px;min-height:64px;padding:10px 13px}
 .brand{gap:7px}.brand img{width:27px;height:36px}.brand span{font-size:23px;letter-spacing:-1.3px}
 .site-header nav{margin-left:auto;flex:0 0 auto;gap:0}
 .site-header nav .button.small{margin-left:0;padding:10px 12px;font-size:11px;white-space:nowrap}
 .feature{width:100%;min-height:0;margin-top:0}
 .feature .hero-frame{display:flex;flex-direction:column;min-height:0;height:auto}
 .feature .feature-copy{width:100%;padding:21px 18px 14px;order:1}
 .feature h1{margin:3px 0 14px;font-size:clamp(44px,10.1vw,72px);letter-spacing:-2.5px;line-height:.95}
 .feature .hero-title{font-size:clamp(42px,9vw,63px);letter-spacing:-2px;margin:6px 0 10px;line-height:1.02}
 .feature-copy>p{font-size:15px;line-height:1.34;margin-bottom:14px}
 .feature .hero-description{font-size:14px;margin-bottom:15px;line-height:1.4}
 .hero-kicker{margin:2px 0 10px;font-size:10px}
 .feature .hero-author{font-size:13px;margin-bottom:10px}
 .feature-actions{gap:9px}
 .feature-actions .button{padding:12px 14px;font-size:12px;min-width:0;white-space:nowrap}
 .feature .feature-art{order:2;width:100%;min-height:0;height:190px;background-size:auto 100%;background-position:center center}
 .feature .hero-visual{order:2;width:100%;height:200px;background:radial-gradient(ellipse at 50% 40%,#222d34,#020506 76%)}
 .hero-visual img{height:95%;max-width:55%}
 .hero-visual>span{right:7%;bottom:15%;font-size:9px}
 .hero-controls{position:relative;right:auto;bottom:auto;justify-content:center;width:100%;padding:6px 0 10px;background:#020506}
 .shelf{margin-bottom:19px}
 .shelf-title{margin-bottom:6px}.shelf-title h3{font-size:17px}
 .shelf-compact,.shelf-compact:nth-of-type(n/**/+4){width:100%;display:block}
 .shelf-featured .book-card{width:142px}
 .shelf-compact .book-card,.shelf-compact:nth-of-type(n/**/+4) .book-card{width:148px}
 .books-grid{padding-bottom:9px}
 .publish-strip{padding:20px;border-radius:5px}
 .book-dialog,.publish-dialog,.info-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:5px}
 .book-dialog #book-detail,.popup-heading,#pubblica,#review-manage-detail,.info-dialog{padding:20px}
 .detail-top{grid-template-columns:110px minmax(0,1fr);gap:15px;margin-bottom:22px;padding-right:20px}
 .detail-top img{width:110px;max-height:170px;object-fit:contain}
 .book-dialog h2,.publish-dialog h2,.info-dialog h2,#review-manage-detail h2{font-size:clamp(23px,6vw,30px);letter-spacing:-.7px;overflow-wrap:anywhere}
 .detail-top p{font-size:12px}.detail-top .button{padding:10px 12px;font-size:12px;white-space:normal;text-align:center}
 .detail-text{gap:16px}.detail-text p{font-size:14px;line-height:1.55}
 .review-form,.report-form,.book-form{gap:12px}
 .form-row{grid-template-columns:1fr}
 .captcha-row{grid-template-columns:minmax(0,1fr) 36px;align-items:center}
 .captcha-row label{grid-column:1/-1}
 .captcha-row img{width:210px;max-width:100%}
 .reviews-heading{flex-direction:column}
 .footer .wrap{align-items:flex-start}
}
@media(max-width:370px){.brand span{font-size:20px}.site-header nav .button.small{font-size:10px;padding:9px 10px}.feature h1{font-size:42px}.feature-actions .button{font-size:11px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.feature .hero-frame.hero-enter{animation:none}.hero-dots button{transition:none}}
/* The hero's rotating frame is the grid owner, not the outer container. */
.feature{display:block}


/* Expanded book preview — elevated above the shelves, not clipped by sliders */
.book-hover-preview{
  position:fixed;z-index:999;
  width:330px;max-width:calc(100vw - 24px);
  overflow:hidden;border-radius:5px;
  background:#14191f;color:#fff;
  border:1px solid rgba(255,255,255,.17);
  box-shadow:0 25px 65px rgba(0,0,0,.82),0 0 0 1px rgba(255,255,255,.05);
  transform:translateY(8px) scale(.96);opacity:0;
  transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s ease;
}
.book-hover-preview.is-visible{transform:translateY(0) scale(1);opacity:1}
.book-hover-preview .hover-cover{height:170px;overflow:hidden;background:radial-gradient(ellipse,#313943,#090c0f)}
.book-hover-preview .hover-cover img{height:100%;width:100%;object-fit:cover;object-position:center 38%}
.book-hover-preview .hover-body{padding:16px 18px 19px}
.book-hover-preview .hover-category{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#aeb9c3;font-weight:700}
.book-hover-preview h3{font:700 23px/1.08 "Outfit",sans-serif;letter-spacing:-.65px;margin:7px 0 4px}
.book-hover-preview .hover-author{color:#c2c9d0;font-size:12px}
.book-hover-preview p{font-size:13px;color:#e0e5ea;line-height:1.45;margin:13px 0 16px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.book-hover-preview .hover-open{width:100%;border:0;border-radius:5px;padding:12px 17px;background:#f2f2f2;color:#111;font-weight:700;font-size:13px;cursor:pointer;display:flex;justify-content:space-between;align-items:center}
.book-hover-preview .hover-open:hover{background:#fff}
@media (hover:none),(pointer:coarse){.book-hover-preview{display:none!important}}
@media(prefers-reduced-motion:reduce){.book-hover-preview{transition:none}}

/* Classifiche automatiche: in fondo, dopo tutte le categorie. */
.ranking-collections{clear:both;display:block;width:100%;padding-top:26px;border-top:1px solid rgba(255,255,255,.09);margin-top:26px}
.ranking-heading{margin:0 0 24px}
.ranking-heading h2{font-family:"Outfit",sans-serif;font-size:clamp(29px,3vw,43px);letter-spacing:-1.5px;margin:7px 0 0}
.ranking-collections .shelf-ranking{display:block;width:100%;padding:0;margin:0 0 26px}
.shelf-ranking .book-card{width:clamp(145px,12.3vw,205px)}
.shelf-ranking .cover-button{aspect-ratio:1/1.08}
.rank-number{position:absolute;top:9px;left:10px;z-index:2;font:800 22px/1 "Outfit",sans-serif;filter:drop-shadow(0 2px 4px #000);color:white}
.rank-count{display:block;font-size:11px;color:#aab4bd;margin-top:6px}
.ranking-empty{font-size:13px;color:#aeb5bc;margin:8px 0 25px;line-height:1.5}
@media(max-width:760px){.ranking-collections{padding-top:20px;margin-top:18px}.shelf-ranking .book-card{width:145px}.ranking-heading{margin-bottom:20px}}

/* v10: edge-to-edge cinematic page; clean automatic hero, without dots or arrows */
:root{--wrap:calc(100vw - 64px)}
.site-header{width:100%;max-width:none;padding-inline:clamp(20px,4vw,76px)}
.feature{width:100%;max-width:none;margin:0 0 12px;min-height:clamp(390px,30vw,510px);overflow:hidden;background:#020506}
.feature .hero-frame{width:100%;min-height:clamp(390px,30vw,510px);height:clamp(390px,30vw,510px);grid-template-columns:45% 55%;align-items:center}
.feature .feature-copy{padding-left:clamp(28px,4.3vw,84px);padding-right:18px;z-index:2}
.feature .hero-frame .feature-art,.feature .hero-frame .hero-visual{height:100%;min-height:0}
.feature .feature-art{background-size:cover;background-position:center}
.hero-controls,.hero-dots,.hero-controls>button{display:none!important}
.hero-visual{border:0}
.hero-frame-video .hero-visual{display:block;background:#020506;position:relative;overflow:hidden}
.hero-frame-video .hero-visual iframe{display:block;width:100%;height:100%;border:0;aspect-ratio:16/9;background:#020506;pointer-events:none}
.hero-frame-video .video-shield{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,#020506 0%,transparent 16%,transparent 95%,#02050660 100%)}
.hero-frame-video .hero-visual::before{display:none}
.video-note{font-size:12px!important;color:#aeb7c1!important;margin-top:18px!important}
.feature .hero-frame.hero-enter{animation:heroFadeIn 1.15s ease both}
.library.wrap,.publish-strip.wrap,.footer .wrap,.ranking-collections{width:calc(100vw - 64px);max-width:none}
@media(max-width:1080px){
 .feature{height:auto;min-height:0}
 .feature .hero-frame{grid-template-columns:48% 52%;height:410px;min-height:410px}
 .feature .feature-copy{padding-left:28px}
}
@media(max-width:760px){
 :root{--wrap:calc(100vw - 24px)}
 .site-header{padding-inline:12px}
 .feature{width:100%;min-height:0;margin:0 0 12px}
 .feature .hero-frame{height:auto;min-height:0;display:flex;flex-direction:column}
 .feature .feature-copy{padding:24px 20px 12px;width:100%}
 .feature .hero-frame .feature-art{width:100%;height:230px;min-height:230px;background-size:cover;background-position:center 45%}
 .feature .hero-frame .hero-visual{width:100%;height:235px;min-height:235px;order:2}
 .hero-frame-video .hero-visual iframe{width:100%;height:100%;object-fit:cover}
 .feature h1.hero-title{font-size:clamp(38px,8vw,56px);overflow-wrap:anywhere}
 .library.wrap,.publish-strip.wrap,.footer .wrap,.ranking-collections{width:calc(100vw - 24px)}
 .video-note{margin:12px 0!important}
}


/* SCOPRILIBRI v11: coherent editorial interface & mobile-first refinements */
:root{--edge:clamp(16px,3.2vw,64px)}
.site-header{padding-inline:var(--edge);gap:clamp(16px,3vw,50px)}
.site-header nav{gap:clamp(12px,2.4vw,36px)}
.site-header nav a{white-space:nowrap}
.site-header nav .button.small{white-space:nowrap}
.library.wrap,.publish-strip.wrap,.footer .wrap,.ranking-collections{width:calc(100% - 2*var(--edge))}
.feature .feature-copy{padding-left:var(--edge)}
.discovery-toolbar{display:flex;align-items:end;justify-content:space-between;gap:22px;margin:16px 0 20px}
.discovery-toolbar h2{font:800 clamp(27px,3.2vw,46px)/1.08 "Outfit","DM Sans",sans-serif;letter-spacing:-.045em;margin:8px 0 0}
.discovery-toolbar h2 em{font-style:normal;color:#aab4be}
.surprise-button{border:1px solid #454d56;background:linear-gradient(140deg,#191f27,#0c1116);color:#fafafa;font-size:14px;font-weight:800;border-radius:5px;padding:13px 19px;cursor:pointer;white-space:nowrap;transition:transform .18s,border-color .18s}
.surprise-button:hover{transform:translateY(-2px);border-color:#fff}
.library>.section-heading{display:none!important}
.library-tools{display:flex!important;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 25px!important;padding:0!important}
.library-tools .search{width:min(100%,360px);flex:0 1 360px;min-height:44px}
.library-tools .search input{font-size:14px}
.library-tools .filters{display:flex!important;align-items:center;gap:8px;flex:1 1 330px;overflow-x:auto;min-width:0;padding:5px 0}
.library-tools .filters button{border:1px solid #353c44;background:#12171d;color:#bec7cf;border-radius:5px;padding:10px 16px;cursor:pointer;transition:background .18s,color .18s}
.library-tools .filters button.active{background:#f3f4f6;color:#0b0f13;border-color:#fff}
.clear-filters{background:none;color:#dfe5ed;border:0;text-decoration:underline;text-underline-offset:4px;cursor:pointer;font-size:12px}
.book-card .cover-button{touch-action:manipulation}
.book-card img{color:transparent}
.book-card .cover-button:focus-visible,.surprise-button:focus-visible,.filters button:focus-visible,.button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.book-hover-preview{backdrop-filter:blur(14px)}
.book-dialog,.publish-dialog,.info-dialog{scrollbar-color:#3c424a #0e1318}
.publish-dialog input,.publish-dialog textarea,.publish-dialog select{min-width:0}
.publish-dialog .book-form{max-width:100%}
.feature .hero-frame.hero-enter{animation-duration:.8s}
@media(max-width:1100px){
 .site-header nav a:nth-of-type(n/**/+3){display:none}
 .feature .hero-frame{grid-template-columns:52% 48%}
 .feature h1{font-size:clamp(45px,5.5vw,76px);letter-spacing:-.045em}
 .feature .hero-title{font-size:clamp(42px,5.2vw,70px)}
}
@media(max-width:760px){
 :root{--edge:16px}
 .site-header{height:67px;min-height:67px;padding:10px 14px;gap:9px}
 .site-header .brand{gap:5px}.brand span{font-size:22px;letter-spacing:-1.2px}.brand img{width:26px;height:35px}
 .site-header nav{gap:0;justify-content:flex-end}.site-header nav a{display:none!important}
 .site-header nav .button.small{font-size:11px;padding:11px 12px;min-width:0;max-width:160px;line-height:1.1}
 .site-header nav .button.small span{display:none}
 .feature .hero-frame{display:flex;flex-direction:column;min-height:0;height:auto}
 .feature .feature-copy{padding:25px var(--edge) 18px;min-height:230px}
 .feature h1{font-size:clamp(43px,11.2vw,64px);line-height:.95;letter-spacing:-.045em}
 .feature h1.hero-title{font-size:clamp(38px,9.4vw,54px)}
 .feature .hero-frame .feature-art,.feature .hero-frame .hero-visual{width:100%;min-height:220px;height:clamp(220px,61vw,350px)}
 .feature .feature-copy>p{font-size:15px;line-height:1.44;margin-bottom:16px}
 .feature-actions{gap:10px}.feature-actions .button{font-size:12px;padding:12px 16px;min-height:41px}
 .hero-frame-video .hero-visual iframe{min-height:220px}
 .library.wrap,.publish-strip.wrap,.footer .wrap,.ranking-collections{width:calc(100% - 32px)}
 .discovery-toolbar{align-items:flex-start;margin-top:24px;gap:14px;flex-direction:column}
 .discovery-toolbar h2{font-size:30px;line-height:1.1}
 .surprise-button{padding:10px 17px;font-size:12px}
 .library-tools{display:flex!important;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:20px!important}
 .library-tools .search{width:100%;max-width:none;flex:auto}
 .library-tools .filters{flex:none;white-space:nowrap;scrollbar-width:none;width:100%}
 .library-tools .filters button{flex:0 0 auto;font-size:12px;padding:9px 13px}
 .book-dialog,.publish-dialog,.info-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);border-radius:5px}
 .book-dialog #book-detail,.popup-heading,#pubblica,#review-manage-detail,.info-dialog{padding:20px 18px}
 .popup-heading{padding-top:58px}
 .dialog-close{width:38px;height:38px;top:12px;right:12px}
 .form-actions{flex-direction:column;align-items:stretch}.form-actions .button{width:100%}
 .publish-strip{padding:23px 20px}
 .shelf-title h3{font-size:19px}
 .cover-button:hover{transform:none}
}
@media(max-width:370px){.brand span{font-size:19px}.site-header nav .button.small{font-size:10px;padding:10px 8px}.feature .feature-copy{min-height:240px}}
@media(prefers-reduced-motion:reduce){.book-hover-preview,.feature .hero-frame{animation:none!important;transition:none!important}}

/* v12: readers, services, menu navigation */
html{scroll-padding-top:90px}
.section-anchor{position:relative;top:-90px;height:1px;pointer-events:none}
.site-header nav .nav-reader{color:#fff;background:transparent;border:1px solid rgba(255,255,255,.24);border-radius:5px;padding:10px 13px;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.site-header nav .nav-reader:hover{background:rgba(255,255,255,.10)}
.services-section{padding:clamp(35px,5vw,78px) 0 35px;border-top:1px solid rgba(255,255,255,.10);margin-top:40px}
.services-header{display:flex;justify-content:space-between;gap:22px;align-items:flex-end;margin-bottom:26px}
.services-header h2{font:800 clamp(34px,4.4vw,68px)/.98 "Outfit",sans-serif;letter-spacing:-.055em;margin:12px 0 16px;max-width:840px}
.services-header h2 em{font-style:normal;color:#a6adb5}
.services-header p{max-width:620px;color:#aeb6bf;font-size:15px;line-height:1.55;margin:0}
.services-kicker{font-size:11px;letter-spacing:.16em;color:#8a939e;white-space:nowrap}
.services-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.service-card{display:flex;flex-direction:column;align-items:flex-start;min-height:228px;border:1px solid rgba(255,255,255,.14);padding:23px;border-radius:5px;background:linear-gradient(145deg,#141b23,#0c1016);transition:background .2s,border-color .2s,transform .2s}
.service-card:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.38);background:linear-gradient(145deg,#1a2430,#10161d)}
.service-number{font-size:11px;letter-spacing:.12em;color:#a1aab4}
.service-symbol{font-size:26px;margin:12px 0;color:#e2e5ea}
.service-card h3{margin:0 0 6px;font:700 21px "Outfit",sans-serif;letter-spacing:-.02em}
.service-card p{margin:0 0 18px;line-height:1.5;color:#aab2bb;font-size:13px}
.service-card button{margin-top:auto;border:0;background:none;padding:4px 0;color:#fff;font-weight:700;font-size:13px;cursor:pointer}
.service-card button:hover{text-decoration:underline;text-underline-offset:5px}
.services-disclaimer{color:#9ca6af;font-size:12px;margin-top:18px}
.reader-dialog>p,.service-dialog>p{color:#b3bbc5;line-height:1.5;max-width:650px}
.reader-switch{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.reader-switch .button{border:1px solid #3a414a!important;background:#141b24!important;color:#f6f6f6!important;box-shadow:none!important;padding:11px 17px!important;font-size:13px!important}
.reader-switch .is-active{background:#f1f1f1!important;color:#0b0e12!important}
.reader-results{display:grid;gap:8px;margin-top:14px;max-height:350px;overflow:auto}
.reader-result{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #27303a;border-radius:5px;background:#151d27;color:#fff;text-align:left;padding:8px;cursor:pointer}
.reader-result:hover{background:#202d3b}
.reader-result img{width:43px;height:58px;object-fit:cover;border-radius:5px}
.reader-result span:nth-child(2){display:grid;gap:3px;flex:1}
.reader-result small{color:#adb6bf}
#reader-book-form,#service-form{display:grid;gap:14px;margin-top:18px}
#reader-book-form .form-row{grid-template-columns:1fr 1fr}
.reader-dialog .captcha-row{display:flex;align-items:center;flex-wrap:wrap}
.reader-dialog .captcha-row label{max-width:180px}
.reader-dialog .button,#service-form .button{width:max-content}
#reader-private-link{margin:10px 0;display:block}
@media(max-width:1050px){.site-header nav .nav-reader{display:none}.services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.services-kicker{display:none}}
@media(max-width:640px){.services-grid{grid-template-columns:1fr}.service-card{min-height:0}.services-header h2{font-size:40px}.services-section{padding-top:38px}.services-header p{font-size:14px}.reader-dialog .form-row,#reader-book-form .form-row{grid-template-columns:1fr}.reader-dialog .captcha-row img{width:180px}.reader-dialog,.service-dialog{max-height:calc(100dvh - 24px)}.reader-dialog .button{white-space:normal}}

.reader-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:35px;padding:28px;border-radius:5px;background:linear-gradient(120deg,#1a222d,#0d1118);border:1px solid #303945}
.reader-cta h2{font:750 clamp(26px,3vw,42px)/1.1 "Outfit",sans-serif;margin:6px 0}.reader-cta p{margin:0;color:#abb4be}.reader-cta .button{border:1px solid #fff;background:#eee;color:#111;white-space:nowrap}
@media(max-width:640px){.reader-cta{flex-direction:column;align-items:flex-start}.reader-cta .button{white-space:normal}}
/* Restore the AI destination: the existing navigation must lead to visible content. */
#percorsi-ai:not([hidden]){display:block;margin-top:30px;margin-bottom:36px}
#percorsi-ai .section-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:12px}
#percorsi-ai .books-grid{display:flex;gap:13px;overflow-x:auto}
#percorsi-ai .book-card{flex:0 0 150px}
#percorsi-ai .cover-button{aspect-ratio:2/3}
#percorsi-ai .book-card h4{margin:10px 0 5px;font-size:14px}
#percorsi-ai .book-card p{font-size:12px}
@media(max-width:640px){#percorsi-ai .book-card{flex-basis:136px}}

/* v13 — Electric Editorial identity: magenta + acid lime */
:root{--electric-pink:#D9B26F;--electric-lime:#7C96B8;--electric-pink-soft:rgba(217,178,111,.12);--electric-lime-soft:rgba(124,150,184,.09)}
main h1,dialog h1,.feature h1,.feature h1.hero-title{color:var(--electric-pink)!important}
.feature h1 em,.feature h1.hero-title em{color:var(--electric-pink)!important;background:none!important;-webkit-background-clip:initial!important;background-clip:initial!important;-webkit-text-fill-color:var(--electric-pink)!important}
main h2,dialog h2,.services-header h2,.discovery-toolbar h2,.ranking-heading h2,.section-heading h2{color:var(--electric-lime)!important}
.services-header h2 em,.discovery-toolbar h2 em{color:var(--electric-lime)!important;font-style:normal}
/* Controlled colorful accents without impairing body copy legibility */
.shelf-title h3 span,.accent{color:var(--electric-lime)!important}
.eyebrow,.services-kicker{color:#eaa6df}
.site-header nav a:hover,.site-header nav a:focus-visible{color:var(--electric-lime)}
.site-header nav a:first-child{border-color:var(--electric-pink)}
.button:focus-visible,.icon-button:focus-visible,.cover-button:focus-visible,.service-card button:focus-visible{outline:2px solid var(--electric-lime);outline-offset:3px}
.cover-button:hover,.cover-button:focus-visible{box-shadow:0 0 0 1px var(--electric-pink),0 8px 28px rgba(217,178,111,.18)}
.selected-cover{box-shadow:0 0 0 2px var(--electric-pink),0 0 23px rgba(217,178,111,.24)}
.service-card:hover{border-color:rgba(124,150,184,.5)}
.service-card button:hover,.text-link:hover{color:var(--electric-lime)}
.reader-switch .button.is-active{background:var(--electric-lime)!important;color:#111!important}
.filters button.active{background:var(--electric-lime);border-color:var(--electric-lime);color:#0d1100}
.review-stars{color:var(--electric-lime)}
input:focus,textarea:focus,select:focus{border-color:rgba(124,150,184,.68);box-shadow:0 0 0 3px var(--electric-lime-soft)}
/* Every modal close is pinned to the top-right, unaffected by generic dialog child rules */
dialog{position:fixed;isolation:isolate}
dialog > .dialog-close,
dialog.info-dialog > .dialog-close,
dialog.publish-dialog > .dialog-close,
dialog.book-dialog > .dialog-close{
 position:absolute!important;inset:14px 14px auto auto!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:40px!important;height:40px!important;
 margin:0!important;padding:0!important;
 border:1px solid rgba(255,255,255,.22)!important;
 border-radius:5px;
 background:#232931!important;color:white!important;
 font:400 27px/1 Arial,sans-serif!important;
 z-index:100!important;cursor:pointer;
 transform:none!important;
}
dialog > .dialog-close:hover{background:var(--electric-pink)!important;border-color:var(--electric-pink)!important;color:#08080b!important}
dialog.info-dialog,.info-dialog{padding-top:56px}
.publish-dialog .popup-heading{padding-top:64px}
.book-dialog #book-detail{padding-top:62px}
@media(max-width:640px){dialog > .dialog-close,dialog.info-dialog > .dialog-close{inset:10px 10px auto auto!important;width:38px!important;height:38px!important}.popup-heading{padding-top:66px!important}.book-dialog #book-detail{padding-top:60px!important}.info-dialog{padding-top:54px!important}}

/* v14 — ogni scaffale occupa una riga completa, anche su schermi ampi.
   Manteniamo le card scorrevoli orizzontalmente senza tagliarne le anteprime. */
#shelves{display:block;width:100%}
#shelves > .shelf,
#shelves > .shelf.shelf-compact,
#shelves > .shelf.shelf-featured,
#shelves > .shelf.shelf-compact:nth-of-type(n/**/+4){
  display:block;
  width:100%;
  max-width:100%;
  padding-inline:0;
  margin:0 0 clamp(24px,3vw,42px);
  vertical-align:baseline;
  box-sizing:border-box;
}
#shelves > .shelf .books-grid{width:100%;max-width:100%;gap:clamp(10px,1.1vw,18px);padding:8px 2px 16px;overflow-x:auto;overflow-y:hidden;scroll-padding-inline:2px}
#shelves > .shelf.shelf-compact .book-card,
#shelves > .shelf.shelf-compact:nth-of-type(n/**/+4) .book-card{
  width:clamp(152px,13.5vw,230px);
  flex:0 0 clamp(152px,13.5vw,230px);
}
#shelves > .shelf.shelf-featured .book-card{width:clamp(160px,14.2vw,236px);flex:0 0 clamp(160px,14.2vw,236px)}
#shelves > .shelf.shelf-compact .cover-button,
#shelves > .shelf.shelf-compact:nth-of-type(n/**/+4) .cover-button{aspect-ratio:1.38 / 1}
@media(max-width:760px){
 #shelves > .shelf.shelf-compact .book-card,
 #shelves > .shelf.shelf-compact:nth-of-type(n/**/+4) .book-card{width:144px;flex-basis:144px}
 #shelves > .shelf.shelf-featured .book-card{width:150px;flex-basis:150px}
 #shelves > .shelf{margin-bottom:24px!important}
}

/* v15 visual design: consistent with Electric Edition */
#v15-mystery-dialog h2{font-size:clamp(26px,4vw,42px);color:#7C96B8}#v15-mystery-text{font-size:clamp(17px,2vw,23px);line-height:1.55;font-style:italic;padding:16px 0;color:#eee}

.v15-book-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}.v15-book-tags span{border:1px solid #4a4d53;color:#d9e3ea;font-size:12px;border-radius:5px;padding:5px 9px;background:#171a22}

/* V16 · Editorial rhythm: asymmetric magazine inserts, full-width genre shelves */
#shelves>.shelf{position:relative}
#shelves>.shelf:nth-of-type(2n) .shelf-title{padding-left:clamp(10px,2vw,36px)}
#shelves>.shelf:nth-of-type(2n) .books-grid{padding-left:clamp(10px,2vw,36px)}
.mag-feature{display:grid;position:relative;grid-template-columns:1.05fr .95fr;align-items:stretch;min-height:320px;margin:clamp(24px,4vw,58px) 0;border:1px solid rgba(255,255,255,.13);border-radius:5px;overflow:hidden;background:#11131c;color:#f7f9fb;isolation:isolate}
.mag-feature::before{content:"";position:absolute;width:47%;height:1px;left:28px;top:0;background:linear-gradient(90deg,#D9B26F,#7C96B8,transparent)}
.mag-copy,.mag-picks-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(24px,4vw,70px)}
.mag-index{font:700 11px/1.4 "DM Sans",sans-serif;letter-spacing:.16em;color:#e9a9e1;margin-bottom:15px}
.mag-feature h2{font:800 clamp(30px,4.1vw,64px)/.98 "Outfit",sans-serif;letter-spacing:-.052em;margin:0 0 18px;color:#7C96B8!important}
.mag-feature h2 em{font-style:normal;color:#D9B26F}
.mag-feature p{color:#ccd1d8;font:400 clamp(13px,1.2vw,17px)/1.56 "DM Sans",sans-serif;max-width:520px;margin:0 0 22px}
.mag-action{border:1px solid #7C96B8;background:#7C96B8;color:#090d10;font:700 13px "DM Sans",sans-serif;border-radius:5px;padding:13px 21px;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.mag-action:hover,.mag-action:focus-visible{transform:translateY(-2px);box-shadow:0 0 24px rgba(124,150,184,.16)}
.mag-image{position:relative;min-width:0;overflow:hidden;background:radial-gradient(circle at 60% 50%,#30313e,#080a0d 70%)}
.mag-image::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#11131c 0%,transparent 55%)}
.mag-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%;filter:saturate(.8) contrast(1.12)}
.mag-feature-picks{grid-template-columns:.85fr 1.15fr;background:radial-gradient(ellipse at 80% 40%,#1a2130,#0b0e14 75%)}
.mag-picks-covers{display:flex;align-items:center;justify-content:center;gap:clamp(9px,2vw,25px);padding:30px clamp(20px,3vw,48px);min-width:0}
.mag-picks-covers button{width:29%;max-width:170px;aspect-ratio:2/3;border:0;padding:0;border-radius:5px;overflow:hidden;box-shadow:0 16px 35px #0009;transform:rotate(-6deg);background:#20252c;cursor:pointer;transition:transform .22s ease}
.mag-picks-covers button:nth-child(2){transform:translateY(-15px) rotate(3deg)}
.mag-picks-covers button:nth-child(3){transform:rotate(7deg)}
.mag-picks-covers button:hover,.mag-picks-covers button:focus-visible{transform:translateY(-12px) scale(1.05) rotate(0);outline:2px solid #7C96B8}
.mag-picks-covers img{width:100%;height:100%;object-fit:cover}
/* Alternate visual anchors in the discovery panel without creating dead space */



@media(max-width:760px){
 .mag-feature,.mag-feature-picks{grid-template-columns:1fr;min-height:0;border-radius:5px;margin:26px 0 34px}
 .mag-copy,.mag-picks-copy{padding:25px 23px 18px}
 .mag-feature h2{font-size:clamp(31px,9vw,49px);line-height:1.04}
 .mag-image{height:195px;min-height:195px}
 .mag-image::before{background:linear-gradient(180deg,#11131c 0%,transparent 60%)}
 .mag-image img{object-position:center 45%}
 .mag-picks-covers{padding:10px 25px 28px;max-height:195px}
 .mag-picks-covers button{max-width:116px}
 #shelves>.shelf:nth-of-type(2n) .shelf-title,#shelves>.shelf:nth-of-type(2n) .books-grid{padding-left:0}
 
}
@media(prefers-reduced-motion:reduce){.mag-feature *{transition:none!important}}

/* v17 | Scoprilibri Premium — definitive editorial palette */
:root{--bg:#05070B;--bg-soft:#0D1117;--bg-card:#0D1117;--bg-elev:#141A22;--ink:#F5F7FA;--text:#F5F7FA;--muted:#98A2AE;--muted-2:#8693A2;--line:rgba(255,255,255,.10);--accent:#7C96B8;--gold:#D9B26F;--paper:#05070B;--cream:#0D1117;--electric-pink:#D9B26F;--electric-lime:#7C96B8}
html{color-scheme:dark}
body{background:#05070B;color:#E8ECF1}
.site-header{background:linear-gradient(180deg,rgba(5,7,11,.97),rgba(5,7,11,.85));border-bottom:1px solid rgba(255,255,255,.045)}
.site-header .brand img,.footer .brand img{filter:none!important;opacity:1!important;object-fit:contain}
.site-header .brand span,.footer .brand span{color:#FFFFFF!important;text-shadow:none!important}
.site-header nav a:first-child{border-color:#D9B26F!important}
.site-header nav a:hover,.site-header nav a:focus-visible{color:#D9B26F!important}
h1,.feature h1,.feature h1 em{color:#fff!important;-webkit-text-fill-color:#fff!important;background:none!important}
h2,.v15-head h2,.v15-minor h2,.mag-feature h2,.popup-heading h2,.book-dialog h2,.publish-dialog h2,.info-dialog h2,#v15-mystery-dialog h2{color:#D9B26F!important}
.v15-head h2 em,.mag-feature h2 em{color:#F4F5F7!important}
h3,.shelf-title h3{color:#F1F3F6!important}
.shelf-title h3 span,.accent{color:#D9B26F!important}
.feature-art{background-color:#05070B}
.mag-feature,.v15-discover,.publish-strip{background-color:#0D1117}
.mag-feature::before{background:linear-gradient(90deg,#D9B26F,#7C96B8,transparent)}
.v15-door,.mag-action{background:#D9B26F!important;border-color:#D9B26F!important;color:#0B0F14!important;box-shadow:0 8px 25px rgba(217,178,111,.13)!important}
.v15-door:hover,.mag-action:hover{box-shadow:0 12px 30px rgba(217,178,111,.24)!important}
.v15-chips button.active,.v15-tabs button.is-active,.filters button.active{background:#D9B26F!important;border-color:#D9B26F!important;color:#0B0F14!important}

.book-card .cover-button:hover,.book-card .cover-button:focus-visible{box-shadow:0 0 0 1px rgba(217,178,111,.65),0 0 22px rgba(217,178,111,.12)!important}
.mag-picks-covers button:hover,.mag-picks-covers button:focus-visible{outline-color:#D9B26F!important}
.button:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #D9B26F;outline-offset:3px}
.book-dialog,.publish-dialog,.info-dialog,#v15-mystery-dialog{background:#0D1117!important;color:#E8ECF1!important;border-color:rgba(255,255,255,.14)!important}
dialog .dialog-close{position:sticky;float:right;top:12px;right:12px;z-index:25;background:#252C35!important;color:#FFF!important;border:1px solid rgba(255,255,255,.3)!important;min-width:38px;min-height:38px}
dialog .dialog-close:hover{background:#3A4552!important}
.footer{background:#080B11;color:#98A2AE}
@media(max-width:680px){.site-header{background:#05070B!important}.feature h1{font-size:clamp(40px,9.5vw,64px)!important;line-height:1.01!important;letter-spacing:-.04em!important}}

/* v18 | Brand & Atmosphere — richer editorial backgrounds, stronger cards, wider logo presence */
:root{
  --premium-surface:#0D1117;
  --premium-surface-2:#131923;
  --premium-glow:rgba(217,178,111,.16);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(circle at 12% 18%, rgba(124,150,184,.07), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(217,178,111,.06), transparent 26%),
    radial-gradient(circle at 52% 78%, rgba(255,255,255,.025), transparent 22%);
}

/* hero more atmospheric */
.feature{
  position:relative;
  border:1px solid rgba(255,255,255,.08);
  border-radius:5px;
  overflow:hidden;
  background:
    linear-gradient(120deg, rgba(7,10,14,.96) 0%, rgba(11,16,22,.94) 44%, rgba(8,11,16,.92) 100%),
    radial-gradient(circle at 72% 38%, rgba(217,178,111,.14), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(124,150,184,.12), transparent 26%);
  box-shadow:0 24px 60px rgba(0,0,0,.34);
}
.feature::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.04), transparent 13%);
  pointer-events:none;
}
.feature::after{
  content:"";
  position:absolute;
  width:88px;
  height:88px;
  right:28px;
  top:26px;
  background:url("logo-white.png") center/contain no-repeat;
  opacity:.065;
  filter:drop-shadow(0 0 10px rgba(255,255,255,.05));
  pointer-events:none;
}
.feature-copy{padding:42px 34px 28px 38px}
.feature-art{position:relative}
.feature-art::after{
  content:"";
  position:absolute;
  inset:16px 12px 16px 12px;
  border-radius:5px;
  background:radial-gradient(circle at 50% 52%, rgba(255,233,210,.16), transparent 42%);
  pointer-events:none;
}
.feature .eyebrow{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);border-radius:5px}
.feature .eyebrow::before{content:"";width:16px;height:16px;background:url("logo-white.png") center/contain no-repeat;opacity:.72}
.feature-copy .button{box-shadow:0 16px 34px rgba(0,0,0,.22)}

/* discovery / magazine blocks less flat */
.v15-discover,
.publish-strip,
.services-section,
.reader-cta,
.mag-feature{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:
    linear-gradient(135deg, rgba(15,21,29,.98) 0%, rgba(11,16,23,.98) 48%, rgba(16,20,27,.98) 100%)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 18px 44px rgba(0,0,0,.28);
}
.v15-discover::before,
.publish-strip::before,
.services-section::before,
.reader-cta::before,
.mag-feature::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 0% 0%, rgba(124,150,184,.16), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(217,178,111,.13), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 38%);
  pointer-events:none;
}
.v15-discover::after,
.publish-strip::after,
.services-section::after,
.reader-cta::after,
.mag-feature::after{
  content:"";
  position:absolute;
  right:20px;
  bottom:18px;
  width:76px;
  height:76px;
  background:url("logo-white.png") center/contain no-repeat;
  opacity:.045;
  pointer-events:none;
}

.publish-strip{padding:28px 30px;border-radius:5px}
.reader-cta,.services-section,.mag-feature{border-radius:5px}
.services-section{padding:34px 28px 30px}
.reader-cta{padding:28px 30px}
.mag-feature-media,
.mag-feature-stack{position:relative}
.mag-feature-media::before,
.mag-feature-stack::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:5px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), transparent 22%, transparent 78%, rgba(0,0,0,.16));
  pointer-events:none;
}

/* section headings with a subtle brand mark */
.section-heading h2,
.discovery-toolbar h2,
.services-header h2,
.publish-strip h2,
.reader-cta h2{
  position:relative;
}
.section-heading .eyebrow,
.discovery-toolbar .eyebrow,
.services-header .eyebrow,
.reader-cta .eyebrow,
.v15-head .eyebrow,
.popup-heading .eyebrow,
.info-dialog .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.section-heading .eyebrow::before,
.discovery-toolbar .eyebrow::before,
.services-header .eyebrow::before,
.reader-cta .eyebrow::before,
.v15-head .eyebrow::before,
.popup-heading .eyebrow::before,
.info-dialog .eyebrow::before{
  content:"";
  width:13px;
  height:13px;
  background:url("logo-white.png") center/contain no-repeat;
  opacity:.78;
}

/* cards: less floating, more editorial */
.book-card,
.v15-card,
.service-card{
  position:relative;
}
.book-card{
  padding:10px;
  border-radius:5px;
  background:linear-gradient(180deg, rgba(15,21,29,.92), rgba(14,18,24,.98));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 28px rgba(0,0,0,.20);
}
.shelf-featured .book-card{
  background:linear-gradient(180deg, rgba(12,17,24,.74), rgba(12,17,24,.88));
}
.cover-button{
  border-radius:5px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.28);
}
.book-card h4{margin:10px 2px 5px;font-size:13px}
.book-card p{margin:0 2px 2px;font-size:11px;line-height:1.35;color:#aab3bd}
.book-card::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg, rgba(217,178,111,.42), rgba(124,150,184,.22), transparent);
  opacity:.65;
}
.shelf-compact .cover-button::before,
.v15-card-open::before{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:40%;
  background:linear-gradient(180deg, transparent, rgba(4,7,10,.26) 30%, rgba(4,7,10,.72));
  pointer-events:none;
  z-index:1;
}






.service-card{background:linear-gradient(180deg, rgba(16,21,28,.96), rgba(12,16,21,.98));border:1px solid rgba(255,255,255,.08);box-shadow:0 12px 26px rgba(0,0,0,.18)}
.service-card:hover{border-color:rgba(217,178,111,.32);transform:translateY(-4px)}

/* card hover preview richer */
.book-hover-preview{
  background:linear-gradient(180deg, rgba(18,24,31,.98), rgba(12,17,24,.98));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 26px 64px rgba(0,0,0,.50), 0 0 0 1px rgba(255,255,255,.03);
}
.book-hover-preview .hover-body{
  background:linear-gradient(180deg, rgba(255,255,255,.04), transparent 22%);
}
.book-hover-preview .hover-cover-wrap::after{
  content:"";
  position:absolute;
  inset:auto 12px 12px auto;
  width:28px;
  height:28px;
  background:url("logo-white.png") center/contain no-repeat;
  opacity:.85;
  filter:drop-shadow(0 2px 10px rgba(0,0,0,.55));
}

/* popups branded */
.book-dialog,.publish-dialog,.info-dialog,#v15-mystery-dialog{overflow:hidden}
.popup-heading,.book-dialog #book-detail,.info-dialog,.publish-dialog{position:relative}
.popup-heading::before,
.book-dialog #book-detail::before,
.info-dialog::before,
#v15-mystery-dialog::before{
  content:"";
  position:absolute;
  right:24px;
  top:22px;
  width:38px;
  height:38px;
  background:url("logo-white.png") center/contain no-repeat;
  opacity:.10;
  pointer-events:none;
}
.dialog-close{top:16px!important;right:16px!important;background:rgba(255,255,255,.07)!important}

/* footer a little richer */
.footer{position:relative;background:linear-gradient(180deg, rgba(10,14,19,.92), rgba(5,7,10,.98));border-top:1px solid rgba(255,255,255,.08)}
.footer::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 10% 0%, rgba(124,150,184,.08), transparent 24%), radial-gradient(circle at 92% 100%, rgba(217,178,111,.08), transparent 22%);pointer-events:none}
.footer .brand{position:relative;z-index:1}

/* mobile tuning */
@media (max-width:760px){
  .feature{border-radius:5px}
  .feature-copy{padding:22px 18px 16px}
  .feature::after{width:56px;height:56px;right:14px;top:14px}
  .v15-discover,.publish-strip,.reader-cta,.services-section,.mag-feature{border-radius:5px}
  
  .publish-strip,.reader-cta,.services-section{padding:22px 18px}
  .book-card,.v15-card{padding:8px;border-radius:5px}
  .v15-discover::after,.publish-strip::after,.services-section::after,.reader-cta::after,.mag-feature::after{width:52px;height:52px;right:10px;bottom:10px}
  .popup-heading::before,.book-dialog #book-detail::before,.info-dialog::before,#v15-mystery-dialog::before{width:28px;height:28px;right:18px;top:18px}
}

/* v18+ | SEO detail page, accessible autoplay pause */
#featured{position:relative}
.hero-toggle{position:absolute;right:18px;bottom:18px;z-index:12;min-width:42px;min-height:42px;border-radius:5px;border:1px solid rgba(255,255,255,.45);background:rgba(5,7,11,.78);color:#fff;font:700 15px "DM Sans",sans-serif;cursor:pointer;backdrop-filter:blur(10px)}
.hero-toggle:hover,.hero-toggle:focus-visible{border-color:#D9B26F;box-shadow:0 0 0 3px rgba(217,178,111,.12)}
.static-book{max-width:940px;margin:32px auto 90px;padding:28px 32px;min-height:65vh;background:linear-gradient(135deg,#10151c,#090d13);border:1px solid rgba(255,255,255,.1);border-radius:5px;box-shadow:0 22px 54px rgba(0,0,0,.32)}
.static-book h1{margin:.3em 0 .15em;line-height:1.03;font-size:clamp(34px,5vw,64px)}
.static-book p{line-height:1.7}.static-book .reading{white-space:pre-wrap;border-left:2px solid #D9B26F;padding-left:18px}
.static-book .cover{float:left;margin:0 28px 16px 0;max-width:200px;width:35%;border-radius:5px;box-shadow:0 14px 36px #0007}
@media(max-width:640px){.hero-toggle{bottom:10px;right:10px}.static-book{margin:12px;padding:20px;border-radius:5px}.static-book .cover{width:36%;margin-right:14px}.static-book h1{font-size:clamp(30px,8vw,44px)}}


/* v19 — intentional editorial closing, full-width visual rhythm */
.end-editorial{position:relative;margin:clamp(30px,4vw,62px) auto 0;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;isolation:isolate}
.end-editorial-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 4px 16px;color:#919ca9;font-size:10px;font-weight:750;letter-spacing:.19em}
.end-editorial-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.end-feature{position:relative;min-height:390px;display:flex;align-items:end;overflow:hidden;border-radius:5px;border:1px solid rgba(255,255,255,.12);background:#0d121a;isolation:isolate;box-shadow:0 22px 55px #0006}
.end-feature::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(0deg,rgba(4,7,11,.97) 4%,rgba(4,7,11,.66) 48%,rgba(4,7,11,.08) 100%)}
.end-reader{background:radial-gradient(ellipse at 72% 18%,#34475a 0%,#101a26 58%,#090d13 100%)}
.end-author{background:radial-gradient(ellipse at 80% 18%,#4b3a23 0%,#1a1717 53%,#0e1117 100%)}
.end-feature-art{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;gap:12px;padding-top:0;opacity:.78;transform:translateY(-36px) rotate(-5deg)}
.end-feature-art img{width:24%;height:280px;object-fit:cover;border-radius:5px;box-shadow:0 20px 42px #000b;transform:rotate(-5deg)}
.end-feature-art img:nth-child(2){transform:translateY(35px) rotate(7deg);width:27%}
.end-feature-art img:nth-child(3){transform:translateY(10px) rotate(13deg)}
.end-feature-monogram{position:absolute;inset:0;display:grid;place-items:start end;padding:16px 58px 0 0;opacity:.16;transform:rotate(-10deg)}
.end-feature-monogram img{width:220px;height:250px;object-fit:contain;filter:drop-shadow(0 0 50px rgba(217,178,111,.22))}
.end-feature-body{position:relative;z-index:2;padding:30px clamp(24px,3.2vw,54px) 32px;width:100%}
.end-kicker{display:block;font-size:10px;letter-spacing:.2em;color:#d0b886;font-weight:800;margin-bottom:14px}
.end-feature h2{font:800 clamp(30px,3.3vw,55px)/.99 "Outfit",sans-serif!important;letter-spacing:-.045em;color:#f6f6f5!important;margin:0 0 15px}
.end-feature h2 em{font-style:normal;color:#d9b26f}
.end-feature p{font-size:14px;line-height:1.55;color:#c6cdd5;max-width:490px;margin:0 0 22px}
.end-action{display:inline-flex;gap:24px;align-items:center;justify-content:space-between;min-height:46px;border-radius:5px;padding:12px 18px;font-size:13px;font-weight:800;cursor:pointer;transition:transform .2s,box-shadow .2s}
.end-action:hover{transform:translateY(-2px)}
.end-action-light{background:#f4f5f6;color:#0c1015;border:1px solid #f4f5f6}
.end-action-gold{background:#d9b26f;color:#16120a;border:1px solid #d9b26f}
.end-action:focus-visible{outline:3px solid #fff;outline-offset:3px}
/* The service section is an intentional closing strip, not another massive hero */
.services-section{width:calc(100% - 2*var(--edge))!important;margin:22px auto 0!important;padding:30px clamp(20px,3vw,42px) 28px!important;border-radius:5px;background:linear-gradient(135deg,#111720,#0c1118 70%,#151615)!important}
.services-section::before{background:radial-gradient(ellipse at 97% 12%,rgba(217,178,111,.09),transparent 26%)!important}
.services-section::after{width:90px;height:90px;opacity:.065}
.services-header{align-items:center;margin-bottom:24px;gap:26px}
.services-header h2{font-size:clamp(28px,3.25vw,48px)!important;line-height:1.05!important;max-width:none;margin:8px 0 8px}
.services-header p{max-width:690px;font-size:13px}
.services-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.service-card{min-height:unset!important;padding:16px 18px!important;border-radius:5px;background:linear-gradient(160deg,#171d27,#0c1119)!important;transition:border-color .2s,transform .2s}
.service-card h3{font-size:16px;margin:8px 0 6px}
.service-card p{font-size:12px;line-height:1.5;min-height:0;margin:0 0 16px}
.service-card button{font-size:12px}
.service-card .service-symbol{font-size:18px}
.services-disclaimer{margin:18px 0 0;font-size:11px;color:#8e9ba8}
.footer{margin-top:24px!important;padding-top:36px!important}
@media(max-width:900px){.end-editorial-grid{grid-template-columns:1fr}.end-feature{min-height:340px}.end-feature-art img{height:260px}.services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.end-editorial-label span:last-child{display:none}.end-editorial-grid{gap:12px}.end-feature{min-height:340px;border-radius:5px}.end-feature-body{padding:24px}.end-feature h2{font-size:clamp(29px,8vw,42px)!important}.end-feature p{font-size:13px}.end-feature-art img{height:250px}.end-feature-monogram img{width:150px}.services-section{width:calc(100% - 24px)!important;padding:23px 16px!important}.services-grid{grid-template-columns:1fr}.services-header{align-items:flex-start}.services-header h2{font-size:32px!important}.services-kicker{display:none}.service-card{padding:17px!important}.service-card p{margin-bottom:10px}.footer{padding-bottom:34px!important}}

/* v20 — book-first covers: no framed tiles or rounded image mounts */
.book-card,.shelf-featured .book-card,.v15-card{
  padding:0!important;background:transparent!important;border:0!important;
  border-radius:5px;box-shadow:none!important;overflow:visible!important;
}
.book-card::after,.v15-card::after{display:none!important}
.cover-button,.shelf-featured .cover-button,.shelf-compact .cover-button,
.shelf-compact:nth-of-type(n/**/+4) .cover-button,.shelf-ranking .cover-button,
.v15-card-open img,.end-feature-art img,.mag-picks-covers img{
  border:0!important;border-radius:5px;background:transparent!important;
  box-shadow:0 8px 22px rgba(0,0,0,.30)!important;
}
.cover-button,.shelf-featured .cover-button,.shelf-compact .cover-button,
.shelf-compact:nth-of-type(n/**/+4) .cover-button,.shelf-ranking .cover-button{
  display:block!important;aspect-ratio:2 / 3!important;height:auto!important;
}
.cover-button img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:5px}
.selected-cover{outline:2px solid rgba(217,178,111,.75)!important;outline-offset:3px!important}
.selected-cover::after{display:none!important}
.shelf-compact .cover-button::before,.v15-card-open::before{display:none!important}
.book-card h4,.book-card p{margin-left:0!important;margin-right:0!important}
.end-feature-art img{object-fit:cover!important}
/* Navigation controls only for overflowing rows; each direction becomes disabled at its end. */
.shelf-nav[hidden],.shelf-nav.is-not-scrollable{display:none!important}
.shelf-nav .icon-button:disabled{opacity:.25;cursor:default;pointer-events:none}

/* v22 | Cover fix: no crop, no frames, all true book-cover ratio */
.books-grid{align-items:flex-start}
.book-card,
.shelf-featured .book-card,
.shelf-compact .book-card,
.shelf-compact:nth-of-type(n/**/+4) .book-card,
.shelf-ranking .book-card,
#ai-books .book-card{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:5px;
  padding:0!important;
}
.book-card::after{display:none!important}

.shelf-featured .book-card{width:clamp(150px,11.6vw,208px)!important}
.shelf-compact .book-card,
.shelf-compact:nth-of-type(n/**/+4) .book-card,
.shelf-ranking .book-card,
#ai-books .book-card{width:clamp(138px,10.2vw,178px)!important}

.cover-button,
.shelf-featured .cover-button,
.shelf-compact .cover-button,
.shelf-compact:nth-of-type(n/**/+4) .cover-button,
.shelf-ranking .cover-button,
#ai-books .cover-button{
  aspect-ratio:2 / 3!important;
  width:100%;
  border:0!important;
  border-radius:5px;
  background:#0a0d12!important;
  box-shadow:none!important;
  overflow:hidden;
}
.cover-button img,
.book-hover-preview .hover-cover img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#0a0d12!important;
  border-radius:5px;
  image-rendering:auto;
}
.cover-button:hover,.cover-button:focus-visible{
  transform:translateY(-2px)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.24)!important;
}
.cover-button:hover img,.cover-button:focus-visible img{
  transform:none!important;
  filter:none!important;
}
.selected-cover{
  box-shadow:none!important;
  outline:none!important;
}
.selected-cover::after{display:none!important}

/* keep overlay labels readable without adding a frame */
.card-meta,
.preview-meta,
.badge-pill{
  left:8px;right:8px;bottom:8px;
}

/* preview popup also respects whole covers */
.book-hover-preview .hover-cover{
  background:#0a0d12;
  display:flex;
  align-items:center;
  justify-content:center;
}
.book-hover-preview .hover-cover img{padding:0}

/* mobile sizing */
@media (max-width:1024px){
  .shelf-featured .book-card{width:168px!important}
  .shelf-compact .book-card,
  .shelf-compact:nth-of-type(n/**/+4) .book-card,
  .shelf-ranking .book-card,
  #ai-books .book-card{width:148px!important}
}
@media (max-width:760px){
  .shelf-featured .book-card{width:148px!important}
  .shelf-compact .book-card,
  .shelf-compact:nth-of-type(n/**/+4) .book-card,
  .shelf-ranking .book-card,
  #ai-books .book-card{width:136px!important}
}

/* v23: mobile accessibility + actual scrollable dialogs */
.book-dialog,.publish-dialog,.info-dialog,.reader-dialog,.service-dialog,#v15-mystery-dialog,#review-manage-dialog{
  overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain;
  max-height:min(92dvh, 920px)!important;
  scrollbar-width:thin;
}
.book-dialog #book-detail,.publish-dialog #pubblica{overflow:visible!important}
.reviews-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.reviews-heading .button.small{margin:0!important;max-width:100%;min-width:0;padding:13px 18px;font-size:14px;white-space:normal;line-height:1.25;text-align:center}
.review-byline{gap:8px}.review-stars{white-space:nowrap}
.reader-review p,.detail-text p{overflow-wrap:anywhere}
.review-form{min-width:0;max-width:100%}
.review-form label,.review-form textarea,.review-form select,.review-form input{min-width:0;max-width:100%}
.book-dialog dialog,.publish-dialog dialog{max-width:100%}
@media (max-width:760px){
 .book-dialog,.publish-dialog,.info-dialog,.reader-dialog,.service-dialog,#v15-mystery-dialog,#review-manage-dialog{
   width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
   max-height:calc(100dvh - 24px)!important;border-radius:5px;
 }
 .book-dialog #book-detail{padding:60px 18px 24px!important}
 .reviews-heading{align-items:stretch;gap:12px}
 .reviews-heading>div{flex:1 1 100%;min-width:0}
 .reviews-heading .button.small{display:inline-flex!important;width:auto!important;max-width:100%;align-self:flex-start;margin:0!important;font-size:13px;padding:12px 16px}
 .detail-actions{gap:10px 14px;align-items:center}
 .detail-actions .text-link,.detail-actions .v15-save{font-size:13px}
 .reader-review{padding:18px 0}.reader-review h5{font-size:13px}.reader-review p{font-size:14px;line-height:1.55}
 .review-form .form-row{grid-template-columns:1fr!important}
 .review-form input,.review-form textarea,.review-form select{font-size:16px!important}
 .review-form .button{white-space:normal!important;max-width:100%;min-height:44px}
 .review-stars{font-size:13px;letter-spacing:.07em}
 .detail-text{gap:18px}
}
@media(max-width:390px){.book-dialog #book-detail{padding-inline:14px!important}.reviews-heading .button.small{width:100%!important}}

/* v24 — clean hero: no play/pause control, swipe-first navigation */
.hero-toggle,.hero-controls,.hero-dots{display:none!important}
.feature{touch-action:pan-y;user-select:none;-webkit-user-select:none}
.feature button,.feature a{user-select:auto;-webkit-user-select:auto}
.feature:focus-visible{outline:2px solid #D9B26F;outline-offset:3px}

/* v25 / identity & interaction polish */
:root{--brand-ivory:#f6f6f5;--brand-gold:#d9b26f;--brand-navy:#0b1017;--brand-muted:#aab2bd}
.site-header .brand img,.footer .brand img,.admin-page .brand img{
  opacity:1!important;filter:none!important;object-fit:contain!important;
}
.site-header .brand{gap:10px}
.site-header .brand span{font-weight:700;letter-spacing:-.055em;color:#fff}
.site-header{box-shadow:0 14px 38px rgba(0,0,0,.18)}
.site-header nav a{transition:color .18s,border-color .18s}
.site-header nav a:hover{color:var(--brand-gold)}
.site-header nav a:first-child{border-color:var(--brand-gold)!important}

/* Unified logo decorations, limited contrast so the actual content stays prominent */
.feature::after,.v15-discover::after,.publish-strip::after,.services-section::after,
.reader-cta::after,.mag-feature::after{opacity:.06!important;filter:none!important}
.footer .brand img{height:39px!important;width:27px!important}
.end-feature-monogram img{filter:drop-shadow(0 18px 45px rgba(0,0,0,.55))!important}

/* A warmer editorial depth with reduced visual clutter */
.v15-discover,.mag-feature,.services-section,.end-feature{
 box-shadow:0 18px 48px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.03);
}

.mag-feature{background:linear-gradient(135deg,#141a23,#0d1219 63%,#1b1918)!important}
.shelf{margin-bottom:clamp(28px,3.2vw,52px)!important}
.shelf-title{margin-bottom:14px!important}
.shelf-title h3{font-size:clamp(17px,1.32vw,22px)!important}

/* Covers must be books, not framed posters. Retain native image aspect within a 2:3 slot. */
.book-card,.v15-card{background:none!important;border:0!important;box-shadow:none!important;}
.book-card::after{display:none!important}
.book-card .cover-button,
.shelf-featured .cover-button,
.shelf-compact .cover-button,
.shelf-ranking .cover-button{
 border:0!important;border-radius:5px;outline:0!important;box-shadow:none!important;
}
.book-card .cover-button img{object-fit:contain!important;image-rendering:auto!important;}
.selected-cover,.selected-cover:hover{outline:0!important;box-shadow:none!important}
.selected-cover::after{display:none!important}
.book-card .cover-button:hover{box-shadow:none!important;transform:translateY(-3px)!important}
.book-card .cover-button:hover img{transform:none!important}
.book-card h4{font-size:clamp(12px,1vw,14px)!important;line-height:1.26}
.book-card p{font-size:12px!important;line-height:1.35}

/* Subtle progress affordance for horizontal shelves, no extra card chrome */
.books-grid{scroll-padding-inline:2px;overscroll-behavior-x:contain}
.shelf-nav .icon-button{transition:opacity .18s ease,transform .18s ease}
.shelf-nav .icon-button:disabled{opacity:.22;cursor:default;transform:none}

/* High-contrast form focus and easier-to-tap dialog actions */
dialog input:focus-visible,dialog textarea:focus-visible,dialog select:focus-visible{
 outline:2px solid rgba(217,178,111,.55);outline-offset:2px;
}
.dialog-close{z-index:60!important;}
@media(max-width:760px){
 .site-header .brand img{height:39px!important;width:28px!important}
 .site-header .brand span{font-size:23px!important}
 .site-header{padding-inline:14px!important}
 .site-header nav .button.small{min-height:43px}
 .feature{border-radius:5px}
 .feature-copy{padding:24px 18px 18px!important}
 .feature h1.hero-title{line-height:1.04!important;letter-spacing:-.046em!important}
 .feature .hero-description{line-height:1.42!important}
 
 .shelf{margin-bottom:34px!important}
 .shelf-title h3{font-size:19px!important}
 .book-dialog .detail-actions{gap:10px 16px!important}
 .book-dialog .detail-actions button{min-height:38px}
 .book-dialog .reviews-heading .button.small{min-height:46px}
 .footer .wrap{gap:14px}
}
@media(prefers-reduced-motion:reduce){.book-card .cover-button:hover{transform:none!important}}


/* v26 — splash screen */
.splash-screen{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  background:#000;
  opacity:0;
  visibility:hidden;
  transition:opacity .55s ease, visibility .55s ease;
}
.splash-screen.is-visible{opacity:1;visibility:visible}
.splash-screen.is-hiding{opacity:0;visibility:hidden}
.splash-inner{display:grid;place-items:center;padding:28px}
.splash-logo{
  width:min(72vw,420px);
  height:auto;
  opacity:0;
  transform:translateY(8px) scale(.985);
  filter:drop-shadow(0 10px 26px rgba(255,255,255,.08));
}
.splash-screen.is-visible .splash-logo{animation:splashLogoIn .8s ease forwards;}
@keyframes splashLogoIn{0%{opacity:0;transform:translateY(10px) scale(.98)}100%{opacity:1;transform:translateY(0) scale(1)}}
@media (prefers-reduced-motion: reduce){.splash-screen,.splash-logo{transition:none!important;animation:none!important}}

/* v26 — mystery door experience */
.mystery-dialog{max-width:min(980px,calc(100vw - 24px))!important}
.mystery-dialog-grid{display:grid;grid-template-columns:minmax(300px,420px) minmax(260px,1fr);gap:26px;align-items:center}
.mystery-stage-wrap{display:grid;gap:12px}
.mystery-lead{max-width:44ch}
.mystery-stage{position:relative;display:grid;place-items:center;min-height:380px;padding:8px 0 20px}
.mystery-book-shell{position:relative;width:min(100%,280px);aspect-ratio:2/3;perspective:1700px;transform-style:preserve-3d}
.mystery-book-back,.mystery-book-pages,.mystery-reveal-face,.mystery-door{position:absolute;inset:0;border-radius:5px}
.mystery-book-back{background:linear-gradient(180deg,#151a21,#0c1118);border:1px solid rgba(255,255,255,.08);box-shadow:0 26px 56px rgba(0,0,0,.34);transform:translateX(16px) translateZ(-2px)}
.mystery-book-pages{inset:10px 0 10px auto;width:14px;border-radius:5px;background:linear-gradient(180deg,#f0ede6,#e1dbcf 46%,#cbc2b2 100%);transform:translateX(10px) translateZ(-1px);box-shadow:inset 1px 0 0 rgba(0,0,0,.08), 0 2px 0 rgba(0,0,0,.12)}
.mystery-reveal-face{overflow:hidden;background:#090c10;border:1px solid rgba(255,255,255,.06)}
.mystery-reveal-face img{width:100%;height:100%;object-fit:cover;display:block}
.mystery-reveal-glow{position:absolute;inset:0;background:radial-gradient(circle at 22% 50%, rgba(255,232,191,.22), transparent 40%), linear-gradient(90deg, rgba(255,238,207,.30), transparent 12%);opacity:.66;pointer-events:none}
.mystery-door{cursor:pointer;padding:0;border:1px solid rgba(255,255,255,.08);background:transparent;transform-origin:left center;transform-style:preserve-3d;box-shadow:0 24px 46px rgba(0,0,0,.34);transition:transform .95s cubic-bezier(.2,.84,.16,1), box-shadow .6s ease}
.mystery-door:hover,.mystery-door:focus-visible{box-shadow:0 30px 64px rgba(0,0,0,.40)}
.mystery-door-face{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(180deg,#11171f,#090d14);border-radius:5px;overflow:hidden}
.mystery-door-face::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(255,255,255,.03), transparent 26%), radial-gradient(circle at 70% 30%, rgba(217,178,111,.08), transparent 34%)}
.mystery-door-face img{width:62%;height:auto;opacity:.96;filter:drop-shadow(0 5px 16px rgba(255,255,255,.06));position:relative;z-index:1}
.mystery-book-shell.is-opening .mystery-door,.mystery-book-shell.is-open .mystery-door{transform:rotateY(-118deg) translateX(-4px);box-shadow:-22px 18px 42px rgba(0,0,0,.32)}
.mystery-book-shell.is-open .mystery-reveal-glow{animation:mysteryGlow 1.1s ease}
@keyframes mysteryGlow{0%{opacity:.05}40%{opacity:.85}100%{opacity:.66}}
.mystery-hint{color:#98A2AE;font-size:.95rem;margin:0}
.mystery-details{display:grid;align-content:center;gap:12px;min-height:100%;padding:18px 18px 18px 0}
.mystery-details h3{font-size:clamp(1.8rem,2.2vw,2.6rem);line-height:1.03;color:#fff;margin:0}
.mystery-author{color:#D9B26F;font-weight:600;margin:0 0 6px}
.mystery-actions{padding-top:6px}
.mystery-dialog[open]{overflow:visible}
@media (max-width:760px){.mystery-dialog-grid{grid-template-columns:1fr;gap:16px}.mystery-stage{min-height:300px;padding-top:4px}.mystery-book-shell{width:min(68vw,240px)}.mystery-details{padding:0 0 6px}.splash-logo{width:min(78vw,320px)}}

/* v27 — mystery door uses a door handle instead of the logo */
.mystery-door-face{
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 18%),
    linear-gradient(180deg,#11171f,#090d14);
}
.mystery-door-face .mystery-handle{
  position:absolute;
  width:26%;
  max-width:84px;
  height:auto;
  left:58%;
  top:38%;
  transform:translate(-50%,-50%);
  object-fit:contain;
  opacity:.98;
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.35));
  z-index:2;
}
@media (max-width:760px){
  .mystery-door-face .mystery-handle{width:28%; left:59%; top:39%;}
}

/* v28 genuine hardware asset; no logo or screenshot on the door */
.mystery-door-face .mystery-handle{
 width:auto!important;
 height:21%!important;
 max-width:none!important;
 max-height:none!important;
 position:absolute!important;
 top:37%!important;
 left:auto!important;
 right:9%!important;
 transform:none!important;
 object-fit:contain!important;
 opacity:1!important;
 filter:drop-shadow(0 6px 6px rgba(0,0,0,.55))!important;
}
.mystery-door-face::before{pointer-events:none}
.splash-screen{visibility:visible;opacity:0}
.splash-screen.is-visible{opacity:1}
.splash-screen.is-hiding{opacity:0;pointer-events:none}
.mystery-dialog[open]{overflow:auto!important;max-height:calc(100dvh - 24px)!important}
@media(max-width:760px){
 .mystery-door-face .mystery-handle{height:22%!important;top:38%!important;right:8%!important}
 .mystery-dialog[open]{overflow-y:auto!important;overflow-x:hidden!important}
}

/* v29 — book chapter fullscreen reader */
.chapter-reader{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;max-height:none!important;height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:5px;background:#090b0f!important;color:#f4f1e9!important;overflow:hidden!important}
.chapter-reader::backdrop{background:#000}
.chapter-reader-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.chapter-reader-bar{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;min-height:68px;padding:12px clamp(18px,4vw,64px);border-bottom:1px solid rgba(255,255,255,.09);background:#0c1016;z-index:2}
.chapter-reader-brand{font:700 13px "DM Sans",sans-serif;letter-spacing:.13em;color:#d9b26f}
.chapter-reader-brand span{color:#9ca4af}
.chapter-close{appearance:none;background:#222a33;border:1px solid rgba(255,255,255,.18);border-radius:5px;width:44px;height:44px;flex:0 0 44px;font-size:32px;line-height:1;cursor:pointer;color:#fff;display:grid;place-items:center}
.chapter-close:hover,.chapter-close:focus-visible{background:#35404d;outline:2px solid #d9b26f;outline-offset:2px}
.chapter-reader-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:clamp(28px,6vw,70px) 22px 90px;outline:none}
.chapter-reader-content{max-width:720px;margin:0 auto}
.chapter-kicker{letter-spacing:.21em;font:700 12px "DM Sans",sans-serif;color:#d9b26f}
.chapter-reader-content h1{font:700 clamp(33px,6vw,57px)/1.08 "Outfit",sans-serif;letter-spacing:-.035em;color:#f7f6f2!important;margin:16px 0 12px}
.chapter-reader-author{color:#aeb4bb;font:400 16px "DM Sans",sans-serif;margin:0 0 38px}
.chapter-reader-text{font:400 clamp(18px,2vw,21px)/1.85 Georgia,"Times New Roman",serif;color:#ece9e2;overflow-wrap:break-word}
.chapter-reader-text p{margin:0 0 1.45em;white-space:pre-line}
.chapter-reader-end{text-align:center;margin:64px 0 0;padding-top:32px;border-top:1px solid #30343a;color:#9da5ac;font-size:13px;letter-spacing:.08em}
.chapter-launch{margin:2px 0 10px;background:#d9b26f;border:0;border-radius:5px;padding:13px 19px;color:#14120d;font-weight:800;cursor:pointer;display:inline-flex;gap:16px;align-items:center}
.chapter-launch:hover,.chapter-launch:focus-visible{background:#ecd096;outline-offset:3px}
@media(max-width:700px){.chapter-reader-bar{min-height:60px;padding:9px 16px}.chapter-close{width:42px;height:42px}.chapter-reader-scroll{padding:28px 22px 64px}.chapter-reader-text{font-size:19px;line-height:1.78}.chapter-reader-content h1{font-size:36px}}

/* v31: splash must never intercept the page */
.splash-screen{pointer-events:none!important}

/* v33 — WCAG 2.2 AA target; design tokens and accessible interaction */
:root{--radius:5px;--radius-sm:5px;--focus:#f5d38b}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:85px}
body{overflow-wrap:break-word}
:focus-visible{outline:3px solid var(--focus)!important;outline-offset:3px!important;box-shadow:none!important}
button,a,input,textarea,select,summary,[tabindex="0"]{scroll-margin-top:100px}
button,select,input[type="checkbox"],input[type="radio"]{accent-color:#D9B26F}
button:not([disabled]),a,summary{cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
.skip-link{position:fixed;z-index:10000;top:10px;left:12px;padding:13px 18px;background:#fff;color:#0b1015;border-radius:5px;font-weight:800;transform:translateY(-180%)}
.skip-link:focus{transform:translateY(0)}
button,.icon-button,.dialog-close{min-width:32px;min-height:32px}
.dialog-close{min-width:44px;min-height:44px}
.site-header a,.site-header button{min-height:40px;display:inline-flex;align-items:center}
.site-header .brand img{flex:none}
.book-card .cover-button,.v15-card-open{touch-action:manipulation}
.book-card .cover-button img{object-fit:contain!important}
/* Motion and keyboard parity: keep interaction discoverable without hover. */
@media(hover:none),(pointer:coarse){.book-hover-preview{display:none!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.splash-screen{display:none!important}}
/* modal and long forms must remain scrollable, including at 200% zoom */
dialog[open]:not(.chapter-reader){max-height:calc(100dvh - 20px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain}
.mystery-dialog[open]{overflow-y:auto!important}
.chapter-reader{max-width:none!important}
.chapter-reader-shell,.chapter-reader-scroll{max-width:none}
#v15-mystery-dialog .mystery-dialog-grid{max-width:100%}
.mystery-dialog .mystery-door{min-width:unset;min-height:unset}
#v15-mystery-dialog .mystery-details[hidden]{display:none!important}
/* Preserve clean, rectangular artwork */
.cover-button,.cover-button img,.v15-card-open img,.end-feature-art img,.mag-picks-covers img{border-radius:0!important}
@media(max-width:600px){.site-header{gap:10px}.brand span{font-size:clamp(17px,5vw,23px)}.site-header .button.small{font-size:12px;padding:10px 12px}.book-dialog #book-detail{padding:20px 16px}.form-row{grid-template-columns:1fr!important}.detail-actions,.form-actions{gap:12px}.mystery-dialog-grid{grid-template-columns:minmax(0,1fr)!important}.chapter-reader-scroll{padding-left:18px;padding-right:18px}}

/* v34 — quiet Netflix-style horizontal hero transitions */
.feature{isolation:isolate;overflow:hidden}
.feature>.hero-frame.hero-slide-out{position:absolute!important;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;animation:heroTravelLeft .62s cubic-bezier(.22,.75,.25,1) both!important;filter:none!important}
.feature>.hero-frame.hero-slide-out.hero-move-right{animation-name:heroTravelRight!important}
.feature>.hero-frame.hero-slide-in{z-index:2;position:relative;animation:heroEnterRight .62s cubic-bezier(.22,.75,.25,1) both!important;filter:none!important;opacity:1!important}
.feature>.hero-frame.hero-slide-in.hero-from-left{animation-name:heroEnterLeft!important}
@keyframes heroTravelLeft{from{transform:translateX(0)}to{transform:translateX(-100%)}}
@keyframes heroTravelRight{from{transform:translateX(0)}to{transform:translateX(100%)}}
@keyframes heroEnterRight{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes heroEnterLeft{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.feature>.hero-frame.hero-slide-in,.feature>.hero-frame.hero-slide-out{animation:none!important;transition:none!important}}


/* v35 — full-bleed page layout & meaningful sparse shelves */
:root{--wrap:calc(100vw - 48px)!important;--page-gutter:clamp(16px,2.25vw,48px)}
.wrap{width:calc(100% - 2 * var(--page-gutter))!important;max-width:none!important;margin-inline:var(--page-gutter)!important}
#shelves,.ranking-collections,.library,.v15-discover,.services-section,.reader-cta,.publish-strip{max-width:none!important}
/* Gutter is shared by editorial sections and every catalog row. */
#shelves .shelf{width:100%;max-width:none}
#shelves>.mag-feature{width:100%}
.shelf .books-grid{width:100%!important}
.shelf-story{
  flex:1 0 min(380px,100%);
  align-self:stretch;
  min-width:min(300px,100%);
  min-height:258px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  border-left:1px solid rgba(217,178,111,.35);
  background:linear-gradient(100deg,rgba(217,178,111,.07),rgba(124,150,184,.025));
  padding:clamp(16px,2.2vw,36px);
  border-radius:5px;
  scroll-snap-align:start;
}
.shelf-story-top{display:flex;flex-wrap:wrap;gap:10px 20px;align-items:center}
.shelf-story .eyebrow{font-size:10px;letter-spacing:.14em}
.shelf-story-count{font-size:12px;color:#a9b0ba}
.shelf-story h4{font:700 clamp(21px,2.2vw,36px)/1.12 "Outfit",sans-serif;color:#f3f3f4;margin:12px 0 4px;letter-spacing:-.03em}
.shelf-story-by{color:#D9B26F;font-size:13px;margin:0 0 13px}
.shelf-story-description{line-height:1.6;font-size:clamp(13px,1.05vw,15px);color:#ccd1da;max-width:60ch;margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.shelf-story-action{margin-top:auto;cursor:pointer;border:1px solid rgba(217,178,111,.52);background:transparent;color:#f0d6a6;padding:11px 16px;border-radius:5px;font:600 13px "DM Sans",sans-serif;min-height:44px}
.shelf-story-action:hover{background:#d9b26f;color:#101216}
.shelf-story-action:focus-visible{outline:3px solid #f5d498;outline-offset:3px}
@media(max-width:760px){:root{--wrap:calc(100vw - 32px)!important;--page-gutter:16px}.shelf-story{flex-basis:100%;min-height:0;padding:20px;order:1}.shelf-story-description{-webkit-line-clamp:3}}
@media(prefers-reduced-motion:reduce){.shelf-story-action{transition:none}}


/* v36 — true Netflix-style edge-to-edge horizontal shelves */
:root{--page-gutter:clamp(16px,2.2vw,38px)}
#shelves{overflow:hidden}
#shelves>.shelf{position:relative;margin:0 0 clamp(26px,3vw,46px);width:100%}
#shelves .shelf-title{margin:0 0 13px;display:flex;align-items:center;justify-content:space-between;gap:12px}
#shelves .shelf-title h3{font-size:clamp(21px,2.1vw,29px);font-weight:750;line-height:1.15;letter-spacing:-.025em}
#shelves .books-grid{display:flex!important;align-items:flex-start;gap:clamp(8px,1.15vw,17px)!important;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:3px 0 10px!important;max-width:none;min-width:0}
#shelves .books-grid::-webkit-scrollbar{display:none}
#shelves .book-card,#shelves .shelf-featured .book-card,#shelves .shelf-compact .book-card,#shelves .shelf-compact:nth-of-type(n/**/+4) .book-card,#shelves .shelf-ranking .book-card{flex:0 0 clamp(165px,14.9vw,252px)!important;width:clamp(165px,14.9vw,252px)!important;min-width:0!important;margin:0!important;scroll-snap-align:start}
#shelves .shelf-featured .book-card{flex-basis:clamp(185px,17.3vw,295px)!important;width:clamp(185px,17.3vw,295px)!important}
#shelves .cover-button{display:block;width:100%!important;aspect-ratio:2/3;height:auto!important;overflow:hidden;border:0!important;padding:0!important;border-radius:5px!important;position:relative}
#shelves .cover-button img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;aspect-ratio:2/3;border-radius:5px!important}
#shelves .book-card h4{font-size:clamp(13px,1.03vw,16px);line-height:1.25;margin-top:9px;max-width:100%}
#shelves .book-card p{font-size:13px;margin-top:4px;max-width:100%}
#shelves .shelf-story{display:none!important}
#shelves .book-card .text-link{font-size:12px}
#shelves .shelf-nav{flex-shrink:0}
#shelves .shelf-nav[hidden]{display:none!important}
@media(hover:hover){#shelves .cover-button img{transition:transform .24s ease}#shelves .cover-button:hover img{transform:scale(1.035)}}
@media(max-width:760px){
 :root{--page-gutter:16px}
 #shelves>.shelf{margin-bottom:26px}
 #shelves .shelf-title{margin-bottom:11px}
 #shelves .shelf-title h3{font-size:21px!important}
 #shelves .book-card,#shelves .shelf-featured .book-card,#shelves .shelf-compact .book-card,#shelves .shelf-compact:nth-of-type(n/**/+4) .book-card,#shelves .shelf-ranking .book-card{width:clamp(145px,43vw,208px)!important;flex-basis:clamp(145px,43vw,208px)!important}
 #shelves .shelf-featured .book-card{width:clamp(160px,47vw,225px)!important;flex-basis:clamp(160px,47vw,225px)!important}
 #shelves .shelf-nav{display:none!important}
}
@media(max-width:440px){
 #shelves .book-card,#shelves .shelf-featured .book-card,#shelves .shelf-compact .book-card,#shelves .shelf-compact:nth-of-type(n/**/+4) .book-card,#shelves .shelf-ranking .book-card{width:45vw!important;flex-basis:45vw!important}
 #shelves .shelf-featured .book-card{width:48vw!important;flex-basis:48vw!important}
}
@media(prefers-reduced-motion:reduce){#shelves .cover-button img{transition:none!important}#shelves .books-grid{scroll-behavior:auto!important}}


/* v37 — calm cinematic hero, with stronger differentiation from the header */
.site-header{background:#05070b!important;border-bottom:1px solid rgba(255,255,255,.055)}
#featured.feature{
  position:relative;
  isolation:isolate;
  border-color:rgba(185,171,149,.13);
  background:
    radial-gradient(ellipse 65% 88% at 87% 45%,rgba(145,112,78,.29) 0%,rgba(88,69,69,.16) 38%,transparent 78%),
    radial-gradient(ellipse 70% 90% at 13% 76%,rgba(57,87,122,.33) 0%,transparent 78%),
    linear-gradient(125deg,#0d1723 0%,#101824 42%,#181519 75%,#0a1019 100%)!important;
  box-shadow:inset 0 0 100px rgba(0,0,0,.15),0 22px 70px rgba(0,0,0,.24);
}
#featured.feature .hero-frame{background:transparent!important}
#featured.feature .feature-copy{position:relative;z-index:2}
#featured.feature .hero-visual{position:relative;z-index:1}
#featured.feature .hero-visual::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(9,16,25,.25),transparent 35%),linear-gradient(0deg,rgba(8,12,19,.25),transparent 45%);
}
#featured.feature .hero-visual img{filter:drop-shadow(0 20px 33px rgba(0,0,0,.25))}
#featured.feature .hero-kicker{letter-spacing:.15em}
@media(max-width:700px){
 #featured.feature{
  background:radial-gradient(ellipse 115% 55% at 70% 80%,rgba(155,113,76,.24),transparent 72%),radial-gradient(ellipse 120% 60% at 15% 10%,rgba(61,94,135,.28),transparent 80%),linear-gradient(160deg,#0e1724,#15131a 65%,#0a1019)!important;
 }
 #featured.feature .hero-visual::after{background:linear-gradient(0deg,rgba(8,12,19,.35),transparent 40%)}
}


/* v38 — genuine edge-to-edge sections; content padding remains internal */
:root{--page-gutter:0px!important;--wrap:100%!important}
html,body{width:100%;max-width:100%;overflow-x:clip}
.wrap,main>.wrap,.library.wrap,.publish-strip.wrap,.reader-cta.wrap,
.site-header.wrap,.footer .wrap,.ranking-collections,.services-section,
#featured.feature.wrap,#v15-discover.wrap{
  width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;
}
#featured.feature,#v15-discover,.mag-feature,.reader-cta,.services-section,.publish-strip{border-radius:0!important}
#featured.feature{border-left:0!important;border-right:0!important}
#v15-discover,.services-section,.reader-cta,.publish-strip,.mag-feature{border-left:0!important;border-right:0!important}
/* Sections span the viewport, but text remains comfortably inset. */
.site-header{padding-inline:clamp(15px,3vw,54px)!important}

.library{padding-inline:0!important}
.library>.section-heading,.library>.discovery-toolbar,.library>.library-tools,
.library>#book-count,.ranking-collections>.section-heading,
#shelves>.shelf>.shelf-title,#shelves>.shelf>.shelf-header{
  padding-inline:clamp(16px,3vw,54px)!important;
}
#shelves>.shelf>.books-grid{padding-inline:clamp(16px,3vw,54px)!important;scroll-padding-inline:clamp(16px,3vw,54px)}
#featured .feature-copy{padding-left:clamp(20px,5vw,94px)!important}
#featured .hero-visual{min-width:0}
#shelves>.mag-feature{margin-inline:0!important}
@media(max-width:760px){
 .site-header{padding-inline:14px!important}
 #featured .feature-copy{padding-inline:18px!important}
 
}


/* v39 — editorial color rhythm and safe interior gutters.
   True full bleed section backgrounds; text never touches viewport edges. */
:root{
  --editorial-gutter:clamp(20px, 3.2vw, 64px);
  --editorial-ink:#f6f5f3;
  --editorial-muted:#c4c9d0;
  --editorial-gold:#e3be7f;
}
#v15-discover,
.library,
.services-section,
.reader-cta,
.publish-strip,
.mag-feature,
.ranking-collections,
.site-footer,
footer,
#shelves,
#shelves > .shelf {
  box-sizing:border-box;
}






.library{
  padding-top:clamp(34px,3.5vw,62px)!important;
  padding-bottom:clamp(40px,5vw,82px)!important;
  background:
    radial-gradient(ellipse 54% 45% at 84% 8%,rgba(31,75,91,.17),transparent 80%),
    linear-gradient(180deg,#090e15 0%,#0c1720 44%,#0b101a 100%)!important;
}
.library>.section-heading,.library>.discovery-toolbar,.library>.library-tools,
.library>#book-count,
#shelves>.shelf>.shelf-title,#shelves>.shelf>.shelf-header,
.ranking-collections>.section-heading{
  padding-inline:var(--editorial-gutter)!important;
}
#shelves>.shelf>.books-grid{
  padding-inline:var(--editorial-gutter)!important;
  scroll-padding-inline:var(--editorial-gutter)!important;
}
#shelves>.shelf{
  margin-bottom:clamp(30px,4vw,70px)!important;
}
#shelves>.shelf:nth-child(3n/**/+2){
  background:linear-gradient(100deg,rgba(33,47,65,.30),rgba(15,22,32,.02) 75%)!important;
  padding-block:clamp(22px,2.5vw,42px)!important;
}
#shelves>.shelf:nth-child(3n/**/+3){
  background:linear-gradient(105deg,rgba(87,60,47,.17),rgba(11,18,29,.02) 76%)!important;
  padding-block:clamp(20px,2.5vw,40px)!important;
}
#shelves .book-card{min-width:0!important}
#shelves .book-card h4,#shelves .book-card p,
#shelves .book-card .text-link{overflow-wrap:break-word}
#shelves .shelf-title h3{color:#f5f4f1!important}
#shelves .shelf-title{padding-top:4px}

.mag-feature{
  padding-inline:var(--editorial-gutter)!important;
  background:linear-gradient(125deg,#172331 0%,#111921 60%,#14151a 100%)!important;
}
.mag-feature:nth-of-type(even){
  background:linear-gradient(125deg,#251e24 0%,#17171e 60%,#0d1521 100%)!important;
}
.mag-feature .mag-copy,
.mag-feature .mag-image,
.mag-feature h2,.mag-feature p{min-width:0}
.mag-feature .mag-copy{padding-inline:clamp(0px,1.1vw,18px)!important}

.reader-cta,.publish-strip{
  padding-inline:var(--editorial-gutter)!important;
  background:linear-gradient(115deg,#1b2533 0%,#141a25 50%,#29211a 100%)!important;
}
.reader-cta > *, .publish-strip > *{min-width:0}

.services-section{
  padding:clamp(34px,3.5vw,64px) var(--editorial-gutter)!important;
  background:
    radial-gradient(ellipse 55% 95% at 95% 2%,rgba(147,98,62,.17),transparent 70%),
    linear-gradient(155deg,#161d2a,#13151f 50%,#201b1a)!important;
}
.services-section .services-header,
.services-section .services-grid,
.services-section .services-disclaimer{
  max-width:100%;
}
.services-grid{gap:clamp(10px,1vw,18px)}
.service-card{
  background:linear-gradient(155deg,rgba(33,44,63,.72),rgba(21,25,34,.93))!important;
  border-color:rgba(190,195,212,.15)!important;
  padding:clamp(18px,1.6vw,28px)!important;
  min-width:0;
}
.service-card:nth-child(3n/**/+2){
  background:linear-gradient(150deg,rgba(46,40,48,.78),rgba(22,25,34,.95))!important;
}
.service-card:nth-child(3n){
  background:linear-gradient(155deg,rgba(33,46,48,.83),rgba(23,27,31,.95))!important;
}
.service-card p{color:#c8cdd3!important}
.services-header h2{color:#f6f2ec!important}
.services-header h2 em{color:var(--editorial-gold)!important}

.site-footer,footer{
  padding-inline:var(--editorial-gutter)!important;
  background:linear-gradient(95deg,#0b121c,#13131a 58%,#14110f)!important;
}
.footer .wrap{padding-inline:0!important}
#featured .feature-copy{padding-left:clamp(24px,5vw,96px)!important;padding-right:clamp(20px,3vw,56px)!important}
#featured .hero-visual{padding-right:clamp(16px,2vw,44px)!important}
#featured .hero-description{max-width:57ch}
#featured .feature-copy h1{overflow-wrap:break-word}


@media(max-width:760px){
 :root{--editorial-gutter:18px}
 #v15-discover,.services-section{padding-inline:18px!important}
 #featured .feature-copy{padding-inline:20px!important}
 #featured .hero-visual{padding-inline:14px!important}
 .mag-feature,.reader-cta,.publish-strip{padding-inline:18px!important}
 .services-header{gap:14px}
}
@media(prefers-reduced-motion:reduce){
 #shelves .books-grid{scroll-behavior:auto!important}
}

/* v40 — True editorial edge insets + strong alternating color identities */
:root {--shelf-inset:clamp(20px,3.25vw,64px);--shelf-accent:#d8b575}
#shelves{overflow:hidden!important;width:100%!important}
#shelves .shelf{
  position:relative;isolation:isolate;box-sizing:border-box;
  width:100%!important;max-width:none!important;
  margin:0!important;
  padding:clamp(26px,3.4vw,56px) 0 clamp(30px,4vw,64px)!important;
  border-top:1px solid rgba(255,255,255,.08);
  background:linear-gradient(115deg,#192d40 0%,#101824 47%,#0c111b 100%)!important;
}
#shelves .shelf:nth-of-type(5n/**/+2){
  --shelf-accent:#ecc489;
  background:radial-gradient(ellipse 60% 115% at 93% 22%,rgba(227,166,98,.30),transparent 70%),linear-gradient(105deg,#38271e 0%,#241c20 42%,#10131b 100%)!important;
}
#shelves .shelf:nth-of-type(5n/**/+3){
  --shelf-accent:#97d6d0;
  background:radial-gradient(ellipse 65% 140% at 6% 88%,rgba(64,189,182,.24),transparent 70%),linear-gradient(105deg,#103332 0%,#102529 47%,#10151c 100%)!important;
}
#shelves .shelf:nth-of-type(5n/**/+4){
  --shelf-accent:#cbb2e9;
  background:radial-gradient(ellipse 62% 140% at 90% 4%,rgba(155,106,209,.28),transparent 70%),linear-gradient(105deg,#251c40 0%,#1c2033 53%,#0e131a 100%)!important;
}
#shelves .shelf:nth-of-type(5n){
  --shelf-accent:#efb0a0;
  background:radial-gradient(ellipse 62% 120% at 12% 13%,rgba(205,107,109,.26),transparent 65%),linear-gradient(110deg,#3c252c 0%,#211d28 51%,#131820 100%)!important;
}
/* These rules target nested ranking shelves too, not only immediate children. */
#shelves .shelf .shelf-title{
  box-sizing:border-box;
  padding-left:var(--shelf-inset)!important;
  padding-right:var(--shelf-inset)!important;
  margin-bottom:clamp(15px,1.5vw,26px)!important;
  min-width:0;
}
#shelves .shelf .shelf-title h3{
  color:#fff!important;font-size:clamp(22px,1.85vw,34px)!important;
  letter-spacing:-.03em!important;line-height:1.16!important;
  min-width:0;overflow-wrap:anywhere;
}
#shelves .shelf .shelf-title h3 span{color:var(--shelf-accent)!important}
#shelves .shelf .books-grid{
  box-sizing:border-box;
  width:100%!important;
  padding:4px var(--shelf-inset) 20px!important;
  scroll-padding-left:var(--shelf-inset)!important;
  scroll-padding-right:var(--shelf-inset)!important;
}
#shelves .shelf .book-card h4,
#shelves .shelf .book-card p,
#shelves .shelf .book-card .rank-count,
#shelves .shelf .book-card .text-link{
  overflow-wrap:break-word!important;
}
#shelves .ranking-collections{
  padding:clamp(32px,4vw,68px) 0!important;
  background:linear-gradient(140deg,#0e1b2b,#171725 52%,#17120e)!important;
}
#shelves .ranking-heading{
  box-sizing:border-box;padding:0 var(--shelf-inset) 12px!important;
}
#shelves .ranking-empty{
  box-sizing:border-box;padding-inline:var(--shelf-inset)!important;
}
#shelves .ranking-collections .shelf:nth-of-type(odd){
  --shelf-accent:#e6c17d;
  background:radial-gradient(ellipse 55% 130% at 95% 50%,rgba(215,163,93,.23),transparent 76%),linear-gradient(110deg,#282132,#192333 70%,#101923)!important;
}
#shelves .ranking-collections .shelf:nth-of-type(even){
  --shelf-accent:#89c9dd;
  background:radial-gradient(ellipse 70% 150% at 15% 20%,rgba(53,132,180,.25),transparent 74%),linear-gradient(110deg,#112d3b,#121b2d 65%,#241e29)!important;
}
#shelves .mag-feature{
  box-sizing:border-box;width:100%!important;
  padding:clamp(40px,5vw,90px) var(--shelf-inset)!important;
  background:radial-gradient(ellipse 60% 90% at 85% 20%,rgba(231,178,91,.27),transparent 75%),linear-gradient(115deg,#3a2520,#222033 56%,#111923)!important;
}
#shelves .mag-feature-picks{
  background:radial-gradient(ellipse 70% 120% at 5% 85%,rgba(89,168,169,.25),transparent 75%),linear-gradient(110deg,#162d35,#21203b 60%,#171b23)!important;
}
#shelves .mag-feature .mag-copy,#shelves .mag-feature .mag-picks-copy{min-width:0}
#shelves .mag-feature p{max-width:65ch}

.services-section{background:radial-gradient(ellipse 70% 130% at 95% 20%,rgba(150,99,85,.24),transparent 75%),linear-gradient(120deg,#232133,#172334 52%,#29211e)!important}
#shelves .shelf .cover-button:focus-visible{outline:3px solid #ffdfaa!important;outline-offset:4px!important}
@media(max-width:760px){
 :root{--shelf-inset:18px}
 #shelves .shelf{padding-block:27px 34px!important}
 #shelves .shelf .shelf-title{padding-inline:18px!important}
 #shelves .shelf .books-grid{padding:4px 18px 18px!important;scroll-padding-inline:18px!important}
 #shelves .mag-feature{padding:36px 18px!important}
 #shelves .ranking-heading{padding-inline:18px!important}
}

/* v41 — Editorial composition: content-driven geometry instead of decorative gradients */

















/* No colored banding in the catalog: cover art gives the color and rhythm. */
#shelves .shelf,#shelves .shelf:nth-of-type(n),#shelves .ranking-collections .shelf:nth-of-type(n){background:transparent!important;padding-block:clamp(20px,2.7vw,46px)!important;border-color:rgba(255,255,255,.07)!important}
#shelves .shelf:nth-of-type(even){background:rgba(255,255,255,.026)!important}
#shelves .ranking-collections{background:#121923!important}
#shelves .mag-feature{background:linear-gradient(110deg,#283645,#181d2a 55%,#28211c)!important}
#shelves .mag-feature-picks{background:linear-gradient(115deg,#1c3534,#1b2331 60%,#1b1b24)!important}



/* v42 · ART DIRECTION D: bold cinematic, vivid but controlled. */
:root{--d-gutter:clamp(20px,3.2vw,60px);--d-ink:#f9f7f5;--d-gold:#f3c669}
html,body{max-width:100%;overflow-x:clip;background:#050b16!important}
#featured{position:relative;isolation:isolate;overflow:hidden!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:radial-gradient(ellipse 64% 120% at 85% 40%,rgba(228,93,118,.32),transparent 70%),radial-gradient(ellipse 75% 150% at 37% 15%,rgba(100,72,180,.34),transparent 75%),linear-gradient(115deg,#251536,#122a47 65%,#08202d)!important}
#featured::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(105deg,rgba(5,10,24,.4),transparent 62%)}
#featured .hero-frame{position:relative;z-index:1;background:transparent!important}
#featured .feature-copy{padding-left:var(--d-gutter)!important;padding-right:clamp(18px,4vw,64px)!important}
#featured h1{color:#fff!important;text-shadow:0 2px 25px rgba(0,0,0,.18)}
#featured .hero-description{color:#e5e8f1!important}
#featured .hero-visual img{object-fit:contain!important;filter:drop-shadow(0 18px 36px rgba(0,0,0,.45))}
#featured .hero-visual{background:transparent!important}
/* Bold alternating narrative bands: no blank spacer height. */
#shelves{background:#07101c!important}
#shelves .shelf{background:linear-gradient(108deg,#081d30,#071321 48%,#0c1830)!important;border:0!important;margin:0!important;padding:clamp(24px,3vw,46px) 0 clamp(24px,3.2vw,50px)!important;min-height:0!important}
#shelves .shelf:nth-of-type(4n + 2){background:radial-gradient(ellipse 50% 100% at 90% 30%,rgba(255,124,94,.18),transparent 72%),linear-gradient(105deg,#261933,#1b1833 60%,#241a2a)!important}
#shelves .shelf:nth-of-type(4n + 3){background:radial-gradient(ellipse 70% 100% at 5% 70%,rgba(23,173,176,.23),transparent 65%),linear-gradient(110deg,#082c37,#102131 63%,#0e1e30)!important}
#shelves .shelf:nth-of-type(4n){background:radial-gradient(ellipse 56% 125% at 87% 10%,rgba(247,175,69,.16),transparent 75%),linear-gradient(105deg,#252138,#182437 65%,#161e2e)!important}
#shelves .shelf .shelf-title,#shelves .shelf .books-grid{padding-inline:var(--d-gutter)!important}
#shelves .shelf .shelf-title{margin-bottom:16px!important}
#shelves .shelf .shelf-title h3{color:white!important;font-size:clamp(23px,2.3vw,36px)!important}
#shelves .shelf .books-grid{display:flex!important;gap:clamp(12px,1vw,19px)!important;align-items:stretch!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-padding-inline:var(--d-gutter);padding-bottom:12px!important;min-height:0!important}
#shelves .shelf .book-card{flex:0 0 clamp(142px,12vw,205px)!important;width:clamp(142px,12vw,205px)!important;min-width:0!important;max-width:none!important;background:none!important;border:0!important;overflow:visible!important}
#shelves .shelf .book-card .cover-button{display:block!important;width:100%!important;height:auto!important;aspect-ratio:2/3!important;overflow:hidden!important;background:#101725!important;padding:0!important;border-radius:5px!important;box-shadow:0 14px 28px rgba(0,0,0,.23)!important}
#shelves .shelf .book-card .cover-button>img{display:block!important;width:100%!important;height:100%!important;aspect-ratio:2/3!important;object-fit:cover!important;object-position:center!important;max-width:none!important;max-height:none!important;margin:0!important;transform:none!important}
#shelves .shelf .book-card h4{font-size:clamp(13px,1vw,16px)!important;color:#fff!important;line-height:1.3!important;margin:10px 0 4px!important}
#shelves .shelf .book-card p{color:#adb9cd!important;margin:0!important;font-size:13px!important}
#shelves .shelf .book-card .text-link{margin-top:10px!important;display:inline-block!important}
/* AI shelf specifically: book covers instead of short letterbox thumbnails. */
#shelves .shelf-ai{background:linear-gradient(115deg,#21203f,#102e46 55%,#0a2938)!important}
#shelves .shelf-ai .book-card{flex-basis:clamp(160px,15vw,225px)!important;width:clamp(160px,15vw,225px)!important}
/* Sparse real-world category: tight meaningful two-column editorial layout. */
#shelves .shelf-sparse{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(230px,.8fr);column-gap:clamp(18px,4vw,90px);align-items:center;padding-inline:var(--d-gutter)!important}
#shelves .shelf-sparse>.shelf-title{grid-column:1/-1;padding-inline:0!important}
#shelves .shelf-sparse>.books-grid{padding:0 0 12px!important;overflow-x:auto!important}
#shelves .shelf-sparse .book-card{flex-basis:clamp(138px,13vw,210px)!important;width:clamp(138px,13vw,210px)!important}
.sparse-story{border-left:2px solid rgba(247,191,113,.75);padding:20px clamp(16px,3vw,44px);min-width:0}
.sparse-kicker{color:#f7bf71;font-size:11px;font-weight:800;letter-spacing:.16em}
.sparse-story h4{font-size:clamp(25px,2.8vw,46px);color:#fff;line-height:1.07;margin:15px 0}
.sparse-story p{font-size:clamp(14px,1.15vw,18px);color:#d2d9e1;max-width:46ch;line-height:1.55}
.sparse-link{margin-top:16px!important}
/* Personal discovery is a two-sided compact showcase, never enormous empty space. */






/* Section interludes with actual covers, not padding emptiness. */
#shelves .mag-feature{margin:0!important;padding:clamp(35px,4vw,68px) var(--d-gutter)!important;background:linear-gradient(100deg,#332447,#2a294a 47%,#142e41)!important}
#shelves .mag-feature-picks{background:linear-gradient(105deg,#093c48,#143648 49%,#382944)!important}
#shelves .mag-feature img{max-width:100%;object-fit:contain}
.services-section{background:linear-gradient(110deg,#1a233d,#18364a 47%,#30253f)!important;padding-inline:var(--d-gutter)!important}
/* 5 px max corner radius across content UI */
#featured button,#shelves button,#v15-discover button,.service-card,.services-section button{border-radius:5px!important}
@media(max-width:820px){
 :root{--d-gutter:18px}
 #shelves .shelf-sparse{grid-template-columns:1fr;gap:10px;padding-inline:18px!important}
 #shelves .shelf-sparse>.shelf-title{grid-column:1}
 #shelves .shelf-sparse .books-grid{padding:0 0 8px!important}
 .sparse-story{margin:4px 0 2px;padding:14px 16px;background:rgba(0,0,0,.17);border-radius:5px}
 
 #featured .feature-copy{padding-inline:18px!important}
 #shelves .shelf .book-card{flex-basis:clamp(135px,39vw,178px)!important;width:clamp(135px,39vw,178px)!important}
}
@media(prefers-reduced-motion:reduce){#shelves .books-grid{scroll-behavior:auto!important}}

/* v43 — Mystery dialog: a deliberate, centered single-column composition. */
#v15-mystery-dialog.mystery-dialog{
  box-sizing:border-box!important;
  width:min(520px,calc(100vw - 32px))!important;
  max-width:min(520px,calc(100vw - 32px))!important;
  padding:clamp(24px,3vw,38px)!important;
  max-height:calc(100dvh - 32px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
#v15-mystery-dialog .mystery-dialog-grid{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:18px!important;
  min-width:0!important;
}
#v15-mystery-dialog .mystery-stage-wrap{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
  gap:10px!important;
  min-width:0!important;
}
#v15-mystery-dialog .mystery-stage-wrap>.eyebrow{align-self:flex-start;text-align:left;padding-right:42px}
#v15-mystery-dialog h2{
  align-self:stretch!important;
  margin:4px 0 0!important;
  text-align:center!important;
  padding:0 10px!important;
  font-size:clamp(26px,4vw,35px)!important;
}
#v15-mystery-dialog .mystery-lead{
  margin:0 auto!important;
  max-width:38ch!important;
  text-align:center!important;
  line-height:1.5!important;
}
#v15-mystery-dialog .mystery-stage{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  min-height:0!important;
  padding:14px 0 10px!important;
}
#v15-mystery-dialog .mystery-book-shell{
  width:clamp(160px,20vw,224px)!important;
  max-width:64vw!important;
  aspect-ratio:2/3!important;
}
#v15-mystery-dialog .mystery-hint{text-align:center!important;margin:0 auto!important}
#v15-mystery-dialog .mystery-details{
  min-height:0!important;
  box-sizing:border-box!important;
  width:100%!important;
  text-align:center!important;
  padding:18px 8px 4px!important;
  border-top:1px solid rgba(255,255,255,.12)!important;
  gap:8px!important;
}
#v15-mystery-dialog .mystery-details[hidden]{display:none!important}
#v15-mystery-dialog .mystery-details h3{font-size:clamp(24px,4vw,34px)!important}
#v15-mystery-dialog #v15-mystery-text{padding:4px 0 10px!important;font-size:clamp(15px,2vw,18px)!important;line-height:1.5!important}
#v15-mystery-dialog .mystery-actions{display:flex;justify-content:center}
#v15-mystery-dialog .mystery-actions .button{min-width:190px;justify-content:center}
@media(max-width:600px){
  #v15-mystery-dialog.mystery-dialog{
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    padding:24px 18px!important;
    max-height:calc(100dvh - 24px)!important;
  }
  #v15-mystery-dialog .mystery-book-shell{width:min(52vw,196px)!important}
}

/* v44 — compact discovery shelf: content first, no large empty boxes */



















/* v45 — visual consistency and whitespace discipline */
:root{--v45-inset:clamp(20px,3.1vw,58px)}
#shelves{overflow-x:clip!important}
#shelves .shelf,
#shelves .ranking-collections .shelf{min-height:0!important;padding-top:clamp(22px,2.5vw,38px)!important;padding-bottom:clamp(20px,2.6vw,42px)!important}
#shelves .shelf .shelf-title{padding-inline:var(--v45-inset)!important;margin:0 0 16px!important;min-height:0!important}
#shelves .shelf .shelf-title h3{font-family:Outfit,Arial,sans-serif;font-size:clamp(22px,2vw,32px)!important;font-weight:750!important;letter-spacing:-.035em!important;line-height:1.2!important}
#shelves .shelf .books-grid{padding:3px var(--v45-inset) 14px!important;scroll-padding-inline:var(--v45-inset)!important;gap:clamp(11px,1.15vw,20px)!important;cursor:grab;scrollbar-width:thin;scrollbar-color:rgba(214,190,142,.4) transparent;touch-action:pan-x pan-y;overscroll-behavior-x:contain}
#shelves .shelf .books-grid.is-dragging{cursor:grabbing!important;scroll-behavior:auto!important;user-select:none!important}
#shelves .shelf .books-grid.is-dragging *,#ai-books.is-dragging *, .v15-cards.is-dragging *{user-select:none!important;pointer-events:none!important}
#shelves .shelf .book-card{flex:0 0 clamp(142px,12vw,202px)!important;width:clamp(142px,12vw,202px)!important;align-self:start!important}
#shelves .shelf .book-card .cover-button{width:100%!important;aspect-ratio:2/3!important;height:auto!important;overflow:hidden!important;display:block!important;background:#111723!important}
#shelves .shelf .book-card .cover-button>img{width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;background:#111723!important;-webkit-user-drag:none!important;user-select:none!important}
#shelves .shelf .book-card h4{font-size:clamp(13px,1vw,15px)!important;font-weight:700!important;line-height:1.35!important;margin:10px 0 3px!important}
#shelves .shelf .book-card p{font-size:12px!important;line-height:1.45!important}
#shelves .mag-feature{margin:0!important;padding:clamp(24px,3.6vw,52px) var(--v45-inset)!important;min-height:0!important}
#shelves .mag-feature .mag-copy h2{font-size:clamp(28px,3.2vw,52px)!important}
/* Book covers for the AI section: remove contradictory historical aspect rules. */
#percorsi-ai{padding:clamp(28px,3vw,44px) var(--v45-inset)!important;min-height:0!important}
#percorsi-ai #ai-books{display:flex!important;flex-wrap:nowrap!important;align-items:flex-start!important;gap:clamp(12px,1.1vw,19px)!important;overflow-x:auto!important;overflow-y:hidden!important;padding:10px 2px 15px!important;scroll-padding-inline:2px!important;scrollbar-width:thin;cursor:grab}
#percorsi-ai #ai-books.is-dragging{cursor:grabbing!important;scroll-behavior:auto!important}
#percorsi-ai #ai-books .book-card{flex:0 0 clamp(148px,12vw,196px)!important;width:clamp(148px,12vw,196px)!important;max-width:none!important;min-width:0!important;min-height:0!important;height:auto!important;display:block!important;padding:0!important;background:none!important;border:0!important}
#percorsi-ai #ai-books .cover-button{display:block!important;position:relative!important;width:100%!important;height:auto!important;aspect-ratio:2/3!important;overflow:hidden!important;padding:0!important;border:0!important;background:#111723!important}
#percorsi-ai #ai-books .cover-button img{display:block!important;position:static!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;background:#111723!important;transform:none!important;-webkit-user-drag:none!important}
#percorsi-ai #ai-books .book-card h4{font-size:14px!important;line-height:1.3!important;margin:10px 0 4px!important}
#percorsi-ai #ai-books .book-card p{font-size:12px!important;line-height:1.45!important;margin:0 0 8px!important}
#percorsi-ai #ai-books .book-card .text-link{font-size:12px!important}
/* A sparse shelf is a short editorial row, not a vacant full-screen feature. */
#shelves .shelf-sparse{display:block!important;padding-inline:0!important}
#shelves .shelf-sparse>.shelf-title{padding-inline:var(--v45-inset)!important}
#shelves .shelf-sparse>.books-grid{display:flex!important;width:100%!important;max-width:none!important;overflow-x:auto!important;padding-inline:var(--v45-inset)!important}
#shelves .shelf-sparse>.sparse-story{display:none!important}
/* Balanced personal recommendations and small-screen ergonomics. */





#shelves .ranking-collections .ranking-heading{padding-inline:var(--v45-inset)!important}
#shelves .book-card .cover-button:focus-visible,#percorsi-ai .cover-button:focus-visible{outline:3px solid #f7d38d!important;outline-offset:3px!important}
@media(max-width:760px){:root{--v45-inset:18px}#shelves .shelf .book-card{flex-basis:clamp(138px,40vw,180px)!important;width:clamp(138px,40vw,180px)!important}#percorsi-ai #ai-books .book-card{flex-basis:clamp(140px,40vw,180px)!important;width:clamp(140px,40vw,180px)!important}#shelves .shelf{padding-block:24px!important}}

/* v46 — Native select popup contrast (Chromium / Windows / Android) */
select, dialog select, .review-form select, .book-form select, .report-form select {
  color-scheme: dark;
  background-color: #1b2029;
  color: #f9fafb;
}
select option, select optgroup,
dialog select option, dialog select optgroup {
  background-color: #1b2029;
  color: #f9fafb;
}
select option:checked { background-color: #354661; color: #ffffff; }
select:disabled { color: #aeb6c2; opacity: .8; }

/* v47 full-bleed featured booktrailer, no autoplay until deliberate action */
.trailer-showcase{width:100%!important;max-width:none!important;box-sizing:border-box;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 78% 20%,rgba(173,80,106,.25),transparent 57%),linear-gradient(115deg,#101b32,#2a1a32 58%,#0a1222)!important;padding:clamp(28px,4vw,70px) clamp(20px,3vw,60px)!important;border-block:1px solid rgba(255,255,255,.13);margin:clamp(20px,2.6vw,40px) 0!important}
.trailer-showcase[hidden]{display:none!important}
.showcase-copy{margin:0 auto 22px;max-width:1500px}
.showcase-copy h2{font:800 clamp(28px,4.2vw,62px)/1.05 Outfit,Arial,sans-serif;letter-spacing:-.04em;color:#fff!important;margin:.35em 0 .25em}
.showcase-copy p{color:#dee0eb;margin:.2em 0}
.showcase-sub{font-size:clamp(14px,1.3vw,18px)}
.showcase-screen{position:relative;width:100%;max-width:1500px;aspect-ratio:16/9;margin:auto;background:#000;border-radius:5px;overflow:hidden;border:1px solid rgba(255,255,255,.14)}
.showcase-screen iframe{display:block;border:0;width:100%;height:100%}
.showcase-play{cursor:pointer;position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;padding:0;background:#000;border:0;color:#fff}
.showcase-play img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.78}
.showcase-play:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.7),transparent 48%);pointer-events:none}
.showcase-play-icon{position:relative;z-index:1;width:clamp(66px,8vw,106px);height:clamp(66px,8vw,106px);display:grid;place-items:center;background:#e8c787;color:#0b1020;border-radius:50%;font-size:clamp(27px,4vw,46px);padding-left:5px;box-shadow:0 8px 30px #0006;transition:transform .2s ease}
.showcase-play:hover .showcase-play-icon{transform:scale(1.07)}
.showcase-play:focus-visible{outline:4px solid #fff;outline-offset:-6px}
.showcase-play-caption{position:absolute;z-index:1;bottom:clamp(16px,2vw,36px);font-weight:750;font-size:clamp(14px,1.3vw,19px)}
.showcase-foot{max-width:1500px;margin:16px auto 0;display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:#cbd1df;font-size:14px}
.showcase-book{border:1px solid #d9b26f;background:transparent;color:#f2d497;padding:12px 18px;border-radius:5px;cursor:pointer}
@media(max-width:680px){.trailer-showcase{padding:28px 18px!important}.showcase-screen{aspect-ratio:16/10}.showcase-foot{font-size:12px}}
@media(prefers-reduced-motion:reduce){.showcase-play-icon{transition:none}}

/* Studio v48: public theme presets */
html[data-studio-theme="ocean"] #v15-discover,html[data-studio-theme="ocean"] .library{background:linear-gradient(140deg,#0d2f38,#111725 60%,#0b2336)!important}
html[data-studio-theme="ember"] #v15-discover,html[data-studio-theme="ember"] .library{background:linear-gradient(140deg,#3d2428,#1c1528 60%,#32231b)!important}
html[data-studio-theme="violet"] #v15-discover,html[data-studio-theme="violet"] .library{background:linear-gradient(140deg,#28204c,#11152b 60%,#2d2040)!important}

/* v49: playable and embeddable literary experience */
.play-section{background:linear-gradient(128deg,#151933 0%,#392242 44%,#112e3c 100%);color:#fff;padding:clamp(38px,5vw,86px) clamp(18px,3.5vw,64px);border-block:1px solid #ffffff18}
.play-section *{box-sizing:border-box}.play-intro{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:26px}
.play-intro h2{font-family:Outfit,sans-serif;font-size:clamp(38px,5.4vw,84px);letter-spacing:-.06em;line-height:1.02;margin:10px 0;color:#fff!important}.play-intro h2 em{color:#f0b7d4;font-style:normal}.play-intro p{max-width:54ch;color:#e3ddeb;font-size:clamp(15px,1.35vw,19px)}
.play-contact,.play-primary,.play-services-actions a{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;background:#f2ca81;color:#17202b!important;font-weight:800;border-radius:5px;text-decoration:none;min-height:48px}
.play-contact:hover,.play-primary:hover,.play-services-actions a:hover{filter:brightness(1.1)}
.play-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(12px,1.8vw,26px)}
.play-tile{position:relative;min-height:clamp(290px,29vw,470px);overflow:hidden;border-radius:5px;display:flex;align-items:flex-end;border:1px solid #ffffff20}
.play-zero{background:radial-gradient(circle at 70% 25%,#654c81 0%,transparent 44%),linear-gradient(130deg,#1b2e4c,#101721 80%)}.play-puzzle{background:radial-gradient(circle at 75% 22%,#9b6c73 0%,transparent 45%),linear-gradient(135deg,#51405c,#232034 65%,#191e2e)}
.play-tile-content{padding:clamp(20px,3vw,42px);position:relative;z-index:1;max-width:67ch;background:linear-gradient(0deg,#0e121dd8,#0e121d00)}
.play-chip{display:inline-block;background:#ffffff16;color:#e9d1fd;padding:7px 11px;border-radius:3px;font-size:11px;font-weight:800;letter-spacing:.1em}
.play-tile h3{font-family:Outfit,sans-serif;color:#fff!important;font-size:clamp(28px,3vw,48px);line-height:1.1;letter-spacing:-.04em;margin:14px 0 8px}
.play-tile p{color:#e5e2ea;line-height:1.5;max-width:42ch}.play-unavailable{display:inline-block;margin-top:12px;color:#e4d6e4;font-size:13px}
.play-zero-art{position:absolute;right:5%;top:11%;display:flex;flex-direction:column;text-align:right;transform:rotate(-7deg);font:900 clamp(38px,5vw,95px)/.88 Outfit,sans-serif;letter-spacing:-.08em;color:#ffffff15}
.play-puzzle-art{position:absolute;right:12%;top:5%;font-size:clamp(100px,17vw,270px);color:#f0bed044;text-shadow:0 10px 90px #f4bbd85c}
.play-services{display:flex;align-items:center;justify-content:space-between;gap:25px;flex-wrap:wrap;margin-top:24px;padding:clamp(20px,2.8vw,36px);border:1px solid #ffffff2c;border-radius:5px;background:#10162688}
.play-services h3{font-size:clamp(22px,2.3vw,35px);line-height:1.2;letter-spacing:-.035em;margin:8px 0;color:#fff!important}.play-services p{color:#d6d8e4;max-width:68ch}.play-services-actions{display:flex;flex-direction:column;gap:9px}.play-services-actions a{background:#ffffff12!important;border:1px solid #ffffff35;color:#fff!important}
@media(max-width:760px){.play-grid{grid-template-columns:1fr}.play-tile{min-height:295px}.play-tile-content{padding:22px}.play-intro h2{font-size:clamp(38px,9vw,58px)}.play-services-actions{width:100%}.play-services-actions a{width:100%}}


/* v50 — Netflix-inspired rankings: big outlined numbers BESIDE the covers. */
#shelves .shelf-ranking .books-grid{align-items:flex-start!important;gap:clamp(8px,1.15vw,20px)!important}
#shelves .shelf-ranking .book-card.rank-card{
  --rank-card-width:clamp(174px,15vw,248px);
  --rank-numeral-width:34%;
  flex:0 0 var(--rank-card-width)!important;
  width:var(--rank-card-width)!important;
  max-width:var(--rank-card-width)!important;
  min-width:0!important;
  position:relative;
}
#shelves .shelf-ranking .rank-poster{
  display:flex!important;align-items:flex-end!important;
  position:relative!important;width:100%!important;
  height:auto!important;aspect-ratio:1/1.24!important;
  isolation:isolate;
}
#shelves .shelf-ranking .rank-number{
  position:absolute!important;z-index:0!important;
  left:0!important;bottom:-.07em!important;top:auto!important;
  width:45%;height:auto!important;
  font-family:Outfit,Arial,sans-serif!important;
  font-size:clamp(104px,12vw,186px)!important;
  font-weight:900!important;line-height:.93!important;letter-spacing:-.085em!important;
  color:#121925!important;
  -webkit-text-stroke:clamp(2px,.16vw,3px) rgba(226,233,248,.85)!important;
  paint-order:stroke fill;
  text-shadow:0 8px 19px rgba(0,0,0,.30)!important;
  filter:none!important;
  pointer-events:none!important;user-select:none!important;
  transform:none!important;
}
#shelves .shelf-ranking .rank-poster .cover-button{
  flex:none!important;display:block!important;
  position:relative!important;z-index:1!important;
  margin-left:auto!important;
  width:73%!important;height:auto!important;
  aspect-ratio:2/3!important;
  border-radius:5px!important;
  background:#101722!important;
  overflow:hidden!important;
  box-shadow:0 7px 20px rgba(0,0,0,.28);
}
#shelves .shelf-ranking .rank-poster .cover-button>img{
  display:block!important;width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;
  aspect-ratio:auto!important;border-radius:5px!important;
}
#shelves .shelf-ranking .rank-copy{
  padding-left:27%;padding-top:8px;min-width:0;
}
#shelves .shelf-ranking .rank-copy h4{margin:0 0 3px!important;font-size:clamp(13px,1vw,15px)!important;line-height:1.25!important}
#shelves .shelf-ranking .rank-copy p{margin:0 0 3px!important;font-size:12px!important}
#shelves .shelf-ranking .rank-count{font-size:11px!important;color:#aeb9ca!important}
#shelves .shelf-ranking .rank-poster .cover-button:focus-visible{outline:3px solid #f9d78e!important;outline-offset:4px}
@media(max-width:760px){
 #shelves .shelf-ranking .book-card.rank-card{--rank-card-width:clamp(155px,46vw,205px)}
 #shelves .shelf-ranking .rank-number{font-size:clamp(96px,28vw,152px)!important}
 #shelves .shelf-ranking .rank-copy{padding-left:25%}
}
@media(prefers-reduced-motion:reduce){#shelves .shelf-ranking .rank-poster .cover-button{transition:none!important}}

/* v51 — Top 10, never wrap the two-digit numeral */
#shelves .shelf-ranking .rank-number{white-space:nowrap!important;display:block!important;word-break:normal!important;overflow-wrap:normal!important}
#shelves .shelf-ranking .rank-number-ten{font-size:clamp(74px,8.2vw,126px)!important;letter-spacing:-.10em!important;left:-.025em!important;bottom:.04em!important;width:60%!important;line-height:1!important}
@media(max-width:760px){#shelves .shelf-ranking .rank-number-ten{font-size:clamp(64px,20vw,104px)!important}}


/* v52 — Prime-inspired clean rails. Consolidated final-layer layout rules. */
:root{--v52-gutter:clamp(20px,3.5vw,60px)}
#shelves .shelf,
#shelves .ranking-collections .shelf{position:relative!important;isolation:isolate;min-height:0!important;padding:23px 0 29px!important;background:#10141f!important;border-top:1px solid rgba(255,255,255,.045)!important}
#shelves .shelf:nth-of-type(2n),#shelves .ranking-collections .shelf:nth-of-type(2n){background:#131827!important}
#shelves .shelf:nth-of-type(3n),#shelves .ranking-collections .shelf:nth-of-type(3n){background:#111722!important}
#shelves .shelf .shelf-title{padding-inline:var(--v52-gutter)!important;margin-bottom:13px!important;position:static!important}
#shelves .shelf .shelf-title h3{font-size:clamp(19px,1.65vw,26px)!important;line-height:1.2!important;letter-spacing:-.025em!important}
#shelves .shelf .books-grid{padding:3px var(--v52-gutter) 12px!important;scroll-padding-inline:var(--v52-gutter)!important;gap:clamp(9px,1.05vw,16px)!important;scrollbar-width:none!important;scroll-behavior:smooth;overscroll-behavior-inline:contain}
#shelves .shelf .books-grid::-webkit-scrollbar{display:none!important}
#shelves .shelf .book-card h4{font-size:clamp(13px,.95vw,15px)!important;margin:7px 0 3px!important;line-height:1.25!important}
#shelves .shelf .book-card p{font-size:12px!important;margin-top:0!important;color:#aebbc9!important}
#shelves .shelf .shelf-nav:not([hidden]){position:absolute!important;inset:0!important;z-index:7;display:block!important;pointer-events:none!important}
#shelves .shelf .shelf-nav .icon-button{
 position:absolute!important;top:48%!important;transform:translateY(-50%)!important;
 width:44px!important;height:96px!important;min-width:44px!important;
 display:grid!important;place-items:center!important;border:1px solid #ffffff24!important;
 border-radius:5px!important;background:rgba(3,7,13,.88)!important;color:white!important;
 font-size:34px!important;line-height:1!important;backdrop-filter:blur(8px);
 opacity:0!important;visibility:hidden!important;pointer-events:none!important;
 transition:opacity .16s ease,visibility .16s ease,background .16s ease!important;
}
#shelves .shelf .shelf-nav [data-row-scroll="-1"]{left:0!important;right:auto!important}
#shelves .shelf .shelf-nav [data-row-scroll="1"]{right:0!important;left:auto!important}
#shelves .shelf:hover .shelf-nav .icon-button:not(:disabled),
#shelves .shelf:focus-within .shelf-nav .icon-button:not(:disabled){opacity:1!important;visibility:visible!important;pointer-events:auto!important}
#shelves .shelf .shelf-nav .icon-button:disabled{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
#shelves .shelf .shelf-nav .icon-button:hover{background:#283448!important}
#shelves .shelf .shelf-nav .icon-button:focus-visible{outline:3px solid #edca80;outline-offset:-3px}
#shelves .shelf .book-card .cover-button{border-radius:5px!important;box-shadow:none!important;transition:filter .18s ease!important}
#shelves .shelf .book-card .cover-button:hover{filter:brightness(1.08)}
#shelves .shelf-sparse{display:block!important}
#shelves .shelf-sparse .sparse-story{display:none!important}
#shelves .shelf-sparse>.books-grid{width:100%!important}
/* Focused editorial sections get their own content-defined heights. */


#percorsi-ai{padding-block:32px!important}
#percorsi-ai #ai-books{scrollbar-width:none!important}
#percorsi-ai #ai-books::-webkit-scrollbar{display:none!important}
/* Prime-style hover card, floating without disrupting layout. */
.book-hover-preview{width:330px;max-width:calc(100vw - 24px);border-radius:5px!important;overflow:hidden!important;background:#0d111a!important;border:1px solid #ffffff20!important;box-shadow:0 26px 60px #000b!important;z-index:300!important;transform-origin:center top;}
.book-hover-preview .hover-cover{height:178px!important;min-height:0!important;position:relative!important;overflow:hidden!important;background:#131e2c!important;display:grid!important;place-items:center!important}
.book-hover-preview .v52-preview-backdrop{position:absolute;inset:-18px;background-size:cover;background-position:center;filter:blur(21px) brightness(.48) saturate(1.3)}
.book-hover-preview .hover-cover img{position:relative!important;width:auto!important;max-width:65%!important;height:166px!important;object-fit:contain!important;z-index:1;box-shadow:0 8px 24px #0009;background:transparent!important}
.book-hover-preview .hover-body{padding:17px!important;background:#0d111a!important}
.book-hover-preview .hover-body h3{font-size:22px!important;line-height:1.18!important;margin:6px 0!important}
.book-hover-preview .hover-body p{font-size:13px!important;line-height:1.45!important;margin:9px 0 0!important;color:#ced5df!important}
.book-hover-preview .v52-hover-actions{margin-top:12px}
.book-hover-preview .hover-open{min-height:40px!important;border-radius:5px!important}
@media (hover:none),(pointer:coarse){#shelves .shelf .shelf-nav{display:none!important}.book-hover-preview{display:none!important}}
@media(max-width:760px){:root{--v52-gutter:18px}#shelves .shelf{padding-block:19px 24px!important}#shelves .shelf .shelf-title{margin-bottom:11px!important}#shelves .shelf .shelf-title h3{font-size:20px!important}#shelves .shelf .books-grid{scroll-behavior:auto}}
@media(prefers-reduced-motion:reduce){#shelves .shelf .books-grid{scroll-behavior:auto!important}.book-hover-preview{transition:none!important}}

/* v53: app-like mobile experience; desktop remains untouched. */
.mobile-app-nav{display:none}
@media(max-width:700px){
:root{--d-gutter:16px!important;--shelf-inset:16px!important;--editorial-gutter:16px!important}
html{scroll-padding-top:78px}
body{padding-bottom:calc(70px + env(safe-area-inset-bottom))!important}
.site-header{position:sticky!important;top:0!important;z-index:180!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:62px!important;padding:9px 16px!important;gap:8px!important;background:rgba(5,8,14,.98)!important;border-bottom:1px solid rgba(255,255,255,.07)!important}
.site-header .brand{display:flex!important;align-items:center!important;gap:7px!important;min-width:0}
.site-header .brand img{width:29px!important;height:34px!important;object-fit:contain!important}
.site-header .brand span{font-size:19px!important;white-space:nowrap!important}
.site-header nav{display:flex!important;margin:0!important;gap:7px!important;align-items:center!important}
.site-header nav>a,.site-header nav>.nav-reader{display:none!important}
.site-header nav>[data-publish]{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:37px!important;border-radius:5px!important;font-size:11px!important;padding:8px 10px!important;white-space:nowrap!important}
.site-header nav>[data-publish] span{display:none!important}
.mobile-app-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed!important;z-index:650!important;bottom:0!important;left:0!important;right:0!important;padding:8px 8px calc(6px + env(safe-area-inset-bottom))!important;min-height:66px!important;background:rgba(7,10,17,.97)!important;backdrop-filter:blur(16px)!important;border-top:1px solid rgba(255,255,255,.17)!important;box-shadow:0 -16px 30px rgba(0,0,0,.26)!important}
.mobile-app-nav a,.mobile-app-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:47px;padding:4px 1px;background:transparent;color:#c3cad6;border:0;text-decoration:none;font:600 10px/1.1 "DM Sans",Arial,sans-serif;cursor:pointer}
.mobile-app-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.mobile-app-nav a[aria-current="page"],.mobile-app-nav a:focus-visible,.mobile-app-nav button:focus-visible{color:#f1cb87;outline:2px solid #e7c486;outline-offset:0;border-radius:5px}
#featured.feature{padding:0!important;min-height:0!important;margin:0!important;border:0!important;overflow:hidden!important;background:#101827!important}
#featured .hero-frame{display:flex!important;flex-direction:column-reverse!important;align-items:stretch!important;min-height:0!important;max-height:none!important;height:auto!important;padding:0!important;gap:0!important}
#featured .hero-visual{height:clamp(260px,84vw,420px)!important;min-height:0!important;max-height:none!important;flex:none!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;padding:14px 16px 0!important;background:radial-gradient(ellipse at 60% 40%,rgba(153,99,169,.34),transparent 65%)!important}
#featured .hero-visual>img{height:94%!important;width:auto!important;max-width:80%!important;object-fit:contain!important;position:relative!important;z-index:2!important;filter:drop-shadow(0 20px 26px rgba(0,0,0,.52))!important}
#featured .hero-visual>span{display:none!important}
#featured .feature-copy{width:100%!important;max-width:none!important;flex:none!important;min-width:0!important;padding:18px 20px 24px!important;background:linear-gradient(180deg,#17223a 0%,#101827 100%)!important;text-align:left!important}
#featured .feature-copy .hero-kicker{font-size:10px!important;letter-spacing:.13em!important;margin:0 0 8px!important}
#featured .feature-copy h1{font-size:clamp(30px,8vw,43px)!important;line-height:1.06!important;letter-spacing:-.035em!important;margin:4px 0 10px!important}
#featured .feature-copy p{font-size:13px!important;line-height:1.45!important;margin:7px 0 12px!important;max-width:58ch!important}
#featured .feature-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:14px 0 0!important}
#featured .feature-actions .button{min-height:44px!important;padding:11px 17px!important;border-radius:5px!important;font-size:13px!important}
#featured .hero-frame-video .hero-video{height:clamp(230px,56vw,345px)!important;overflow:hidden!important}
#featured .hero-video iframe{width:100%!important;height:100%!important}










#biblioteca{padding-top:25px!important}
#biblioteca .discovery-toolbar,#biblioteca .section-heading,#biblioteca .library-tools{padding-inline:16px!important}
#shelves .shelf{padding:22px 0 25px!important}
#shelves .shelf .shelf-title{padding-inline:16px!important;margin-bottom:13px!important}
#shelves .shelf .shelf-title h3{font-size:21px!important}
#shelves .shelf .books-grid{gap:10px!important;padding:3px 16px 9px!important;scroll-padding-inline:16px!important}
#shelves .shelf .book-card{flex:0 0 clamp(123px,37vw,155px)!important;width:clamp(123px,37vw,155px)!important}
#shelves .shelf .book-card .cover-button{aspect-ratio:2/3!important}
#shelves .shelf .book-card h4{font-size:12px!important;margin:8px 0 3px!important;line-height:1.24!important}
#shelves .shelf .book-card p{font-size:11px!important}
#shelves .shelf-sparse{display:block!important;padding-inline:0!important}
#shelves .shelf-sparse>.shelf-title{padding-inline:16px!important}
#shelves .shelf-sparse .books-grid{padding:3px 16px 10px!important}
#shelves .shelf-sparse .sparse-story{margin:5px 16px!important;padding:12px!important}
#shelves .shelf-sparse .sparse-story h4{font-size:22px!important}
#shelves .shelf-nav{display:none!important}
#shelves .mag-feature{padding:27px 16px!important}
.book-dialog[open],.reader-dialog[open],.publish-dialog[open],.info-dialog[open]:not(.mystery-dialog){box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;max-height:100dvh!important;height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;overflow:auto!important;overscroll-behavior:contain!important}
.book-dialog #book-detail{padding:62px 18px 24px!important}
.book-dialog .dialog-close,.publish-dialog .dialog-close,.reader-dialog .dialog-close{position:sticky!important;top:10px!important;float:right!important;z-index:10!important;min-width:44px!important;min-height:44px!important}
body:has(dialog[open]) .mobile-app-nav{visibility:hidden!important;pointer-events:none!important}
}

/* v55 — discreet reader-first header actions */
.site-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:clamp(12px,2vw,32px)!important}
.site-header nav{display:flex!important;align-items:center!important;flex:1;gap:clamp(12px,1.5vw,25px)!important}
.header-utilities{display:flex;align-items:center;gap:7px;margin-left:auto;flex:none}
.header-icon{width:42px;height:42px;border:1px solid transparent;border-radius:5px!important;background:transparent;color:#eef1f6;display:grid;place-items:center;cursor:pointer;transition:background .15s,border-color .15s}
.header-icon svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-icon:hover,.header-icon[aria-expanded="true"]{background:#222936;border-color:#485365}
.header-icon:focus-visible,.header-menu button:focus-visible,.header-menu a:focus-visible{outline:2px solid #e1bd7b;outline-offset:2px}
.header-menu-wrap{position:relative}
.header-menu{position:absolute;z-index:990;right:0;top:calc(100% + 12px);width:min(280px,calc(100vw - 30px));padding:8px;background:#141923;border:1px solid #343e4e;border-radius:5px;box-shadow:0 16px 45px #000a}
.header-menu[hidden]{display:none!important}
.header-menu button,.header-menu a{display:block;width:100%;text-align:left;padding:13px 14px;margin:0;background:transparent;color:#f4f5f7;font:600 14px/1.3 "DM Sans",Arial,sans-serif;border:0;border-radius:5px;text-decoration:none;cursor:pointer}
.header-menu button:hover,.header-menu a:hover{background:#273243;color:#f5d18d}
@media(max-width:700px){.site-header nav{display:none!important}.header-utilities{gap:3px}.header-utilities>#header-search,.header-utilities>#header-saved{display:none!important}.header-icon{width:40px;height:40px}.header-menu{right:0;top:calc(100% + 9px)}}

/* v56 — Mobile visual cleanup: predictable vertical rhythm, readable chips,
   no stray decorative glyphs, compact personal panels. */
@media(max-width:700px){
  html,body{max-width:100%;overflow-x:clip!important}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}

/* v59: isolate mobile discovery height from inherited decorative spacers */
@media(max-width:760px){
 
 
 
 
 
 
 
 
 #biblioteca{margin-top:0!important}
}


/* DISCOVERY — unified component styles (v61)
   Natural content height: no viewport-height, absolute-layout, or scripted sizing.
   No !important in this component. */
#v15-discover {
  --discovery-inset:clamp(18px,3.2vw,52px);
  box-sizing:border-box;position:relative;display:block;
  width:100%;max-width:none;min-height:0;height:auto;
  margin:0;padding:clamp(26px,3.5vw,48px) var(--discovery-inset);
  border:0;border-radius:0;
  color:#edf0f8;
  background:linear-gradient(112deg,#18283b,#182337 65%,#25243d);
}
#v15-discover::before,#v15-discover::after{content:none;display:none}
#v15-discover .v15-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:0 0 16px}
#v15-discover .v15-head:first-child{margin-bottom:18px}
#v15-discover .v15-head>div{min-width:0;max-width:680px}
#v15-discover .v15-head h2{font-family:Outfit,Arial,sans-serif;font-size:clamp(25px,3.3vw,44px);font-weight:800;letter-spacing:-.045em;line-height:1.12;color:#fff;margin:0 0 8px}
#v15-discover .v15-head h2 em{font-style:normal;color:#e5c37f}
#v15-discover .v15-head p,#v15-discover .v15-head span{color:#b9c6d7;line-height:1.5;margin:0}
#v15-discover .v15-head .eyebrow{display:block;letter-spacing:.13em;font-size:10px;margin-bottom:8px;color:#d6b5cf}
#v15-discover .v15-head .eyebrow::before{content:none;display:none}
#v15-discover #mystery-open{border:0;background:#e2bd77;color:#111522;border-radius:5px;min-height:43px;padding:11px 15px;font:700 13px Outfit,Arial,sans-serif;cursor:pointer}
#v15-discover .v15-chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 24px;padding:0;overflow:visible}
#v15-discover .v15-chips button,#v15-discover .v15-tabs button,#v15-discover #v15-clear{background:#111723;color:#e8edf5;border:1px solid #4b5262;border-radius:5px;cursor:pointer;font-weight:700;padding:9px 12px;white-space:normal}
#v15-discover .v15-chips button.active,#v15-discover .v15-tabs button.is-active{background:#e2bd77;color:#101622;border-color:#e2bd77}
#v15-discover .v41-personal-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,2vw,32px);align-items:start;margin:0;padding:0;min-height:0}
#v15-discover .v41-personal-layout>section{min-width:0;min-height:0;height:auto;align-self:start;padding:0;margin:0;border:0;background:none;box-shadow:none}
#v15-discover .v41-personal-layout>section+section{border-left:1px solid #ffffff30;padding-left:clamp(16px,2vw,28px)}
#v15-discover .v15-head.v15-minor{align-items:flex-start;margin:0 0 10px}
#v15-discover .v15-head.v15-minor h2{font-size:clamp(22px,2.25vw,32px);margin:0}
#v15-discover #v15-clear{color:#e5c37f;font-size:11px;padding:8px 10px}
#v15-discover .v15-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
#v15-discover .v15-cards{display:flex;align-items:flex-start;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;min-height:0;max-height:none;height:auto;margin:0;padding:3px 0 10px;scrollbar-width:thin}
#v15-discover .v15-card{flex:0 0 clamp(116px,10vw,152px);width:clamp(116px,10vw,152px);height:auto;min-width:0;scroll-snap-align:start}
#v15-discover .v15-card-open{display:flex;flex-direction:column;gap:6px;text-align:left;background:none;border:0;color:#fff;padding:0;width:100%;cursor:pointer}
#v15-discover .v15-card-open img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;border-radius:5px}
#v15-discover .v15-card-open strong{font-size:13px;line-height:1.3}
#v15-discover .v15-card-open small{font-size:11px;color:#bfcada}
#v15-discover .v15-save{display:inline-flex;align-items:center;margin-top:6px;padding:7px 9px;border:1px solid #4d5667;border-radius:5px;background:#101925;color:#e1c17e;font-weight:700;font-size:12px;cursor:pointer}
#v15-discover .v15-empty{width:100%;height:auto;margin:0;padding:14px;border:1px dashed #546075;border-radius:5px;color:#c5d0df;font-size:13px;line-height:1.45}
#v15-discover .v44-pick-note{flex:1 1 145px;max-width:320px;min-width:0;align-self:center;border-left:2px solid #e2bd77;padding:5px 12px;color:#d0d9e4}
#v15-discover .v44-pick-note .v44-overline{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#e2bd77;font-weight:700}
#v15-discover .v44-pick-note p{font-size:13px;line-height:1.5;margin:8px 0}
#v15-discover .v44-pick-note button{color:#e2bd77;background:none;border:0;padding:5px 0;cursor:pointer;text-decoration:underline}
@media(max-width:760px){
 #v15-discover{padding:23px 18px 28px;margin:0;--discovery-inset:18px}
 #v15-discover .v15-head:first-child{display:flex;flex-direction:column;align-items:stretch;gap:14px}
 #v15-discover .v15-head h2{font-size:clamp(24px,6vw,31px)}
 #v15-discover .v15-head p{font-size:14px;line-height:1.45}
 #v15-discover #mystery-open{width:100%;min-height:44px;font-size:13px}
 #v15-discover .v15-chips{gap:7px;margin-bottom:20px}
 #v15-discover .v15-chips button{font-size:12px;min-height:37px;padding:8px 10px;white-space:nowrap}
 #v15-discover .v41-personal-layout{display:flex;flex-direction:column;gap:21px;align-items:stretch}
 #v15-discover .v41-personal-layout>section{flex:none;width:100%;height:auto}
 #v15-discover .v41-personal-layout>section+section{padding:19px 0 0;border-left:0;border-top:1px solid #ffffff30}
 #v15-discover .v15-head.v15-minor{flex-direction:column;gap:9px}
 #v15-discover .v15-head.v15-minor h2{font-size:clamp(22px,5.8vw,28px)}
 #v15-discover .v15-tabs{gap:7px;margin-bottom:11px}
 #v15-discover .v15-tabs button{font-size:12px;padding:9px 10px}
 #v15-discover .v15-cards{gap:10px;padding:3px 0 9px}
 #v15-discover .v15-card{flex-basis:124px;width:124px}
 #v15-discover .v44-pick-note{display:none}
}

/* v62 — unified mobile discovery and dedicated saved destination */
@media (max-width:760px){
  #v15-discover{padding:24px 18px 22px;background:#0d1520}
  #v15-discover>.v15-head:first-child{display:flex;flex-direction:column;gap:9px;margin-bottom:15px}
  #v15-discover>.v15-head:first-child .eyebrow{font-size:10px;letter-spacing:.12em;margin-bottom:6px}
  #v15-discover>.v15-head:first-child h2{font-size:clamp(25px,7vw,34px);line-height:1.1;margin:0 0 7px}
  #v15-discover>.v15-head:first-child p{font-size:14px;line-height:1.45;margin:0}
  #v15-discover #v15-moods{display:flex;flex-wrap:wrap;gap:7px;overflow:visible;margin:0 0 19px;padding:0}
  #v15-discover #v15-moods button{font-size:12px;white-space:nowrap;min-height:38px;padding:8px 12px;border-radius:5px}
  #v15-discover #mystery-open{order:3;min-height:46px;padding:12px;font-size:13px;width:100%;border-radius:5px;background:#1c293b;color:#f0d094;border:1px solid #5b6172;box-shadow:none;margin:0}
  #v15-discover #personal-layout{display:block;margin:0;padding:0}
  #v15-discover #hidden-panel{display:block;padding:17px 0 15px;margin:0;border:0;border-top:1px solid #ffffff23;background:none;min-height:0;height:auto}
  #v15-discover #hidden-panel .v15-head{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;margin:0 0 13px}
  #v15-discover #hidden-panel .v15-head h2{font-size:22px;margin:0}
  #v15-discover #hidden-panel .v15-head span{font-size:11px;line-height:1.3;max-width:135px;text-align:right}
  #v15-discover #v15-hidden{display:flex;align-items:flex-start;overflow-x:auto;overflow-y:hidden;min-height:0;height:auto;padding:2px 0 10px;margin:0;gap:11px}
  #v15-discover #v15-hidden .v15-card{flex:0 0 116px;width:116px;min-height:0;height:auto}
  #v15-discover #v15-hidden .v15-card img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain}
  #v15-discover #saved-panel{display:none;border:0;margin:0;padding:0;min-height:0;background:none}
  body.mobile-saved-open #v15-discover #saved-panel{display:block;margin:0 0 16px;padding:0}
  body.mobile-saved-open #v15-discover #hidden-panel,body.mobile-saved-open #v15-moods,body.mobile-saved-open #v15-discover>.v15-head:first-child{display:none}
  body.mobile-saved-open #v15-discover{padding-top:25px}
  #v15-discover #saved-panel .v15-minor{display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;margin:0 0 15px;gap:10px}
  #v15-discover #saved-panel .v15-minor h2{font-size:23px;flex:1 1 160px;margin:0}
  #v15-discover #v15-clear{font-size:11px;padding:7px 9px;width:auto;min-height:34px}
  #v15-discover #v15-personal{min-height:0;height:auto;padding:0 0 10px}
  #v15-discover .v44-pick-note{display:none}
}

/* v63: structural layout normalization; no fixed-height discovery panels */
#v15-discover{height:auto;min-height:0;overflow:visible}
#v15-discover .v41-personal-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:clamp(20px,3vw,48px);height:auto;min-height:0}
#v15-discover .v41-personal-layout>section{position:static;height:auto;min-height:0;max-height:none;overflow:visible;align-self:start}
#v15-discover .v15-cards{height:auto;min-height:0;max-height:none;align-items:flex-start}
#v15-discover .v15-card{display:flex;flex-direction:column;align-self:flex-start}
#v15-discover .v15-card-open img{object-fit:cover}
#v15-discover .v15-card-open strong{overflow-wrap:anywhere}
#v15-discover .v15-save{align-self:flex-start;min-height:34px}
#v15-discover .v44-pick-note{align-self:flex-start}
#v15-discover button:focus-visible{outline:2px solid #f0cc83;outline-offset:3px}
@media(max-width:900px){#v15-discover .v41-personal-layout{grid-template-columns:1fr;gap:24px}#v15-discover .v41-personal-layout>section+section{border-left:0;border-top:1px solid #ffffff30;padding:20px 0 0}}
@media(max-width:760px){#v15-discover .v41-personal-layout{display:block}#v15-discover #hidden-panel{height:auto;min-height:0}#v15-discover .v15-cards{height:auto;min-height:0}}


/* v64-clean — quiet, consistent book interactions */
.book-cover-shell,
#shelves .rank-poster,
#percorsi-ai .book-card,
#v15-discover .v15-card{position:relative!important}

/* Covers stay completely still: no jump, lift or zoom. */
.cover-button,
.cover-button:hover,
.cover-button:focus-visible,
.book-card .cover-button,
.book-card .cover-button:hover,
.book-card .cover-button:focus-visible,
#shelves .cover-button,
#shelves .cover-button:hover,
#percorsi-ai .cover-button,
#percorsi-ai .cover-button:hover,
.v15-card-open,
.v15-card-open:hover,
.slide-cover,
.slide-cover:hover{
 transform:none!important;
 box-shadow:none!important;
 transition:filter .14s ease,border-color .14s ease,opacity .14s ease!important;
}
.cover-button img,
.cover-button:hover img,
.cover-button:focus-visible img,
#shelves .cover-button img,
#shelves .cover-button:hover img,
.v15-card-open img,
.v15-card-open:hover img,
.slide-cover img,
.slide-cover:hover img{
 transform:none!important;
 transition:none!important;
}
.cover-button:hover,.v15-card-open:hover,.slide-cover:hover{filter:brightness(1.055)!important}

/* Buttons do not physically move on hover. */
.button:hover,.button:focus-visible,
.icon-button:hover,.icon-button:focus-visible,
.surprise-button:hover,.surprise-button:focus-visible,
.mag-action:hover,.mag-action:focus-visible,
.service-card:hover,
.service-card button:hover,
.end-action:hover,
.v15-door:hover,
.chapter-launch:hover,
.header-icon:hover,
.showcase-play:hover .showcase-play-icon,
.mag-picks-covers button:hover,
.mag-picks-covers button:focus-visible{
 transform:none!important;
}

/* A single save affordance: heart on the cover. */
.book-save-heart{
 position:absolute!important;
 top:8px!important;
 right:8px!important;
 z-index:8!important;
 width:34px!important;
 height:34px!important;
 min-width:34px!important;
 min-height:34px!important;
 display:grid!important;
 place-items:center!important;
 padding:0!important;
 margin:0!important;
 border:1px solid rgba(255,255,255,.28)!important;
 border-radius:999px!important;
 background:rgba(4,7,11,.72)!important;
 color:#fff!important;
 backdrop-filter:blur(8px)!important;
 -webkit-backdrop-filter:blur(8px)!important;
 font:700 19px/1 Arial,sans-serif!important;
 cursor:pointer!important;
 box-shadow:0 4px 14px rgba(0,0,0,.22)!important;
 transition:background-color .14s ease,border-color .14s ease,color .14s ease!important;
}
.book-save-heart:hover,
.book-save-heart:focus-visible{
 transform:none!important;
 background:rgba(8,12,18,.92)!important;
 border-color:rgba(255,255,255,.55)!important;
}
.book-save-heart.is-saved{color:#f0c979!important;background:rgba(9,12,17,.88)!important;border-color:rgba(240,201,121,.58)!important}
.book-save-heart span{display:block;transform:none!important;pointer-events:none}

/* Cards are only covers. Metadata lives in the common hover detail card. */
#shelves .book-card>h4,
#shelves .book-card>p,
#shelves .book-card>.text-link,
#percorsi-ai .book-card>h4,
#percorsi-ai .book-card>p,
#percorsi-ai .book-card>.text-link,
#v15-discover .v15-card strong,
#v15-discover .v15-card small,
#v15-discover .v15-card>.v15-save,
.rank-copy,
.card-meta,
.ai-badge{display:none!important}

#v15-discover .v15-card{display:block!important;padding:0!important;background:none!important;border:0!important;min-height:0!important}
#v15-discover .v15-card-open{display:block!important;width:100%!important;padding:0!important;background:none!important;border:0!important}
#v15-discover .v15-card-open img{display:block!important;width:100%!important;aspect-ratio:2/3!important;object-fit:cover!important;border-radius:5px!important}

/* The same centered detail card for every cover, no pop/scale effect. */
.book-hover-preview{
 position:fixed!important;
 width:min(330px,calc(100vw - 24px))!important;
 opacity:0;
 transform:none!important;
 transition:opacity .13s ease!important;
}
.book-hover-preview.is-visible{opacity:1!important;transform:none!important}
.book-hover-preview .hover-open,
.book-hover-preview .hover-open:hover,
.book-hover-preview .hover-open:focus-visible{transform:none!important}

@media (hover:none),(pointer:coarse){
 .book-save-heart{width:32px!important;height:32px!important;top:7px!important;right:7px!important}
}


/* v65-clean — quieter cards, clickable services, minimal splash */
.book-card,.v15-card{position:relative!important}
.book-save-heart{
 top:7px!important;right:7px!important;
 width:31px!important;height:31px!important;min-width:31px!important;min-height:31px!important;
 background:rgba(5,8,12,.82)!important;border-color:rgba(255,255,255,.22)!important;
 box-shadow:none!important;backdrop-filter:blur(6px)!important;
}
.book-save-heart:hover,.book-save-heart:focus-visible{background:rgba(5,8,12,.96)!important;border-color:rgba(255,255,255,.45)!important}
/* The heart belongs to the card, not to the cover image. */
.book-cover-shell>.book-save-heart,.rank-poster>.book-save-heart{display:none!important}

/* Service cards are the action: no repeated CTA button inside each one. */
.service-card[data-service]{position:relative;cursor:pointer;padding-bottom:46px!important;transform:none!important;transition:border-color .16s ease,background-color .16s ease!important}
.service-card[data-service]:hover{transform:none!important;border-color:rgba(217,178,111,.42)!important}
.service-card[data-service]:focus-visible{outline:2px solid #f0cc83!important;outline-offset:3px!important}
.service-card-arrow{position:absolute;right:18px;bottom:16px;font-size:18px;color:#d9b26f;line-height:1}
.service-card button{display:none!important}

/* No physical jumps anywhere in the main browsing UI. */
.book-card,.book-card:hover,.service-card,.service-card:hover,.button,.button:hover,.header-icon,.header-icon:hover,.surprise-button,.surprise-button:hover{transform:none!important}

/* Play is intentionally not part of this release. */
#play,.play-section{display:none!important}


/* v66-clean — save control lives only in the hover detail card */
.book-card>.book-save-heart,
.v15-card>.book-save-heart,
.rank-card>.book-save-heart,
.book-cover-shell .book-save-heart,
.rank-poster .book-save-heart,
#ai-books .book-save-heart{display:none!important}
.book-hover-preview{position:fixed!important}
.book-hover-preview>.book-save-heart{
 display:grid!important;position:absolute!important;top:12px!important;right:12px!important;z-index:30!important;
 width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
 background:rgba(6,9,13,.86)!important;border:1px solid rgba(255,255,255,.3)!important;box-shadow:none!important;
}
.book-hover-preview>.book-save-heart:hover,.book-hover-preview>.book-save-heart:focus-visible{background:rgba(6,9,13,.98)!important;border-color:rgba(255,255,255,.6)!important}
@media (hover:none),(pointer:coarse){.book-save-heart{display:none!important}}
