:root {
  --bg-dark: #0F172A;
  --text-on-dark: #F8FAFC;
  --bg-page: #F6F7FA;
  --bg-card: #FFFFFF;
  --primary: #2F6FED;
  --accent-update: #E4572E;
  --accent-tag: #F2B33D;
  --text-main: #1F2937;
  --text-muted: #5B6472;
  --border: #E2E8F0;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 6px 18px rgba(15, 23, 42, 0.1);
  --container: 1160px;
  --gap: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: #1b56cc;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

dl,
dd,
dt {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============ layout ============ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.inner-main {
  padding-top: 20px;
  padding-bottom: 56px;
}

.home-main {
  padding-bottom: 56px;
}

/* ============ header ============ */

.site-header {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-on-dark);
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand:hover {
  color: #ffffff;
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  display: inline-block;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 15px;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
  color: #ffffff;
  background: var(--primary);
}

.header-cta {
  flex: 0 0 auto;
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-update);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.header-cta:hover {
  color: #ffffff;
  background: #c8461f;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 1px;
}

.mobile-nav {
  background: var(--bg-dark);
  border-top: 1px solid rgba(248, 250, 252, 0.12);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: #cbd5e1;
  font-size: 16px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}

.mobile-nav-list a:hover,
.mobile-nav-list a.is-current {
  color: #ffffff;
}

.mobile-nav-list li:last-child a {
  border-bottom: 0;
}

/* ============ breadcrumb & page header ============ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: #9aa3b1;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
}

.page-hero {
  padding: 12px 0 0;
}

.page-lead,
.page-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 900px;
}

/* ============ shared blocks ============ */

.section {
  padding: 40px 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 22px;
}

.section-title {
  font-size: 22px;
}

.section-desc,
.section-lead {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}

.section-lead {
  max-width: 900px;
}

.more-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.text-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.field-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-genre {
  background: #fdf3da;
  color: #8a6108;
}

.tag-lg {
  padding: 6px 14px;
  font-size: 14px;
  background: #eef3fe;
  color: #1b4bb8;
}

.tag-lg:hover {
  background: var(--primary);
  color: #ffffff;
}

.tag-status.is-ongoing,
.status-ongoing {
  background: #e6f4ea;
  color: #1d7a3c;
}

.tag-status.is-rest,
.status-paused {
  background: #fdf0e6;
  color: #b4491f;
}

.tag-status.is-done,
.status-finished {
  background: #eceff4;
  color: #4b5563;
}

.tag-version {
  background: #f1e9fb;
  color: #6b3fa0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1b56cc;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.card-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* ============ home hero ============ */

.hero {
  padding-top: 24px;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.hero-body {
  margin-top: 22px;
  max-width: 860px;
}

.hero-title {
  font-size: 30px;
}

.hero-lead {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cover-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.cover-card a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cover-card a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #c8d4ea;
}

.cover-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef1f6;
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-name {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.cover-card .tag-genre {
  margin-top: 6px;
}

/* ============ today strip ============ */

.today-strip {
  margin-top: 40px;
}

.today-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.today-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.today-item a:hover {
  border-color: #c8d4ea;
}

.today-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-time {
  flex: 0 0 auto;
  color: var(--accent-update);
}

/* ============ genre strip ============ */

.genre-strip {
  margin-top: 40px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ update table ============ */

.update-table {
  margin-top: 40px;
}

.work-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 150px 84px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.work-row:hover {
  border-color: #c8d4ea;
  box-shadow: var(--shadow-hover);
}

.work-thumb {
  width: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef1f6;
}

.work-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
}

.work-main {
  min-width: 0;
}

.work-name {
  font-size: 16px;
}

.work-name a {
  color: var(--text-main);
}

.work-name a:hover {
  color: var(--primary);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.work-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.row-link:hover {
  border-color: var(--primary);
  background: #eef3fe;
}

/* ============ topic preview ============ */

.topic-preview {
  margin-top: 40px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #c8d4ea;
}

.topic-figure,
.topic-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef1f6;
}

.topic-figure img,
.topic-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-name {
  margin-top: 10px;
  font-size: 17px;
}

.topic-name a {
  color: var(--text-main);
}

.topic-name a:hover {
  color: var(--primary);
}

.topic-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.topic-rule {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.topic-rule .field-label {
  margin-right: 6px;
}

/* ============ character preview ============ */

.character-preview {
  margin-top: 40px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.character-grid .character-card a {
  display: block;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.character-grid .character-card a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #c8d4ea;
}

.character-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef1f6;
}

.character-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.character-name {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-main);
}

.character-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.character-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ pace guide ============ */

.pace-guide {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.pace-guide h2 {
  font-size: 22px;
}

.pace-steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.pace-step {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.pace-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.pace-step .step-name {
  margin-top: 10px;
  font-size: 17px;
}

.pace-step .step-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.pace-foot {
  margin-top: 16px;
}

/* ============ notice strip ============ */

.notice-strip {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.notice-strip h2 {
  font-size: 22px;
}

.notice-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.notice-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.notice-name {
  font-size: 17px;
}

.notice-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.notice-foot {
  margin-top: 16px;
}

/* ============ related links ============ */

.related-links {
  margin-top: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.related-links-item:hover {
  border-color: var(--primary);
  background: #eef3fe;
}

/* ============ footer ============ */

.site-footer {
  margin-top: 48px;
  background: var(--bg-dark);
  color: #cbd5e1;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-on-dark);
}

.footer-intro {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-on-dark);
}

.footer-links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: #94a3b8;
}

.footer-links a:hover,
.footer-links a.is-current {
  color: #ffffff;
}

.footer-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #7c8798;
}

.footer-bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.12);
}

.footer-slogan,
.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: #7c8798;
}

.footer-slogan {
  padding-top: 16px;
}

.footer-copy {
  padding-bottom: 18px;
}

/* ============ inner: updates ============ */

.content-block {
  padding: 32px 0 0;
}

.content-block h2 {
  font-size: 22px;
}

.block-intro {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 900px;
}

.field-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.field-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.field-name {
  font-size: 16px;
}

.field-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.update-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 130px 92px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.update-row:hover {
  border-color: #c8d4ea;
}

.update-thumb {
  width: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef1f6;
}

.update-thumb img {
  width: 64px;
  height: 84px;
  object-fit: cover;
}

.update-body {
  min-width: 0;
}

.update-name {
  font-size: 16px;
}

.update-name a {
  color: var(--text-main);
}

.update-name a:hover {
  color: var(--primary);
}

.update-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.media-figure {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef1f6;
}

.media-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.media-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 0;
}

.legend-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.legend-item {
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legend-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.related-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.related-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.related-text {
  font-size: 14px;
  color: var(--text-muted);
}

.related-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* ============ inner: topics ============ */

.topics-criteria .criteria-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.criteria-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.criteria-item h3 {
  font-size: 16px;
}

.criteria-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.topics-wall .topic-grid {
  margin-top: 16px;
}

.topics-wall .topic-card {
  gap: 0;
}

.topics-wall .topic-body {
  padding-top: 10px;
}

.topics-wall .topic-body h3 {
  margin-top: 8px;
  font-size: 17px;
}

.topics-wall .topic-body p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.topics-wall .topic-meta {
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  margin-top: 10px;
}

.clue-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.clue-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.clue-item h3 {
  font-size: 16px;
}

.clue-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.topics-terms .term-list,
.genre-terms .term-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.term-list dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.term-list dd {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

.term-item {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ============ inner: genres ============ */

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
  padding: 18px 0 0;
}

.page-hero-text .page-lead {
  font-size: 15px;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.page-hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef1f6;
  border: 1px solid var(--border);
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-hero-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  padding-top: 32px;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 280px minmax(0, 1fr);
}

.genre-filter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.genre-filter .section-title {
  font-size: 18px;
}

.genre-filter-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.genre-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.genre-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.genre-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.genre-chip.is-active .genre-count {
  color: #dbe6ff;
}

.genre-filter-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.genre-works .section-desc {
  margin-top: 6px;
}

.genre-works .work-rows {
  margin-top: 16px;
}

.genre-works .work-row {
  grid-template-columns: 64px minmax(0, 1fr) 140px;
  align-items: start;
}

.genre-works .work-thumb,
.genre-works .work-thumb img {
  width: 64px;
}

.genre-works .work-thumb img {
  height: 86px;
}

.work-info {
  min-width: 0;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.work-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.work-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.work-update {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-update);
}

.work-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.work-entry:hover {
  border-color: var(--primary);
  background: #eef3fe;
}

.work-rows-more {
  margin-top: 16px;
}

.rule-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.rule-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rule-title {
  font-size: 16px;
}

.rule-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.next-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.next-card {
  display: block;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.next-card:hover {
  transform: translateY(-2px);
  border-color: #c8d4ea;
  box-shadow: var(--shadow-hover);
}

.next-title {
  font-size: 17px;
  color: var(--text-main);
}

.next-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ inner: characters ============ */

.card-grid {
  display: grid;
  gap: var(--gap);
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.character-cards .character-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.character-cards .character-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #c8d4ea;
}

.character-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background: #eef3fe;
  color: #1b4bb8;
  font-size: 13px;
  font-weight: 600;
}

.character-work {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table thead th {
  background: #f2f5fa;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.character-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.relation-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.relation-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.relation-title {
  font-size: 16px;
}

.relation-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.glossary-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.glossary-item {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.glossary-list dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.glossary-list dd {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ inner: archive ============ */

.archive-rule-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.archive-rule {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.archive-rule h3 {
  font-size: 16px;
}

.archive-rule p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.archive-figure {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef1f6;
  border: 1px solid var(--border);
}

.archive-figure img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.archive-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
}

.status-group-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.status-group {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.status-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.status-group h3 {
  margin-top: 10px;
  font-size: 16px;
}

.status-group p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.entry-table {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-table-head,
.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 120px minmax(0, 1.2fr) 84px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}

.entry-table-head {
  background: #f2f5fa;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.entry-row {
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.entry-row:hover {
  background: #fbfcfe;
}

.entry-name {
  font-weight: 600;
  color: var(--text-main);
}

.entry-genre,
.entry-locate {
  color: var(--text-muted);
}

.genre-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background: #fdf3da;
  color: #8a6108;
  font-size: 13px;
  font-weight: 600;
}

.entry-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.entry-link:hover {
  border-color: var(--primary);
  background: #eef3fe;
}

.related-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.related-card {
  display: block;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: #c8d4ea;
  box-shadow: var(--shadow-hover);
}

.related-card h3 {
  font-size: 17px;
  color: var(--text-main);
}

.related-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ inner: reading notes ============ */

.reading-hero .page-hero-inner {
  align-items: start;
}

.page-hero-kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-update);
}

.page-hero-lead {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
}

.problem-cat-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.problem-cat-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.problem-cat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-update);
}

.problem-cat-name {
  margin-top: 8px;
  font-size: 16px;
}

.problem-cat-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.problem-cat-card .card-link {
  margin-top: auto;
  padding-top: 10px;
}

.step-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.step-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-item .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.step-body {
  min-width: 0;
}

.step-body .step-name {
  font-size: 16px;
}

.step-body .step-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.step-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.faq-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  padding-left: 16px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-muted);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  color: var(--primary);
}

.faq-answer {
  padding: 0 16px 14px;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.feedback-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.feedback-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feedback-name {
  font-size: 17px;
}

.feedback-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.feedback-card .card-link {
  margin-top: auto;
  padding-top: 10px;
}

.feedback-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ 404 ============ */

.error-main {
  padding-top: 48px;
  padding-bottom: 56px;
}

.error-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent-update);
  line-height: 1;
}

.error-panel h1 {
  margin-top: 14px;
  font-size: 30px;
}

.error-text {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
}

.error-text + .error-text {
  margin-top: 6px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.error-links {
  margin-top: 32px;
}

.error-links h2 {
  font-size: 20px;
}

.error-link-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.error-link-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.error-link-list a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============ motion enhancement ============ */

@media (prefers-reduced-motion: no-preference) {
  .cover-card a,
  .topic-card,
  .character-grid .character-card a,
  .next-card,
  .related-card,
  .work-row,
  .update-row {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cover-card a,
  .topic-card,
  .character-grid .character-card a,
  .character-cards .character-card,
  .next-card,
  .related-card {
    transition: none;
  }
}

/* ============ responsive ============ */

@media (max-width: 960px) {
  .header-inner {
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-cta {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero-title {
    font-size: 26px;
  }

  .cover-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "thumb main"
      "field link";
    row-gap: 10px;
  }

  .work-row .work-thumb {
    grid-area: thumb;
    width: 64px;
  }

  .work-row .work-thumb img {
    width: 64px;
    height: 84px;
  }

  .work-row .work-main {
    grid-area: main;
  }

  .work-row .work-field {
    grid-area: field;
  }

  .work-row .row-link {
    grid-area: link;
  }

  .topic-grid,
  .topics-wall .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pace-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-list,
  .legend-list,
  .related-list,
  .rule-grid,
  .next-grid,
  .related-grid,
  .archive-rule-list,
  .status-group-grid,
  .criteria-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-4,
  .problem-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "thumb body"
      "thumb date";
    row-gap: 8px;
  }

  .update-row .update-thumb {
    grid-area: thumb;
  }

  .update-row .update-body {
    grid-area: body;
  }

  .update-row .update-date {
    grid-area: date;
  }

  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .genre-works .work-row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "thumb info"
      "meta meta";
    row-gap: 10px;
  }

  .genre-works .work-row .work-thumb {
    grid-area: thumb;
  }

  .genre-works .work-row .work-info {
    grid-area: info;
  }

  .genre-works .work-row .work-meta {
    grid-area: meta;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .entry-table-head,
  .entry-row {
    grid-template-columns: minmax(0, 1.4fr) 100px minmax(0, 1fr) 76px;
    gap: 10px;
    padding: 12px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 0 16px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .mobile-nav-list {
    padding: 8px 16px 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-title {
    font-size: 23px;
  }

  .section-head h2,
  .section-title,
  .pace-guide h2,
  .notice-strip h2,
  .content-block h2 {
    font-size: 19px;
  }

  .cover-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .today-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-grid,
  .topics-wall .topic-grid,
  .character-grid,
  .pace-steps,
  .notice-grid,
  .clue-list,
  .relation-list,
  .glossary-list,
  .step-list,
  .feedback-grid,
  .field-list,
  .legend-list,
  .related-list,
  .rule-grid,
  .next-grid,
  .related-grid,
  .archive-rule-list,
  .status-group-grid,
  .criteria-list,
  .card-grid-4,
  .problem-cat-grid,
  .error-link-list,
  .topics-terms .term-list,
  .genre-terms .term-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-row {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 10px 12px;
    column-gap: 12px;
  }

  .work-row .work-thumb,
  .work-row .work-thumb img {
    width: 56px;
  }

  .work-row .work-thumb img {
    height: 76px;
  }

  .genre-works .work-row .work-thumb,
  .genre-works .work-row .work-thumb img {
    width: 56px;
  }

  .genre-works .work-row .work-thumb img {
    height: 76px;
  }

  .update-row {
    padding: 10px 12px;
    column-gap: 12px;
  }

  .entry-table {
    overflow-x: auto;
  }

  .entry-table-head,
  .entry-row {
    grid-template-columns: 140px 84px 120px 72px;
    min-width: 480px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .pace-guide,
  .notice-strip,
  .error-panel {
    padding: 20px 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-slogan,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-panel h1 {
    font-size: 24px;
  }
}
