/* =====================================================================
   ANILVL UI — the site's single stylesheet
   ---------------------------------------------------------------------
   Replaces: Customizer "Additional CSS", the inline <style> on the home
   page and the old enhancement overrides. One design system for every
   page: tokens -> base -> shared parts -> home page -> character page.

   Rules of the system
   - one accent: pink -> violet. Small "selected" things (tabs, chips, toggles,
     round buttons) use the 2-colour --lv-grad-2; the big Patreon CTAs use the
     full pink -> violet -> cyan --lv-grad. Gradients are always painted
     border-box (otherwise a 1px sliver of the opposite colour shows at the edges)
   - hover effects only on devices that really hover (no "stuck" hover on phones)
   - every secondary control is the same glass pill
   - panels 20px, cards 18px, images 14px, controls fully rounded
   - one font (Poppins 400 / 600 / 800), one icon style (line icons)
   ===================================================================== */

/* ---------- font (self-hosted, latin) ---------- */
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(/wp-content/mu-plugins/anilvl-fonts/poppins-400.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/wp-content/mu-plugins/anilvl-fonts/poppins-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url(/wp-content/mu-plugins/anilvl-fonts/poppins-800.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* ---------- design tokens ---------- */
:root{
  --lv-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --lv-pink:   #ff2fd6;
  --lv-violet: #9b45ff;
  --lv-cyan:   #2bd9ff;
  --lv-grad:   linear-gradient(90deg, #ff2fd6 0%, #9b45ff 55%, #2bd9ff 100%);
  --lv-grad-2: linear-gradient(135deg, #ff2fd6 0%, #a93cff 100%);

  --lv-bg:        #07000e;
  --lv-panel:     rgba(14, 3, 26, .62);
  --lv-surface:   rgba(255, 255, 255, .05);
  --lv-surface-2: rgba(255, 255, 255, .09);
  --lv-glass:     rgba(12, 3, 22, .78);
  --lv-line:      rgba(255, 255, 255, .10);
  --lv-line-2:    rgba(255, 255, 255, .16);
  --lv-accent-line: rgba(255, 47, 214, .50);
  --lv-accent-soft: rgba(255, 47, 214, .12);

  --lv-text:  rgba(255, 246, 255, .96);
  --lv-muted: rgba(255, 246, 255, .66);
  --lv-faint: rgba(255, 246, 255, .46);

  --lv-r-panel: 20px;
  --lv-r-card:  18px;
  --lv-r-img:   14px;

  --lv-shadow:    0 14px 40px rgba(0, 0, 0, .45);
  --lv-shadow-lg: 0 22px 60px rgba(0, 0, 0, .60);
  --lv-glow:      0 8px 22px rgba(255, 47, 214, .30), 0 0 18px rgba(155, 69, 255, .22);
  --lv-glow-lg:   0 12px 34px rgba(255, 47, 214, .45), 0 0 30px rgba(155, 69, 255, .38);
  --lv-focus:     0 0 0 3px rgba(255, 47, 214, .28);

  --lv-ease: cubic-bezier(.2, .7, .2, 1);

  /* line icons (used as masks, so they take the text colour) */
  --lv-i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
  --lv-i-lock:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7.5a5 5 0 0 1 10 0V10h.5A2.5 2.5 0 0 1 20 12.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 19.5v-7A2.5 2.5 0 0 1 6.5 10H7Zm2.4 0h5.2V7.5a2.6 2.6 0 0 0-5.2 0V10Z'/%3E%3C/svg%3E");
  --lv-i-chev:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
  --lv-i-down:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --lv-i-x:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --lv-i-up:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E");
}

/* =====================================================================
   1. BASE
   ===================================================================== */
/* !important: Astra paints body white below 921px via .ast-plain-container */
html body{
  background-color: var(--lv-bg) !important;
  background-image: radial-gradient(1400px 700px at 50% -12%, #1c0033 0%, rgba(28, 0, 51, 0) 70%) !important;
  background-repeat: no-repeat !important;
  color: var(--lv-text);
  font-family: var(--lv-font);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* no horizontal scroll. "clip" (not "hidden") so these don't become scroll containers:
   that would break the sticky side column on character pages. "hidden" stays as fallback. */
html body .site,
html body .site-content,
html body .content-area,
html body .entry-content,
html body .ast-container{
  background: transparent;
  color: var(--lv-text);
  overflow-x: hidden;
  overflow-x: clip;
}
html body button,
html body input,
html body select,
html body textarea{ font-family: var(--lv-font); }
body.no-scroll{ overflow: hidden !important; }
::selection{ background: rgba(255, 47, 214, .38); color: #fff; }

summary{ list-style: none; }
summary::-webkit-details-marker{ display: none; }

.post-wrapper button, .post-wrapper a, .anilvl-search button, .anilvl-search a,
.as-social button, .as-sticky button, .as-fab, .lightbox button{ -webkit-tap-highlight-color: transparent; }

/* theme chrome the site doesn't use */
html body #masthead,
#ast-scroll-top,
body #main nav,
.ast-no-thumb .entry-header .entry-meta,
.site-footer .site-info .inside-site-info,
.inside-article .entry-header h1,
body #main .ast-article-image-container--wide img{ display: none !important; }
#content .ast-container{ padding-left: 5px; padding-right: 5px; }
.entry-header{ margin-bottom: 0 !important; }
#content, .ast-no-thumb .post-wrapper, .ast-no-thumb .post-wrapper .title-block{ transform: none !important; }
.ast-article-single{ margin-bottom: 0; padding-bottom: 0; }
body #main .ast-article-single .entry-content{ padding-top: 5px; }
.single-post .content-area.primary,
.single-post article.ast-article-single .entry-content{ margin-top: 0 !important; padding-top: 0 !important; }

/* gradient text helper */
.lv-accent,
.rel-title span{
  background: var(--lv-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   2. SHARED PARTS
   ===================================================================== */

/* ---- panel: the big glass block both pages sit in ---- */
:root{ --as-wrap: min(1120px, 100%); }
@media (min-width: 721px){ :root{ --as-wrap: min(1700px, calc(100% - 40px)); } }

.as-social,
#as-social + #anilvl-search,
html body .post-wrapper{
  box-sizing: border-box;
  border: 1px solid var(--lv-line);
  background:
    radial-gradient(1200px 280px at 8% -30%, rgba(255, 47, 214, .15), transparent 58%),
    radial-gradient(900px 260px at 96% -22%, rgba(43, 217, 255, .09), transparent 58%),
    var(--lv-panel);
}
/* No backdrop-filter on the panels: behind them is only the smooth page gradient (blur changes nothing
   visible), but blurring a ~18000px-tall panel is very expensive to paint and delayed the first frame.
   (On .post-wrapper it would also trap the fixed fullscreen viewer inside the panel.) */

/* ---- header row (home: .as-social, character: .top-nav) ---- */
.lv-brand{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-decoration: none !important;
  background: var(--lv-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  white-space: nowrap;
}

/* the one secondary button: glass pill (header buttons, social, SFW link…) */
.as-sbtn,
html body .post-wrapper .top-nav .lv-hbtn{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  margin: 0;
  padding: 0 14px 0 7px;
  border-radius: 999px;
  border: 1px solid var(--lv-line-2);
  background: var(--lv-surface);
  color: var(--lv-text) !important;
  font-family: var(--lv-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .1px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: transform .18s var(--lv-ease), border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
button.as-sbtn{ -webkit-appearance: none; appearance: none; outline: none; }
@media (hover: hover){
  .as-sbtn:hover,
  html body .post-wrapper .top-nav .lv-hbtn:hover{
    transform: translateY(-1px);
    border-color: var(--lv-accent-line);
    background: var(--lv-surface-2);
    color: #fff !important;
  }
}
.as-sbtn:active,
html body .post-wrapper .top-nav .lv-hbtn:active{ transform: scale(.97); }
.as-sbtn:focus-visible,
html body .post-wrapper .top-nav .lv-hbtn:focus-visible{ outline: none; box-shadow: var(--lv-focus); }

/* round icon box inside header pills */
.as-sbtn .as-ic,
.lv-hbtn .lv-ic{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}
.as-sbtn .as-ic svg{ width: 14px; height: 14px; fill: currentColor; opacity: .95; }
.lv-hbtn .lv-ic::before{
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--lv-i-search) center / contain no-repeat;
  mask: var(--lv-i-search) center / contain no-repeat;
}
.lv-hbtn--patreon .lv-ic::before{ display: none; }
.lv-hbtn .lv-ic svg{ width: 14px; height: 14px; fill: currentColor; }

/* Patreon pill = accent version of the same pill */
.as-sbtn[data-key="patreon"],
html body .post-wrapper .top-nav .lv-hbtn--patreon{
  border-color: var(--lv-accent-line);
  background: var(--lv-accent-soft);
}
.as-sbtn[data-key="patreon"] .as-ic,
.lv-hbtn--patreon .lv-ic{ background: var(--lv-grad-2) border-box; color: #fff; }

/* small "18+" tag */
.as-sbtn .as-pill,
.lv-hbtn .lv-tag{
  position: static;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .25);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 1;
}

/* ---- section label ("CHOOSE LEVEL", "SORT") ---- */
.style-label, .pack-label, .level-label,
.anilvl-search label.as-sort > span{
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lv-faint);
  text-shadow: none;
  opacity: 1;
}

/* ---- the one selectable pill (chips, style toggle, packs, level tabs) ---- */
.anilvl-search button.as-chip,
.anilvl-search button.as-style-btn,
html body .post-wrapper .style-btn,
html body .post-wrapper .pack-btn,
html body .post-wrapper .tab-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--lv-line-2);
  background: var(--lv-surface);
  color: rgba(255, 246, 255, .84);
  font-family: var(--lv-font);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: transform .18s var(--lv-ease), border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
@media (hover: hover){
  .anilvl-search button.as-chip:hover,
  .anilvl-search button.as-style-btn:hover,
  html body .post-wrapper .style-btn:hover,
  html body .post-wrapper .pack-btn:hover,
  html body .post-wrapper .tab-btn:hover{
    transform: translateY(-1px);
    border-color: var(--lv-accent-line);
    background: var(--lv-surface-2);
    color: #fff;
    box-shadow: none;
  }
}
.anilvl-search button.as-chip:active,
.anilvl-search button.as-style-btn:active,
html body .post-wrapper .style-btn:active,
html body .post-wrapper .pack-btn:active,
html body .post-wrapper .tab-btn:active{ transform: scale(.97); }
.anilvl-search button.as-chip:focus-visible,
.anilvl-search button.as-style-btn:focus-visible,
html body .post-wrapper .style-btn:focus-visible,
html body .post-wrapper .pack-btn:focus-visible,
html body .post-wrapper .tab-btn:focus-visible{ outline: none; box-shadow: var(--lv-focus); }

.anilvl-search button.as-chip.active,
.anilvl-search button.as-style-btn.active,
html body .post-wrapper .style-btn.active,
html body .post-wrapper .pack-btn.active,
html body .post-wrapper .tab-btn.active{
  border: 1px solid transparent !important;
  background: var(--lv-grad-2) border-box;
  background-repeat: no-repeat;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  box-shadow: 0 6px 16px rgba(255, 47, 214, .25);
}

/* count inside a pill (chips, level tabs) */
.anilvl-search button.as-chip span,
html body .post-wrapper .tab-btn .lvl-badge{
  display: inline-block;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 246, 255, .82);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-shadow: none;
}
.anilvl-search button.as-chip.active span,
html body .post-wrapper .tab-btn.active .lvl-badge{ background: rgba(0, 0, 0, .24); color: #fff; }

/* ---- primary action: gradient pill (Patreon CTAs). Rule: only ONE gradient Patreon button on screen
        at a time (desktop: side column; phones: button under the preview, else the sticky bar).
        The lock on the blurred preview is a quieter glass pill so it never competes. ---- */
html body .post-wrapper .lvl-actions a.sfw-archive-btn.nsfw-btn,
html body .post-wrapper button.lv-side-cta,
.as-sticky .as-sticky-go{
  border: 0;
  border-radius: 999px;
  background: var(--lv-grad) border-box;
  background-repeat: no-repeat;
  color: #fff;
  font-family: var(--lv-font);
  font-weight: 800;
  letter-spacing: .1px;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  box-shadow: var(--lv-glow);
  cursor: pointer;
}

/* ---- round icon button (arrows, close, back-to-top) ---- */
html body .post-wrapper .sfw-arrow,
html body .lightbox .lightbox-close,
html body .lightbox .lightbox-arrow,
html body button.as-fab,
.as-sticky .as-sticky-x,
.anilvl-search .as-anime-clear,
.as-pop .as-pop-close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--lv-line-2);
  background: var(--lv-glass);
  color: #fff;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .18s var(--lv-ease), border-color .18s ease, background .18s ease, opacity .18s ease;
}
html body .post-wrapper .sfw-arrow::before,
html body .lightbox .lightbox-close::before,
html body .lightbox .lightbox-arrow::before,
.as-sticky .as-sticky-x::before,
.anilvl-search .as-anime-clear::before,
.as-pop .as-pop-close::before{
  content: "";
  width: 46%;
  height: 46%;
  background: currentColor;
  -webkit-mask: var(--lv-i-chev) center / contain no-repeat;
  mask: var(--lv-i-chev) center / contain no-repeat;
}
html body .post-wrapper .sfw-arrow.left::before,
html body .lightbox .lightbox-prev::before{ transform: scaleX(-1); }
html body .lightbox .lightbox-close::before,
.as-sticky .as-sticky-x::before,
.anilvl-search .as-anime-clear::before,
.as-pop .as-pop-close::before{
  width: 40%;
  height: 40%;
  -webkit-mask-image: var(--lv-i-x);
  mask-image: var(--lv-i-x);
}
@media (hover: hover){
  html body .post-wrapper .sfw-arrow:hover,
  html body .lightbox .lightbox-close:hover,
  html body .lightbox .lightbox-arrow:hover,
  .as-sticky .as-sticky-x:hover,
  .anilvl-search .as-anime-clear:hover,
  .as-pop .as-pop-close:hover{
    border-color: var(--lv-accent-line);
    background: rgba(255, 47, 214, .22);
    color: #fff;
  }
}

/* ---- card (home grid + related) ---- */
.anilvl-search .as-card,
html body .post-wrapper .rel-card{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--lv-r-card);
  border: 1px solid var(--lv-line);
  background: var(--lv-panel);
  color: inherit !important;
  text-decoration: none !important;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .42);
  /* no translateZ(0): it gave each of the ~160 cards its own compositing layer */
  isolation: isolate;
  transition: transform .2s var(--lv-ease), border-color .2s ease, box-shadow .2s ease;
}
.anilvl-search .as-card::after{ display: none; }
@media (hover: hover){
  .anilvl-search .as-card:hover,
  html body .post-wrapper .rel-card:hover{
    transform: translateY(-4px);
    border-color: var(--lv-accent-line);
    box-shadow: var(--lv-shadow-lg), 0 10px 30px rgba(155, 69, 255, .22);
  }
  .anilvl-search .as-card:hover .as-ava img,
  html body .post-wrapper .rel-card:hover .rel-ava img{ transform: scale(1.05); filter: saturate(1.06); }
}
.anilvl-search .as-card:focus-visible,
html body .post-wrapper .rel-card:focus-visible{ outline: none; box-shadow: var(--lv-shadow-lg), var(--lv-focus); }

.anilvl-search .as-ava,
html body .post-wrapper .rel-ava{
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--lv-surface);
}
.anilvl-search .as-ava::after,
html body .post-wrapper .rel-ava::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .7) 100%);
  pointer-events: none;
}
.anilvl-search .as-ava img,
html body .post-wrapper .rel-ava img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  transform: scale(1.001);
  transition: transform .3s var(--lv-ease), filter .3s ease;
}
.anilvl-search .as-meta,
html body .post-wrapper .rel-meta{
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding: 12px 12px 13px;
  background: linear-gradient(180deg, rgba(10, 0, 18, 0) 0%, rgba(10, 0, 18, .72) 32%, rgba(10, 0, 18, .94) 100%);
  border-top: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.anilvl-search .as-name,
html body .post-wrapper .rel-name{
  margin: 0 0 3px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.anilvl-search .as-anime,
html body .post-wrapper .rel-anime{
  margin: 0;
  color: var(--lv-muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

/* small glass tag on images ("1 PACK", "+42 PICS") */
.anilvl-search .as-ava .as-pill,
html body .post-wrapper .gallery.locked .bundle-count{
  border-radius: 999px;
  border: 1px solid var(--lv-line-2);
  background: rgba(8, 0, 16, .62);
  color: #fff;
  font-family: var(--lv-font);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---- inputs ---- */
.anilvl-search input#as-q,
.anilvl-search .as-anime-input,
.anilvl-search label.as-sort select{
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--lv-line-2);
  background-color: var(--lv-surface);
  color: var(--lv-text);
  font-family: var(--lv-font);
  font-weight: 400;
  box-shadow: none;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.anilvl-search input#as-q::placeholder,
.anilvl-search .as-anime-input::placeholder{ color: var(--lv-faint); opacity: 1; }
.anilvl-search input#as-q:hover,
.anilvl-search .as-anime-input:hover,
.anilvl-search label.as-sort select:hover{ border-color: rgba(255, 255, 255, .26); }
.anilvl-search input#as-q:focus,
.anilvl-search .as-anime-input:focus,
.anilvl-search label.as-sort select:focus{
  border-color: var(--lv-accent-line);
  background-color: var(--lv-surface-2);
  box-shadow: var(--lv-focus);
  outline: none;
}

/* =====================================================================
   3. HOME PAGE (catalog)
   ===================================================================== */

/* panel = header row + catalog, glued into one block */
.as-social,
#as-social + #anilvl-search{
  inline-size: var(--as-wrap);
  max-inline-size: none;
  margin-inline: auto;
}
.as-social{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 12px 14px 12px 18px;
  border-bottom: 0;
  border-radius: var(--lv-r-panel) var(--lv-r-panel) 0 0;
  box-shadow: var(--lv-shadow);
}
.as-social::after{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: var(--lv-line);
}
.as-social *{ box-sizing: border-box; }
.as-social-links{
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  margin-left: auto;
  overflow: visible;
  padding: 0;
  min-height: 42px; /* the buttons are added by a script: keep their height from the start (no layout shift) */
}

#as-social + #anilvl-search{
  margin: 0 auto 10px;
  padding: 0 14px 14px;
  border-top: 0;
  border-radius: 0 0 var(--lv-r-panel) var(--lv-r-panel);
}
.anilvl-search{
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px;
  isolation: isolate;
}
.anilvl-search, .anilvl-search *{ box-sizing: border-box; }

/* hero */
.anilvl-search .as-hero{ margin: 0; padding: 20px 4px 4px; }
.anilvl-search .as-hero-title,
html body .post-wrapper .visible-title .title-main{
  font-family: var(--lv-font);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #fff;
}
.anilvl-search .as-hero-title{ margin: 0; }
.anilvl-search .as-hero-sub{
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--lv-muted);
}
.anilvl-search .as-hero-sub b{ color: #fff; font-weight: 800; }

/* controls row */
#as-social + #anilvl-search .as-top,
.anilvl-search .as-top{
  position: relative;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.anilvl-search input#as-q{
  flex: 1 1 360px;
  min-width: 240px;
  height: 46px;
  padding: 0 16px 0 44px;
  font-size: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,246,255,0.55)' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 18px 18px;
}
.anilvl-search input#as-q::-webkit-search-cancel-button{
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb3ef' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* anime combo */
.anilvl-search .as-anime-combo{
  position: relative;
  z-index: 60;
  flex: 0 1 260px;
  min-width: 190px;
}
/* Before the script turns the native <select> into the combo above, the select stands in its place:
   same box and look, so the row doesn't reflow (and the cards below don't jump) when it is swapped. */
.anilvl-search .as-top > select#as-anime{
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  flex: 0 1 260px;
  min-width: 190px;
  width: auto;
  height: 46px;
  margin: 0;
  padding: 0 46px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--lv-line-2);
  background: var(--lv-surface);
  color: var(--lv-faint);
  font: 400 15px/1 var(--lv-font);
  box-shadow: none;
}
.anilvl-search .as-anime-input{
  width: 100%;
  height: 46px;
  padding: 0 46px 0 18px;
  font-size: 15px;
}
.anilvl-search .as-anime-clear{
  position: absolute;
  right: 8px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  box-shadow: none;
}
.anilvl-search .as-anime-clear:hover{ transform: translateY(-50%); }
.anilvl-search .as-anime-input:placeholder-shown + .as-anime-clear{
  opacity: 0;
  pointer-events: none;
}
.anilvl-search .as-anime-dd{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 360px;
  overflow: auto;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--lv-line-2);
  background: rgba(14, 3, 26, .96);
  box-shadow: var(--lv-shadow-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.anilvl-search .as-anime-dd[hidden]{ display: none !important; }
.anilvl-search .as-anime-dd .as-dd-item{
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lv-text);
  font-family: var(--lv-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.anilvl-search .as-anime-dd .as-dd-item:hover,
.anilvl-search .as-anime-dd .as-dd-item:focus-visible{
  outline: none;
  background: var(--lv-accent-soft);
  color: #fff;
}

/* style toggle = segmented control */
.anilvl-search .as-style{
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--lv-line-2);
  background: var(--lv-surface);
}
.anilvl-search button.as-style-btn{
  height: 36px;
  padding: 0 18px;
  border-color: transparent;
  background: transparent;
  font-size: 14px;
}
@media (hover: hover){ .anilvl-search button.as-style-btn:hover{ border-color: transparent; transform: none; } }

/* popular-anime chips */
.anilvl-search .as-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.anilvl-search button.as-chip{
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
/* the chip row scrolls sideways on phones, which would clip a glow */
.anilvl-search button.as-chip.active{ box-shadow: none; }

/* counter + sort */
.anilvl-search .as-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px; /* the server renders it empty; the script fills it without moving the cards */
  margin: 16px 2px 12px;
}
.anilvl-search .as-toolbar .as-count,
.anilvl-search .as-count{
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--lv-muted);
}
.anilvl-search .as-count b{ color: #fff; font-weight: 800; }
.anilvl-search label.as-sort{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}
.anilvl-search label.as-sort select{
  width: auto;
  min-width: 0;
  height: 34px;
  padding: 0 34px 0 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}
.anilvl-search label.as-sort select option{ background: #150628; color: #fff; }

/* grid + cards */
#as-social + #anilvl-search #as-grid,
#as-social + #anilvl-search #as-empty{ width: 100%; max-width: none; }
.anilvl-search .as-grid{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.anilvl-search .as-card *{ text-decoration: none !important; }
.anilvl-search .as-card:visited{ color: inherit !important; }
.anilvl-search .as-card[hidden]{ display: none !important; }
.anilvl-search .as-ava .as-pill{
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  margin: 0;
  padding: 5px 9px;
  font-size: 10.5px;
  line-height: 1.2;
}
.anilvl-search .as-ava-ph{ width: 100%; height: 100%; background: var(--lv-surface); }

/* loading skeleton */
.anilvl-search .as-skel .as-ava{ aspect-ratio: 4 / 5; border-radius: 0; background: var(--lv-surface); }
.anilvl-search .as-sk-line{ background: rgba(255, 255, 255, .07); }

/* empty state */
.anilvl-search .as-empty{
  margin-top: 14px;
  padding: 34px 16px;
  border-radius: var(--lv-r-card);
  border: 1px dashed var(--lv-line-2);
  background: var(--lv-surface);
  color: var(--lv-muted);
  font-weight: 600;
  text-align: center;
}
.anilvl-search .as-empty small{ display: block; margin-top: 6px; font-weight: 400; color: var(--lv-faint); }

/* admin-only controls (logged-in editor) */
.anilvl-search .as-admin-actions{ display: inline-flex; gap: 8px; align-items: center; }
.anilvl-search .as-admin-btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--lv-line-2);
  background: var(--lv-surface);
  color: var(--lv-text);
  font-weight: 600;
  cursor: pointer;
}
.anilvl-search .as-admin-btn--danger{ background: rgba(220, 0, 70, .16); border-color: rgba(220, 0, 70, .34); }
.anilvl-search .as-admin-btn--ghost{ background: rgba(43, 217, 255, .10); border-color: rgba(43, 217, 255, .30); }
.anilvl-search .as-del{
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--lv-line-2);
  background: var(--lv-glass);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease;
}
.anilvl-search .as-card:hover .as-del{ opacity: 1; }
.anilvl-search .as-del:hover{ background: rgba(220, 0, 70, .5); }

/* social popover (Patreon / Twitter: pick a style) */
.as-pop{
  position: fixed;
  z-index: 999999;
  width: min(270px, 90vw);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--lv-line-2);
  background: rgba(14, 3, 26, .96);
  box-shadow: var(--lv-shadow-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform-origin: top center;
  animation: lvPop .14s ease;
}
@keyframes lvPop{ from{ opacity: 0; transform: translateY(-6px) scale(.98); } to{ opacity: 1; transform: none; } }
.as-pop[hidden]{ display: none; }
.as-pop::before{
  content: "";
  position: absolute;
  left: var(--as-tip-left, 26px);
  top: -6px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-radius: 3px;
  border-left: 1px solid var(--lv-line-2);
  border-top: 1px solid var(--lv-line-2);
  background: rgba(14, 3, 26, .96);
}
.as-pop.as-pop--top::before{ top: auto; bottom: -6px; transform: rotate(225deg); }
.as-pop-top{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.as-pop-name{ font-size: 13px; font-weight: 800; color: #fff; }
.as-pop .as-pop-close{ width: 28px; height: 28px; box-shadow: none; }
.as-pop-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 14px;
  border: 1px solid var(--lv-line);
  background: var(--lv-surface);
  color: var(--lv-text) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color .15s ease, background .15s ease;
}
.as-pop-item + .as-pop-item{ margin-top: 8px; }
.as-pop-item:hover{ border-color: var(--lv-accent-line); background: var(--lv-surface-2); }
.as-pop-left{ display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.as-pop-ava{
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--lv-line-2);
  background: var(--lv-surface);
}
.as-pop-style{ white-space: nowrap; min-width: max-content; }
.as-pop-badge{
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--lv-line-2);
  background: rgba(0, 0, 0, .25);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lv-muted);
  white-space: nowrap;
}

/* floating back-to-search button: solid accent disc (no border, no backdrop blur:
   both left a hairline / clipped edge on phones) */
html body button.as-fab{
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 9980;
  width: 50px;
  height: 50px;
  border: 0;
  background: var(--lv-grad-2) border-box;
  background-repeat: no-repeat;
  box-shadow: 0 8px 22px rgba(255, 47, 214, .35), 0 2px 8px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s var(--lv-ease), filter .18s ease;
}
html body button.as-fab.show{ opacity: 1; transform: none; pointer-events: auto; }
html body button.as-fab:active{ transform: scale(.94); }
@media (hover: hover){ html body button.as-fab:hover{ filter: brightness(1.08); } }
html body button.as-fab svg{ width: 21px; height: 21px; fill: #fff; }

/* =====================================================================
   4. CHARACTER PAGE
   ===================================================================== */
/* .entry-content in the selector: Astra caps ".entry-content[data-ast-blocks-layout] > *" at 1600px */
html body .entry-content .post-wrapper,
html body .post-wrapper{
  position: relative;
  max-width: 1040px;
  margin: 0 auto 16px;
  padding: 20px 15px 10px;
  border-radius: var(--lv-r-panel);
  box-shadow: var(--lv-shadow);
  text-align: center;
}
.ast-no-thumb .post-wrapper{ margin-top: 0; margin-bottom: 0; }

/* header row */
html body .post-wrapper .top-nav{
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -20px -15px 18px;
  padding: 12px 14px 12px 18px;
  border: 0;
  border-bottom: 1px solid var(--lv-line);
  border-radius: var(--lv-r-panel) var(--lv-r-panel) 0 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
html body .post-wrapper .top-nav::before{ display: none; }
html body .post-wrapper .top-nav .top-nav-actions{ display: flex; align-items: center; gap: 8px; }
html body .post-wrapper .top-nav .lv-hbtn{ text-shadow: none; }

/* title */
html body .post-wrapper .title-block{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding-top: 6px;
}
html body .post-wrapper .visible-title{
  margin: 0 0 14px;
  font-size: inherit;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  color: #fff;
  text-shadow: none;
  animation: none;
}
html body .post-wrapper .visible-title .title-main{ display: block; }
html body .post-wrapper .visible-title .title-sub{
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none !important;
  opacity: 1;
  background: var(--lv-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter .18s ease;
}
html body .post-wrapper .visible-title a.title-sub::after{ content: " \2192"; }
@media (hover: hover){ html body .post-wrapper .visible-title a.title-sub:hover{ filter: brightness(1.25); } }

/* cover */
html body .post-wrapper .post-cover{
  width: 150px;
  max-width: 70vw;
  margin: 0 0 14px;
  border-radius: var(--lv-r-img);
  border: 1px solid var(--lv-line-2);
  box-shadow: var(--lv-shadow), 0 0 30px rgba(255, 47, 214, .22);
}

/* "Who is …" (description) */
html body .post-wrapper details.post-description{
  position: relative;
  width: min(560px, 92vw);
  margin: 0 auto 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
html body .post-wrapper details.post-description summary{
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  cursor: pointer;
  user-select: none;
  color: inherit;
  text-shadow: none;
}
html body .post-wrapper details.post-description summary::before{ content: none; display: none; }
html body .post-wrapper details.post-description .desc-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--lv-line-2);
  background: var(--lv-surface);
  color: rgba(255, 246, 255, .86);
  font-size: 11.5px;
  line-height: 1.3;
  text-align: center;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease;
}
@media (hover: hover){ html body .post-wrapper details.post-description summary:hover .desc-chip{ border-color: var(--lv-accent-line); background: var(--lv-surface-2); } }
html body .post-wrapper details.post-description .desc-icon{
  order: 2;
  width: 12px;
  height: 12px;
  font-size: 0;
  background: currentColor;
  -webkit-mask: var(--lv-i-down) center / contain no-repeat;
  mask: var(--lv-i-down) center / contain no-repeat;
  transition: transform .2s ease;
}
html body .post-wrapper details.post-description[open] .desc-icon{ transform: rotate(180deg); }
html body .post-wrapper details.post-description .desc-content{
  position: relative;
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--lv-line);
  background: var(--lv-surface);
  text-align: left;
}
html body .post-wrapper details.post-description .desc-content p{
  max-width: 62ch;
  margin: 0 auto;
  color: rgba(255, 246, 255, .86);
  font-size: 14.5px;
  line-height: 1.65;
  text-align: left;
  text-shadow: none;
  hyphens: auto;
}
html body .post-wrapper details.post-description .desc-content p + p{ margin-top: .8em; }

/* switchers: style / pack / level */
html body .post-wrapper .style-switcher,
html body .post-wrapper .pack-switcher,
html body .post-wrapper .level-switcher{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto 12px;
  padding: 10px 14px 12px;
  border-radius: var(--lv-r-card);
  border: 1px solid var(--lv-line);
  background: rgba(255, 255, 255, .025);
  box-shadow: none;
}
html body .post-wrapper .style-buttons,
html body .post-wrapper .pack-buttons,
html body .post-wrapper .level-buttons{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
html body .post-wrapper .style-btn,
html body .post-wrapper .pack-btn,
html body .post-wrapper .tab-btn{
  height: 36px;
  padding: 0 18px;
  font-size: 13.5px;
  line-height: 1;
}
html body .post-wrapper .tab-btn[data-target^="lvl"]{ padding: 0 12px; }
/* lock icon on paid levels */
html body .post-wrapper .level-buttons .tab-btn[data-target^="lvl"]::before{
  content: "";
  width: 11px;
  height: 11px;
  margin: 0;
  flex: 0 0 auto;
  background: currentColor;
  opacity: .75;
  -webkit-mask: var(--lv-i-lock) center / contain no-repeat;
  mask: var(--lv-i-lock) center / contain no-repeat;
}
html body .post-wrapper .level-buttons .tab-btn.active::before{ opacity: 1; }
html body .post-wrapper .tab-btn .lvl-badge{ margin: 0; }

/* ---- galleries ---- */
.gallery{ display: none; position: relative; max-width: 800px; margin: 0 auto; }
.gallery.active{ display: block; }
.gallery img{ width: 100%; object-fit: cover; cursor: pointer; transition: transform .3s ease, filter .3s ease; }
html body .post-wrapper .gallery img{ border-radius: var(--lv-r-img); }

/* SFW: big image + thumbnail strip */
#sfw.gallery{ display: none; max-width: 820px; margin: 4px auto 10px; }
#sfw.gallery.active{ display: block; }
.sfw-main-wrap{ margin-bottom: 12px; }
html body .post-wrapper .sfw-main-img{
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--lv-r-img);
  box-shadow: var(--lv-shadow);
}
.sfw-thumbs-wrap{
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 6px 40px;
}
.sfw-thumbs-strip{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--lv-pink) rgba(255, 255, 255, .06);
}
.sfw-thumbs-strip::-webkit-scrollbar{ height: 6px; }
.sfw-thumbs-strip::-webkit-scrollbar-track{ background: rgba(255, 255, 255, .06); border-radius: 999px; }
.sfw-thumbs-strip::-webkit-scrollbar-thumb{ background: var(--lv-grad); border-radius: 999px; }
html body .post-wrapper .gallery img.sfw-thumb{
  flex: 0 0 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px solid transparent;
  object-fit: cover;
  opacity: .62;
  cursor: pointer;
  transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
}
@media (hover: hover){ html body .post-wrapper .gallery img.sfw-thumb:hover{ opacity: .95; transform: none; } }
html body .post-wrapper .gallery img.sfw-thumb.active{
  position: relative;
  opacity: 1;
  border-color: var(--lv-pink);
  box-shadow: 0 0 0 1px rgba(255, 47, 214, .35); /* the strip scrolls, so a wider glow would be clipped */
}
html body .post-wrapper .sfw-arrow{
  position: absolute;
  top: calc(50% - 4px);
  z-index: 2;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
}
html body .post-wrapper .sfw-arrow.left{ left: 2px; }
html body .post-wrapper .sfw-arrow.right{ right: 2px; }

/* SFW free link = secondary pill (accent) */
html body .post-wrapper .sfw-actions{
  display: flex;
  justify-content: center;
  margin: 14px 0 4px;
  padding: 0 10px;
  text-align: center;
}
html body .post-wrapper .sfw-actions a#sfw-archive.sfw-archive-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 46px;
  margin: 4px auto 10px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--lv-accent-line);
  background: var(--lv-accent-soft);
  color: #fff;
  font-family: var(--lv-font);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none !important;
  text-shadow: none;
  box-shadow: none;
  overflow: visible;
  filter: none;
  transition: transform .18s var(--lv-ease), border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
html body .post-wrapper .sfw-actions a#sfw-archive.sfw-archive-btn::after{ content: none; display: none; }
@media (hover: hover){
  html body .post-wrapper .sfw-actions a#sfw-archive.sfw-archive-btn:hover{
    transform: translateY(-2px);
    border-color: var(--lv-pink);
    background: rgba(255, 47, 214, .2);
    box-shadow: var(--lv-glow);
  }
}
html body .post-wrapper .sfw-actions a#sfw-archive.sfw-archive-btn:active{ transform: scale(.98); }
html body .post-wrapper .sfw-actions a#sfw-archive.sfw-archive-btn:focus-visible{ outline: none; box-shadow: var(--lv-focus); }
html body .post-wrapper .sfw-actions a#sfw-archive.sfw-archive-btn .sfw-archive-txt{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  text-shadow: none;
}
html body .post-wrapper .sfw-actions a#sfw-archive.sfw-archive-btn .sfw-archive-txt::before{
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--lv-i-search) center / contain no-repeat;
  mask: var(--lv-i-search) center / contain no-repeat;
}

/* paid levels: blurred preview + unlock */
.gallery.locked{ position: relative; }
.gallery.locked .lvl-stage{ position: relative; }
.lvl-thumbs-wrap{ position: relative; width: 100%; overflow: hidden; border-radius: var(--lv-r-img); }
.lvl-thumbs-strip{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lvl-thumbs-strip img{ position: relative; -webkit-tap-highlight-color: transparent; }
.lvl-thumbs-strip img.active{ transform: scale(1.02); filter: brightness(1.3); z-index: 2; }
@media (hover: hover){ .lvl-thumbs-strip img:hover{ transform: scale(1.02); filter: brightness(1.3); z-index: 2; } }

html body .post-wrapper .gallery.locked .lock-btn{
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  margin: 0;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--lv-accent-line);
  background: rgba(14, 3, 26, .74);
  color: #fff;
  font-family: var(--lv-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1px;
  text-shadow: none;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  cursor: pointer;
  transform: translate(-50%, -50%);
  outline: none;
  transition: transform .18s var(--lv-ease), background .18s ease, border-color .18s ease;
}
html body .post-wrapper .gallery.locked .lock-btn .icon{ display: none; }
html body .post-wrapper .gallery.locked .lock-btn::before{
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--lv-i-lock) center / contain no-repeat;
  mask: var(--lv-i-lock) center / contain no-repeat;
}
@media (hover: hover){
  html body .post-wrapper .gallery.locked .lock-btn:hover{
    transform: translate(-50%, -50%) scale(1.03);
    border-color: var(--lv-pink);
    background: rgba(255, 47, 214, .24);
  }
}
html body .post-wrapper .gallery.locked .lock-btn:active{ transform: translate(-50%, -50%) scale(.97); }
html body .post-wrapper .gallery.locked .bundle-count{
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  padding: 5px 11px;
  font-size: 13px;
  line-height: 1.2;
  opacity: 1;
}
html body .post-wrapper .gallery.locked .bundle-count .num{ font-size: 13px; }
html body .post-wrapper .gallery.locked .bundle-count .label{ margin-left: 2px; font-size: 10px; letter-spacing: .1em; }

/* main unlock CTA under the preview */
html body .post-wrapper .lvl-actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin: 18px auto 0;
  padding: 0 10px;
  text-align: center;
}
html body .post-wrapper .lvl-actions::before{
  content: "Instant access \00B7  HD quality \00B7  No watermark";
  display: block;
  width: 100%;
  color: var(--lv-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
  text-align: center;
}
html body .post-wrapper .lvl-actions a.sfw-archive-btn.nsfw-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 54px;
  margin: 0 auto 20px;
  padding: 0 30px;
  font-size: 16px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  overflow: hidden;
  outline: 0;
  transition: transform .18s var(--lv-ease), box-shadow .18s ease, filter .18s ease;
  animation: lvPulse 2.8s ease-in-out infinite;
}
@media (hover: hover){
  html body .post-wrapper .lvl-actions a.sfw-archive-btn.nsfw-btn:hover{
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--lv-glow-lg);
    filter: brightness(1.06);
  }
}
html body .post-wrapper .lvl-actions a.sfw-archive-btn.nsfw-btn:active{ transform: scale(.985); }
html body .post-wrapper .lvl-actions a.sfw-archive-btn.nsfw-btn .sfw-archive-txt{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: inherit;
  font-weight: inherit;
  text-shadow: inherit;
}
html body .post-wrapper .lvl-actions a.sfw-archive-btn.nsfw-btn .sfw-archive-txt::before{
  content: "18+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(0, 0, 0, .22);
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: 1;
}
@keyframes lvPulse{
  0%, 100%{ box-shadow: var(--lv-glow); }
  50%{ box-shadow: var(--lv-glow-lg); }
}

/* fullscreen viewer */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 0, 10, .96);
}
.lightbox.open{ display: flex; }
.lightbox-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
}
.lightbox-img{
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 0, 0, .9);
  touch-action: none;
  cursor: grab;
  transition: transform .05s linear;
  z-index: 1;
  pointer-events: auto;
}
.lightbox-img:active{ cursor: grabbing; }
html body .lightbox .lightbox-close{
  position: absolute;
  top: 40px;
  right: 20px;
  z-index: 2;
  width: 42px;
  height: 42px;
  pointer-events: auto;
}
html body .lightbox .lightbox-arrow{
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  pointer-events: auto;
}
html body .lightbox .lightbox-prev{ left: 16px; }
html body .lightbox .lightbox-next{ right: 16px; }

/* related characters */
html body .post-wrapper .rel-section{
  box-sizing: border-box;
  max-width: 820px;
  margin: 40px auto 10px;
  padding: 0 10px;
}
html body .post-wrapper .rel-title{
  margin: 26px 0 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.005em;
  text-align: left;
}
html body .post-wrapper .rel-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

/* sticky Patreon bar (phones / tablets) */
.as-sticky{ display: none; }
@media (max-width: 768px){
  .as-sticky{
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--lv-line-2);
    background: var(--lv-glass);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(150%);
    pointer-events: none;
    transition: transform .25s var(--lv-ease), opacity .25s ease;
  }
  .as-sticky.show{ opacity: 1; transform: none; pointer-events: auto; }
  .as-sticky .as-sticky-go{
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    font-size: 14.5px;
    line-height: 1.2;
  }
  .as-sticky .as-sticky-ico{
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    font-size: 0;
    background: currentColor;
    -webkit-mask: var(--lv-i-lock) center / contain no-repeat;
    mask: var(--lv-i-lock) center / contain no-repeat;
  }
  .as-sticky .as-sticky-txt{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .as-sticky .as-sticky-x{ flex: 0 0 38px; width: 38px; height: 38px; box-shadow: none; }
  body.as-sticky-on .post-wrapper{ padding-bottom: 76px; }
}

/* =====================================================================
   5. RESPONSIVE
   ===================================================================== */

/* level tabs: one row on desktop, tidy 3 x 2 grid below */
@media (max-width: 820px){
  html body .post-wrapper .level-buttons.tabs{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  html body .post-wrapper .level-buttons .tab-btn,
  html body .post-wrapper .level-buttons .tab-btn[data-target^="lvl"]{
    width: 100%;
    min-width: 0;
    padding: 0 6px;
  }
}

@media (max-width: 720px){
  .as-social{ padding: 10px 10px 10px 14px; border-radius: 18px 18px 0 0; }
  #as-social + #anilvl-search{ padding: 0 8px 16px; border-radius: 0 0 18px 18px; }
  .anilvl-search{ padding: 10px 5px 20px; }
  .anilvl-search .as-hero{ padding: 12px 2px 2px; }
  .anilvl-search .as-hero-sub{ margin-top: 4px; }
  /* search on its own row; anime filter + style toggle share the next row (cards start higher) */
  #as-social + #anilvl-search .as-top,
  .anilvl-search .as-top{ padding-top: 12px; gap: 8px; }
  .anilvl-search input#as-q{ flex: 1 1 100%; min-width: 0; }
  .anilvl-search .as-anime-combo,
  .anilvl-search .as-top > select#as-anime{ flex: 1 1 0; min-width: 0; }
  .anilvl-search .as-style{ width: auto; flex: 0 0 auto; }
  .anilvl-search button.as-style-btn{ flex: 0 0 auto; padding: 0 12px; font-size: 13px; }
  .anilvl-search .as-chips{ margin-top: 12px; }
  .anilvl-search .as-toolbar{ margin: 12px 2px 10px; }
  .anilvl-search .as-admin-actions{ width: 100%; justify-content: space-between; }
  .anilvl-search .as-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* phones: until the first screen is painted only the first 4 server cards exist visually, so the
     images below the fold (cards 5-10) don't share the slow connection with the visible ones */
  .anilvl-search #as-grid.as-ssr-wait > .as-card:nth-child(n+5){ display: none; }
  .anilvl-search .as-del{ opacity: 1; }
  .anilvl-search .as-meta,
  html body .post-wrapper .rel-meta{ margin-top: -52px; padding: 11px 11px 12px; }
}

@media (max-width: 600px){
  .anilvl-search .as-hero-title{ font-size: 21px; }
  html body .post-wrapper .visible-title .title-main{ font-size: 23px; }
  .anilvl-search .as-hero-sub{ font-size: 12.5px; }

  /* chips: one swipeable row */
  .anilvl-search .as-chips{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -8px;
    padding: 0 8px 2px 0;
  }
  .anilvl-search .as-chips::-webkit-scrollbar{ display: none; }
  .anilvl-search button.as-chip{ flex: 0 0 auto; }

  /* character page: the panel keeps its rounded frame, content goes edge to edge */
  html body .post-wrapper,
  html body .entry-content .post-wrapper,
  html body .ast-no-thumb .post-wrapper{
    max-width: 100%;
    margin: 0;
    padding: 0 0 12px;
    border-radius: 18px;
  }
  html body .post-wrapper .top-nav{ margin: 0 0 14px; padding: 10px 10px 10px 14px; border-radius: 18px 18px 0 0; }
  html body .post-wrapper .style-switcher,
  html body .post-wrapper .pack-switcher,
  html body .post-wrapper .level-switcher{ max-width: 100%; margin: 0 8px 10px; padding: 9px 8px 10px; }

  .gallery{ max-width: 100%; }
  html body .post-wrapper .sfw-main-img{ max-height: 70vh; box-shadow: none; }
  html body .post-wrapper .gallery img{ border-radius: 10px; }
  .sfw-thumbs-wrap{ padding: 6px 36px; }
  html body .post-wrapper .gallery img.sfw-thumb{ flex: 0 0 70px; height: 70px; }
  html body .post-wrapper .sfw-arrow{ width: 26px; height: 26px; }
  .lvl-thumbs-strip{ gap: 6px; }
  .lvl-thumbs-wrap{ border-radius: 10px; }
  html body .lightbox .lightbox-arrow{ display: none; }
  html body .lightbox .lightbox-close{ top: 50px; right: 10px; }
  html body .post-wrapper .rel-section{ padding: 0 8px; }
  html body .post-wrapper .rel-title{ font-size: 18px; }
}

@media (max-width: 520px){
  /* header rows: brand + compact pills on one line */
  .lv-brand{ font-size: 17px; letter-spacing: .12em; }
  .as-sbtn,
  html body .post-wrapper .top-nav .lv-hbtn{ height: 38px; padding: 0 12px 0 5px; font-size: 13.5px; gap: 7px; }
  .as-sbtn .as-ic,
  .lv-hbtn .lv-ic{ width: 28px; height: 28px; }
  .as-social-links{ min-height: 38px; }

  .anilvl-search label.as-sort > span{ display: none; }
  .anilvl-search .as-toolbar{ margin: 12px 2px 10px; }

  html body .post-wrapper .level-buttons.tabs{ gap: 6px; }
  html body .post-wrapper .style-btn,
  html body .post-wrapper .pack-btn,
  html body .post-wrapper .tab-btn{ height: 34px; font-size: 12.5px; }
  html body .post-wrapper .level-buttons .tab-btn,
  html body .post-wrapper .level-buttons .tab-btn[data-target^="lvl"]{ gap: 4px; padding: 0 4px; }
  html body .post-wrapper .level-buttons .tab-btn[data-target^="lvl"]::before{ width: 10px; height: 10px; }
  html body .post-wrapper .tab-btn .lvl-badge{ min-width: 0; padding: 2px 5px; font-size: 10px; }

  html body .post-wrapper .sfw-actions a#sfw-archive.sfw-archive-btn,
  html body .post-wrapper .lvl-actions a.sfw-archive-btn.nsfw-btn{ width: 100%; }
  html body .post-wrapper .lvl-actions a.sfw-archive-btn.nsfw-btn{ min-height: 52px; padding: 0 16px; font-size: 15px; }
  html body .post-wrapper .gallery.locked .lock-btn{ height: 44px; padding: 0 20px; font-size: 14px; }
  html body .post-wrapper .rel-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* two-column cards: a touch smaller name so most fit without "…" */
  .anilvl-search .as-name,
  html body .post-wrapper .rel-name{ font-size: 14px; }
  .anilvl-search .as-anime,
  html body .post-wrapper .rel-anime{ font-size: 12px; }
}

@media (max-width: 400px){
  /* keep the header on one line on small phones: icon-only secondary pills */
  .as-sbtn[data-key="x"] .as-lbl,
  html body .post-wrapper .top-nav .lv-hbtn--search .lv-txt{ display: none; }
  .as-sbtn[data-key="x"],
  html body .post-wrapper .top-nav .lv-hbtn--search{ padding: 0 4px; }
  .anilvl-search .as-grid{ gap: 9px; }
}

@media (prefers-reduced-motion: reduce){
  .anilvl-search *, .post-wrapper *, .as-sticky, .as-fab{ transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* =====================================================================
   6. CHARACTER PAGE LAYOUT
   markup: .char-layout > aside.char-side (identity, switchers, Patreon) + .char-main (galleries)
   - below 1024px: plain blocks = one column, same order as before
   - 1024px and up: sticky side column + gallery; the side Patreon button is the only
     gradient CTA there, so the button under the locked preview is hidden
   ===================================================================== */
html body .post-wrapper .lv-side-cta-wrap{ display: none; }

/* phones + tablets (below the two-column layout): avatar next to the name (usually the same picture as
   the first SFW image) and style + pack side by side, so the gallery starts on the first screen */
@media (max-width: 1023px){
  html body .post-wrapper .title-block{
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    max-width: 760px; /* same width as the switchers below on tablets */
    margin: 0 auto 12px;
    padding: 0 14px;
    text-align: left;
  }
  html body .post-wrapper .title-block .post-cover{
    grid-column: 1;
    grid-row: 1;
    width: 78px;
    max-width: none;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 47, 214, .2);
  }
  html body .post-wrapper .title-block .visible-title{ grid-column: 2; grid-row: 1; margin: 0; text-align: left; }
  html body .post-wrapper .visible-title .title-sub{ margin-top: 6px; font-size: 11.5px; letter-spacing: .14em; }
  html body .post-wrapper details.post-description{ width: auto; margin: 0 8px 10px; }

  /* style + pack side by side (each falls back to full width when it is alone) */
  html body .post-wrapper .style-switcher,
  html body .post-wrapper .pack-switcher{
    display: inline-flex;
    vertical-align: top;
    width: calc(50% - 12px);
    margin: 0 4px 10px;
    padding: 9px 6px 10px;
  }
  html body .post-wrapper:not(:has(.style-switcher)) .pack-switcher,
  html body .post-wrapper:has(.pack-switcher[style*="none"]) .style-switcher{
    display: flex;
    width: auto;
    margin: 0 8px 10px;
  }
  html body .post-wrapper .style-buttons,
  html body .post-wrapper .pack-buttons{ gap: 6px; }
  html body .post-wrapper .style-btn,
  html body .post-wrapper .pack-btn{ padding: 0 12px; }
}

@media (min-width: 1024px){
  html body .entry-content .post-wrapper{ max-width: 1180px; }

  html body .post-wrapper .char-layout{
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
    padding: 0 6px;
  }
  html body .post-wrapper .char-side{
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 4px;
  }
  html body .post-wrapper .char-main{ min-width: 0; }

  /* identity: avatar beside the name */
  html body .post-wrapper .char-side .title-block{
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  html body .post-wrapper .char-side .post-cover{
    grid-column: 1;
    grid-row: 1;
    width: 96px;
    max-width: none;
    margin: 0;
    border-radius: 14px;
  }
  html body .post-wrapper .char-side .visible-title{ grid-column: 2; grid-row: 1; margin: 0; text-align: left; }
  html body .post-wrapper .char-side .visible-title .title-main{ font-size: 24px; }
  html body .post-wrapper .char-side .visible-title .title-sub{ margin-top: 6px; font-size: 11.5px; }

  html body .post-wrapper .char-side details.post-description{ width: auto; margin: 0; }
  html body .post-wrapper .char-side details.post-description summary{ justify-content: flex-start; }
  html body .post-wrapper .char-side details.post-description .desc-content{ padding: 12px 14px; }
  html body .post-wrapper .char-side details.post-description .desc-content p{ font-size: 13.5px; }

  html body .post-wrapper .char-side .style-switcher,
  html body .post-wrapper .char-side .pack-switcher,
  html body .post-wrapper .char-side .level-switcher{
    width: auto;
    max-width: none;
    margin: 0;
    padding: 10px 10px 12px;
  }
  html body .post-wrapper .char-side .level-buttons.tabs{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  html body .post-wrapper .char-side .level-buttons .tab-btn,
  html body .post-wrapper .char-side .level-buttons .tab-btn[data-target^="lvl"]{
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 4px;
    gap: 4px;
    font-size: 12.5px;
  }
  html body .post-wrapper .char-side .tab-btn .lvl-badge{ min-width: 0; padding: 2px 5px; font-size: 10px; }

  /* the Patreon block (always in view) */
  html body .post-wrapper .lv-side-cta-wrap{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: var(--lv-r-card);
    border: 1px solid var(--lv-accent-line);
    background: linear-gradient(180deg, rgba(255, 47, 214, .10), rgba(155, 69, 255, .05));
  }
  html body .post-wrapper button.lv-side-cta{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 16px;
    font-size: 15px;
    line-height: 1.2;
    transition: transform .18s var(--lv-ease), box-shadow .18s ease, filter .18s ease;
  }
  html body .post-wrapper button.lv-side-cta::before{
    content: "";
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    background: currentColor;
    -webkit-mask: var(--lv-i-lock) center / contain no-repeat;
    mask: var(--lv-i-lock) center / contain no-repeat;
  }
  @media (hover: hover){
    html body .post-wrapper button.lv-side-cta:hover{ transform: translateY(-1px); box-shadow: var(--lv-glow-lg); filter: brightness(1.06); }
  }
  html body .post-wrapper button.lv-side-cta:active{ transform: scale(.98); }
  html body .post-wrapper .lv-side-cta-note{
    color: var(--lv-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
  }

  /* gallery fills the main column; the duplicate unlock button under the preview goes away */
  html body .post-wrapper .char-main .gallery,
  html body .post-wrapper .char-main #sfw.gallery{ max-width: none; margin: 0; }
  html body .post-wrapper .char-main .sfw-main-img{ max-height: calc(100vh - 150px); }
  html body .post-wrapper .char-main .sfw-thumbs-wrap{ max-width: none; }
  html body .post-wrapper .char-main .lvl-actions{ display: none; }
  html body .post-wrapper .rel-section{ max-width: none; padding: 0 6px; }
  html body .post-wrapper .rel-grid{ grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
