:root {
  color-scheme: dark;
  --page: #0e0e14;
  --panel: #18171f;
  --edge: #2e2b3a;
  --ink: #faf8ff;
  --muted: #bdb8cc;
  --soft: #a6a0b6;
  --violet: #c5a6ff;
  --pink: #f394cb;
  --blue: #a9bdff;
  --radius: 16px;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--page); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1280px, calc(100% - 88px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: #fff; color: #141018; }
:focus-visible { outline: 2px solid #e8b8ff; outline-offset: 4px; }
.icon { width: 20px; height: 20px; flex: none; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #121119;
  border-bottom: 1px solid #282531;
}
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 72px; gap: 20px; align-items: center; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 9px; font-size: 19px; font-weight: 850; letter-spacing: -.06em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand-dash { padding-inline: 1px; }
.brand-domain { color: #c6a9ff; margin-left: 2px; font-size: .79em; letter-spacing: -.045em; }
.navigation { display: flex; align-items: center; gap: clamp(13px, 2.45vw, 31px); color: var(--muted); font-size: .89rem; font-weight: 650; }
.navigation a:hover, .navigation a[aria-current="page"] { color: var(--ink); }
.navigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: .4em; text-decoration-color: var(--violet); }
.header-action { display: flex; gap: 13px; align-items: center; justify-self: end; }
.age { display: inline-grid; place-items: center; min-width: 35px; min-height: 31px; padding: 3px 6px; border: 1px solid #474052; border-radius: 8px; color: #e4d7f0; font-size: .76rem; font-weight: 750; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid #ffffff3d;
  border-radius: 10px;
  background: linear-gradient(110deg, #7d35c1 0%, #6339cf 45%, #3559ca 100%);
  box-shadow: 0 8px 26px #411aa943, inset 0 1px 0 #ffffff28;
  color: #fff;
  font-size: .94rem;
  font-weight: 750;
  transition: filter .2s ease, box-shadow .2s ease;
}
.button:hover { filter: brightness(1.16); box-shadow: 0 8px 30px #8346dd60, inset 0 1px 0 #ffffff38; }
.button-small { min-height: 39px; padding: 7px 12px; font-size: .83rem; }
.button-small .icon { width: 16px; height: 16px; }

.hero {
  min-height: 408px;
  margin-top: 26px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #3c3254;
  border-radius: 20px;
  background: #140f27;
  box-shadow: 0 16px 70px -32px #592ead80;
}
.hero-media, .hero-media img, .feature > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: center 26%; }
.hero::before, .feature::before { content: ""; z-index: -1; position: absolute; inset: 0; pointer-events: none; }
.hero::before { background: linear-gradient(90deg, #151023 1%, #151023f0 22%, #151023a3 42%, #15102306 70%), linear-gradient(0deg,#15102379,transparent 37%); }
.hero-copy { position: relative; width: min(56%, 620px); padding: 42px 0 42px clamp(28px, 4.7vw, 69px); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #e8c1fd; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow .icon { width: 17px; height: 17px; }
.hero h1 {
  margin-top: 13px;
  font-size: clamp(3.1rem, 5.85vw, 5.15rem);
  line-height: .96;
  font-weight: 860;
  letter-spacing: -.073em;
}
.hero h1 span { color: #dfabf6; }
@supports (background-clip: text) {
  .hero h1 span { background: linear-gradient(100deg, #f193c9 2%, #dab0ff 50%, #9db6ff 100%); background-clip: text; color: transparent; }
}
.hero-lead { max-width: 395px; margin-top: 19px; color: #ddd4eb; line-height: 1.55; }
.hero-home .hero-copy { width: min(60%, 670px); }
.hero-home h1 { font-size: clamp(2.85rem, 5.2vw, 4.55rem); text-wrap: balance; }
.hero-home h1 span { white-space: nowrap; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 25px; }
.text-action { padding: 8px 0; color: #f0e5ff; font-weight: 650; font-size: .89rem; text-decoration: underline; text-decoration-color: #b290d6; text-underline-offset: 5px; }
.text-action:hover { color: #fff; text-decoration-color: #fff; }

.catalog { margin-top: 43px; }
.section-head h2, .feature h2 { font-size: clamp(1.9rem, 3.25vw, 2.9rem); line-height: 1.05; letter-spacing: -.052em; }
.section-head p { margin-top: 9px; color: var(--muted); }
.filter-dock { margin-top: 23px; }
.filter-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter {
  min-height: 42px;
  padding: 5px 14px;
  border: 1px solid var(--edge);
  border-radius: 9px;
  background: #191821;
  color: #dfdbea;
  font-size: .86rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.filter:hover { border-color: #78638f; }
.filter[aria-pressed="true"] { border-color: #9870eb; background: #36234e; color: #fff; }
.filter:disabled { cursor: default; }
.search { display: flex; align-items: center; gap: 8px; width: min(100%, 244px); min-height: 42px; padding-inline: 11px; border: 1px solid var(--edge); border-radius: 9px; color: var(--violet); background: #191821; }
.search:focus-within { outline: 2px solid #e8b8ff; outline-offset: 3px; }
.search input { width: 100%; min-width: 0; padding-block: 7px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .875rem; }
.search input::placeholder { color: var(--soft); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.result-count { margin-block: 12px 0; color: var(--soft); font-size: .82rem; }
.empty { padding: 28px 18px; margin-top: 15px; border: 1px dashed #665576; border-radius: var(--radius); color: var(--muted); }
.character-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; padding: 0; margin: 14px 0 0; list-style: none; }
.character-grid > li { min-width: 0; }
.character {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.character:hover, .character:focus-within { transform: translateY(-3px); border-color: #8e6dbe; box-shadow: 0 12px 30px #0005; }
.character:focus-within { outline: 2px solid #e8b8ff; outline-offset: 3px; }
.card-media { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.24; background: #252032; }
.card-media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg,#15121ec0,transparent 72%); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; transition: transform .35s ease; }
.character:hover img { transform: scale(1.035); }
.genre { position: absolute; z-index: 1; bottom: 11px; left: 11px; padding: 3px 8px; border: 1px solid #ffffff44; border-radius: 5px; background: #171320ed; color: #e5ccfd; font-size: .75rem; font-weight: 720; }
.character[data-genre="Romance"] .genre { color: #ffc0e4; }
.character[data-genre="Sci-fi"] .genre { color: #abdcff; }
.character[data-genre="Mystery"] .genre { color: #d3ccff; }
.character[data-genre="Slice of life"] .genre { color: #ffe2af; }
.card-copy { padding: 15px 15px 12px; flex: 1; }
.card-copy h3 { font-size: clamp(1.05rem, 1.8vw, 1.31rem); letter-spacing: -.035em; line-height: 1.15; }
.hook { margin-top: 6px; color: #e0c6f8; font-size: .88rem; font-weight: 700; line-height: 1.35; }
.description { margin-top: 7px; color: var(--muted); font-size: .875rem; line-height: 1.53; }
.card-action { display: flex; min-height: 45px; align-items: center; gap: 7px; margin-inline: 15px; border-top: 1px solid var(--edge); color: #d2b2ff; font-size: .86rem; font-weight: 750; }
.card-action::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-action:focus-visible { outline: none; }
.card-action:hover { color: #f4e3ff; }
.card-action .icon { width: 17px; height: 17px; }

.feature {
  margin-top: 50px;
  min-height: 265px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #3c3254;
  border-radius: 20px;
  background: #181029;
}
.feature > img { z-index: -2; object-fit: cover; object-position: center; }
.feature::before { background: linear-gradient(90deg,#181029,#181029da 35%,#18102900 73%); }
.feature-copy { width: min(61%, 520px); padding: 35px 0 35px clamp(24px, 4.5vw, 62px); }
.feature-copy p { margin-top: 13px; color: #e0d6ed; }
.feature-copy .button { margin-top: 19px; }

.guide, .faq { margin-top: 55px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 22px 0 0; list-style: none; }
.steps li { padding: 20px; border: 1px solid var(--edge); border-radius: var(--radius); background: #15141c; }
.steps .icon { color: var(--violet); width: 24px; height: 24px; }
.steps h3 { margin-top: 9px; font-size: 1.08rem; }
.steps p { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.faq { max-width: 890px; margin-inline: auto; }
.faq-list { margin-top: 15px; }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary { cursor: pointer; list-style: none; min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 3px; font-weight: 670; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.25rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px 3px; color: var(--muted); }
.footer { margin-top: 54px; padding-block: 28px 33px; border-top: 1px solid var(--edge); background: #121119; }
.footer-head { display: flex; align-items: center; gap: 12px; }
.footer p { max-width: 710px; margin-top: 11px; color: var(--soft); font-size: .85rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 9px 23px; margin-top: 17px; color: var(--muted); font-size: .9rem; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--violet); }
.utility { min-height: 100svh; display: grid; place-items: center; }
.utility main { width: min(520px, calc(100% - 40px)); padding: 28px; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--panel); }
.utility h1 { font-size: 2rem; line-height: 1.15; }
.utility p { color: var(--muted); margin-block: 13px 20px; }

.crumbs { display: flex; align-items: center; gap: 9px; margin-block: 23px 15px; color: var(--soft); font-size: .86rem; }
.crumbs a:hover { color: var(--violet); }
.topic-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 315px; display: flex; align-items: center; border: 1px solid #3c3254; border-radius: 20px; background: #1a1328; }
.topic-copy { width: min(72%, 820px); padding: 41px clamp(23px, 4.5vw, 62px); }
.topic-copy h1 { margin-top: 12px; font-size: clamp(2.3rem, 4.5vw, 4.2rem); line-height: 1.02; letter-spacing: -.062em; text-wrap: balance; }
.topic-copy > p:not(.eyebrow) { margin-top: 13px; max-width: 530px; color: #e2d9ed; }
.topic-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: min(46%, 520px); }
.topic-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.topic-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1a1328 0%, #1a1328b0 29%, #15102315 76%), linear-gradient(0deg,#15102392,transparent 58%); }
.topics, .overview { margin-top: 54px; }
.topic-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(174px,1fr)); gap: 9px; padding: 0; margin: 18px 0 0; list-style: none; }
.topic-links a { min-height: 62px; display: flex; gap: 9px; align-items: center; height: 100%; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; background: #18171f; font-weight: 700; font-size: .9rem; }
.topic-links a:hover { border-color: #9c79d4; color: var(--violet); }
.topic-links .icon { width: 17px; height: 17px; color: var(--violet); }
.article-layout { display: grid; justify-content: center; grid-template-columns: 220px minmax(0, 770px); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: 38px; }
.article-toc { position: sticky; top: 91px; border: 1px solid var(--edge); border-radius: 12px; background: #18171f; }
.article-toc summary { padding: 13px 14px; cursor: pointer; color: #f0e9fa; font-weight: 720; font-size: .88rem; }
.article-toc ul { list-style: none; padding: 0 14px 14px; margin: 0; max-height: min(510px, calc(100dvh - 160px)); overflow: auto; }
.article-toc li + li { margin-top: 8px; }
.article-toc a { display: block; color: var(--muted); font-size: .81rem; line-height: 1.4; }
.article-toc a:hover { color: var(--violet); text-decoration: underline; }
.article-body { min-width: 0; color: #d7d2e5; line-height: 1.7; overflow-wrap: anywhere; }
.article-body > * + * { margin-top: 13px; }
.article-body > p:first-of-type { font-size: 1.09rem; color: #f1eafa; }
.article-body h2 { margin-top: 32px; padding-top: 15px; border-top: 1px solid var(--edge); color: var(--ink); font-size: clamp(1.42rem, 2.55vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.article-body h3 { margin-top: 22px; color: var(--ink); font-size: 1.16rem; line-height: 1.3; }
.article-body a { color: #d6b8ff; text-decoration: underline; text-underline-offset: .16em; }
.article-body a:hover { color: #f4e4ff; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { padding-left: .1em; margin-top: .35em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: 11px; background: #16151e; }
.article-body table { width: 100%; min-width: 360px; border-collapse: collapse; font-size: .88rem; line-height: 1.48; }
.article-body table th, .article-body table td { padding: 10px 12px; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top; }
.article-body table th { background: #201b2b; color: #f3edfd; }
.article-body table tbody tr:last-child td { border-bottom: 0; }
.article-note { padding: 14px 16px; border: 1px solid #4d3e64; border-radius: 10px; background: #1d1728; font-size: .9rem; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 56px); }
  .character-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .shell { width: calc(100% - 36px); }
  .topbar { grid-template-columns: 1fr auto; min-height: 64px; }
  .navigation { grid-row: 2; grid-column: 1 / -1; min-height: 36px; gap: 19px; padding-bottom: 7px; flex-wrap: wrap; font-size: .83rem; }
  .topbar { row-gap: 0; }
  .topbar > .brand, .header-action { margin-top: 7px; min-height: 43px; }
  html { scroll-padding-top: 102px; }
  .hero { min-height: 360px; }
  .hero-copy { width: 67%; }
  .filter-row { flex-wrap: wrap; }
  .search { width: 100%; }
  .character-grid { gap: 12px; }
  .steps { gap: 10px; }
  .steps li { padding: 14px; }
  .article-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .article-toc { top: 105px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 102px; }
  .shell { width: calc(100% - 28px); }
  .topbar { gap: 10px; }
  .brand { font-size: 16px; gap: 6px; }
  .brand img { width: 31px; height: 31px; }
  .header-action { gap: 7px; }
  .header-action .age { min-width: 31px; }
  .button-small { padding-inline: 8px; font-size: .76rem; }
  .button-small .icon { display: none; }
  .hero { align-items: end; min-height: 510px; margin-top: 14px; border-radius: 16px; }
  .hero-media img { object-position: top center; object-fit: cover; height: min(89%, 460px); }
  .hero::before { background: linear-gradient(0deg,#151023 5%,#151023 20%,#151023e8 34%,#18102926 69%,transparent 100%); }
  .hero-copy { width: 100%; padding: 0 18px 22px; }
  .hero h1 { margin-top: 9px; font-size: clamp(2.85rem, 12.8vw, 4.4rem); }
  .hero-home { min-height: 536px; }
  .hero-home .hero-copy { width: 100%; }
  .hero-home h1 { font-size: clamp(2.16rem, 9.2vw, 3.35rem); }
  .hero-lead { margin-top: 11px; }
  .hero-actions { margin-top: 15px; gap: 5px 13px; }
  .hero-actions .button { min-height: 44px; padding-inline: 10px; font-size: .84rem; }
  .text-action { font-size: .83rem; }
  .catalog { margin-top: 30px; }
  .filter-dock { margin-top: 16px; }
  .filter-row { gap: 9px; }
  .filters { gap: 6px; }
  .filter { min-height: 38px; padding-inline: 8px; font-size: .81rem; }
  .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-media { aspect-ratio: 1.04; }
  .genre { bottom: 7px; left: 7px; font-size: .71rem; }
  .card-copy { padding: 10px 9px 9px; }
  .hook, .description { font-size: .81rem; }
  .card-action { margin-inline: 9px; font-size: .79rem; }
  .feature { margin-top: 36px; align-items: end; min-height: 315px; }
  .feature > img { height: 80%; object-position: 78% top; }
  .feature::before { background: linear-gradient(0deg,#181029 5%,#181029 22%,#181029db 46%,#18102914 95%); }
  .feature-copy { width: 100%; padding: 20px 17px; }
  .feature-copy p { margin-top: 8px; }
  .guide, .faq, .footer { margin-top: 35px; }
  .steps { grid-template-columns: 1fr; margin-top: 14px; }
  .crumbs { margin-block: 14px 11px; }
  .topic-hero { min-height: 329px; align-items: end; }
  .topic-copy { width: 100%; padding: 25px 17px 19px; }
  .topic-copy h1 { font-size: clamp(2rem, 9.1vw, 3.1rem); }
  .topic-copy > p:not(.eyebrow) { margin-top: 10px; }
  .topic-art { width: 72%; }
  .topic-art::after { background: linear-gradient(90deg,#1a1328 1%,#1a1328b9 42%,#1a132836),linear-gradient(0deg,#1a1328 3%,#1a1328ed 39%,transparent 100%); }
  .article-layout { display: block; margin-top: 25px; }
  .article-toc { position: static; margin-bottom: 21px; }
  .article-toc ul { max-height: 200px; }
  .topics, .overview { margin-top: 37px; }
  .topic-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topic-links a { font-size: .84rem; }
  .footer-nav { gap: 9px 15px; }
}

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