/* roulang page: index */
:root {
  --ink: #24181C;
  --plum: #4A2340;
  --orchid: #C45B86;
  --paper: #F3EEE4;
  --olive: #3E5344;
  --line: #D9D0C4;
  --card: #FFFDF8;
  --muted: #6B5A5F;
  --paper-2: #E9E2D6;
  --radius: 4px;
  --shadow: 0 8px 20px rgba(36,24,28,.06);
  --shadow-hover: 0 12px 28px rgba(36,24,28,.10);
  --header: 72px;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; font-weight: 700; line-height: 1.35; margin: 0 0 .4em; letter-spacing: 0; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 .8em; }
[id] { scroll-margin-top: 88px; }
::selection { background: #F3C3D4; color: var(--ink); }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 64px 0; }
.section.alt { background: var(--paper-2); }
.section-hero { border-top: 4px solid var(--orchid); padding-top: 36px; }
.section-ink { background: var(--plum); color: #F7F1EA; }
.section-ink .lede, .section-ink .quiet { color: rgba(247,241,234,.86); }
.lede { max-width: 68ch; color: var(--ink); }
.section-ink .lede { color: rgba(247,241,234,.88); }
.kicker, .mono {
  font-family: ui-monospace, "Sarasa Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--olive);
}
.section-ink .kicker { color: #F3C3D4; }
.quiet { color: var(--muted); font-size: 14px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header);
  z-index: 40;
  background: rgba(243,238,228,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo-key { font-weight: 700; font-size: clamp(14px, 1.7vw, 18px); color: var(--ink); white-space: nowrap; }
.logo-suffix { font-size: 12px; color: var(--olive); letter-spacing: .14em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.age-chip {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--plum);
  font-size: 12px;
}

.btn-main, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn-main { background: var(--plum); color: #fff; border: 1px solid var(--plum); box-shadow: var(--shadow); }
.btn-main:hover { background: var(--orchid); border-color: var(--orchid); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-main:active { transform: translateY(1px); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { border-color: var(--plum); color: var(--plum); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.icon-btn span { display: block; width: 18px; height: 2px; background: var(--ink); }
.icon-btn:hover { border-color: var(--plum); }
.icon-btn[aria-expanded="true"] { border-color: var(--orchid); }

.mask {
  position: fixed; inset: 0;
  background: rgba(36,24,28,.4);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mask.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: min(100vw, 420px);
  background: var(--paper);
  z-index: 80;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 28px;
  visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.drawer-nav { display: flex; flex-direction: column; gap: 0; overflow: auto; }
.drawer-link {
  display: block;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.drawer-link:hover { background: #F7F3EC; color: var(--plum); text-decoration: underline; }
.drawer-link.is-current { box-shadow: inset 3px 0 0 var(--orchid); background: #F7F3EC; }
.drawer-foot { margin-top: auto; padding-top: 18px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.panel:hover { box-shadow: var(--shadow-hover); }
.hero-grid { display: grid; gap: 22px; align-items: start; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.stamp-row { display: flex; gap: 8px; margin-bottom: 14px; }
.stamp {
  writing-mode: vertical-rl;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--orchid);
  color: var(--orchid);
  background: var(--card);
  border-radius: var(--radius);
  letter-spacing: .35em;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 6px;
}
.stamp-olive { border-color: var(--olive); color: var(--olive); }
.meta-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meta-line dt { color: var(--muted); }
.meta-line dd { margin: 0; font-weight: 700; text-align: right; }
.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1; min-width: 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 44px;
}
.search-row input:focus { border-color: var(--olive); }
label.field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.cmp { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-head > div { background: var(--plum); color: #fff; padding: 14px 16px; font-weight: 700; }
.cmp-row > div { padding: 16px 18px; border-top: 1px solid var(--line); background: var(--card); }
.cmp-row > div + div, .cmp-head > div + div { border-left: 1px solid var(--line); }
.cmp-head > div + div { border-left-color: rgba(255,255,255,.2); }

.path-grid, .stat-grid, .scene-grid, .matrix, .foot-grid, .voice-grid, .jp-grid, .kr-grid, .meter-grid, .split-cards { display: grid; gap: 16px; }
.num-card { border-top: 3px solid var(--ink); }
.num-card b { display: block; font-family: ui-monospace, Consolas, monospace; color: var(--orchid); margin-bottom: 6px; }

.rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rail li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; position: relative; padding-bottom: 22px; }
.rail li::before {
  content: "";
  position: absolute;
  left: 27px; top: 48px; bottom: 0;
  width: 1px;
  background: var(--line);
}
.rail li:last-child::before { display: none; }
.num {
  width: 56px; height: 56px;
  border: 1px solid var(--plum);
  background: var(--card);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.jp-grid { grid-template-columns: 1fr; }
.kr-grid { grid-template-columns: 1fr; }
.stack { display: grid; gap: 16px; }
.thumb {
  aspect-ratio: 16/9;
  background: var(--plum);
  color: #F7F1EA;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.thumb small { font-family: ui-monospace, Consolas, monospace; font-weight: 400; letter-spacing: 0; opacity: .85; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-top: 10px;
  transition: background .2s ease;
}
.row:hover { background: #F7F3EC; text-decoration: none; }
.row:hover::before, .row:focus-visible::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orchid);
}
.row strong { font-weight: 700; color: var(--ink); }
.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #E7C9D6;
  background: #F7E7EE;
  color: var(--plum);
  font-size: 12px;
  margin-right: 6px;
}
.badge-olive { background: #E5EEE7; border-color: #C9D7CC; color: var(--olive); }
.badge-line { background: transparent; border-color: var(--line); color: var(--muted); }

.stat-grid { grid-template-columns: 1fr 1fr; }
.stat b { display: block; font-size: clamp(32px, 4vw, 46px); line-height: 1; font-weight: 700; color: #fff; }
.stat span { display: block; margin-top: 6px; color: #F3C3D4; font-size: 14px; }
.voice-grid { align-items: start; }
.quote { margin: 0; }
.quote p { font-size: 16px; }
.quote footer { color: var(--muted); font-size: 14px; }
.quote-short { background: #F7E7EE; }

.scene-card h3 { margin-bottom: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 128px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--olive); }
.meter-top { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.meter + .meter { margin-top: 16px; }
.meter-track { height: 8px; background: #E4DDD2; border-radius: 999px; overflow: hidden; }
.meter-track span { display: block; height: 100%; background: var(--olive); border-radius: inherit; }

.matrix { grid-template-columns: 1fr; }
.span-row { background: var(--card); }
.band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orchid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { color: var(--orchid); font-size: 22px; line-height: 1; font-weight: 700; }
.faq .plus::before { content: "+"; }
.faq details[open] .plus::before { content: "–"; }
.faq details[open] { background: #E7E0D4; }
.faq .a { padding: 0 18px 16px; max-width: 68ch; }
.close-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--plum);
  border-radius: var(--radius);
  background: var(--card);
}
.site-footer { background: #E7E0D4; border-top: 1px solid var(--line); padding: 42px 0 28px; }
.foot-grid { grid-template-columns: 1fr; gap: 22px; }
.site-footer a { color: var(--ink); }
.site-footer h2 { font-size: 16px; }
.copy { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.empty { padding: 12px 14px; border: 1px dashed var(--orchid); background: #F7E7EE; border-radius: var(--radius); }
.is-hidden { display: none !important; }
.narrow-note { font-size: 13px; color: var(--muted); }

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: minmax(0, 1.65fr) minmax(260px, .9fr); }
  .path-grid { grid-template-columns: repeat(4, 1fr); }
  .jp-grid { grid-template-columns: 1.65fr .85fr; }
  .kr-grid { grid-template-columns: .85fr 1.65fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .voice-grid { grid-template-columns: 1.45fr .75fr; }
  .scene-grid { grid-template-columns: 1.25fr 1fr 1fr; }
  .scene-wide { grid-column: span 2; }
  .meter-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .matrix { grid-template-columns: 1.35fr 1fr 1fr; }
  .span-row { grid-row: span 2; }
  .foot-grid { grid-template-columns: 1.4fr .8fr .9fr 1.1fr; }
  .timeline li { grid-template-columns: 150px 1fr; }
}
@media (max-width: 1023px) {
  .span-row { grid-row: auto; }
}
@media (max-width: 767px) {
  .section { padding: 36px 0; }
  .header-cta, .age-chip { display: none; }
  .cmp-head, .cmp-row { grid-template-columns: 1fr; }
  .cmp-row > div + div, .cmp-head > div + div { border-left: 0; }
  .timeline li, .rail li { grid-template-columns: 52px 1fr; }
  .timeline time { grid-column: 1 / -1; }
  .band, .close-bar, .search-row { flex-direction: column; align-items: stretch; }
  .logo-key { white-space: normal; }
}
@media (max-width: 519px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .stat-grid, .path-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
}
@media (min-width: 1280px) {
  .container { width: min(var(--max), calc(100% - 48px)); }
}

/* roulang page: category1 */
:root {
 --ink: #24181C;
 --plum: #4A2340;
 --orchid: #C45B86;
 --paper: #F3EEE4;
 --olive: #3E5344;
 --line: #D9D0C4;
 --card: #FFFDF8;
 --muted: #6B5A5F;
 --paper-2: #E9E2D6;
 --radius: 4px;
 --shadow: 0 8px 20px rgba(36,24,28,.06);
 --shadow-hover: 0 12px 28px rgba(36,24,28,.10);
 --header: 72px;
 --max: 1120px;
}
/* roulang page: category1 */
:root {
 --ink: #24181C;
 --plum: #4A2340;
 --orchid: #C45B86;
 --paper: #F3EEE4;
 --olive: #3E5344;
 --line: #D9D0C4;
 --card: #FFFDF8;
 --muted: #6B5A5F;
 --paper-2: #E9E2D6;
 --radius: 4px;
 --shadow: 0 8px 20px rgba(36,24,28,.06);
 --shadow-hover: 0 12px 28px rgba(36,24,28,.10);
 --header: 72px;
 --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 color: var(--ink);
 background: var(--paper);
 font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
 font-size: 17px;
 line-height: 1.8;
 text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
 outline: 2px solid var(--olive);
 outline-offset: 2px;
}
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 {
 font-size: clamp(28px, 4vw, 40px);
 line-height: 1.28;
 font-weight: 700;
 margin-bottom: 12px;
}
h2 {
 font-size: clamp(22px, 2.5vw, 28px);
 line-height: 1.35;
 font-weight: 700;
 margin-bottom: 12px;
}
h3 { font-size: 18px; line-height: 1.45; font-weight: 700; margin-bottom: 6px; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 64px 0; }
.section.alt { background: var(--paper-2); }
.section-cat { padding: 28px 0 36px; }
.section-cat .cat-rule { border-top: 2px solid var(--orchid); padding-top: 18px; }
.section-ink { background: var(--plum); color: #F7F1EA; }
.lede { max-width: 68ch; color: var(--ink); margin-bottom: 0; }
.quiet { color: var(--muted); font-size: 14px; line-height: 1.7; }
.kicker {
 margin: 0 0 8px;
 color: var(--olive);
 font-size: 12px;
 font-weight: 700;
 letter-spacing: .14em;
}
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; color: var(--muted); }
.site-header {
 position: fixed;
 inset: 0 0 auto 0;
 height: var(--header);
 z-index: 40;
 background: rgba(243,238,228,.96);
 border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo-key { font-weight: 700; font-size: clamp(14px, 1.7vw, 18px); color: var(--ink); white-space: nowrap; }
.logo-suffix { font-size: 12px; color: var(--olive); letter-spacing: .14em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.age-chip {
 height: 26px;
 display: inline-flex;
 align-items: center;
 padding: 0 10px;
 border-radius: 999px;
 border: 1px solid var(--line);
 background: var(--card);
 color: var(--plum);
 font-size: 12px;
}
.btn-main, .btn-ghost {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 44px;
 padding: 0 16px;
 border-radius: var(--radius);
 font-weight: 700;
 cursor: pointer;
 transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
 text-decoration: none;
}
.btn-main { background: var(--plum); color: #fff; border: 1px solid var(--plum); box-shadow: var(--shadow); }
.btn-main:hover { background: var(--orchid); border-color: var(--orchid); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-main:active { transform: translateY(1px); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { border-color: var(--plum); color: var(--plum); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn {
 width: 44px; height: 44px;
 border: 1px solid var(--line);
 background: var(--card);
 border-radius: var(--radius);
 cursor: pointer;
 display: inline-flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 5px;
}
.icon-btn span { display: block; width: 18px; height: 2px; background: var(--ink); }
.icon-btn:hover { border-color: var(--plum); }
.icon-btn[aria-expanded="true"] { border-color: var(--orchid); }
.mask {
 position: fixed;
 inset: 0;
 background: rgba(36,24,28,.4);
 z-index: 70;
}
.mask[hidden] { display: none; }
.drawer {
 position: fixed; top: 0; right: 0; height: 100vh;
 width: min(100vw, 420px);
 background: var(--paper);
 z-index: 80;
 border-left: 1px solid var(--line);
 transform: translateX(100%);
 transition: transform .25s ease;
 display: flex;
 flex-direction: column;
 padding: 22px 22px 28px;
 visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.drawer-nav { display: flex; flex-direction: column; gap: 0; overflow: auto; }
.drawer-link {
 display: block;
 padding: 14px 12px;
 border-bottom: 1px solid var(--line);
 color: var(--ink);
 font-weight: 700;
 text-decoration: none;
}
.drawer-link:hover { background: #F7F3EC; color: var(--plum); text-decoration: underline; }
.drawer-link.is-current { box-shadow: inset 3px 0 0 var(--orchid); background: #F7F3EC; }
.drawer-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.panel {
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 padding: 16px 16px 12px;
}
.panel:hover { box-shadow: var(--shadow-hover); }
.meta-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meta-line dt { color: var(--muted); }
.meta-line dd { margin: 0; font-weight: 700; text-align: right; }
.seal-row { display: flex; gap: 8px; }
.seal {
 writing-mode: vertical-rl;
 border: 1px solid var(--orchid);
 color: var(--orchid);
 letter-spacing: .28em;
 padding: 8px 5px;
 font-size: 12px;
 font-weight: 700;
 line-height: 1;
 background: var(--card);
}
.fgroup { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
 height: 28px;
 padding: 0 12px;
 border-radius: 999px;
 border: 1px solid var(--line);
 background: var(--card);
 color: var(--ink);
 cursor: pointer;
 font-size: 13px;
 line-height: 1;
 transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--plum); color: var(--plum); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.result-box {
 min-width: 148px;
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 padding: 12px 14px;
}
.result-box strong {
 display: block;
 font-size: 32px;
 line-height: 1.1;
 color: var(--plum);
 font-weight: 700;
}
.entry {
 position: relative;
 display: grid;
 grid-template-columns: 196px 1fr;
 gap: 14px;
 align-items: center;
 padding: 12px;
 margin-top: 12px;
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 transition: background .2s ease, box-shadow .2s ease;
}
.entry:hover { background: #F7F3EC; box-shadow: var(--shadow-hover); }
.entry:hover::before, .entry:focus-within::before {
 content: "";
 position: absolute;
 left: 0; top: 0; bottom: 0;
 width: 3px;
 background: var(--orchid);
}
.thumb {
 aspect-ratio: 16/9;
 background: var(--plum);
 color: var(--paper);
 border-radius: var(--radius);
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 700;
 letter-spacing: .12em;
}
.thumb span { font-size: 18px; }
.entry-body { min-width: 0; }
.entry-top, .entry-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entry-meta { margin-top: 8px; }
.entry h3 a { color: var(--ink); }
.entry h3 a:hover { color: var(--plum); }
.more-wrap { margin-top: 16px; }
.badge {
 display: inline-flex;
 align-items: center;
 height: 26px;
 padding: 0 10px;
 border-radius: 999px;
 border: 1px solid var(--line);
 background: var(--card);
 color: var(--plum);
 font-size: 12px;
 line-height: 1;
 white-space: nowrap;
}
.badge-full { color: var(--olive); border-color: var(--olive); }
.badge-miss { color: var(--orchid); border-color: var(--orchid); }
.mark-table { width: 100%; border-collapse: collapse; background: var(--card); box-shadow: var(--shadow); }
.mark-table th, .mark-table td {
 border: 1px solid var(--line);
 padding: 12px 14px;
 text-align: left;
 vertical-align: top;
}
.mark-table th { background: #F7F3EC; font-weight: 700; }
.mark-table tbody tr:hover td { background: #FBF8F2; }
.row {
 position: relative;
 display: grid;
 grid-template-columns: 148px 1fr;
 gap: 8px 16px;
 padding: 14px 14px 14px 16px;
 border: 1px solid var(--line);
 border-radius: var(--radius);
 background: var(--card);
 transition: background .2s ease, box-shadow .2s ease;
}
.row:hover { background: #F7F3EC; box-shadow: var(--shadow); }
.row:hover::before {
 content: "";
 position: absolute;
 left: 0; top: 0; bottom: 0;
 width: 3px;
 background: var(--orchid);
}
.row strong { font-weight: 700; color: var(--ink); }
.row p { margin: 0; }
.rel { list-style: none; margin: 0; padding: 0; }
.rel li {
 display: flex;
 justify-content: space-between;
 gap: 12px;
 align-items: baseline;
 padding: 14px 2px;
 border-bottom: 1px solid var(--line);
}
.rel a { font-weight: 700; color: var(--ink); }
.rel a:hover { color: var(--plum); }
.log { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--orchid); max-width: 760px; }
.log li { padding: 8px 0 16px; }
.log time { display: block; }
.log p { margin: 4px 0 0; }
.path-link {
 display: inline-flex;
 align-items: center;
 min-height: 44px;
 padding: 0 14px;
 border-left: 3px solid var(--orchid);
 background: var(--card);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 font-weight: 700;
 color: var(--ink);
}
.path-link:hover { background: #F7F3EC; color: var(--plum); text-decoration: none; }
.note-list { margin: 0; padding-left: 1.1em; }
.note-list li { margin: 8px 0; }
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 20px; background: #E7E0D4; }
.foot-grid { display: grid; gap: 22px; grid-template-columns: 1.4fr .8fr 1fr 1.15fr; }
.site-footer h2 { font-size: 14px; letter-spacing: .08em; margin-bottom: 8px; }
.site-footer p { margin: 6px 0; }
.copy { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
#entryList:not(.is-expanded) .is-extra { display: none; }
@media (max-width: 1024px) {
 .entry { grid-template-columns: 160px 1fr; }
 .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
 .section { padding: 40px 0; }
 .section-cat { padding: 22px 0 28px; }
 .row { grid-template-columns: 1fr; }
 .result-box { width: 100%; }
}
@media (max-width: 640px) {
 .container { width: min(var(--max), calc(100% - 28px)); }
 .header-cta, .age-chip { display: none; }
 .logo-key { font-size: 13px; white-space: normal; }
 .entry { grid-template-columns: 1fr; }
 .thumb { max-height: 180px; }
 .foot-grid { grid-template-columns: 1fr; }
 .section { padding: 32px 0; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 .drawer, .btn-main, .btn-ghost, .entry, .chip { transition: none; }
}
