/* Review-only homepage entrance. Shared card routes keep the established reader. */
.home-reveal-copy{display:none}
html.worlds-home body{background:radial-gradient(ellipse at 50% 5%,#392335,#17121d 70%);color:#f5e6cf}
html.worlds-home .site-header{position:relative;max-width:740px;margin:auto;padding:12px 14px 6px!important}
html.worlds-home .site-header>h1{font:normal clamp(27px,6vw,38px)/1.15 Georgia,serif!important;margin:4px 0!important}
html.worlds-home .site-header>.eyebrow{display:block!important;font-size:9px;letter-spacing:.22em}
html.worlds-home .site-header>:is(p,.reader-preview-version){display:none}
html.worlds-home .reader-access-note{margin:0 0 3px auto;max-width:100px}
html.worlds-home .reader-signin-invitation{font-size:0;min-height:32px;padding:3px 12px;border-radius:20px}
html.worlds-home .reader-signin-invitation::after{content:'✧ Sign in';font:600 12px/1.5 system-ui,sans-serif}
html.worlds-home main{max-width:740px;margin:auto;padding:0 12px 85px}
html.worlds-home .today{margin:0;padding:0}
html.worlds-home .today>.section-top{display:none}
html.worlds-home .daily-reveal-zone.is-sealed{width:100%;height:132px!important;min-height:0!important;aspect-ratio:auto;margin:6px auto 0}
html.worlds-home .today>.daily-reveal-zone.is-sealed .daily-reveal-cover{position:absolute;inset:0;display:grid;grid-template-columns:78px 1fr;gap:12px;align-items:center;width:100%!important;height:132px!important;aspect-ratio:auto;padding:8px 12px;border:1px solid #d0ab67;border-radius:14px;background:radial-gradient(ellipse at 70% 10%,#5b304e,#251626 85%);box-shadow:inset 0 0 0 3px #261a26,inset 0 0 0 4px #a4804d55}
html.worlds-home .daily-reveal-cover .daily-reveal-portrait-master{position:static;width:76px;height:114px;object-fit:contain;border-radius:5px}
html.worlds-home .home-reveal-copy{display:grid;gap:6px;text-align:center;color:#f7e5c7}
.home-reveal-copy strong{font:normal 21px/1.1 Georgia,serif}
.home-reveal-copy em{font:italic 13px/1.3 Georgia,serif}
.home-reveal-copy>span{padding:9px 5px;border:1px solid #edcf91;border-radius:22px;background:linear-gradient(140deg,#f1d394,#b08448);font:600 12px/1.2 system-ui,sans-serif;color:#271924}
html.worlds-home .daily-reveal-cover:disabled .home-reveal-copy>span{display:none}
html.worlds-home .daily-reveal-cover .daily-publish-status:not([hidden]){position:static;grid-column:2;grid-row:1;align-self:end;font-size:11px;padding:5px;background:#2e1c30;transform:none;width:auto;margin-bottom:3px}
html.worlds-home .daily-reveal-cover:disabled .home-reveal-copy{padding-bottom:26px}
html.worlds-home .daily-reveal-cover .daily-publish-status::before,html.worlds-home .daily-reveal-cover .daily-publish-status::after{display:none}
html.worlds-home .today:has(.is-sealed)>.hint{display:none}
html.worlds-home .today:has(.is-sealed) .whats-new-slot{min-height:0;padding:0;margin:4px auto}
html.worlds-home .today:has(.is-sealed) .worlds-promotion{display:none}
html.worlds-home #feature-worlds{margin:10px 0 22px;padding:0;border:0;background:none;box-shadow:none}
html.worlds-home #feature-worlds .world-hub-heading{margin:0 0 10px;max-width:none}
html.worlds-home #world-hub-title{font:normal 26px/1.15 Georgia,serif;margin:0 0 4px;color:#efd398}
html.worlds-home #feature-worlds .world-hub-heading p{font:italic 13px/1.3 Georgia,serif;margin:0;color:#dfcbae}
html.worlds-home #feature-worlds .portal-active-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:none}
html.worlds-home #feature-worlds .portal-tile{position:relative;min-height:118px;width:auto;padding:64px 5px 9px;justify-content:end;border:1px solid #c5a366;border-radius:12px;background:#261b2c;overflow:hidden;box-shadow:inset 0 0 0 3px #b98b4340}
html.worlds-home #feature-worlds .portal-tile::before{inset:0;border:0;background:linear-gradient(0deg,#1b1020 0%,#1b1020ed 26%,#1b102022 75%);z-index:1;border-radius:0}
html.worlds-home #feature-worlds .portal-tile::after,html.worlds-home #feature-worlds .portal-engraving{display:none}
html.worlds-home #feature-worlds .portal-sigil-art{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;margin:0;opacity:.95;z-index:0;filter:none;mask-image:none}
html.worlds-home #feature-worlds .portal-collection .portal-sigil-art{object-position:50% 38%}
html.worlds-home #feature-worlds .portal-tile h3{position:relative;z-index:2;font:normal clamp(15px,3.8vw,21px)/1.15 Georgia,serif;min-height:0;margin:0 0 4px;color:#ffe6b0}
html.worlds-home #feature-worlds .portal-tile p{position:relative;z-index:2;font:11px/1.3 system-ui,sans-serif;margin:0;color:#f2e3ce;max-width:none}
html.worlds-home #feature-worlds .portal-entry{position:absolute;inset:0;z-index:3;width:100%;height:100%;border:0;border-radius:12px;padding:0;margin:0;font-size:0;background:transparent;box-shadow:none;color:transparent}
html.worlds-home #feature-worlds .portal-entry span{display:none}
html.worlds-home #feature-worlds .portal-entry:focus-visible{outline:3px solid #fff2c5;outline-offset:-4px}
html.worlds-home .divine-bottom-nav{max-width:716px;background:linear-gradient(135deg,#3a2639,#1c1422);border-color:#aa844c}
@media(min-width:600px){html.worlds-home #feature-worlds .portal-tile{min-height:160px;padding-top:105px}html.worlds-home .daily-reveal-zone.is-sealed,html.worlds-home .today>.daily-reveal-zone.is-sealed .daily-reveal-cover{height:150px!important}}
@media(prefers-reduced-motion:reduce){html.worlds-home *,html.worlds-home *::before,html.worlds-home *::after{scroll-behavior:auto!important}}
html.worlds-home .today:has(.is-sealed)>.actions{display:none}
html.worlds-home .review-test-panel{max-width:716px;margin:4px auto;padding:4px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px}
html.worlds-home .review-test-panel strong{font-size:10px}
html.worlds-home .review-test-panel label{font-size:10px;margin:0}
html.worlds-home .review-test-panel select{min-height:28px;padding:3px;font-size:11px}
html.worlds-home .review-test-panel p{display:none}
html.worlds-home .today:has(.is-sealed) .whats-new-button{min-height:28px;padding:4px 18px;font-size:11px}
/* A revealed card is a reading visit, not the persisted homepage layout. */
.home-return-worlds{display:none}
html.worlds-home .home-return-worlds:not([hidden]){display:block;margin:10px auto;padding:7px 15px;min-height:36px;border:1px solid #b99660;border-radius:20px;background:#332137;color:#f2d5a2;font:600 12px/1.3 system-ui,sans-serif}
html.worlds-home .worlds-promotion{display:none!important}
html.worlds-home .whats-new-slot.has-worlds-promotion{padding-top:0!important}
html.worlds-home .site-header .reader-account-bar{display:flex;justify-content:center;gap:5px;margin:0 0 4px;padding:0}
html.worlds-home .site-header .reader-account-bar :is(.reader-auth-chip,#account-toggle,#notification-entry){flex:0 1 auto;min-height:32px;padding:5px 9px;font-size:11px;line-height:1.2;border-radius:18px}
html.worlds-home .site-header .account-toggle-emblem{display:none}
html.worlds-home .site-header .reader-access-note{margin-bottom:0}
html.worlds-home .whats-new-button{min-height:28px!important;padding:4px 16px!important;font-size:11px!important}

/* Combined entrance: full collectible portrait and slender world doorways. */
html.worlds-home .daily-reveal-zone.is-sealed{width:min(100%,390px);height:auto!important;min-height:0!important;aspect-ratio:2/3;margin:10px auto}
html.worlds-home .today>.daily-reveal-zone.is-sealed .daily-reveal-cover{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;aspect-ratio:2/3;padding:0;border:0;background:none;box-shadow:none}
html.worlds-home .daily-reveal-cover .daily-reveal-portrait-master{display:block;position:static;width:100%;height:100%;object-fit:contain;border-radius:14px}
html.worlds-home .daily-reveal-cover .home-reveal-copy{display:none}
html.worlds-home .daily-reveal-cover .daily-publish-status:not([hidden]){position:absolute;bottom:13%;left:7%;right:7%;width:86%;margin:0;padding:9px;grid-area:auto;background:#251626ed}
html.worlds-home #feature-worlds{margin-top:14px}
html.worlds-home #feature-worlds .portal-active-grid{gap:7px}
html.worlds-home #feature-worlds .portal-tile{min-height:76px;padding:12px 7px 12px 36%;align-items:start;text-align:left;justify-content:center;border-radius:10px}
html.worlds-home #feature-worlds .portal-sigil-art{width:38%;height:100%;object-fit:cover}
html.worlds-home #feature-worlds .portal-tile::before{background:linear-gradient(90deg,transparent 0%,#261b2c66 24%,#261b2c 37%);z-index:1}
html.worlds-home #feature-worlds .portal-tile h3{font-size:15px;line-height:1.2;text-align:left;justify-content:start}
html.worlds-home #feature-worlds .portal-tile p{font-size:10px;line-height:1.3;text-align:left}
html.worlds-home #feature-worlds .portal-entry{border-radius:10px}
@media(min-width:600px){html.worlds-home #feature-worlds .portal-tile{min-height:82px;padding:13px 12px 13px 29%}html.worlds-home #feature-worlds .portal-sigil-art{width:30%}html.worlds-home #feature-worlds .portal-tile h3{font-size:19px}html.worlds-home #feature-worlds .portal-tile p{font-size:12px}}
@media(max-width:360px){html.worlds-home #feature-worlds .portal-tile{padding-left:30%;padding-right:5px;min-height:84px}html.worlds-home #feature-worlds .portal-sigil-art{width:32%}html.worlds-home #feature-worlds .portal-tile h3{font-size:14px}}

/* Whole portrait and six doorways share the opening viewport. */
@media(max-width:600px){
 html.worlds-home .site-header{padding:8px 12px 4px!important}
 html.worlds-home .site-header>h1{font-size:26px!important;margin:4px 0!important}
 html.worlds-home .site-header>.eyebrow{font-size:8px}
 html.worlds-home .reader-access-note{position:absolute;right:12px;top:2px}
 html.worlds-home .reader-signin-invitation{min-height:28px;padding:3px 9px}
 html.worlds-home .reader-signin-invitation::after{font-size:10px}
 html.worlds-home .review-test-panel{margin:2px 8px;padding:2px 7px}
 html.worlds-home .review-test-panel select{min-height:26px}
 html.worlds-home main{padding-inline:10px}
 html.worlds-home .daily-reveal-zone.is-sealed{width:min(100%,390px,max(120px,calc((100svh - 410px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*2/3)));margin:5px auto}
 html.worlds-home[data-reader-authenticated="true"] .daily-reveal-zone.is-sealed{width:min(100%,390px,max(120px,calc((100svh - 445px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*2/3)))}
 html.worlds-home #feature-worlds{margin:6px 0 12px}
 html.worlds-home #feature-worlds .world-hub-heading{margin-bottom:6px}
 html.worlds-home #world-hub-title{font-size:21px;margin-bottom:2px}
 html.worlds-home #feature-worlds .world-hub-heading p{font-size:11px}
 html.worlds-home #feature-worlds .portal-active-grid{gap:5px}
 html.worlds-home #feature-worlds .portal-tile{min-height:49px;padding:6px 5px 6px 31%}
 html.worlds-home #feature-worlds .portal-sigil-art{width:32%}
 html.worlds-home #feature-worlds .portal-tile h3{font-size:14px;line-height:1.15;margin:0}
 html.worlds-home #feature-worlds .portal-tile p{display:none}
 html.worlds-home .whats-new-slot{margin-block:2px!important}
 html.worlds-home .divine-bottom-nav a,html.worlds-home .divine-bottom-nav button{min-height:44px;padding:5px 3px}
}

/* Account and review controls follow worlds; the portrait gets the saved space. */
.home-controls:empty{display:none}
html.worlds-home .home-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;padding:9px 0 15px;margin:0 0 12px;border-bottom:1px solid #b9956044}
html.worlds-home .home-controls .reader-access-note{position:static;max-width:none;margin:0}
html.worlds-home .home-controls .reader-signin-invitation{width:auto}
html.worlds-home .home-controls .review-test-panel{flex:1 1 100%;margin:0;padding:3px 8px}
html.worlds-home .home-controls :is(#account-panel,#signed-in-welcome){flex:1 1 100%;width:100%;max-width:100%;margin:8px 0}
@media(max-width:600px){
 html.worlds-home .daily-reveal-zone.is-sealed,
 html.worlds-home[data-reader-authenticated="true"] .daily-reveal-zone.is-sealed{width:min(100%,390px,max(120px,calc((100svh - 350px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*2/3)))}
}

/* Golden heavens: decorative light only; card artwork and layout are unchanged. */
html.worlds-home body{overflow-x:clip}
html.worlds-home .daily-reveal-zone::before{
 content:"";position:absolute;z-index:-1;pointer-events:none;
 left:50%;top:46%;width:min(170vw,1050px);height:155%;
 transform:translate(-50%,-50%);
 background:
 radial-gradient(ellipse at center,rgba(255,218,137,.24) 0%,rgba(230,177,73,.12) 24%,transparent 65%),
 repeating-conic-gradient(from -8deg at 50% 50%,rgba(255,221,145,.24) 0deg,rgba(233,184,87,.08) 4deg,transparent 7deg,transparent 18deg);
 -webkit-mask-image:radial-gradient(ellipse at center,transparent 3%,#000 18%,#000b 42%,transparent 71%);
 mask-image:radial-gradient(ellipse at center,transparent 3%,#000 18%,#000b 42%,transparent 71%);
 filter:blur(1px);opacity:.8;
 animation:divine-heavens-glow 10s ease-in-out infinite alternate;
}
html.worlds-home .daily-reveal-zone::after{
 content:"";position:absolute;z-index:-1;pointer-events:none;
 inset:-16px -30px;
 border-radius:50%;
 background:radial-gradient(ellipse,rgba(255,226,153,.2),rgba(225,168,68,.08) 44%,transparent 72%);
}
@keyframes divine-heavens-glow{from{opacity:.58}to{opacity:.9}}
@media(prefers-reduced-motion:reduce){html.worlds-home .daily-reveal-zone::before{animation:none;opacity:.75}}

/* iPhone review: remove repeated heading, retain revealed daily thumbnail. */
html.worlds-home .site-header{display:none!important}
html.worlds-home .daily-reveal-zone.home-card-compact{width:min(100%,390px);height:auto!important;min-height:0!important;aspect-ratio:2/3;margin:5px auto}
html.worlds-home .daily-reveal-zone.home-card-compact .flip-card{width:100%!important;height:100%!important;aspect-ratio:2/3}
html.worlds-home .daily-reveal-zone.home-card-compact .brigid-expanded-reverse{display:none!important}
html.worlds-home .today:has(.home-card-compact)>.actions,
html.worlds-home .today:has(.home-card-compact)>.source-links,
html.worlds-home .today:has(.home-card-compact)>.hint{display:none!important}
html.worlds-home .home-card-compact .card-inner{transform:none!important;transition:none}
html.worlds-home .home-card-compact .card-front-caption{font-size:0}
html.worlds-home .home-card-compact .card-front-caption::after{content:"Tap to open today’s card";font:11px/1.3 system-ui,sans-serif}
@media(max-width:600px){html.worlds-home .daily-reveal-zone.home-card-compact{width:min(100%,390px,max(120px,calc((100svh - 350px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*2/3)))}}

/* Clear flip invitation and upcoming worlds, using existing approved sigils. */
html.worlds-home .card-front-caption{display:none}
html.worlds-home .card-flip-ribbon{width:min(100%,390px);margin:4px auto}
html.worlds-home .today:has(.is-sealed) .card-flip-ribbon{display:none}
html.worlds-home .home-coming-soon{display:block;margin:7px 0 4px;padding:2px 10px;border-block:1px solid #b9956066;background:#b9956012;color:#dfc28d;text-align:center;font:600 9px/1.2 system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase}
html.worlds-home #feature-worlds .portal-future-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
html.worlds-home #feature-worlds .portal-future-grid .portal-tile{grid-column:auto;min-height:44px;padding-block:5px;opacity:.8}
html.worlds-home #feature-worlds .portal-future-grid .portal-tile h3{font-size:14px;margin:0}
html.worlds-home #feature-worlds .portal-future-grid .portal-tile p{display:none}
/* Worlds navigation gives the worlds and complete carousel a shared overview. */
html.worlds-home.worlds-overview #feature-worlds{scroll-margin-top:6px}
html.worlds-home.worlds-overview #feature-worlds .world-hub-heading{margin-bottom:5px}
html.worlds-home.worlds-overview #feature-worlds .world-hub-heading p{display:none}
html.worlds-home.worlds-overview #feature-worlds .portal-tile{min-height:44px;padding-block:5px}
html.worlds-home.worlds-overview #feature-worlds .portal-tile h3{font-size:14px}
html.worlds-home.worlds-overview #feature-worlds .portal-tile p{display:none}
html.worlds-home.worlds-overview #feature-worlds{margin-bottom:4px}
html.worlds-home.worlds-overview .home-controls{padding:3px 0 5px;gap:3px;margin:0 0 4px}
html.worlds-home.worlds-overview .grimoire{padding-top:3px}
html.worlds-home.worlds-overview .grimoire .section-top{margin:3px 0}
html.worlds-home.worlds-overview .grimoire h2{font-size:21px;margin:3px 0}
html.worlds-home.worlds-overview .grimoire .eyebrow,
html.worlds-home.worlds-overview .grimoire>.note{display:none}
html.worlds-home.worlds-overview .grimoire .filters{margin:4px 0;gap:5px}
html.worlds-home.worlds-overview .grimoire .filters input[type=search]{min-width:150px;padding:7px 9px;font-size:12px}
html.worlds-home.worlds-overview .grimoire .filters label{font-size:11px}
html.worlds-home.worlds-overview .gallery.collection-carousel{gap:3px;padding:2px 0}
html.worlds-home.worlds-overview .collection-carousel-stage{height:clamp(135px,calc(100svh - 470px - env(safe-area-inset-bottom)),240px)}
html.worlds-home.worlds-overview .collection-carousel .carousel-card{width:min(42%,155px);padding:3px}
html.worlds-home.worlds-overview .collection-carousel .carousel-card img{height:calc(100% - 33px)}
html.worlds-home.worlds-overview .collection-carousel .carousel-card strong{font-size:13px;margin-top:2px}
html.worlds-home.worlds-overview .collection-carousel .carousel-card span{font-size:9px}
html.worlds-home.worlds-overview .collection-carousel-arrow{min-height:32px;font-size:23px}
html.worlds-home.worlds-overview .collection-carousel-guidance{display:none}

html.worlds-home #feature-worlds .world-hub-controls {
 display:grid;
 grid-template-columns:minmax(64px,1fr) auto minmax(64px,1fr);
 align-items:center;
 gap:clamp(4px,2vw,12px);
 max-width:none;
 margin:0;
 padding:0;
}
html.worlds-home #feature-worlds .world-hub-controls #world-hub-title {
 grid-area:1 / 2;
 margin:0;
 text-align:center;
}
html.worlds-home .world-hub-controls #reader-auth-chip {
 position:absolute;
 width:1px;
 height:1px;
 overflow:hidden;
 clip-path:inset(50%);
}
html.worlds-home .world-hub-controls :is(#account-toggle,#notification-entry) {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 position:relative;
 isolation:isolate;
 box-sizing:border-box;
 min-width:64px;
 min-height:44px;
 margin:0;
 padding:0 7px;
 border:0;
 background:none;
 color:#f4d8a6;
 box-shadow:none;
 font:600 13px/1.2 Georgia,serif;
 text-decoration:none;
 white-space:nowrap;
}
html.worlds-home .world-hub-controls :is(#account-toggle,#notification-entry)::before {
 content:"";
 position:absolute;
 inset:8px 0;
 z-index:-1;
 border:1px solid #a88657;
 border-radius:5px;
 background:linear-gradient(160deg,#352638,#211923);
 box-shadow:inset 0 0 0 2px #211923,inset 0 0 0 3px #a8865755;
}
html.worlds-home .world-hub-controls #account-toggle {
 grid-area:1 / 1;
 justify-self:start;
}
html.worlds-home .world-hub-controls #notification-entry {
 grid-area:1 / 3;
 justify-self:end;
}
html.worlds-home .world-hub-controls .account-toggle-emblem { display:none; }
html.worlds-home .world-hub-controls :is(#account-toggle,#notification-entry):focus-visible {
 outline:2px solid #f4d8a6;
 outline-offset:2px;
}
@media(max-width:360px) {
 html.worlds-home #feature-worlds .world-hub-controls #world-hub-title { font-size:18px; }
}

html.worlds-home :is(#nav-my-space,.home-controls #reader-access-note) { display:none; }

html.worlds-home .is-restoring-card > :is(.daily-reveal-cover,[data-latest-release-banner]){visibility:hidden}

/* Frame the approved artwork consistently without replacing any master. */
html.worlds-home #feature-worlds .portal-tile {
  --emblem-size: clamp(42px, 12vw, 68px);
  --emblem-inset: clamp(7px, 2vw, 12px);
  padding-inline-start: calc(var(--emblem-size) + 2 * var(--emblem-inset));
}
html.worlds-home #feature-worlds .portal-sigil-art {
  inset: 50% auto auto var(--emblem-inset);
  width: var(--emblem-size);
  height: var(--emblem-size);
  transform: translateY(-50%);
  object-fit: contain;
  object-position: center;
  border-radius: 7px;
}
html.worlds-home #feature-worlds .portal-tile::before {
  background: linear-gradient(90deg,#33253566,transparent);
}
html.worlds-home #feature-worlds .portal-future-grid .portal-tile,
html.worlds-home.worlds-overview #feature-worlds .portal-tile {
  --emblem-size: 36px;
}
@media(max-height:760px) {
  html.worlds-home #feature-worlds .portal-tile { --emblem-size: 36px; }
}
@media(max-width:360px) {
  html.worlds-home #feature-worlds .portal-tile { --emblem-size: 36px; }
}
html.has-home-flip-ribbon #flip-action { display:none; }

.card-thread-panel {
  margin: 1rem 0;
  padding: .85rem;
  border: 1px solid #a68658;
  border-radius: .65rem;
  background: #231a2bea;
  color: #f7e6c7;
}
.card-thread-panel h4 { margin: 0 0 .45rem; font: 600 1rem/1.3 Georgia,serif; }
.card-thread-panel div + div { border-top: 1px solid #a6865855; margin-top: .45rem; }
.card-thread-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #ffe1a9;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.card-thread-panel a:focus-visible { outline: 2px solid #f7d58e; outline-offset: 2px; }
.card-thread-panel p { margin: 0; font: .8125rem/1.55 system-ui,sans-serif; }

/* The bookmark tucks into the upper edge of the featured card. */
.reader-ribbon-bookmark[hidden], .collection-theme-selector[hidden] { display:none; }
.reader-ribbon-bookmark {
  width:min(100%,390px);
  min-height:29px;
  margin:0 auto 4px;
  padding:2px .65rem;
  display:flex;
  align-items:center;
  gap:.38rem;
  white-space:nowrap;
  text-decoration:none;
  text-align:left;
  color:#ffe2ab;
  background:linear-gradient(100deg,#493029,#281b31 45%,#1d1724);
  border-block:1px solid #b99561;
  box-shadow:inset 0 2px 0 #17101a77;
}
.bookmark-label { flex:none; color:#ecd2a3; font:600 .7rem/1.2 system-ui,sans-serif; }
.reader-ribbon-bookmark strong {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  font:normal .92rem/1.25 Georgia,serif;
}
.bookmark-arrow { margin-inline-start:auto; color:#f5cc81; }
html.worlds-home.worlds-overview .reader-ribbon-bookmark { display:none; }
/* One filter surface, with a search line and a shared theme/favorites rail. */
.grimoire .filters.collection-filters {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
  gap:0;
  margin:12px 0 16px;
  padding:0;
  border:1px solid #a88454;
  border-radius:10px;
  background:linear-gradient(135deg,#352837,#201b2a 55%,#1b1824);
  box-shadow:inset 0 0 0 2px #251b2a,inset 0 0 0 3px #a8845433;
}
html.worlds-home.worlds-overview .grimoire .filters.collection-filters { gap:0; margin:4px 0; }
.grimoire .collection-filters .collection-search {
  display:flex;
  min-width:0;
  align-items:center;
  gap:.55rem;
  margin:0;
  padding:0 .72rem;
}
.collection-search-mark {
  flex:none;
  position:relative;
  width:.68rem;
  height:.68rem;
  margin-inline-end:.12rem;
  border:1.5px solid #d9ad70;
  border-radius:50%;
}
.collection-search-mark::after {
  content:"";
  position:absolute;
  width:.32rem;
  height:1.5px;
  background:#d9ad70;
  transform:rotate(45deg);
  transform-origin:left center;
  left:80%;
  top:84%;
}
.grimoire .collection-filters .collection-search input[type=search],
html.worlds-home.worlds-overview .grimoire .collection-filters .collection-search input[type=search] {
  min-width:0;
  width:100%;
  min-height:44px;
  padding:.3rem 0;
  border:0;
  border-radius:0;
  color:#f5e5cd;
  background:transparent;
  font:16px/1.25 system-ui,sans-serif;
}
.collection-search input::placeholder { color:#cdc0b8; }
.collection-filter-options {
  display:flex;
  align-items:stretch;
  min-width:0;
  border-top:1px solid #a8845466;
}
.collection-theme-selector {
  display:grid;
  flex:1;
  min-width:0;
  grid-template-columns:max-content minmax(0,1fr) auto;
  align-items:center;
  gap:.45rem;
  min-height:44px;
  padding:0 .7rem;
}
.collection-theme-selector>span:first-child { color:#d8b680;font:600 .72rem/1.2 system-ui,sans-serif; }
.collection-theme-selector select {
  appearance:none;
  min-width:0;
  width:100%;
  min-height:44px;
  padding:0;
  border:0;
  color:#ffe4b3;
  background:transparent;
  cursor:pointer;
  font:normal 1rem/1.2 Georgia,serif;
}
.collection-theme-selector option { background:#281d2c;color:#ffe4b3; }
.collection-theme-chevron { justify-self:end;color:#e3b876;font-size:1rem;pointer-events:none; }
.grimoire .collection-favorites {
  display:flex;
  flex:none;
  align-items:center;
  gap:.32rem;
  min-height:44px;
  padding:0 .65rem;
  color:#f0d6ab;
  white-space:nowrap;
  font-size:.75rem;
}
.collection-theme-selector:not([hidden]) + .collection-favorites { border-inline-start:1px solid #a8845466; }
.collection-favorites input { margin:0;accent-color:#d8ad70; }
.reader-ribbon-bookmark:focus-visible,.collection-filters label:focus-within { outline:2px solid #ffe0a1;outline-offset:-2px; }
.collection-filters :is(input,select):focus-visible { outline:none; }
@media(max-width:360px) {
  .collection-theme-selector { gap:.28rem;padding-inline:.52rem; }
  .grimoire .collection-favorites { padding-inline:.52rem; }
}
