:root {
  --paper: #faf9f6;
  --white: #fff;
  --ink: #222320;
  --muted: #73766f;
  --line: #e8e7e1;
  --accent: #b5482d;
  --accent-soft: #f6e8df;
  --slate: #526b87;
  --radius: 18px;
  --content: 1000px;
  --reader: 720px;
  --header: 68px;
  font-family:
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 30;
  background: var(--ink);
  color: white;
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.accent {
  color: var(--accent);
}
.site-header {
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.header-inner {
  height: 100%;
  max-width: var(--content);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.7px;
  flex-shrink: 0;
}
.wordmark small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 500;
}
.brand-mark {
  font-size: 29px;
  letter-spacing: -2px;
  line-height: 40px;
}
.brand-mark span {
  color: var(--accent);
}
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  font-size: 14px;
  color: var(--muted);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}
.main-nav a[aria-current] {
  color: var(--accent);
}
.nav-symbol {
  font-size: 20px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
}
.icon-button:hover {
  background: var(--accent-soft);
}
.site-main {
  max-width: var(--content);
  margin: 0 auto;
  padding: 40px 24px 0;
}
.series-hero {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px 42px;
  background: #f2eee7;
  border: 1px solid #e8e2d8;
  border-radius: 24px;
  padding: 36px;
}
.hero-art {
  grid-row: span 2;
  align-self: center;
}
.cover {
  width: 210px;
  aspect-ratio: 2/3;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: 0 16px 26px #30231220;
}
.cover-caption {
  display: block;
  text-align: center;
  font-size: 8px;
  letter-spacing: 1.8px;
  margin-top: 14px;
  color: #80776c;
}
.hero-copy {
  align-self: end;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero-copy h1 {
  font-size: 48px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -2.5px;
}
.hero-copy h1 > span {
  color: var(--accent);
}
.byline {
  font-size: 13px;
  margin-top: 10px;
  font-weight: 600;
}
.byline span {
  padding: 0 6px;
  color: var(--muted);
}
.hero-description {
  font-size: 16px;
  line-height: 1.8;
  color: #5b5a55;
  margin: 18px 0;
}
.genre-tags {
  display: flex;
  gap: 6px;
}
.genre-tags span {
  font-size: 11px;
  padding: 4px 10px;
  background: #fff8;
  border: 1px solid #e1dbd2;
  border-radius: 5px;
  color: #6a6158;
}
.hero-action {
  align-self: start;
}
.hero-action-copy {
  margin-bottom: 16px;
}
.hero-action-copy p {
  font-size: 12px;
  color: var(--muted);
}
.button {
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.primary {
  background: var(--accent);
  color: white;
}
.primary:hover {
  background: #973b24;
}
.secondary {
  border-color: var(--line);
  background: var(--white);
}
.secondary:hover:not(:disabled) {
  background: #f1f0eb;
}
.button:disabled {
  color: #777a74;
  background: #f0efeb;
  border-color: #e7e6e0;
}
.read-primary {
  width: 100%;
  justify-content: space-between;
  min-height: 52px;
}
.read-primary > span:last-child {
  font-size: 22px;
  font-weight: 400;
}
.start-over {
  margin-top: 10px;
}
.resume-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.text-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
}
.text-button {
  border: 0;
  background: none;
  min-height: 44px;
  padding: 8px 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--muted);
}
.episode-section {
  padding-top: 44px;
  scroll-margin-top: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 23px;
  letter-spacing: -1px;
}
.section-heading h2 span {
  color: var(--accent);
  font-size: 17px;
  margin-left: 6px;
}
.section-heading .eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.sort-label select {
  min-height: 44px;
  border: 0;
  background: none;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0 8px 10px;
}
.episode-list {
  border-top: 2px solid var(--ink);
}
.episode-row {
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  min-height: 132px;
}
.episode-row:hover .episode-info h3 {
  color: var(--accent);
}
.episode-thumb {
  width: 132px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #e7e4df;
}
.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.episode-thumb > span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: #262822d9;
  color: white;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
}
.episode-info {
  min-width: 0;
  flex: 1;
}
.episode-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.episode-info h3 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 5px 0 8px;
}
.episode-info > p {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.episode-feedback-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.episode-feedback-counts > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.episode-feedback-counts strong {
  color: var(--ink);
  font-weight: 600;
}
.episode-feedback-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.row-arrow {
  font-size: 23px;
  color: var(--muted);
  margin-right: 10px;
}
.read-status {
  font-size: 10px;
  color: var(--muted);
  margin-left: 7px;
}
.reading-note {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.reading-note p {
  font-size: 11px;
  color: var(--muted);
}
.empty-state {
  padding: 36px 0;
  color: var(--muted);
  font-size: 15px;
}
.extras-invitation {
  margin-top: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.extras-invitation h2 {
  font-size: 21px;
  letter-spacing: -0.8px;
}
.extras-invitation p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.extras-invitation .eyebrow {
  font-size: 10px;
}
.site-footer {
  max-width: var(--content);
  margin: auto;
  padding: 40px 24px 52px;
  text-align: center;
}
.footer-title {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.8px;
}
.site-footer p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.site-footer .footer-note {
  font-size: 10px;
  color: var(--muted);
}
.visitor-counter {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.site-footer .counter-label {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
}
.counter-value {
  min-height: 20px;
  font-size: 11px;
  color: var(--muted);
}
.counter-value img {
  margin: auto;
  height: 20px;
  width: auto;
  max-width: 100%;
  vertical-align: middle;
}
.counter-note a {
  text-underline-offset: 3px;
  text-decoration: underline;
}
.reading-page {
  background: #fff;
}
.reader-feedback {
  padding: 32px 24px 40px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.reader-feedback h2 {
  margin: 8px 0;
  font-size: 23px;
  letter-spacing: -0.8px;
}
.reader-feedback h2 span {
  color: var(--accent);
}
.feedback-intro {
  color: var(--muted);
  font-size: 14px;
}
.reaction-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 16px;
}
.reaction-button {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 92px;
  padding: 10px 4px;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}
.reaction-emoji {
  font-size: 24px;
}
.reaction-button strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.reaction-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.reaction-button:disabled,
.comment-form button:disabled {
  cursor: default;
  opacity: 0.6;
}
.feedback-status {
  min-height: 40px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-form label {
  font-size: 13px;
  font-weight: 700;
}
.comment-form label span {
  color: var(--muted);
  font-weight: 400;
}
.comment-form input,
.comment-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.comment-form textarea {
  resize: vertical;
  min-height: 104px;
}
.comment-form input {
  margin-bottom: 6px;
}
.comment-form p,
.feedback-footnote {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.comment-form .button {
  align-self: flex-end;
  min-height: 44px;
  margin-top: 6px;
}
.comments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.comments-heading h3 {
  font-size: 16px;
}
.comments-heading button {
  font-size: 12px;
  min-height: 44px;
}
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reader-comment {
  padding: 18px 0 8px;
  border-bottom: 1px solid var(--line);
}
.comment-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 13px;
}
.comment-heading strong {
  overflow-wrap: anywhere;
}
.comment-heading time {
  color: var(--muted);
  font-size: 11px;
}
.comment-body {
  margin: 8px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.7;
}
.comment-action {
  min-height: 44px;
  font-size: 11px;
  color: var(--muted);
}
.comments-empty {
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
.comments-more {
  width: 100%;
  margin-top: 20px;
  min-height: 44px;
}
.feedback-footnote {
  margin-top: 24px;
}
.reader-header {
  height: 60px;
  background: #fffffff5;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}
.reader-header-inner {
  max-width: var(--reader);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
}
.reader-header .icon-button {
  border: 0;
}
.reader-header-inner > div {
  flex: 1;
  min-width: 0;
}
.reader-header h1 {
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.4px;
}
.reader-header-inner > div > span {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
}
.reader-main {
  max-width: var(--reader);
  margin: auto;
}
.reader-panel {
  position: relative;
  margin: 0 0 20px;
  background: #f3f1ec;
  scroll-margin-top: 60px;
}
.reader-panel img {
  width: 100%;
  height: auto;
}
.reader-end {
  padding: 54px 24px;
  text-align: center;
  background: var(--paper);
}
.reader-end .eyebrow {
  justify-content: center;
}
.reader-end h2 {
  font-size: 20px;
  letter-spacing: -0.8px;
  margin: 12px 0;
}
.reader-end h2 span {
  color: var(--accent);
}
.reader-end > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
}
.episode-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 28px 0 14px;
}
.episode-navigation .button {
  padding: 12px 8px;
}
.last-episode {
  margin-bottom: 10px;
}
.reader-notice,
.pilot-warning {
  padding: 16px 20px;
  background: var(--accent-soft);
  font-size: 13px;
  line-height: 1.8;
}
.image-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #f0eee7;
  color: var(--muted);
  font-size: 13px;
}
.utility-dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  width: min(92vw, 440px);
  color: var(--ink);
}
.utility-dialog::backdrop {
  background: #16191570;
}
.utility-dialog h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.utility-dialog p,
.utility-dialog label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.utility-dialog input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  font-size: 13px;
  border-radius: 6px;
}
.utility-dialog form {
  margin-top: 20px;
  text-align: right;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  width: max-content;
  background: #252622;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 40;
}
@media (max-width: 640px) {
  :root {
    --header: 60px;
  }
  .header-inner {
    padding: 0 20px;
  }
  .wordmark {
    font-size: 16px;
  }
  .brand-mark {
    font-size: 27px;
  }
  .share-button {
    margin-left: auto;
  }
  .main-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    margin: 0;
    background: #fffffff5;
    border-top: 1px solid var(--line);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 0;
    justify-content: space-around;
  }
  .main-nav a {
    flex: 1;
    flex-direction: column;
    gap: 1px;
    font-size: 10px;
    min-height: 45px;
    justify-content: center;
  }
  .nav-symbol {
    font-size: 21px;
    line-height: 24px;
  }
  .site-main {
    padding: 20px 20px 0;
  }
  .series-hero {
    grid-template-columns: 116px 1fr;
    gap: 20px;
    padding: 20px;
    border-radius: 18px;
  }
  .hero-art {
    grid-row: auto;
    align-self: start;
  }
  .cover {
    width: 116px;
    border-radius: 6px;
    box-shadow: 0 10px 20px #30231220;
  }
  .cover-caption {
    font-size: 6px;
    letter-spacing: 0.7px;
    margin-top: 9px;
  }
  .hero-copy {
    align-self: start;
    padding-top: 3px;
  }
  .hero-copy h1 {
    font-size: 30px;
    letter-spacing: -1.8px;
    white-space: nowrap;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 0;
    margin-bottom: 10px;
  }
  .byline {
    font-size: 11px;
    margin-top: 9px;
  }
  .byline span {
    padding: 0 3px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.75;
    margin: 12px 0;
  }
  .genre-tags {
    gap: 4px;
    flex-wrap: wrap;
  }
  .genre-tags span {
    font-size: 9px;
    padding: 3px 6px;
  }
  .hero-action {
    grid-column: 1/-1;
  }
  .hero-action-copy {
    margin-bottom: 10px;
  }
  .hero-action-copy p {
    font-size: 11px;
  }
  .button {
    font-size: 13px;
  }
  .read-primary {
    min-height: 50px;
  }
  .episode-section {
    padding-top: 30px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .episode-row {
    gap: 14px;
    min-height: 120px;
    padding: 16px 0;
  }
  .episode-thumb {
    width: 108px;
    height: 78px;
    border-radius: 7px;
  }
  .episode-info h3 {
    font-size: 15px;
    line-height: 1.4;
    margin: 5px 0 7px;
  }
  .episode-info > p {
    font-size: 10px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .episode-kicker {
    font-size: 10px;
  }
  .episode-feedback-counts {
    gap: 4px 10px;
    font-size: 11px;
  }
  .row-arrow {
    font-size: 19px;
    margin-right: 0;
  }
  .reading-note {
    align-items: start;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
  }
  .reading-note .text-button {
    font-size: 11px;
    min-height: 44px;
  }
  .extras-invitation {
    margin-top: 26px;
    padding: 25px 0;
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .extras-invitation h2 {
    font-size: 20px;
  }
  .extras-invitation p:not(.eyebrow) {
    font-size: 12px;
  }
  .site-footer {
    padding: 36px 20px calc(105px + env(safe-area-inset-bottom));
  }
  .reading-page .site-footer {
    padding-bottom: 40px;
  }
  .reader-end h2 {
    font-size: 18px;
  }
  .reader-header {
    top: 0;
    height: calc(60px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
  .reader-panel {
    scroll-margin-top: calc(60px + env(safe-area-inset-top));
  }
}
@media (max-width: 370px) {
  .site-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .series-hero {
    padding: 16px;
    gap: 16px;
    grid-template-columns: 106px 1fr;
  }
  .cover {
    width: 106px;
  }
  .hero-copy h1 {
    font-size: 29px;
  }
  .hero-description {
    font-size: 11px;
  }
  .genre-tags span {
    padding: 3px 5px;
  }
  .episode-info h3 {
    font-size: 14px;
  }
}
.page-heading {
  padding: 12px 0 32px;
}
.page-heading h1 {
  font-size: 36px;
  letter-spacing: -1.6px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.page-heading h1 > span {
  color: var(--accent);
}
.page-heading > p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.character-relationships { margin-bottom: 68px; }
.wiki-document-layout.wiki-relationship-layout { grid-template-columns: minmax(0, 1fr); }
.wiki-relationship-layout .wiki-toc { position: static; }
.wiki-relationship-layout .wiki-toc nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.relationship-map-cutoff {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.relationship-map-cast { font-size: 14px; color: var(--muted); line-height: 2; }
.relationship-map-cast span { margin-left: 8px; color: var(--ink); }
.relationship-map-cast a { text-decoration: underline; text-underline-offset: 4px; }
.relationship-map-figure { margin: 24px 0 0; }
.relationship-map-figure picture {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.relationship-map-figure img { width: 100%; height: auto; }
.relationship-map-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.relationship-map-figure figcaption .text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.relationship-map-reading {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.relationship-map-reading summary {
  min-height: 44px;
  cursor: pointer;
  align-content: center;
  font-weight: 700;
}
.relationship-map-reading summary span { color: var(--muted); margin-left: 5px; }
.relationship-map-reading ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 10px 0 24px;
}
.relationship-map-reading li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.relationship-map-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.relationship-map-kind { color: var(--muted); font-size: 12px; margin-left: auto; }
.relationship-map-reading h3 { font-size: 18px; margin: 12px 0 8px; }
.relationship-map-reading p, .relationship-map-empty { font-size: 16px; line-height: 1.85; }
.relationship-map-reading h3 a, .relationship-map-pair a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #c8afa0;
}
.relationship-map-empty { padding: 24px 0; color: var(--muted); }
@media (max-width: 759px) {
  .character-relationships .section-heading { flex-wrap: wrap; gap: 12px; }
  .relationship-map-reading ol { grid-template-columns: 1fr; }
  .relationship-map-reading li { padding: 16px; }
  .character-relationships { margin-bottom: 48px; }
}
.company-section {
  padding: 18px 0 40px;
}
.company-count {
  font-size: 11px;
  color: var(--muted);
}
.cast-art {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f2eee7;
}
.cast-art img {
  width: 100%;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.cast-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 24px;
}
.codex .cast-card {
  border-top-color: var(--slate);
}
.cast-name-en {
  font-size: 10px;
  font-weight: 750;
  color: var(--muted);
  letter-spacing: 1.5px;
}
.cast-card h3 {
  font-size: 24px;
  letter-spacing: -1px;
  margin-top: 4px;
}
.cast-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  min-height: 36px;
}
.cast-card blockquote {
  font-size: 14px;
  line-height: 1.7;
  margin: 20px 0 10px;
}
.cast-card .text-link {
  font-size: 11px;
}
.section-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.section-tabs a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  background: var(--white);
  min-height: 44px;
}
.extra-section {
  padding-top: 40px;
  scroll-margin-top: 20px;
}
.section-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.asset-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  scroll-margin-top: 20px;
}
.sheet-character-nav,
.sheet-kind-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.sheet-character-nav a,
.sheet-kind-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 13px;
}
.sheet-kind-nav a {
  font-size: 12px;
}
.sheet-character-nav a:hover,
.sheet-kind-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.character-sheet > .asset-body {
  background: var(--paper);
}
.outfit-sheet:last-child {
  margin-bottom: 0;
}
.outfit-sheet summary strong {
  font-size: 14px;
}
.outfit-sheet summary small {
  overflow-wrap: anywhere;
}
.sheet-grid {
  min-width: 0;
}
.asset-detail summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  min-height: 70px;
  list-style: none;
}
.asset-detail summary::-webkit-details-marker {
  display: none;
}
.asset-detail summary strong {
  font-size: 15px;
}
.asset-detail summary small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.asset-detail summary > span:last-child {
  font-size: 22px;
  color: var(--muted);
}
.asset-detail[open] summary {
  border-bottom: 1px solid var(--line);
}
.asset-body {
  padding: 18px;
}
.asset-body img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}
.asset-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 16px;
}
.asset-body .text-link {
  font-size: 12px;
  margin-top: 8px;
}
.expression-sheet:last-child {
  margin-bottom: 0;
}
.expression-sheet > summary small {
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.expression-sheet .expression-original {
  min-height: 44px;
  margin: 0 0 16px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.expression-faces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px;
}
.expression-faces figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.expression-faces img {
  border-radius: 0;
}
.expression-faces figcaption {
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}
.archive-notice {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 18px;
  color: #75412f;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.pilot-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pilot-row > span:nth-child(2) {
  flex: 1;
}
.pilot-number {
  font-size: 22px;
  letter-spacing: -1px;
  color: #a0a197;
  font-weight: 700;
}
.pilot-row small {
  font-size: 10px;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}
.pilot-row strong {
  font-size: 16px;
}
.pilot-row p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 6px;
}
.pairing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pairing-grid article {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pairing-grid p {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pairing-grid p span {
  color: #aaa;
  margin: 0 12px;
  font-weight: 400;
}
.pairing-grid strong {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 640px) {
  .page-heading {
    padding: 12px 0 25px;
  }
  .page-heading h1 {
    font-size: 27px;
    letter-spacing: -1.2px;
  }
  .page-heading > p:last-child {
    font-size: 12px;
  }
  .company-section {
    padding-bottom: 24px;
  }
  .company-count {
    font-size: 10px;
  }
  .cast-grid {
    gap: 10px;
    margin-top: 14px;
  }
  .cast-card {
    padding: 16px;
  }
  .cast-card h3 {
    font-size: 21px;
  }
  .cast-card blockquote {
    font-size: 12px;
    margin-top: 14px;
  }
  .cast-role {
    font-size: 11px;
  }
  .cast-card .text-link {
    font-size: 10px;
    gap: 6px;
  }
  .section-tabs {
    gap: 6px;
  }
  .section-tabs a {
    padding: 12px 10px;
    font-size: 11px;
  }
  .extra-section {
    padding-top: 30px;
  }
  .asset-detail summary {
    padding: 16px;
  }
  .asset-detail summary small {
    font-size: 10px;
  }
  .asset-body {
    padding: 12px;
  }
  .expression-faces {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .pilot-row {
    gap: 14px;
  }
  .pilot-row strong {
    font-size: 15px;
  }
  .pilot-row p {
    font-size: 11px;
  }
  .pairing-grid {
    grid-template-columns: 1fr;
  }
  .pairing-grid article {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
