/* roulang page: index */
:root {
  --plum: #7A2E3B;
  --plum-deep: #702A36;
  --copper: #C06A45;
  --copper-deep: #B0613F;
  --silver: #D5D8DC;
  --silver-edge: #8E9398;
  --shell: #161311;
  --shell-2: #221C19;
  --paper: #F4EFE6;
  --paper-2: #E9E1D4;
  --card: #FFFDF8;
  --ink: #221C19;
  --muted: #5C534C;
  --line: rgba(34, 28, 25, .2);
  --radius-row: 2px;
  --radius-btn: 6px;
  --shadow: 3px 3px 0 rgba(22, 19, 17, .16);
  --max: 1120px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Sarasa Mono SC", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}
h1 { font-size: 34px; margin-bottom: .6em; }
h2 { font-size: 26px; margin-bottom: .6em; }
h3 { font-size: 18px; margin-bottom: .6em; }
p { margin-bottom: .9em; }
p:last-child { margin-bottom: 0; }
a { color: var(--plum); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
::selection { background: var(--plum); color: var(--paper); }
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
  z-index: 80;
}
.skip:focus { top: 8px; }

.agebar {
  background: var(--plum);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .04em;
}
.agebar .container {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.age-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--shell);
  color: var(--silver);
  font-family: var(--mono);
  font-size: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--shell);
  color: var(--paper);
  border-bottom: 1px solid #3a332e;
}
.cmd {
  position: relative;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 0;
}
.logo-medal {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--copper);
  color: var(--shell);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.logo-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  color: var(--silver);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  font-size: 14px;
}
.nav-links a:hover { background: #2a2420; color: #fff; }
.nav-links a[aria-current="page"] { background: var(--plum); color: var(--paper); }
.nav-links a[aria-current="page"]:hover { background: var(--plum-deep); }
.cmd-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.cmd-search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 230px;
  background: var(--shell-2);
  border: 1px solid #3a332e;
  border-radius: var(--radius-btn);
  padding: 3px 6px 3px 10px;
}
.cmd-search input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 0;
}
.cmd-search input::placeholder { color: #8d847c; }
.cmd-search:focus-within { outline: 2px solid var(--copper); outline-offset: 2px; }
.cmd-search input:focus { outline: none; }
kbd {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--silver);
  border: 1px solid #5c534c;
  border-radius: 2px;
  padding: 0 4px;
  line-height: 1.5;
}
.search-go, .nav-toggle {
  border: 1px solid transparent;
  background: var(--plum);
  color: var(--paper);
  border-radius: var(--radius-btn);
  min-height: 32px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 700;
}
.search-go:hover, .nav-toggle:hover { background: var(--plum-deep); }
.nav-toggle { display: none; }
.quick {
  color: var(--silver);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: var(--radius-btn);
}
.quick:hover { color: #fff; background: #2a2420; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  background: var(--plum);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
  box-shadow: none;
}
.btn:hover { background: var(--plum-deep); color: var(--paper); }
.btn:active { background: #611f2b; }
.btn-copper { background: var(--copper); color: var(--shell); }
.btn-copper:hover { background: var(--copper-deep); color: var(--shell); }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: rgba(34, 28, 25, .45);
}
.btn-line:hover { background: #e7dfd3; color: var(--ink); }
.btn:disabled, .btn.is-disabled {
  background: #8d7c76;
  border-color: #8d7c76;
  color: #f4efe6;
  cursor: not-allowed;
  pointer-events: none;
}
.board .btn-line { color: var(--paper); border-color: var(--silver); }
.board .btn-line:hover { background: #2a2420; color: #fff; }

.board {
  background: var(--shell);
  color: var(--paper);
  padding: 42px 0 36px;
  border-bottom: 4px solid var(--plum);
}
.board-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
  font-size: 13px;
  margin-bottom: 10px;
}
.board h1 { color: var(--paper); }
.sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: .6em;
}
.board .sub { color: var(--silver); }
.board .lead { color: #efe8df; max-width: 46em; }
.board-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.metric {
  background: var(--shell-2);
  border: 1px solid #3a332e;
  border-left: 4px solid var(--plum);
  border-radius: var(--radius-row);
  padding: 14px 12px 12px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .28);
  min-height: 118px;
}
.metric:nth-child(2) { border-left-color: var(--copper); }
.metric:nth-child(3) { border-left-color: var(--silver); }
.metric:nth-child(4) { border-left-color: var(--copper); }
.metric b {
  display: block;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--silver);
  transition: transform .15s ease;
}
.metric:hover b { transform: translateX(2px); }
.metric span { display: block; margin-top: 8px; color: #cfc6bd; font-size: 13px; }

main > section { padding: 52px 0; border-top: 1px solid var(--line); }
main > section:nth-child(even) { background: var(--paper-2); }
.sec-head { margin-bottom: 18px; max-width: 760px; }
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark::before {
  content: "";
  width: 4px;
  height: 1.05em;
  background: var(--plum);
  flex: 0 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1.15fr .86fr;
  gap: 12px;
  align-items: end;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  box-shadow: var(--shadow);
  padding: 16px 14px 18px;
}
.step-1 { min-height: 196px; border-left: 4px solid var(--copper); }
.step-2 { min-height: 252px; border-left: 4px solid var(--plum); }
.step-3 { min-height: 164px; border-left: 4px solid var(--silver-edge); }
.step-base { height: 8px; background: var(--shell); margin: 0 0 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--paper);
  font-size: 12px;
  font-family: var(--mono);
  margin-bottom: 8px;
}
.badge-copper { background: var(--copper); color: var(--shell); }
.badge-silver { background: var(--silver); color: var(--shell); }
.stag { display: flex; flex-direction: column; gap: 8px; }
.stag-row, .news-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  border-radius: var(--radius-row);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.stag-row:nth-child(2) { margin-left: 7%; border-left-color: var(--copper); }
.stag-row:nth-child(3) { margin-left: 3%; border-left-color: var(--silver-edge); }
.no {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--plum);
  display: inline-block;
  transition: transform .15s ease;
}
.stag-row:hover .no, .news-row:hover .no, .scene:hover .no { transform: translateX(2px); }
.stag-row:hover, .news-row:hover, .scene:hover { background: #f7f1e6; }
.row-title { font-weight: 700; }
.row-note, .news-row time, .muted { color: var(--muted); font-size: 14px; }
.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-row time { font-family: var(--mono); font-size: 13px; }
.more { margin-top: 14px; }
.empty-list {
  border: 1px dashed rgba(34, 28, 25, .4);
  padding: 16px;
  border-radius: var(--radius-row);
  color: var(--muted);
  background: var(--card);
  margin-top: 10px;
}

.table-wrap { overflow-x: auto; }
.cmp, .rhythm {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  min-width: 640px;
  box-shadow: var(--shadow);
}
.cmp th, .cmp td, .rhythm th, .rhythm td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.cmp th, .rhythm th {
  background: var(--shell);
  color: var(--silver);
  font-weight: 600;
}
.cmp td:first-child, .rhythm td:first-child {
  font-weight: 700;
  background: #f7f3eb;
  white-space: nowrap;
}
.cmp td strong, .rhythm td strong { font-family: var(--mono); }

.tl-wrap { overflow-x: auto; padding-bottom: 6px; }
.tl {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  position: relative;
  min-width: 720px;
}
.tl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 2px;
  background: var(--plum);
}
.tl-item { position: relative; padding: 40px 16px 0 0; }
.tl-item::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--copper);
  border: 2px solid var(--shell);
  position: absolute;
  top: 10px;
  left: 0;
}
.tl-item time {
  display: block;
  font-family: var(--mono);
  color: var(--plum);
  font-size: 13px;
  margin-bottom: 4px;
}

.rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rule-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-row);
  padding: 12px;
}
.rule-list li:nth-child(even) { background: #f8f4ed; }

.scene-grid {
  display: grid;
  grid-template-columns: 1.45fr .78fr 1.12fr;
  gap: 12px;
  align-items: stretch;
}
.scene {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--plum);
  border-radius: var(--radius-row);
  min-height: 168px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.scene:nth-child(2) { border-left-color: var(--copper); min-height: 220px; }
.scene:nth-child(3) { border-left-color: var(--silver-edge); min-height: 188px; }
.scene .no { font-size: 13px; }

.quotes {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 12px;
}
.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-row);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
}
.quote:nth-child(2) { margin-top: 22px; }
.quote:nth-child(3) { border-left: 4px solid var(--copper); }
.quote footer { color: var(--muted); font-size: 13px; margin-top: 8px; }
.quote p { font-size: 15px; }

.entry-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 16px;
  align-items: stretch;
}
.entry-v {
  background: var(--shell);
  color: var(--paper);
  border-radius: var(--radius-row);
  border-top: 8px solid var(--plum);
  padding: 20px 18px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.entry-v .sub, .entry-v p { color: #ddd4cb; }
.entry-v h3 { color: var(--paper); }
.ribbon {
  align-self: flex-start;
  background: var(--copper);
  color: var(--shell);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-family: var(--mono);
  margin-bottom: 12px;
}
.entry-v ol {
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.entry-v li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #3a332e;
  padding: 8px 0;
  font-size: 14px;
}
.entry-v .mono { font-family: var(--mono); color: var(--silver); }
.entry-h {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--copper);
  border-radius: var(--radius-row);
  padding: 18px;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  box-shadow: var(--shadow);
}
.entry-side {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}
.entry-side b {
  font-family: var(--mono);
  font-size: 40px;
  line-height: 1;
  color: var(--plum);
}
.catalog { list-style: none; margin: 0 0 12px; padding: 0; }
.catalog li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.catalog .mono { font-family: var(--mono); color: var(--plum); }

.guard {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
.guard article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-row);
  padding: 16px;
  box-shadow: var(--shadow);
}
.guard article:first-child { grid-row: span 2; border-left: 4px solid var(--plum); }
.guard article:nth-child(2) { border-top: 4px solid var(--copper); }
.guard article:nth-child(3) { border-top: 4px solid var(--silver-edge); }
.guard article:nth-child(4) { grid-column: 1 / -1; border-left: 4px solid var(--copper); }

.qa { display: flex; flex-direction: column; gap: 8px; }
.qa article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-row);
  padding: 12px;
}
.qa .mono {
  font-family: var(--mono);
  color: var(--plum);
  font-weight: 700;
}

.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-row);
  box-shadow: var(--shadow);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 12px 40px 12px 14px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 10px;
  font-family: var(--mono);
  color: var(--plum);
}
.faq-item.is-open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 14px 14px; color: var(--ink); }
.faq-item.is-open .faq-a { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--plum);
  color: var(--plum);
  background: var(--card);
  text-decoration: none;
  font-size: 14px;
}
.chip:hover { background: var(--plum); color: var(--paper); }
.chip:active { background: var(--plum-deep); }

.intent {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: start;
}
form {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  border-radius: var(--radius-row);
  padding: 16px;
  box-shadow: var(--shadow);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 14px; }
input[type="text"], input[type="search"], textarea {
  width: 100%;
  border: 1px solid rgba(34, 28, 25, .28);
  background: #fff;
  border-radius: var(--radius-btn);
  padding: 8px 10px;
  min-height: 40px;
}
textarea { min-height: 96px; resize: vertical; }
.form-tip {
  margin-top: 12px;
  border-left: 4px solid var(--copper);
  background: #f7f1e6;
  padding: 10px 12px;
}
.fine { color: var(--muted); font-size: 13px; }

.site-footer {
  background: var(--shell);
  color: var(--silver);
  border-top: 4px solid var(--plum);
  padding: 34px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 20px;
}
.site-footer h2 { color: var(--paper); font-size: 20px; }
.site-footer p { color: #cfc6bd; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--copper); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.copy {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #3a332e;
  font-size: 13px;
  color: #b7aea6;
}

@media (max-width: 1099px) {
  .board-grid, .entry-grid, .guard, .intent, .entry-h, .foot-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .scene-grid { grid-template-columns: 1fr; }
  .scene, .scene:nth-child(2), .scene:nth-child(3) { min-height: 0; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote:nth-child(2) { margin-top: 0; }
  .guard article:first-child { grid-row: auto; }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  h1 { font-size: 30px; }
}
@media (max-width: 759px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--shell);
    border-top: 1px solid #3a332e;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 14px 14px;
    z-index: 45;
  }
  .nav-links.is-open { display: flex; }
  .cmd-right .quick { display: none; }
  .cmd-search {
    min-width: 0;
    background: transparent;
    border-color: transparent;
    padding: 0;
  }
  .cmd-search input, .cmd-search kbd { display: none; }
  .cmd-search.is-open {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    background: var(--shell-2);
    border: 1px solid #3a332e;
    padding: 6px;
    z-index: 46;
  }
  .cmd-search.is-open input { display: block; }
  .cmd-search.is-open kbd { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .steps, .quotes, .fields, .qa article, .rule-list li { grid-template-columns: 1fr; }
  .step, .step-1, .step-2, .step-3 { min-height: 0; border-bottom: 1px solid var(--line); }
  .stag-row, .stag-row:nth-child(2), .stag-row:nth-child(3) { margin-left: 0; }
  .news-row, .stag-row { grid-template-columns: 52px 1fr; }
  .news-row time { grid-column: 2; }
  .logo-name { font-size: 14px; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  main > section { padding: 40px 0; }
}
@media (max-width: 520px) {
  .board-actions, .board-actions .btn, .form-actions .btn { width: 100%; }
  .agebar .container { align-items: flex-start; flex-direction: column; padding: 6px 0; }
  .cmd { gap: 8px; }
  .metric b { font-size: 26px; }
  .entry-v { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* roulang page: category2 */
:root {
 --plum: #7A2E3B;
 --plum-deep: #702A36;
 --copper: #C06A45;
 --copper-deep: #B0613F;
 --silver: #D5D8DC;
 --silver-edge: #8E9398;
 --shell: #161311;
 --shell-2: #221C19;
 --paper: #F4EFE6;
 --paper-2: #E9E1D4;
 --card: #FFFDF8;
 --ink: #221C19;
 --muted: #5C534C;
 --line: rgba(34, 28, 25, .2);
 --radius-row: 2px;
 --radius-btn: 6px;
 --shadow: 3px 3px 0 rgba(22, 19, 17, .16);
 --max: 1120px;
 --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
 --mono: ui-monospace, "SFMono-Regular", "Sarasa Mono SC", Consolas, "Liberation Mono", monospace;
}
/* roulang page: category2 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 font-family: var(--font);
 font-size: 16px;
 line-height: 1.75;
 color: var(--ink);
 background: var(--paper);
 color-scheme: light;
}
a { color: var(--plum); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, textarea {
 font-family: inherit;
 font-size: 15px;
 color: var(--ink);
}
h1, h2, h3 { line-height: 1.35; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: 32px; letter-spacing: .01em; }
h2 { font-size: 24px; }
h3 { font-size: 18px; margin: 0; }
p { margin: 0 0 .9em; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.sr {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0, 0, 0, 0);
 white-space: nowrap;
 border: 0;
}
.age-pill {
 display: inline-flex;
 align-items: center;
 height: 22px;
 padding: 0 8px;
 border-radius: 999px;
 background: var(--shell);
 color: var(--silver);
 font-family: var(--mono);
 font-size: 12px;
}
.site-header {
 position: sticky;
 top: 0;
 z-index: 40;
 background: var(--shell);
 color: var(--paper);
 border-bottom: 1px solid #3a332e;
}
.cmd {
 display: flex;
 align-items: center;
 gap: 14px;
 min-height: 64px;
}
.logo {
 display: flex;
 align-items: center;
 gap: 8px;
 color: var(--paper);
 text-decoration: none;
 flex: 0 0 auto;
 min-width: 0;
}
.logo-medal {
 width: 28px;
 height: 28px;
 border-radius: 999px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 background: var(--copper);
 color: var(--shell);
 font-family: var(--mono);
 font-size: 12px;
 font-weight: 700;
 flex: 0 0 auto;
}
.logo-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.nav-links {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 4px;
 flex: 1;
}
.nav-links a {
 color: var(--silver);
 text-decoration: none;
 padding: 6px 12px;
 border-radius: var(--radius-btn);
 font-size: 14px;
}
.nav-links a:hover { background: #2a2420; color: #fff; }
.nav-links a[aria-current="page"] { background: var(--plum); color: var(--paper); }
.nav-links a[aria-current="page"]:hover { background: var(--plum-deep); }
.cmd-right {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-left: auto;
 flex: 0 1 auto;
}
.cmd-search {
 display: flex;
 align-items: center;
 gap: 6px;
 min-width: 230px;
 background: var(--shell-2);
 border: 1px solid #3a332e;
 border-radius: var(--radius-btn);
 padding: 3px 6px 3px 10px;
}
.cmd-search input {
 flex: 1;
 min-width: 0;
 height: 32px;
 border: 0;
 background: transparent;
 color: var(--paper);
 padding: 0;
}
.cmd-search input::placeholder { color: #8d847c; }
.cmd-search:focus-within { outline: 2px solid var(--copper); outline-offset: 2px; }
.cmd-search input:focus { outline: none; }
.cmd-search kbd {
 font-family: var(--mono);
 font-size: 12px;
 color: var(--silver);
 border: 1px solid #3a332e;
 border-radius: 2px;
 padding: 0 5px;
 line-height: 20px;
 background: transparent;
}
.search-go, .nav-toggle {
 border: 1px solid transparent;
 background: var(--plum);
 color: var(--paper);
 border-radius: var(--radius-btn);
 min-height: 32px;
 padding: 0 10px;
 cursor: pointer;
 font-weight: 700;
}
.search-go:hover, .nav-toggle:hover { background: var(--plum-deep); }
.nav-toggle { display: none; }
.quick {
 color: var(--silver);
 text-decoration: none;
 font-size: 14px;
 white-space: nowrap;
 padding: 6px 4px;
 border-radius: var(--radius-btn);
}
.quick:hover { color: #fff; background: #2a2420; }
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 40px;
 padding: 0 16px;
 border-radius: var(--radius-btn);
 border: 1px solid transparent;
 background: var(--plum);
 color: var(--paper);
 text-decoration: none;
 font-weight: 700;
 cursor: pointer;
 transition: background-color .15s ease;
 box-shadow: none;
 white-space: nowrap;
}
.btn:hover { background: var(--plum-deep); color: var(--paper); }
.btn:active { background: #611f2b; }
.btn-copper { background: var(--copper); color: var(--shell); }
.btn-copper:hover { background: var(--copper-deep); color: var(--shell); }
.btn-line {
 background: transparent;
 color: var(--ink);
 border-color: rgba(34, 28, 25, .45);
}
.btn-line:hover { background: #e7dfd3; color: var(--ink); }
.btn:disabled, .btn.is-disabled {
 background: #8d7c76;
 border-color: #8d7c76;
 color: #f4efe6;
 cursor: not-allowed;
 pointer-events: none;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
 outline: 2px solid var(--copper);
 outline-offset: 2px;
}
.badge {
 display: inline-flex;
 align-items: center;
 height: 24px;
 padding: 0 8px;
 border-radius: 999px;
 background: var(--plum);
 color: var(--paper);
 font-size: 12px;
 font-family: var(--mono);
 margin-bottom: 8px;
}
.badge-copper { background: var(--copper); color: var(--shell); }
.badge-silver { background: var(--silver); color: var(--shell); }
.eyebrow {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 color: var(--muted);
 font-size: 13px;
 margin: 0 0 10px;
}
.sec-kicker {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-bottom: 14px;
}
.sec-kicker h2 {
 border-left: 4px solid var(--plum);
 padding-left: 10px;
 margin: 0;
}
.sec-kicker .subhead {
 margin: 0;
 color: var(--muted);
 font-size: 14px;
}
main > section { padding: 52px 0; border-top: 1px solid var(--line); }
main > section:nth-child(even) { background: var(--paper-2); }
.catalog-top { padding-top: 28px; padding-bottom: 36px; }
.banner-copy { max-width: 40em; }
.banner-copy .sub { color: var(--muted); margin: 0; }
.toc {
 list-style: none;
 margin: 22px 0 0;
 padding: 0;
 display: grid;
 grid-template-columns: repeat(6, 1fr);
 gap: 8px;
}
.toc a {
 display: flex;
 flex-direction: column;
 gap: 4px;
 min-height: 84px;
 padding: 10px 10px 12px;
 text-decoration: none;
 color: var(--ink);
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--radius-row);
 border-top: 4px solid var(--plum);
 box-shadow: var(--shadow);
}
.toc li:nth-child(2) a { border-top-color: var(--copper); }
.toc li:nth-child(3) a { border-top-color: var(--silver-edge); }
.toc li:nth-child(4) a { border-top-color: var(--plum); }
.toc li:nth-child(5) a { border-top-color: var(--copper); }
.toc li:nth-child(6) a { border-top-color: var(--silver-edge); }
.toc a:hover { background: #f7f1e6; }
.toc .no, .arc-no, .news-row .no, .scene .no, .src-no {
 font-family: var(--mono);
 font-weight: 700;
 transition: transform .15s ease;
 display: inline-block;
}
.toc a:hover .no, .arc-card:hover .arc-no, .news-row:hover .no, .scene:hover .no { transform: translateX(2px); }
.toc .name { font-weight: 700; font-size: 14px; }
.arc-list { display: flex; flex-direction: column; gap: 10px; }
.arc-card {
 display: grid;
 grid-template-columns: 84px minmax(0, 1fr) auto;
 gap: 14px;
 align-items: center;
 background: var(--card);
 border: 1px solid var(--line);
 border-left: 4px solid var(--plum);
 border-radius: var(--radius-row);
 box-shadow: var(--shadow);
 padding: 14px 14px;
 color: inherit;
}
.arc-card:nth-child(2) { border-left-color: var(--copper); }
.arc-card:nth-child(3) { border-left-color: var(--silver-edge); }
.arc-card:hover { background: #f7f1e6; }
.arc-no {
 width: 64px;
 height: 64px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: var(--shell);
 color: var(--silver);
 border-radius: var(--radius-row);
 font-size: 18px;
}
.arc-main { min-width: 0; }
.arc-main h3 { margin-bottom: 4px; }
.arc-main p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
 display: inline-flex;
 align-items: center;
 height: 22px;
 padding: 0 8px;
 border-radius: 999px;
 border: 1px solid var(--line);
 font-size: 12px;
 font-family: var(--mono);
 color: var(--ink);
 background: var(--paper);
}
.chip-plum { background: var(--plum); color: var(--paper); border-color: transparent; }
.chip-copper { background: var(--copper); color: var(--shell); border-color: transparent; }
.chip-silver { background: var(--silver); color: var(--shell); border-color: transparent; }
.list-more { margin-top: 14px; display: flex; }
.empty-list {
 border: 1px dashed rgba(34, 28, 25, .4);
 padding: 16px;
 border-radius: var(--radius-row);
 color: var(--muted);
 background: var(--card);
 margin: 0 0 10px;
}
.scene-grid {
 display: grid;
 grid-template-columns: 1.45fr 1fr .78fr;
 gap: 10px;
}
.scene {
 display: block;
 text-decoration: none;
 color: inherit;
 background: var(--card);
 border: 1px solid var(--line);
 border-left: 4px solid var(--plum);
 border-radius: var(--radius-row);
 box-shadow: var(--shadow);
 padding: 16px;
 min-height: 148px;
}
.scene:nth-child(2) { border-left-color: var(--copper); }
.scene:nth-child(3) { border-left-color: var(--silver-edge); }
.scene:hover { background: #f7f1e6; }
.scene p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.rhythm-grid, .note-grid, .src-grid {
 display: grid;
 gap: 12px;
}
.rhythm-grid { grid-template-columns: 1fr 1fr; }
.note-grid { grid-template-columns: 1.15fr .85fr; }
.rhythm-col, .note, .src-item {
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--radius-row);
 box-shadow: var(--shadow);
 padding: 14px 16px;
}
.rhythm-col { border-top: 4px solid var(--plum); }
.rhythm-col:nth-child(2) { border-top-color: var(--copper); }
.rhythm-line {
 display: grid;
 grid-template-columns: 72px 1fr;
 gap: 10px;
 padding: 8px 0;
 border-top: 1px solid var(--line);
}
.rhythm-line:first-of-type { border-top: 0; }
.rhythm-line b { font-family: var(--mono); font-weight: 700; }
.rhythm-line span { color: var(--ink); }
.note { border-left: 4px solid var(--copper); }
.note p { margin: 0; color: var(--muted); font-size: 15px; }
.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-row {
 display: grid;
 grid-template-columns: 64px 1fr auto;
 gap: 12px;
 align-items: center;
 text-decoration: none;
 color: inherit;
 background: var(--card);
 border: 1px solid var(--line);
 border-left: 4px solid var(--plum);
 border-radius: var(--radius-row);
 padding: 10px 12px;
 box-shadow: var(--shadow);
}
.news-row:hover { background: #f7f1e6; }
.news-row .no {
 width: 48px;
 text-align: center;
 color: var(--shell);
 background: var(--silver);
 border-radius: var(--radius-row);
 line-height: 32px;
}
.row-title { font-weight: 700; }
.row-note, .news-row time, .muted { color: var(--muted); font-size: 14px; }
.news-row time { font-family: var(--mono); font-size: 13px; }
.src-grid { grid-template-columns: 1.2fr .8fr; }
.src-item { border-left: 4px solid var(--plum); display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: start; }
.src-item:nth-child(2) { border-left-color: var(--copper); }
.src-item:nth-child(3) { border-left-color: var(--silver-edge); }
.src-item:nth-child(4) { border-left-color: var(--plum); }
.src-no {
 width: 40px;
 height: 40px;
 border-radius: 999px;
 background: var(--shell);
 color: var(--silver);
 display: flex;
 align-items: center;
 justify-content: center;
}
.src-item h3 { margin-bottom: 4px; font-size: 16px; }
.src-item p { margin: 0; color: var(--muted); font-size: 14px; }
.sub-sec { background: var(--shell) !important; color: var(--paper); border-top-color: #3a332e; }
.sub-sec .sec-kicker h2 { border-left-color: var(--copper); color: var(--paper); }
.sub-sec p { color: #efe8df; margin: 0; max-width: 40em; }
.sub-row {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 18px;
}
.site-footer {
 background: var(--shell);
 color: var(--paper);
 padding: 36px 0 18px;
 border-top: 1px solid #3a332e;
}
.site-footer h2 { font-size: 20px; color: var(--paper); }
.site-footer p { color: #efe8df; }
.foot-grid {
 display: grid;
 grid-template-columns: 1.4fr .6fr;
 gap: 24px;
 align-items: start;
}
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-links a { color: var(--silver); text-decoration: none; }
.foot-links a:hover { color: #fff; }
.copy {
 border-top: 1px solid #3a332e;
 margin-top: 18px;
 padding-top: 12px;
 color: #b7aea6;
 font-size: 13px;
}
[hidden] { display: none !important; }
@media (min-width: 1100px) {
 .note-grid { grid-template-columns: 1fr 1fr; }
 .src-grid { grid-template-columns: 1.15fr .85fr 1fr .9fr; }
}
@media (max-width: 1099px) {
 .toc { grid-template-columns: repeat(3, 1fr); }
 .rhythm-grid, .note-grid, .src-grid, .scene-grid { grid-template-columns: 1fr; }
 .arc-card { grid-template-columns: 72px minmax(0, 1fr); }
 .arc-card .go { grid-column: 2; justify-self: start; }
}
@media (max-width: 1024px) {
 .cmd-search { min-width: 160px; }
 .cmd-search kbd { display: none; }
 .logo-name { font-size: 15px; }
}
@media (max-width: 759px) {
 .container { width: min(var(--max), calc(100% - 28px)); }
 .site-header { position: sticky; }
 .cmd { flex-wrap: wrap; min-height: 56px; padding: 8px 0; gap: 8px; }
 .nav-toggle { display: inline-flex; margin-left: auto; }
 .nav-links {
 display: none;
 position: absolute;
 left: 0;
 right: 0;
 top: 100%;
 background: var(--shell);
 flex-direction: column;
 align-items: stretch;
 padding: 8px 16px 12px;
 border-bottom: 1px solid #3a332e;
 gap: 4px;
 }
 .nav-links.is-open { display: flex; }
 .cmd-right { width: 100%; order: 3; flex-wrap: wrap; }
 .cmd-search { min-width: 0; flex: 0 0 auto; padding: 3px; }
 .cmd-search input, .cmd-search kbd { display: none; }
 .cmd-search.is-open { flex: 1 1 100%; padding: 3px 6px 3px 10px; }
 .cmd-search.is-open input { display: block; }
 .quick { padding: 6px 2px; }
 h1 { font-size: 26px; }
 h2 { font-size: 20px; }
 main > section { padding: 36px 0; }
 .toc { grid-template-columns: repeat(2, 1fr); }
 .news-row { grid-template-columns: 48px 1fr; }
 .news-row time { grid-column: 2; }
 .sub-row { flex-direction: column; align-items: flex-start; }
 .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
 .logo-name { font-size: 14px; }
 .arc-card { grid-template-columns: 52px minmax(0, 1fr); padding: 12px; }
 .arc-no { width: 44px; height: 44px; font-size: 14px; }
 .btn { width: 100%; }
 .cmd-right .btn { width: auto; }
 .scene { min-height: 0; }
}

/* roulang page: category1 */
:root {
  --plum: #7A2E3B;
  --plum-deep: #702A36;
  --copper: #C06A45;
  --copper-deep: #B0613F;
  --silver: #D5D8DC;
  --silver-edge: #8E9398;
  --shell: #161311;
  --shell-2: #221C19;
  --paper: #F4EFE6;
  --paper-2: #E9E1D4;
  --card: #FFFDF8;
  --ink: #221C19;
  --muted: #5C534C;
  --line: rgba(34, 28, 25, .2);
  --radius-row: 2px;
  --radius-btn: 6px;
  --shadow: 3px 3px 0 rgba(22, 19, 17, .16);
  --max: 1120px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Sarasa Mono SC", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.35; font-weight: 700; margin-bottom: .6em; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; margin-bottom: .35em; }
p { margin-bottom: .9em; }
p:last-child { margin-bottom: 0; }
a { color: var(--plum); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: 15px; color: var(--ink); }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.muted { color: var(--muted); font-size: 14px; }
.agebar { background: #100e0c; color: var(--silver); font-size: 12px; border-bottom: 1px solid #3a332e; }
.agebar .container {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.age-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--shell);
  color: var(--silver);
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid #3a332e;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--shell);
  color: var(--paper);
  border-bottom: 1px solid #3a332e;
}
.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.logo-medal {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--copper);
  color: var(--shell);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.logo-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  color: var(--silver);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  font-size: 14px;
}
.nav-links a:hover { background: #2a2420; color: #fff; }
.nav-links a[aria-current="page"] { background: var(--plum); color: var(--paper); }
.nav-links a[aria-current="page"]:hover { background: var(--plum-deep); }
.cmd-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}
.cmd-search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 220px;
  background: var(--shell-2);
  border: 1px solid #3a332e;
  border-radius: var(--radius-btn);
  padding: 3px 6px 3px 10px;
}
.cmd-search input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 0;
}
.cmd-search input::placeholder { color: #8d847c; }
.cmd-search:focus-within { outline: 2px solid var(--copper); outline-offset: 2px; }
.cmd-search input:focus { outline: none; }
.cmd-search kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--silver);
  border: 1px solid #3a332e;
  border-radius: 4px;
  padding: 1px 5px;
  background: transparent;
}
.search-go, .nav-toggle {
  border: 1px solid transparent;
  background: var(--plum);
  color: var(--paper);
  border-radius: var(--radius-btn);
  min-height: 32px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 700;
}
.search-go:hover, .nav-toggle:hover { background: var(--plum-deep); }
.nav-toggle { display: none; }
.quick {
  color: var(--silver);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
}
.quick:hover { color: #fff; background: #2a2420; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  background: var(--plum);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--plum-deep); color: var(--paper); }
.btn:active { background: #611f2b; }
.btn-copper { background: var(--copper); color: var(--shell); }
.btn-copper:hover { background: var(--copper-deep); color: var(--shell); }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: rgba(34, 28, 25, .45);
}
.btn-line:hover { background: #e7dfd3; color: var(--ink); }
.btn:disabled, .btn.is-disabled {
  background: #8d7c76;
  border-color: #8d7c76;
  color: #f4efe6;
  cursor: not-allowed;
  pointer-events: none;
}
main > section { padding: 52px 0; border-top: 1px solid var(--line); }
main > section:nth-child(even) { background: var(--paper-2); }
.sec-kicker {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.sec-kicker h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.sec-kicker h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  background: var(--plum);
  flex: 0 0 auto;
}
.sec-kicker .sub { margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--paper);
  font-size: 12px;
  font-family: var(--mono);
}
.badge-copper { background: var(--copper); color: var(--shell); }
.badge-silver { background: var(--silver); color: var(--shell); }
.cat-head-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: stretch;
}
.ribbon {
  display: inline-block;
  margin-bottom: 12px;
  background: var(--plum);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 18px 4px 10px;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
}
.cat-head h1 { max-width: 16em; }
.subline { color: var(--muted); margin-bottom: 14px; }
.statusline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.statusline span {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 2px 8px;
  box-shadow: var(--shadow);
}
.filter-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius-row);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.filter-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.filter-panel header strong { font-size: 16px; }
.filter-panel label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
select {
  height: 40px;
  width: 100%;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(34, 28, 25, .45);
  background: var(--paper);
  padding: 0 10px;
}
.rank-list, .news-list, .delta-list, .rule-list, .faq-list { display: flex; flex-direction: column; gap: 8px; }
.rank-row, .news-row, .delta-row {
  display: grid;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  border-radius: var(--radius-row);
  padding: 12px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.rank-row { grid-template-columns: 72px minmax(0, 1fr) 78px auto; }
.rank-row.jin { border-left-color: var(--copper); }
.rank-row.yin { border-left-color: var(--silver-edge); }
.rank-row.tong { border-left-color: var(--plum); }
.rank-row.rest { border-left-color: var(--ink); }
.rank-row:hover, .news-row:hover, .delta-row:hover { background: #f7f1e6; }
.rank-row:hover .no, .news-row:hover .no { transform: translateX(2px); }
.no {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--plum);
  line-height: 1;
  transition: transform .15s ease;
}
.no small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.row-title { font-weight: 700; }
.row-note { color: var(--muted); font-size: 14px; margin-top: 2px; }
.params { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; list-style: none; }
.params li {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  background: var(--paper);
  line-height: 1.7;
}
.score { font-family: var(--mono); text-align: right; }
.score b { display: block; font-size: 28px; line-height: 1; color: var(--plum); font-weight: 700; }
.score small { color: var(--muted); font-size: 12px; }
.text-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.empty-list {
  display: none;
  border: 1px dashed rgba(34, 28, 25, .4);
  padding: 16px;
  border-radius: var(--radius-row);
  color: var(--muted);
  background: var(--card);
}
.empty-list.show { display: block; }
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.delta-row { grid-template-columns: 72px 1fr auto; }
.mark {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.mark.up { color: var(--plum); }
.mark.flat { color: var(--muted); }
.mark.down { color: var(--copper); }
.rule {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rule:last-child { border-bottom: 0; }
.medal-lg {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.medal-lg.jin { background: var(--card); color: var(--copper); border: 1px solid var(--copper); }
.medal-lg.yin { background: var(--silver); color: var(--shell); }
.medal-lg.tong { background: var(--copper); color: var(--shell); }
.medal-lg.num { background: var(--shell); color: var(--silver); font-family: var(--mono); }
.sortbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 14px; }
.sortbar button {
  min-height: 46px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(34, 28, 25, .45);
  background: var(--card);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.sortbar button:hover { background: #e7dfd3; }
.sortbar button.is-on { background: var(--plum); color: var(--paper); border-color: var(--plum); }
.sortbar button.is-on:hover { background: var(--plum-deep); }
.sort-note {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}
.note-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: var(--radius-row);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.note-card ol { margin: 0; padding-left: 1.2em; }
.note-card li { margin: .25em 0; }
.news-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
.news-row time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.more-wrap { margin-top: 14px; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  border-radius: var(--radius-row);
  padding: 10px 14px;
  box-shadow: var(--shadow);
}
details + details { margin-top: 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: .7em; color: var(--ink); }
main > section.subbar {
  background: var(--shell);
  color: var(--paper);
  border-top: 4px solid var(--copper);
}
.subbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.subbar h2 { color: var(--paper); margin-bottom: .35em; }
.subbar h2::before { background: var(--copper); }
.subbar p { color: #efe8df; }
.site-footer {
  background: var(--shell);
  color: var(--silver);
  padding: 36px 0 18px;
  border-top: 1px solid #3a332e;
}
.site-footer h2 { color: var(--paper); font-size: 18px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 28px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-links a { color: var(--silver); text-decoration: none; }
.foot-links a:hover { color: #fff; }
.copy {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #3a332e;
  font-size: 13px;
  color: #8d847c;
}
@media (max-width: 1099px) {
  .cat-head-grid, .split, .sort-note, .foot-grid { grid-template-columns: 1fr; }
  .sec-kicker { align-items: flex-start; flex-direction: column; }
  .sec-kicker .sub { text-align: left; }
  .cmd-search { min-width: 168px; }
  .cmd-search kbd { display: none; }
}
@media (max-width: 980px) and (min-width: 760px) {
  .cmd { flex-wrap: wrap; padding: 8px 0; }
  .nav-links { order: 3; flex: 1 0 100%; justify-content: flex-start; }
}
@media (max-width: 759px) {
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .logo { flex: 1; }
  .logo-name { font-size: 14px; }
  .cmd { flex-wrap: wrap; min-height: 56px; padding: 8px 0; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--shell);
    border-bottom: 1px solid #3a332e;
    padding: 8px 16px 12px;
    z-index: 45;
  }
  .nav-links.is-open { display: flex; }
  .cmd-right { width: 100%; justify-content: flex-end; }
  .cmd-search { min-width: 0; padding: 0; background: transparent; border-color: transparent; }
  .cmd-search input, .cmd-search kbd { display: none; }
  .cmd-search.is-open {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    z-index: 46;
    display: flex;
    background: var(--shell-2);
    border: 1px solid #3a332e;
    padding: 4px 6px 4px 10px;
  }
  .cmd-search.is-open input, .cmd-search.is-open kbd { display: inline-flex; }
  .cmd-search.is-open input { display: block; }
  .rank-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .score { grid-column: 2 / 3; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .score b { font-size: 22px; }
  .text-link { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .sortbar, .statusline { grid-template-columns: 1fr 1fr; }
  .sortbar { display: grid; }
  .news-row, .delta-row { grid-template-columns: 52px minmax(0, 1fr); }
  .news-row time, .delta-row .mark { grid-column: 2; }
  .subbar-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  main > section { padding: 36px 0; }
  .rank-row { grid-template-columns: 44px minmax(0, 1fr); }
  .text-link { grid-column: 2; grid-row: auto; }
  .quick { display: none; }
  .params li { max-width: 100%; }
}
