:root {
  --paper: #f5f2e9;
  --paper-deep: #ebe7dc;
  --ink: #20251f;
  --muted: #74786f;
  --line: #d9d5ca;
  --card: #fffdf7;
  --green: #536c52;
  --green-dark: #354a38;
  --lime: #c8d86c;
  --orange: #d97842;
  --shadow: 0 18px 50px rgba(44, 51, 40, 0.08);
  --radius: 18px;
  --shell: min(1420px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 5%, rgba(200, 216, 108, 0.14), transparent 23rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }

.shell { width: var(--shell); margin-inline: auto; }
.narrow-shell { width: min(980px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  color: white;
  background: var(--green-dark);
  border-radius: 0 0 8px 8px;
}

.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid rgba(217, 120, 66, 0.45); outline-offset: 3px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(74, 83, 69, 0.14);
  background: rgba(245, 242, 233, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 50px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 12px 5px;
  background: var(--green-dark);
  transform: rotate(-5deg);
  box-shadow: 5px 5px 0 var(--lime);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 11px;
  height: 12px;
  background: var(--green-dark);
  border-radius: 2px 8px 0 0;
}
.brand-mark::before { left: 5px; transform: rotate(-18deg); }
.brand-mark::after { right: 5px; transform: rotate(18deg); }
.brand-mark span { width: 18px; height: 7px; border-bottom: 2px solid white; border-radius: 50%; transform: rotate(5deg); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 18px; letter-spacing: 0.13em; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: 9px; letter-spacing: 0.16em; }

.main-nav { display: flex; align-items: stretch; align-self: stretch; gap: 30px; }
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #5e645c;
  font-size: 14px;
  font-weight: 650;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 3px 3px 0 0;
  transition: 180ms ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after,
.main-nav a:hover::after { left: 0; width: 100%; }

.header-status {
  margin-left: auto;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}
.header-status i { width: 7px; height: 7px; border-radius: 50%; background: #6ba85e; box-shadow: 0 0 0 4px rgba(107, 168, 94, 0.13); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-tools .header-status { margin-left: 0; }
.language-switcher { padding: 4px; display: flex; align-items: center; gap: 2px; border: 1px solid #ddcfeb; border-radius: 999px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 7px 18px rgba(93, 69, 130, 0.06); }
.language-switcher a { min-width: 30px; height: 28px; padding-inline: 7px; display: grid; place-items: center; border-radius: 999px; color: #7d7189; font-size: 10px; font-weight: 900; }
.language-switcher a:hover { color: var(--ink); background: var(--pink-soft); }
.language-switcher a.active { color: white; background: linear-gradient(135deg, var(--pink), var(--purple)); }

.hero {
  position: relative;
  min-height: 370px;
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(440px, 1.15fr);
  grid-template-rows: 1fr auto;
  gap: 24px 80px;
  align-items: center;
}
.hero::after {
  content: "ね";
  position: absolute;
  z-index: -1;
  right: 3%;
  top: 6px;
  color: rgba(69, 83, 65, 0.035);
  font-family: serif;
  font-size: 260px;
  font-weight: 900;
  line-height: 1;
}
.eyebrow {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.eyebrow span { width: 26px; height: 2px; background: currentColor; }
.eyebrow.compact { margin-bottom: 8px; font-size: 10px; }
.eyebrow.compact span { width: 18px; }
.hero h1,
.about-hero h1 {
  margin: 0;
  max-width: 600px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(45px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.hero h1 em,
.about-hero h1 em { color: var(--green); font-weight: inherit; }
.hero-copy > p:last-child { max-width: 500px; margin: 22px 0 0; color: var(--muted); font-size: 16px; }

.hero-search {
  padding: 34px;
  border: 1px solid rgba(81, 94, 78, 0.14);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: var(--shadow);
}
.hero-search > label { display: block; margin-bottom: 10px; color: var(--green-dark); font-size: 13px; font-weight: 800; }
.search-control {
  height: 60px;
  padding: 6px 7px 6px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #c8c7bc;
  border-radius: 14px;
  background: white;
  transition: 180ms ease;
}
.search-control:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(83, 108, 82, 0.1); }
.search-control svg { width: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-control input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.search-control input::placeholder { color: #a2a59e; }
.search-control button {
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--green-dark);
  font-weight: 750;
  cursor: pointer;
  transition: 160ms ease;
}
.search-control button:hover { background: var(--green); transform: translateY(-1px); }
.quick-links { margin-top: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.quick-links a { padding: 3px 8px; border-radius: 6px; background: var(--paper-deep); }
.quick-links a:hover { color: var(--green-dark); background: #dfe3c8; }

.hero-stats { grid-column: 1 / -1; display: flex; gap: 34px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-stats div { display: flex; align-items: baseline; gap: 9px; }
.hero-stats strong { font-family: Georgia, serif; color: var(--green-dark); font-size: 27px; }
.hero-stats span { color: var(--muted); font-size: 12px; }

.ad-slot {
  min-height: 84px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px dashed #c6c1b5;
  border-radius: 12px;
  color: #95958d;
  background: repeating-linear-gradient(135deg, rgba(111, 115, 106, 0.025) 0 8px, transparent 8px 16px);
  text-align: left;
}
.ad-slot > span { padding: 4px 6px; border: 1px solid currentColor; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }
.ad-slot div { display: grid; line-height: 1.25; }
.ad-slot strong { font-size: 12px; }
.ad-slot small { margin-top: 3px; font-size: 10px; }
.ad-wide { margin-bottom: 34px; }
.ad-square { min-height: 220px; margin-top: 20px; flex-direction: column; text-align: center; }
.ad-content { min-height: 96px; margin: 38px 0; }

.catalog { padding-bottom: 90px; display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.category-panel,
.resource-panel {
  border: 1px solid rgba(64, 74, 61, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 12px 36px rgba(43, 52, 41, 0.045);
  overflow: hidden;
}
.category-panel { position: sticky; top: 98px; padding: 18px; overflow: visible; }
.panel-heading { padding: 2px 5px 15px; display: flex; align-items: center; justify-content: space-between; color: var(--green-dark); font-size: 13px; font-weight: 800; }
.panel-heading small { color: var(--muted); font-weight: 500; }
.category-panel nav { display: grid; gap: 4px; }
.category-link {
  min-height: 53px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  color: #545b52;
  transition: 150ms ease;
}
.category-link:hover { background: #f1f1e8; }
.category-link.active { color: var(--green-dark); background: #e7ead7; }
.category-link i { width: 9px; height: 9px; border-radius: 50%; background: var(--category-color, var(--green)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--category-color, var(--green)) 15%, transparent); }
.category-icon { color: var(--orange); text-align: center; }
.category-link > span { min-width: 0; display: grid; line-height: 1.2; }
.category-link strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.category-link small { margin-top: 4px; overflow: hidden; color: #9a9c94; font-size: 9px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.category-link b { color: #979b93; font-size: 10px; font-weight: 650; }

.resource-toolbar { min-height: 105px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.resource-toolbar h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 25px; font-weight: 500; }
.resource-toolbar > div > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.clear-filter { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; }
.clear-filter:hover { color: var(--orange); border-color: var(--orange); }
.table-shell { width: 100%; overflow-x: auto; }
.resource-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.resource-table th { height: 42px; padding: 0 13px; color: #898d85; background: #f1efe7; font-size: 10px; font-weight: 750; letter-spacing: 0.04em; text-align: left; text-transform: uppercase; }
.resource-table th:first-child { width: 112px; padding-left: 25px; }
.resource-table th:nth-child(2) { width: 88px; }
.resource-table th:nth-child(4) { width: 72px; }
.resource-table th:nth-child(5) { width: 102px; }
.resource-table th:nth-child(6) { width: 105px; }
.resource-table td { height: 68px; padding: 10px 13px; border-top: 1px solid #e6e3d9; vertical-align: middle; }
.resource-table tbody tr { transition: 130ms ease; }
.resource-table tbody tr:hover { background: #fbfaf4; }
.date-cell { padding-left: 25px !important; color: #858980; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.35; }
.category-pill {
  --category-color: #65745f;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--category-color) 32%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--category-color) 86%, #20251f);
  background: color-mix(in srgb, var(--category-color) 8%, white);
  font-size: 10px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-pill::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--category-color); }
.title-cell > div { display: flex; align-items: center; gap: 8px; }
.title-cell a { display: -webkit-box; overflow: hidden; color: #313831; font-size: 13px; font-weight: 620; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.title-cell a:hover { color: var(--orange); }
.team-tag { max-width: 105px; padding: 2px 6px; flex: none; overflow: hidden; border-radius: 4px; color: #60705f; background: #edf0e5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-meta { display: none; }
.size-cell { color: #535b52; font-size: 11px; font-weight: 720; white-space: nowrap; }
.metric-cell { white-space: nowrap; }
.metric { display: inline-flex; align-items: center; gap: 4px; color: #788078; font-family: ui-monospace, monospace; font-size: 10px; }
.metric + .metric { margin-left: 8px; }
.metric i { width: 5px; height: 5px; border-radius: 50%; background: #73a763; }
.metric.done { color: #a0a39d; }
.publisher-cell { overflow: hidden; color: #7d8179; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.pagination { padding: 23px; display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid var(--line); }
.pagination a,
.page-gap { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 720; }
.pagination a:hover { border-color: var(--line); background: white; }
.pagination a.active { color: white; background: var(--green-dark); }
.pagination a.disabled { opacity: 0.32; pointer-events: none; }
.page-gap { min-width: 20px; }

.empty-state { padding: 90px 30px; display: grid; justify-items: center; text-align: center; }
.empty-state > span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e9ecdd; font-family: Georgia, serif; font-size: 30px; }
.empty-state h3 { margin: 20px 0 6px; font-family: Georgia, "Noto Serif SC", serif; font-size: 24px; font-weight: 500; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }

.button {
  min-height: 42px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
  transition: 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--green-dark); box-shadow: 0 8px 18px rgba(53, 74, 56, 0.15); }
.button-primary:hover { background: var(--green); }
.button-secondary { color: var(--green-dark); border-color: #bdc8b9; background: #edf1e8; }
.button-ghost { color: #636a62; border-color: var(--line); background: white; }
.button-large { min-height: 50px; padding-inline: 24px; }

.site-footer { border-top: 1px solid var(--line); background: #eeebe2; }
.footer-inner { min-height: 145px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { font-size: 15px; font-weight: 900; letter-spacing: 0.12em; }
.footer-brand span { color: var(--orange); }
.footer-inner p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: var(--orange); }

/* Detail */
.detail-main { min-height: 80vh; padding: 34px 0 90px; }
.breadcrumb { margin: 0 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #8a8e85; font-size: 11px; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span:last-child { color: #555d54; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.detail-card,
.side-card {
  border: 1px solid rgba(64, 74, 61, 0.13);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 36px rgba(43, 52, 41, 0.045);
}
.detail-card { padding: clamp(26px, 4vw, 56px); }
.detail-kicker { display: flex; align-items: center; gap: 14px; }
.detail-kicker time { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.detail-card > h1 { margin: 22px 0 24px; max-width: 980px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.35; }
.detail-byline { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--green); font-family: Georgia, serif; font-size: 17px; }
.detail-byline div { display: grid; }
.detail-byline strong { font-size: 12px; }
.detail-byline small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.resource-facts { margin: 38px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.resource-facts div { padding: 18px 15px; border-left: 1px solid var(--line); }
.resource-facts div:first-child { border-left: 0; padding-left: 0; }
.resource-facts dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.resource-facts dd { margin: 4px 0 0; color: var(--green-dark); font-family: Georgia, serif; font-size: 20px; }
.detail-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title span { width: 4px; height: 22px; border-radius: 4px; background: var(--orange); }
.section-title h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 24px; font-weight: 500; }
.imported-content { margin-top: 24px; color: #444b43; font-size: 14px; overflow-wrap: anywhere; }
.imported-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.imported-content img { display: block; margin: 18px auto; border-radius: 10px; }
.generated-summary { margin-top: 22px; padding: clamp(22px, 4vw, 30px); border: 1px solid #ead9ef; border-radius: 18px; background: linear-gradient(145deg, #fffafd, #f7f4ff); box-shadow: 5px 5px 0 #f8dcea; }
.generated-summary .imported-content { margin-top: 16px; }
.generated-summary .imported-content p { margin: 0 0 12px; line-height: 1.9; }
.generated-summary .imported-content ul { margin: 14px 0 0; padding-left: 1.2em; }
.generated-summary .imported-content li { margin: 7px 0; }
.generated-summary-label { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #e7c6d7; border-radius: 999px; color: #a63f70; background: #fff0f7; font-size: 9px; font-weight: 900; letter-spacing: 0.1em; }
.generated-summary-label span { color: var(--pink); font-size: 13px; }
.generated-summary-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed #dfd1e7; color: var(--muted); font-size: 10px; line-height: 1.7; }
.source-note { margin-top: 40px; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.source-note strong { color: var(--ink); }
.source-note p { margin: 5px 0 0; }
.detail-sidebar { display: grid; gap: 18px; }
.side-card { padding: 24px; }
.side-card h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 25px; font-weight: 500; }
.side-card > p:not(.eyebrow) { margin: 10px 0 20px; color: var(--muted); font-size: 12px; }
.download-summary .button { width: 100%; }
.metadata-card h3 { margin: 0 0 12px; font-size: 12px; }
.metadata-card dl { margin: 0; }
.metadata-card dl div { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.metadata-card dt { color: var(--muted); font-size: 10px; }
.metadata-card dd { margin: 0; color: #424941; font-size: 10px; font-weight: 700; text-align: right; }

/* Download */
.download-main { min-height: 80vh; padding: 34px 0 90px; }
.download-hero { padding: 36px 30px 42px; text-align: center; }
.download-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 22px; color: white; background: var(--green-dark); box-shadow: 7px 7px 0 var(--lime); font-family: Georgia, serif; font-size: 32px; }
.download-hero .eyebrow { justify-content: center; }
.download-hero h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 42px; font-weight: 500; }
.download-title { max-width: 700px; margin: 12px auto 20px; color: var(--muted); font-size: 13px; }
.download-meta { display: flex; justify-content: center; gap: 30px; }
.download-meta span { color: var(--muted); font-size: 10px; }
.download-meta strong { margin-right: 4px; color: var(--ink); font-size: 12px; }
.download-options { display: grid; gap: 14px; }
.download-option {
  position: relative;
  min-height: 118px;
  padding: 24px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.download-option.recommended { border-color: rgba(83, 108, 82, 0.5); box-shadow: 0 12px 35px rgba(53, 74, 56, 0.08); }
.option-label { position: absolute; right: 16px; top: -10px; padding: 3px 9px; border-radius: 999px; color: white; background: var(--orange); font-size: 9px; font-weight: 800; }
.option-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; font-family: Georgia, serif; font-size: 20px; }
.file-icon { color: #486348; background: #e5ebdf; }
.magnet-icon { color: #9b5a35; background: #f3e5db; font-size: 28px; }
.download-option h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 20px; font-weight: 500; }
.download-option p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.option-actions { display: flex; gap: 8px; }
.copy-button.copied { color: white; border-color: var(--green); background: var(--green); }
.download-notice { margin-top: 24px; padding: 18px 20px; display: flex; gap: 13px; border-radius: 12px; color: #765f45; background: #eee8d9; }
.download-notice > span { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.download-notice strong { font-size: 11px; }
.download-notice p { margin: 3px 0 0; font-size: 10px; }
.back-link { margin-top: 24px; display: inline-flex; color: var(--muted); font-size: 11px; }
.back-link:hover { color: var(--orange); }
.compact-empty { padding: 45px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }

/* About and error */
.about-main { min-height: 75vh; padding: 80px 0 100px; }
.about-hero { max-width: 760px; }
.about-hero > p:last-child { max-width: 620px; margin-top: 24px; color: var(--muted); font-size: 16px; }
.about-grid { margin: 60px 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.about-grid article > span { color: var(--orange); font-family: ui-monospace, monospace; font-size: 10px; }
.about-grid h2 { margin: 24px 0 8px; font-family: Georgia, "Noto Serif SC", serif; font-size: 21px; font-weight: 500; }
.about-grid p { margin: 0; color: var(--muted); font-size: 11px; }
.about-copy { padding: 34px; border-radius: 16px; color: #e6eade; background: var(--green-dark); }
.about-copy h2 { margin: 0 0 10px; color: white; font-family: Georgia, "Noto Serif SC", serif; font-weight: 500; }
.about-copy p { max-width: 780px; color: #c5cec1; font-size: 12px; }
.about-copy .button { margin-top: 10px; color: var(--green-dark); background: var(--lime); }

/* Trust and policy pages */
.policy-main { min-height: 76vh; padding: 42px 0 100px; }
.policy-shell { max-width: 980px; }
.policy-hero {
  position: relative;
  padding: clamp(34px, 6vw, 62px);
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: radial-gradient(circle at 95% 5%, rgba(200, 239, 255, 0.72), transparent 30%), linear-gradient(145deg, #fff, #fff2f8);
  box-shadow: 9px 10px 0 rgba(143, 117, 223, 0.2);
  overflow: hidden;
}
.policy-hero::after {
  content: "✦";
  position: absolute;
  right: 34px;
  top: 20px;
  color: rgba(255, 127, 173, 0.28);
  font-size: 54px;
}
.policy-hero h1 { margin: 16px 0; font-family: ui-rounded, "Noto Sans SC", sans-serif; font-size: clamp(36px, 6vw, 62px); font-weight: 950; letter-spacing: -0.045em; }
.policy-hero > p:not(.eyebrow):not(.policy-updated) { max-width: 720px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.policy-updated { margin: 24px 0 0; color: var(--purple); font-size: 11px; font-weight: 800; }
.policy-content { margin-top: 34px; display: grid; gap: 16px; }
.policy-section { padding: clamp(24px, 4vw, 38px); display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 22px; border: 1px solid #e2d7e9; border-radius: 22px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 12px 32px rgba(95, 70, 128, 0.06); }
.policy-number { width: 45px; height: 45px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 14px; color: white; background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 3px 3px 0 var(--sky); font-size: 11px; font-weight: 950; }
.policy-section h2 { margin: 3px 0 12px; font-family: ui-rounded, "Noto Sans SC", sans-serif; font-size: 23px; font-weight: 950; }
.policy-section p { margin: 0 0 12px; color: #716779; font-size: 14px; line-height: 1.85; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 9px; color: #716779; font-size: 13px; line-height: 1.7; }
.policy-section li::marker { color: var(--pink); }
.contact-card { margin-top: 24px; padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 2px solid var(--ink); border-radius: 22px; background: linear-gradient(135deg, #fff5d8, #ffeaf3); box-shadow: 7px 7px 0 var(--sky); }
.contact-card > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.contact-card > div > span { grid-row: 1 / 3; color: var(--pink); font-size: 24px; }
.contact-card strong { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card div a { margin-top: 3px; color: var(--purple); font-size: 15px; font-weight: 900; }
.error-main { min-height: 70vh; padding: 90px 24px; display: grid; place-items: center; }
.error-card { max-width: 560px; text-align: center; }
.error-card > span { display: block; color: rgba(83, 108, 82, 0.13); font-family: Georgia, serif; font-size: 130px; line-height: 0.8; }
.error-card .eyebrow { margin-top: -5px; justify-content: center; }
.error-card h1 { margin: 10px 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 37px; font-weight: 500; }
.error-card > p:not(.eyebrow) { margin: 0 auto 24px; color: var(--muted); }

@media (max-width: 1100px) {
  .hero { gap: 30px; }
  .catalog { grid-template-columns: 210px minmax(0, 1fr); }
  .publisher-column,
  .publisher-cell { display: none; }
  .resource-table th:nth-child(5) { width: 95px; }
}

@media (max-width: 880px) {
  :root { --shell: min(100% - 30px, 720px); }
  .narrow-shell { width: min(100% - 30px, 720px); }
  .header-inner { min-height: 68px; gap: 20px; }
  .main-nav a:nth-child(2),
  .main-nav a:nth-child(3),
  .header-status { display: none; }
  .main-nav { margin-left: auto; gap: 20px; }
  .hero { padding-top: 50px; grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-search { padding: 24px; }
  .hero-stats { grid-column: auto; }
  .catalog { grid-template-columns: 1fr; }
  .category-panel { position: static; overflow: hidden; }
  .category-panel nav { display: flex; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .category-link { min-width: 150px; }
  .category-panel .ad-square { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { grid-template-columns: 1fr 1fr; }
  .detail-sidebar .ad-slot { display: none; }
}

@media (max-width: 640px) {
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 15px; }
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 12px; }
  .hero { min-height: auto; padding-block: 42px 30px; }
  .hero::after { font-size: 150px; }
  .hero h1,
  .about-hero h1 { font-size: 42px; }
  .hero-copy > p:last-child { font-size: 14px; }
  .hero-search { padding: 18px; border-radius: 18px; }
  .search-control { height: 54px; }
  .search-control button { height: 40px; padding-inline: 16px; }
  .hero-stats { gap: 18px; overflow-x: auto; }
  .hero-stats div { min-width: 100px; display: grid; gap: 0; }
  .ad-wide { min-height: 72px; }
  .resource-toolbar { padding: 20px; }
  .resource-toolbar h2 { font-size: 22px; }
  .resource-table { table-layout: auto; }
  .resource-table th:first-child,
  .resource-table .date-cell,
  .resource-table th:nth-child(4),
  .resource-table .size-cell,
  .resource-table .metric-column,
  .resource-table .metric-cell { display: none; }
  .resource-table th:nth-child(2) { width: 76px; padding-left: 16px; }
  .resource-table th.title-column { min-width: 260px; }
  .resource-table td { height: 76px; }
  .resource-table td:nth-child(2) { padding-left: 16px; }
  .title-cell > div { align-items: flex-start; }
  .title-cell a { font-size: 12px; }
  .team-tag { display: none; }
  .mobile-meta { margin-top: 5px; display: block; color: #999d96; font-size: 9px; }
  .footer-inner { padding-block: 35px; align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 15px; }
  .detail-main,
  .download-main { padding-top: 22px; }
  .detail-card { padding: 24px 20px; }
  .resource-facts { grid-template-columns: 1fr 1fr; }
  .resource-facts div { border-bottom: 1px solid var(--line); }
  .resource-facts div:nth-child(3) { padding-left: 0; border-left: 0; border-bottom: 0; }
  .resource-facts div:nth-child(4) { border-bottom: 0; }
  .detail-sidebar { grid-template-columns: 1fr; }
  .download-hero { padding-inline: 0; }
  .download-hero h1 { font-size: 34px; }
  .download-meta { gap: 13px; }
  .download-option { padding: 22px; grid-template-columns: 48px 1fr; }
  .option-icon { width: 46px; height: 46px; }
  .download-option > .button,
  .option-actions { grid-column: 1 / -1; width: 100%; }
  .option-actions .button { flex: 1; }
  .about-main { padding: 55px 0 70px; }
  .about-grid { grid-template-columns: 1fr; }
  .policy-main { padding: 28px 0 70px; }
  .policy-section { grid-template-columns: 1fr; }
  .contact-card { align-items: stretch; flex-direction: column; }
}

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

/* Anime pop redesign */
:root {
  --paper: #fff8fc;
  --paper-deep: #f7ecf5;
  --ink: #312a43;
  --muted: #7f758c;
  --line: #e7ddee;
  --card: #ffffff;
  --green: #8070d9;
  --green-dark: #554679;
  --lime: #aeeaff;
  --orange: #f56f9f;
  --pink: #ff7fad;
  --pink-soft: #ffe4ef;
  --purple: #8f75df;
  --blue: #6fa8ff;
  --sky: #c8efff;
  --yellow: #ffd66f;
  --shadow: 0 22px 55px rgba(99, 75, 143, 0.14);
  --radius: 22px;
}

body {
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 127, 173, 0.15), transparent 22rem),
    radial-gradient(circle at 91% 8%, rgba(111, 168, 255, 0.18), transparent 25rem),
    radial-gradient(circle at 82% 75%, rgba(255, 214, 111, 0.11), transparent 23rem),
    linear-gradient(#fffafd, #fbf7ff 62%, #fff9fc);
  color: var(--ink);
  font-family: "Nunito", "Avenir Next", Inter, ui-rounded, "Noto Sans SC", "PingFang SC", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: radial-gradient(rgba(143, 117, 223, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

:focus-visible { outline-color: rgba(245, 111, 159, 0.58); }

.site-header {
  border-bottom: 1px solid rgba(143, 117, 223, 0.17);
  background: rgba(255, 250, 253, 0.9);
  box-shadow: 0 5px 28px rgba(105, 77, 141, 0.05);
}

.header-inner { min-height: 78px; gap: 42px; }

.brand-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 15px 15px 15px 7px;
  background: linear-gradient(145deg, var(--pink), #ff9dc1);
  box-shadow: 5px 5px 0 var(--sky);
}
.brand-mark::before,
.brand-mark::after { top: -7px; background: var(--pink); border: 2px solid var(--ink); border-bottom: 0; }
.brand-mark span { border-color: white; }
.brand-copy strong { color: var(--ink); font-size: 17px; font-weight: 950; }
.brand-copy strong span { color: var(--pink); }
.brand-copy small { color: var(--purple); font-weight: 800; }

.main-nav { gap: 10px; padding-block: 15px; }
.main-nav a {
  align-self: center;
  height: 42px;
  padding: 0 15px;
  gap: 6px;
  border-radius: 999px;
  color: #70667f;
  font-size: 13px;
  font-weight: 800;
}
.main-nav a span { color: var(--pink); font-size: 11px; }
.main-nav a::after { display: none; }
.main-nav a:hover { color: var(--ink); background: var(--pink-soft); }
.main-nav a.active {
  color: white;
  background: linear-gradient(135deg, var(--pink), #f06ca8 55%, var(--purple));
  box-shadow: 0 7px 18px rgba(238, 92, 151, 0.23);
}
.main-nav a.active span { color: white; }

.header-status {
  border-color: #ddcfeb;
  color: var(--purple);
  background: white;
  box-shadow: 0 7px 18px rgba(93, 69, 130, 0.08);
  font-weight: 750;
}
.header-status i { background: #72d4ad; box-shadow: 0 0 0 4px rgba(114, 212, 173, 0.18); }

.hero {
  min-height: 610px;
  margin-top: 34px;
  margin-bottom: 36px;
  padding: 58px 62px 38px;
  grid-template-columns: minmax(320px, 0.88fr) minmax(480px, 1.12fr);
  grid-template-rows: 1fr auto;
  gap: 36px 64px;
  border: 2px solid rgba(49, 42, 67, 0.88);
  border-radius: 36px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.94), rgba(255, 242, 249, 0.92)),
    white;
  box-shadow: 12px 13px 0 rgba(111, 168, 255, 0.23), var(--shadow);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -75px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(143, 117, 223, 0.16);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(245, 111, 159, 0.12) 0 3px, transparent 3px 12px);
}
.hero::after {
  content: "キラキラ";
  z-index: 0;
  right: -3px;
  top: 14px;
  color: rgba(143, 117, 223, 0.07);
  font-family: ui-rounded, sans-serif;
  font-size: 72px;
  font-weight: 950;
  letter-spacing: -0.08em;
  transform: rotate(7deg);
}
.hero-copy,
.hero-side,
.hero-stats { position: relative; z-index: 1; }
.hero-copy { align-self: center; }
.hero-kicker-row { display: flex; align-items: center; gap: 13px; }
.mini-sticker {
  margin-top: -13px;
  padding: 5px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 10px;
  font-weight: 900;
  transform: rotate(3deg);
}
.eyebrow { color: var(--pink); font-weight: 950; }
.eyebrow span { border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--purple)); }
.hero h1,
.about-hero h1 {
  font-family: ui-rounded, "Avenir Next Rounded", "Noto Sans SC", sans-serif;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1.05;
}
.hero h1 span { color: var(--ink); }
.hero h1 em,
.about-hero h1 em {
  color: var(--pink);
  font-style: normal;
  text-shadow: 3px 3px 0 var(--sky);
}
.hero-copy > p:last-of-type { max-width: 510px; color: var(--muted); line-height: 1.8; }
.hero-feature-pills { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.hero-feature-pills span {
  padding: 7px 11px;
  border: 1px solid #e4d9ed;
  border-radius: 999px;
  color: #665a76;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 14px rgba(93, 69, 130, 0.07);
  font-size: 11px;
  font-weight: 750;
}
.hero-feature-pills span:nth-child(1) { color: #df5d91; }
.hero-feature-pills span:nth-child(2) { color: #7c69cb; }
.hero-feature-pills span:nth-child(3) { color: #3d84ca; }

.hero-side { display: grid; gap: 14px; }
.manga-card {
  position: relative;
  min-height: 160px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 1.5px, transparent 1.5px) 0 0 / 13px 13px,
    linear-gradient(135deg, var(--sky), #d9d2ff 54%, #ffd9e8);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.manga-card::before {
  content: "";
  position: absolute;
  left: 36%;
  top: -90%;
  width: 1px;
  height: 280%;
  background: rgba(49, 42, 67, 0.16);
  box-shadow: 18px 0 rgba(49, 42, 67, 0.09), 36px 0 rgba(49, 42, 67, 0.06);
  transform: rotate(25deg);
}
.manga-spark { position: absolute; color: white; filter: drop-shadow(2px 2px 0 var(--purple)); font-size: 27px; }
.spark-one { left: 18px; top: 16px; }
.spark-two { right: 98px; bottom: 14px; font-size: 22px; }
.kawaii-mascot { position: relative; width: 132px; height: 112px; flex: none; }
.cat-ear {
  position: absolute;
  z-index: 1;
  top: 0;
  width: 45px;
  height: 52px;
  border: 2px solid var(--ink);
  background: var(--purple);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.ear-left { left: 10px; transform: rotate(-14deg); }
.ear-right { right: 10px; transform: rotate(14deg); }
.cat-ear::after { content: ""; position: absolute; inset: 12px 11px 5px; background: #ffb4cd; clip-path: inherit; }
.mascot-face {
  position: absolute;
  z-index: 3;
  left: 13px;
  bottom: 0;
  width: 106px;
  height: 88px;
  border: 2px solid var(--ink);
  border-radius: 48% 48% 44% 44%;
  background: #fff9fb;
  box-shadow: inset 0 -11px 0 #ffe9f2;
}
.mascot-hair {
  position: absolute;
  z-index: 4;
  left: 13px;
  top: 28px;
  width: 106px;
  height: 38px;
  border-top: 2px solid var(--ink);
  border-radius: 50% 50% 35% 35%;
  background: var(--purple);
  clip-path: polygon(0 0, 100% 0, 93% 70%, 77% 43%, 66% 82%, 50% 45%, 36% 85%, 21% 44%, 8% 73%);
}
.mascot-face i {
  position: absolute;
  top: 46px;
  width: 10px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 3px 3px 0 white;
}
.mascot-face i:first-child { left: 28px; }
.mascot-face i:nth-child(2) { right: 28px; }
.mascot-face b {
  position: absolute;
  left: 47px;
  top: 66px;
  width: 13px;
  height: 7px;
  border-bottom: 2px solid var(--pink);
  border-radius: 50%;
}
.manga-copy { position: relative; z-index: 2; display: grid; line-height: 0.92; }
.manga-copy small { color: #625579; font-size: 9px; font-weight: 900; letter-spacing: 0.2em; }
.manga-copy strong { margin-top: 8px; color: var(--ink); font-size: 31px; font-weight: 1000; letter-spacing: -0.05em; }
.manga-copy span { margin-top: 12px; color: #655b73; font-size: 11px; font-weight: 800; }
.speech-sticker {
  position: absolute;
  right: 14px;
  top: 12px;
  padding: 9px 10px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 48% 42%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 950;
  transform: rotate(9deg);
}

.hero-search {
  padding: 22px 24px 20px;
  border: 1.5px solid rgba(49, 42, 67, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 6px 7px 0 rgba(255, 127, 173, 0.26);
}
.hero-search > label { color: var(--ink); }
.hero-search > label span { color: var(--pink); font-size: 16px; }
.search-control { border: 1.5px solid #d7cae3; border-radius: 14px; background: #fffafd; }
.search-control:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 127, 173, 0.13); }
.search-control svg { stroke: var(--pink); }
.search-control button {
  border: 1px solid var(--ink);
  color: white;
  background: linear-gradient(135deg, var(--pink), #e969a5);
  box-shadow: 3px 3px 0 var(--ink);
}
.search-control button:hover { background: linear-gradient(135deg, #ff93bb, var(--purple)); transform: translate(-1px, -1px); }
.quick-links > span { color: var(--purple); font-weight: 850; }
.quick-links a { color: #6f6480; background: #f5effa; font-weight: 750; }
.quick-links a:hover { color: #d95489; background: var(--pink-soft); }

.hero-stats { gap: 14px; padding-top: 22px; border-top: 1px dashed #dacde6; }
.hero-stats div {
  min-width: 170px;
  padding: 13px 17px;
  border: 1px solid #e0d5e9;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
.hero-stats i { color: var(--pink); font-size: 9px; font-style: normal; font-weight: 900; }
.hero-stats strong { color: var(--ink); font-family: ui-rounded, sans-serif; font-size: 25px; font-weight: 950; }
.hero-stats span { color: var(--muted); }

.ad-slot {
  border: 1.5px dashed #d6c5e4;
  border-radius: 18px;
  color: #9d8eae;
  background:
    repeating-linear-gradient(135deg, rgba(255, 127, 173, 0.035) 0 8px, transparent 8px 16px),
    rgba(255, 255, 255, 0.64);
}
.ad-slot > span { color: var(--pink); border-color: var(--pink); background: white; }

.category-panel,
.resource-panel,
.detail-card,
.side-card {
  border: 1.5px solid #ddd0e8;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(94, 70, 132, 0.1);
}
.category-panel { border-radius: 22px; }
.panel-heading { color: var(--ink); }
.panel-heading::before { content: "♡"; margin-right: 7px; color: var(--pink); }
.category-link { color: #675d74; border: 1px solid transparent; }
.category-link:hover { border-color: #eaddea; background: #fff3f8; transform: translateX(2px); }
.category-link.active {
  border-color: #efbdd0;
  color: #c44f80;
  background: linear-gradient(90deg, #ffe6f0, #f1edff);
  box-shadow: inset 4px 0 0 var(--pink);
}
.category-icon { color: var(--pink); }
.category-link small { color: #a395af; }

.category-tabs {
  margin-bottom: 26px;
  padding: 25px;
  border: 1.5px solid #ddd0e8;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(94, 70, 132, 0.08);
}
.category-tabs-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.category-tabs-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: ui-rounded, "Avenir Next Rounded", "Noto Sans SC", sans-serif;
  font-size: 24px;
  font-weight: 950;
}
.category-tabs-heading > small { color: var(--muted); font-size: 11px; }
.category-tabs-heading > small strong { color: var(--pink); font-size: 15px; }
.category-tab-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(118px, 1fr));
  gap: 11px;
}
.category-tab {
  --category-color: var(--purple);
  position: relative;
  min-height: 122px;
  padding: 15px 12px 13px;
  display: grid;
  align-content: space-between;
  justify-items: start;
  border: 1.5px solid #e2d7ea;
  border-radius: 18px;
  color: #645a72;
  background: linear-gradient(145deg, #fff, #fbf7fd);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.category-tab::after {
  content: "";
  position: absolute;
  right: -17px;
  top: -17px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--category-color) 11%, white);
}
.category-tab:hover {
  border-color: color-mix(in srgb, var(--category-color) 42%, #e2d7ea);
  box-shadow: 0 9px 22px rgba(96, 72, 135, 0.12);
  transform: translateY(-3px);
}
.category-tab.active {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: linear-gradient(145deg, color-mix(in srgb, var(--category-color) 13%, white), #fff);
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--category-color) 42%, var(--pink-soft));
}
.category-tab-icon {
  position: relative;
  z-index: 1;
  min-width: 38px;
  height: 38px;
  padding-inline: 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--category-color);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--category-color) 22%, #e5dcf0);
  font-size: 12px;
  font-weight: 950;
}
.category-tab-all { --category-color: var(--pink); }
.category-tab > span:nth-child(2) { min-width: 0; display: grid; }
.category-tab strong { overflow: hidden; font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.category-tab small { margin-top: 2px; overflow: hidden; color: #a194ad; font-size: 8px; font-weight: 800; letter-spacing: 0.06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.category-tab b {
  position: absolute;
  z-index: 1;
  right: 10px;
  top: 10px;
  min-width: 27px;
  padding: 3px 6px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--category-color) 82%, var(--ink));
  background: white;
  box-shadow: 0 3px 10px rgba(77, 56, 109, 0.08);
  font-size: 9px;
  text-align: center;
}
.catalog { grid-template-columns: minmax(0, 1fr); }

.resource-panel { border-radius: 24px; }
.resource-toolbar {
  border-bottom: 1px solid #e7ddee;
  background: linear-gradient(95deg, rgba(255, 238, 246, 0.88), rgba(237, 243, 255, 0.76));
}
.resource-toolbar h2 { color: var(--ink); font-family: ui-rounded, "Noto Sans SC", sans-serif; font-weight: 900; }
.clear-filter { border-color: #d8c8e4; color: var(--purple); background: white; }
.clear-filter:hover { color: white; border-color: var(--pink); background: var(--pink); }
.resource-table th { color: #7f718e; background: #f7f0fa; }
.resource-table td { border-color: #eee6f2; }
.resource-table tbody tr:nth-child(even) { background: rgba(250, 246, 253, 0.55); }
.resource-table tbody tr:hover { background: linear-gradient(90deg, #fff1f7, #f4f3ff); }
.title-cell a { color: #41384e; }
.title-cell a:hover { color: #df5d91; }
.team-tag { color: #765bb1; background: #f0ebff; }
.metric i { background: #6ed1ab; }
.category-pill { border-width: 1.5px; background: color-mix(in srgb, var(--category-color) 8%, #fff9fd); }
.pagination { border-color: #e8dfed; }
.pagination a.active { border: 1px solid var(--ink); color: white; background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 3px 3px 0 var(--ink); }

.button { border-radius: 999px; }
.button-primary {
  border-color: var(--ink);
  background: linear-gradient(135deg, var(--pink), #e969a5);
  box-shadow: 4px 4px 0 var(--ink);
}
.button-primary:hover { background: linear-gradient(135deg, #ff94bb, var(--purple)); transform: translate(-1px, -1px); }
.button-secondary { color: #6e57b2; border-color: #cabcea; background: #f1edff; }
.button-ghost { color: #6d627a; border-color: #dcd0e5; }

.site-footer { border-color: #e2d6e9; background: linear-gradient(120deg, #fbf0f7, #f0f4ff); }
.footer-brand { color: var(--ink); }
.footer-brand span { color: var(--pink); }
.footer-brand i { color: var(--purple); font-style: normal; }
.footer-links a:hover { color: var(--pink); }

.turnstile-shell-passive {
  position: relative;
  z-index: 40;
  display: flex;
  justify-content: center;
  min-height: 1px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(220, 208, 229, 0.72);
  background: linear-gradient(90deg, rgba(255, 247, 251, 0.96), rgba(244, 246, 255, 0.96));
}
.turnstile-shell-passive.is-verified { display: none; }
.turnstile-shell-blocking {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 440px);
  margin: 20px auto 16px;
  padding: 18px 20px;
  border: 1px solid #eaddec;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8fc, #f7f4ff);
}
.turnstile-widget { min-height: 1px; }
.turnstile-status {
  max-width: 440px;
  margin: 0;
  color: #695d75;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}
.download-verification-required {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid #e3d7eb;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8fc, #f4f5ff);
}
.download-verification-required > span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
}
.download-verification-required h2 { margin: 0 0 5px; font-size: 17px; }
.download-verification-required p { margin: 0; color: #756a80; line-height: 1.65; }
.challenge-page {
  min-height: 64vh;
  display: grid;
  place-items: center;
  padding: 56px 20px;
}
.challenge-card {
  position: relative;
  max-width: 680px;
  padding: clamp(34px, 6vw, 62px);
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: radial-gradient(circle at 100% 0, rgba(255, 127, 173, 0.2), transparent 36%), white;
  box-shadow: 9px 10px 0 var(--sky);
  text-align: center;
}
.challenge-card .eyebrow { justify-content: center; }
.challenge-card h1 { margin: 14px 0; font-family: ui-rounded, "Noto Sans SC", sans-serif; font-size: clamp(27px, 5vw, 42px); font-weight: 950; }
.challenge-card > p:last-of-type { margin: 0 auto; max-width: 520px; color: #756a80; line-height: 1.8; }
.challenge-card noscript { display: block; margin-top: 20px; color: #a04b6d; font-weight: 750; }
.challenge-spark { position: absolute; right: 28px; top: 20px; color: var(--pink); font-size: 30px; }

.breadcrumb { color: #9587a2; }
.breadcrumb a:hover { color: var(--pink); }
.detail-card > h1,
.section-title h2,
.side-card h2,
.download-hero h1,
.download-option h2,
.about-grid h2,
.about-copy h2,
.error-card h1 {
  font-family: ui-rounded, "Avenir Next Rounded", "Noto Sans SC", sans-serif;
  font-weight: 900;
}
.detail-heading { display: block; }
.detail-heading.has-poster {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.detail-poster {
  position: relative;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--pink-soft), #efedff);
  box-shadow: 7px 8px 0 var(--sky);
  overflow: hidden;
}
.detail-poster img { width: 100%; aspect-ratio: 2 / 3; display: block; object-fit: cover; }
.detail-poster figcaption {
  padding: 7px 10px;
  color: #837590;
  background: white;
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}
.detail-heading-copy h1 {
  margin: 18px 0 24px;
  max-width: 980px;
  font-family: ui-rounded, "Avenir Next Rounded", "Noto Sans SC", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.35;
}
.resolved-anime-name {
  margin: 20px 0 -8px;
  color: var(--pink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.avatar { border: 1px solid var(--ink); background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 3px 3px 0 var(--sky); }
.resource-facts { border-color: #e7ddec; }
.resource-facts div { border-color: #e7ddec; }
.resource-facts dd { color: var(--purple); font-family: ui-rounded, sans-serif; font-weight: 900; }
.section-title span { background: linear-gradient(var(--pink), var(--purple)); }
.download-icon { border: 2px solid var(--ink); background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 7px 7px 0 var(--sky); }
.download-option { border-color: #ded2e7; box-shadow: 0 10px 28px rgba(92, 68, 129, 0.07); }
.download-option.recommended { border: 2px solid var(--pink); box-shadow: 7px 7px 0 var(--pink-soft); }
.option-label { border: 1px solid var(--ink); background: var(--pink); box-shadow: 2px 2px 0 var(--ink); }
.file-icon { color: #7359b6; background: #eee9ff; }
.magnet-icon { color: #d85d90; background: #ffe7f0; }
.download-notice { color: #77612f; background: #fff5d8; }
.p2p-player {
  position: relative;
  margin: 34px 0;
  padding: clamp(24px, 4vw, 38px);
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: radial-gradient(circle at 95% 0, rgba(255, 127, 173, 0.22), transparent 34%), linear-gradient(145deg, #fff, #f7f2ff);
  box-shadow: 8px 8px 0 var(--sky);
  overflow: hidden;
}
.p2p-player [hidden] { display: none !important; }
.p2p-player::after {
  content: "P2P";
  position: absolute;
  right: 24px;
  top: 11px;
  color: rgba(117, 96, 165, 0.08);
  font-family: ui-rounded, sans-serif;
  font-size: 70px;
  font-weight: 950;
  pointer-events: none;
}
.p2p-player-heading { position: relative; z-index: 1; display: flex; gap: 15px; align-items: center; }
.p2p-player-heading h2 { margin: 4px 0 0; font-family: ui-rounded, "Noto Sans SC", sans-serif; font-size: clamp(23px, 3vw, 31px); font-weight: 950; }
.p2p-badge { padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: 10px; color: white; background: var(--purple); box-shadow: 3px 3px 0 var(--pink); font-size: 10px; font-weight: 950; letter-spacing: 0.08em; }
.p2p-summary { position: relative; z-index: 1; max-width: 760px; margin: 20px 0; color: #685e74; font-size: 14px; line-height: 1.8; }
.p2p-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.p2p-progress { position: relative; z-index: 1; margin-top: 26px; padding: 18px; border: 1px solid #ded2e7; border-radius: 17px; background: rgba(255, 255, 255, 0.82); }
.p2p-status-row { display: flex; justify-content: space-between; gap: 18px; color: var(--ink); font-size: 13px; }
.p2p-status-row span { color: var(--pink); font-weight: 900; }
.p2p-progress progress { width: 100%; height: 12px; margin: 13px 0 15px; accent-color: var(--pink); }
.p2p-stats { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(90px, 0.6fr)); gap: 12px; }
.p2p-stats span { min-width: 0; color: #94869f; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.p2p-stats strong { margin-top: 3px; display: block; overflow: hidden; color: #564a62; font-size: 11px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.p2p-video { position: relative; z-index: 1; width: 100%; max-height: 68vh; margin-top: 24px; border: 2px solid var(--ink); border-radius: 16px; background: #16121c; box-shadow: 5px 5px 0 var(--pink-soft); }
.p2p-footnote { position: relative; z-index: 1; margin: 20px 0 0; color: #9a8da5; font-size: 11px; line-height: 1.7; }
.about-grid article { border-color: #ded2e7; background: white; box-shadow: 5px 6px 0 #f0e8f5; }
.about-grid article > span { color: var(--pink); }
.about-copy { color: #f9f2ff; background: linear-gradient(135deg, #594776, #7560a5); box-shadow: 8px 8px 0 var(--sky); }
.about-copy .button { color: var(--ink); background: var(--yellow); }
.error-card > span { color: rgba(255, 127, 173, 0.15); }

@media (max-width: 1100px) {
  .hero { padding-inline: 40px; gap: 32px; grid-template-columns: minmax(280px, 0.86fr) minmax(420px, 1.14fr); }
  .manga-card { gap: 18px; }
  .manga-copy strong { font-size: 26px; }
  .category-tab-list { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
}

@media (max-width: 880px) {
  .header-inner { min-height: 70px; }
  .main-nav { padding-block: 12px; }
  .main-nav a { padding-inline: 12px; }
  .header-tools { margin-left: auto; }
  .hero {
    min-height: auto;
    margin-top: 20px;
    padding: 44px 30px 30px;
    grid-template-columns: 1fr;
    border-radius: 28px;
    box-shadow: 7px 8px 0 rgba(111, 168, 255, 0.23), var(--shadow);
  }
  .hero-side { grid-template-columns: minmax(230px, 0.8fr) minmax(360px, 1.2fr); align-items: stretch; }
  .manga-card { min-height: 100%; padding-inline: 16px; gap: 8px; }
  .kawaii-mascot { transform: scale(0.83); margin-inline: -10px; }
  .manga-copy strong { font-size: 22px; }
  .manga-copy span { display: none; }
  .speech-sticker { right: 8px; top: 7px; }
  .hero-stats { grid-column: auto; }
  .category-tabs { padding: 20px; }
  .category-tab-list { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .detail-heading.has-poster { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .header-inner { gap: 8px; }
  .main-nav { display: none; }
  .header-tools { margin-left: auto; }
  .language-switcher a { min-width: 28px; padding-inline: 5px; }
  .brand-copy strong { font-size: 13px; letter-spacing: 0.04em; }
  .brand-mark { width: 36px; height: 36px; }
  .main-nav a span { display: none; }
  .main-nav a { height: 36px; padding-inline: 11px; }
  .hero { padding: 35px 20px 24px; border-width: 1.5px; border-radius: 23px; }
  .hero::after { top: 12px; font-size: 42px; }
  .hero-kicker-row { align-items: flex-start; }
  .mini-sticker { white-space: nowrap; }
  .hero h1 { font-size: 44px; }
  .hero-side { grid-template-columns: 1fr; }
  .manga-card { min-height: 145px; padding: 16px 32px; gap: 24px; }
  .kawaii-mascot { transform: scale(0.88); }
  .manga-copy strong { font-size: 27px; }
  .manga-copy span { display: block; }
  .hero-search { padding: 18px; }
  .search-control button { padding-inline: 13px; }
  .search-control button span { display: none; }
  .quick-links { gap: 6px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .hero-stats div { min-width: 0; padding: 10px; display: grid; text-align: center; }
  .hero-stats i { display: none; }
  .hero-stats strong { font-size: 21px; }
  .hero-stats span { font-size: 9px; }
  .resource-toolbar { background: linear-gradient(95deg, #fff0f6, #f2f2ff); }
  .category-tabs { padding: 18px 0; overflow: hidden; }
  .category-tabs-heading { padding-inline: 18px; }
  .category-tabs-heading h2 { font-size: 20px; }
  .category-tabs-heading > small { display: none; }
  .category-tab-list {
    padding: 2px 18px 12px;
    display: grid;
    grid-auto-columns: 142px;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .category-tab { min-height: 116px; scroll-snap-align: start; }
  .detail-heading.has-poster { display: block; }
  .detail-poster { width: min(210px, 72%); margin: 0 auto 30px; }
  .p2p-player { padding: 23px 18px; }
  .p2p-player::after { font-size: 48px; }
  .p2p-stats { grid-template-columns: 1fr 1fr; }
}
