/* roulang page: index */
:root {
  --bg: #14110F;
  --bg-a: #1C1814;
  --bg-b: #241E18;
  --ink: #F4E7D4;
  --muted: #B7A690;
  --hot: #FF4E8A;
  --amber: #FFB703;
  --dot: #8CFF6A;
  --line: #3C342C;
  --shadow: 4px 4px 0 #3C342C;
  --radius: 2px;
  --max: 1120px;
  --pad: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 183, 3, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 183, 3, 0.035) 1px, transparent 1px);
  background-size: 8px 8px;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background: repeating-linear-gradient(to bottom, rgba(244, 231, 212, 0.08) 0 1px, transparent 1px 6px);
  mix-blend-mode: soft-light;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--hot); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.35; font-weight: 800; overflow-wrap: break-word; }
h1 { font-size: 46px; margin: 0 0 12px; }
h2 { font-size: 30px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 0.85em; }
::selection { background: var(--hot); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(20, 17, 15, 0.96);
  border-bottom: 2px solid var(--line);
}
.head-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
}
.logo {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--hot);
  border-radius: var(--radius);
  padding: 6px 10px;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 800;
  background: var(--bg-a);
  box-shadow: 4px 4px 0 var(--hot);
  flex: 0 0 auto;
}
.logo:hover { color: var(--amber); text-decoration: none; }
.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  background: var(--bg-b);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
}
.main-nav a:hover { color: var(--amber); text-decoration: underline; }
.main-nav a.active {
  background: var(--hot);
  color: var(--bg);
  border-color: var(--hot);
  box-shadow: var(--shadow);
}
.main-nav a.active:hover { color: var(--bg); text-decoration: none; }
.node-loc {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 8px;
  border: 2px solid var(--line);
  background: var(--bg-b);
  border-radius: var(--radius);
  flex: 0 0 auto;
}
.pin {
  width: 12px;
  height: 12px;
  background: var(--dot);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--bg);
  flex: 0 0 auto;
}
.node-name { color: var(--ink); font-size: 14px; white-space: nowrap; }
.node-btn, .btn, .more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 2px solid var(--bg);
  background: var(--amber);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.node-btn { min-height: 36px; padding: 0 10px; font-size: 13px; background: var(--dot); }
.btn:hover, .node-btn:hover, .more-link:hover {
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 var(--line);
  color: var(--bg);
  text-decoration: none;
}
.btn:active, .node-btn:active, .more-link:active {
  transform: translateY(0);
  box-shadow: 4px 4px 0 var(--line);
}
.btn-main { background: var(--hot); }
.btn-sub { background: var(--amber); }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.badge-age { background: var(--hot); color: var(--bg); border-color: var(--bg); }
.badge-amber { background: var(--amber); color: var(--bg); border-color: var(--bg); }
.badge-dot { background: var(--dot); color: var(--bg); border-color: var(--bg); }
.hero { padding: 72px 0 64px; background: var(--bg-a); border-bottom: 2px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 28px;
  align-items: center;
}
.kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-lead { color: var(--muted); font-size: 17px; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.poster {
  position: relative;
  transform: translate(14px, 18px);
  background: var(--bg-b);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--amber);
  padding: 16px;
  min-height: 360px;
}
.poster-top, .poster-meta, .row-between { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.blocks { display: grid; grid-template-columns: 1.4fr 0.8fr; grid-template-rows: 120px 86px; gap: 8px; margin: 16px 0; }
.blocks i { display: block; border: 2px solid var(--bg); }
.b1 { grid-row: 1 / span 2; background: var(--hot); }
.b2 { background: var(--amber); }
.b3 { background: var(--dot); }
.poster-cap { margin: 0; font-weight: 800; }
.section { padding: var(--pad) 0; border-top: 2px solid var(--line); }
.section:nth-of-type(odd) { background: var(--bg-b); }
.section:nth-of-type(even) { background: var(--bg-a); }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-lead { color: var(--muted); margin: 0; }
.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.score {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-height: 132px;
}
.score strong { display: block; font-size: 36px; line-height: 1.1; color: var(--amber); margin: 8px 0; }
.score span { color: var(--muted); font-size: 14px; }
.matrix {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.85fr;
  grid-auto-rows: minmax(150px, auto);
  gap: 14px;
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  min-height: 150px;
}
.tile:hover { transform: translateY(-2px); color: inherit; text-decoration: none; box-shadow: 2px 2px 0 var(--line); }
.tile p { margin: 0; color: inherit; }
.tile-a { grid-row: span 2; background: var(--hot); color: var(--bg); min-height: 320px; }
.tile-b { background: var(--bg); }
.tile-c { background: #2A241C; }
.tile-d { grid-column: 2 / span 2; background: var(--amber); color: var(--bg); }
.tile-a p, .tile-d p { color: var(--bg); }
.compare-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.pair {
  flex: 1 0 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.pair div { padding: 16px; min-height: 150px; }
.pair-good { background: rgba(140, 255, 106, 0.12); border-right: 2px solid var(--line); }
.pair-bad { background: rgba(255, 78, 138, 0.08); }
.mark { font-weight: 800; color: var(--dot); }
.pair-bad .mark { color: var(--hot); }
.miles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--line); box-shadow: var(--shadow); }
.mile { padding: 18px 16px 20px; background: var(--bg); border-right: 2px solid var(--line); position: relative; }
.mile:last-child { border-right: 0; }
.mile::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: var(--dot);
  border: 2px solid var(--ink);
  margin-bottom: 10px;
}
.mile:nth-child(2)::before { background: var(--amber); }
.mile:nth-child(3)::before { background: var(--hot); }
.mile b { display: block; margin-bottom: 6px; }
.news-list { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.news-card {
  display: block;
  padding: 16px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
.news-card:hover { color: var(--ink); text-decoration: none; border-color: var(--amber); }
.news-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
.date { color: var(--amber); font-size: 13px; font-weight: 800; }
.news-card p, .rel p, .voice p, .scene p, .path-card p { margin: 0; color: var(--muted); }
.more-row { margin-top: 16px; }
.scene-list { display: flex; flex-direction: column; gap: 10px; }
.scene {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg);
  border: 2px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.scene:hover { border-color: var(--hot); color: var(--ink); text-decoration: none; }
.scene h3 { margin: 0; }
.clarity-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; align-items: stretch; }
.swatch {
  border: 2px solid var(--ink);
  background: var(--bg);
  box-shadow: 4px 4px 0 var(--hot);
  padding: 16px;
  min-height: 280px;
}
.swatch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; }
.swatch-grid span { min-height: 110px; border: 2px solid var(--bg); display: flex; align-items: flex-end; padding: 8px; font-weight: 800; color: var(--bg); }
.s1 { background: var(--hot); }
.s2 { background: var(--amber); }
.s3 { background: var(--dot); }
.s4 { background: #C9B59A; }
.legend { display: flex; flex-direction: column; gap: 10px; }
.legend article, .promise, .qa, .faq-item, .day, .path-card, .voice, .rel {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.promise-list, .path-list, .quick-list { display: grid; gap: 12px; }
.promise-list { grid-template-columns: 1.2fr 1fr; }
.promise { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.nail { width: 14px; height: 14px; margin-top: 6px; background: var(--dot); border: 2px solid var(--ink); }
.path-list { grid-template-columns: 1.2fr 0.9fr 0.9fr; }
.addr {
  display: block;
  margin-top: 8px;
  color: var(--amber);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.voice-wall { columns: 3; column-gap: 12px; }
.voice { break-inside: avoid; margin: 0 0 12px; }
.voice b { display: block; color: var(--hot); margin-bottom: 4px; }
.quick-list { grid-template-columns: 1fr 1fr; }
.qa h3 { color: var(--amber); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 0;
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-weight: 800;
}
.pm {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 2px solid var(--amber);
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.pm::before { content: "+"; }
.faq-item.is-on .pm::before { content: "–"; }
.faq-a { display: none; color: var(--muted); margin: 8px 0 0; }
.faq-item.is-on .faq-a { display: block; }
.related-row, .week { display: grid; gap: 12px; }
.related-row { grid-template-columns: repeat(4, 1fr); }
.rel { color: var(--ink); text-decoration: none; display: block; min-height: 160px; }
.rel:hover { border-color: var(--amber); color: var(--ink); text-decoration: none; }
.week-wrap { overflow-x: auto; }
.week { grid-template-columns: repeat(7, minmax(120px, 1fr)); }
.day.is-today { border-color: var(--hot); box-shadow: 4px 4px 0 var(--hot); }
.day b { display: block; color: var(--amber); }
.form-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: start;
}
form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span { font-weight: 800; }
input, select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}
.field.is-bad input, .field.is-bad select { border-color: var(--hot); }
.form-err { color: var(--hot); min-height: 1.4em; margin: 0; }
.ok-note {
  display: none;
  border: 2px solid var(--amber);
  box-shadow: 4px 4px 0 var(--amber);
  background: var(--bg);
  padding: 14px 16px;
  border-radius: var(--radius);
}
.ok-note.is-show { display: block; }
.site-footer {
  background: var(--bg);
  border-top: 2px solid var(--line);
  padding: 36px 0 48px;
}
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.foot-links a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--amber); }
.copyright { color: var(--muted); margin: 12px 0 0; }
@media (max-width: 1024px) {
  h1 { font-size: 36px; }
  .hero-grid, .clarity-wrap, .form-panel, .news-card.wide, .promise-list, .path-list { grid-template-columns: 1fr; }
  .poster { transform: none; }
  .matrix { grid-template-columns: 1fr; }
  .tile-a, .tile-d { grid-row: auto; grid-column: auto; min-height: 160px; }
  .board, .miles, .related-row { grid-template-columns: 1fr 1fr; }
  .mile { border-right: 0; border-bottom: 2px solid var(--line); }
  .voice-wall { columns: 2; }
  .scene { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --pad: 48px; }
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav-toggle { display: inline-flex; }
  .head-top { flex-wrap: wrap; padding: 10px 0; }
  .logo { order: 1; }
  .nav-toggle { order: 2; margin-left: auto; }
  .node-loc { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { border-color: var(--line); background: var(--bg-b); }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero { padding: 40px 0; }
  .news-list, .quick-list, .board, .miles, .related-row, .foot-grid { grid-template-columns: 1fr; }
  .voice-wall { columns: 1; }
  .pair { flex-basis: 86%; }
}
@media (max-width: 520px) {
  h1 { font-size: 28px; }
  .cta-row { flex-direction: column; }
  .btn, .more-link { width: 100%; }
  .score strong { font-size: 30px; }
  .blocks { grid-template-rows: 88px 72px; }
  .node-name { white-space: normal; }
}

/* roulang page: category1 */
:root {
 --bg: #14110F;
 --bg-a: #1C1814;
 --bg-b: #241E18;
 --ink: #F4E7D4;
 --muted: #B7A690;
 --hot: #FF4E8A;
 --amber: #FFB703;
 --dot: #8CFF6A;
 --line: #3C342C;
 --shadow: 4px 4px 0 #3C342C;
 --radius: 2px;
 --max: 1120px;
 --pad: 76px;
}
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
 margin: 0;
 color: var(--ink);
 background-color: var(--bg);
 background-image:
  linear-gradient(rgba(255, 183, 3, 0.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 183, 3, 0.035) 1px, transparent 1px);
 background-size: 8px 8px;
 font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
 font-size: 16px;
 line-height: 1.85;
 min-height: 100vh;
}
body::before {
 content: "";
 position: fixed;
 inset: 0;
 pointer-events: none;
 z-index: 40;
 background: repeating-linear-gradient(to bottom, rgba(244, 231, 212, 0.08) 0 1px, transparent 1px 6px);
 mix-blend-mode: soft-light;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--hot); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header {
 position: sticky;
 top: 0;
 z-index: 30;
 background: rgba(20, 17, 15, 0.96);
 border-bottom: 2px solid var(--line);
}
.head-top {
 display: flex;
 align-items: center;
 gap: 16px;
 padding: 12px 0;
}
.logo {
 display: inline-block;
 color: var(--ink);
 text-decoration: none;
 border: 2px solid var(--hot);
 border-radius: var(--radius);
 padding: 6px 10px;
 line-height: 1.35;
 font-size: 14px;
 font-weight: 800;
 background: var(--bg-a);
 box-shadow: 4px 4px 0 var(--hot);
 flex: 0 0 auto;
}
.logo:hover { color: var(--amber); text-decoration: none; }
.nav-toggle {
 display: none;
 min-height: 44px;
 min-width: 44px;
 padding: 0 14px;
 background: var(--bg-b);
 color: var(--ink);
 border: 2px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
}
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
 color: var(--ink);
 text-decoration: none;
 min-height: 44px;
 padding: 8px 12px;
 display: inline-flex;
 align-items: center;
 border: 2px solid transparent;
 border-radius: var(--radius);
}
.main-nav a:hover { color: var(--amber); text-decoration: underline; }
.main-nav a.active {
 background: var(--hot);
 color: var(--bg);
 border-color: var(--hot);
 box-shadow: var(--shadow);
}
.main-nav a.active:hover { color: var(--bg); text-decoration: none; }
.node-loc {
 margin-left: auto;
 display: flex;
 align-items: center;
 gap: 8px;
 min-height: 44px;
 padding: 4px 8px;
 border: 2px solid var(--line);
 border-radius: var(--radius);
 background: var(--bg-b);
}
.pin {
 width: 12px;
 height: 12px;
 background: var(--hot);
 border: 2px solid var(--ink);
 box-shadow: 2px 2px 0 var(--amber);
 display: inline-block;
 flex: 0 0 auto;
}
.node-name { color: var(--ink); font-size: 13px; font-weight: 800; white-space: nowrap; }
.node-btn, .btn, .more-link, .text-link {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 44px;
 padding: 0 16px;
 border-radius: var(--radius);
 border: 2px solid var(--bg);
 background: var(--amber);
 color: var(--bg);
 font-weight: 800;
 text-decoration: none;
 box-shadow: 4px 4px 0 var(--line);
 transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.node-btn { min-height: 36px; padding: 0 10px; font-size: 13px; background: var(--dot); }
.btn:hover, .node-btn:hover, .more-link:hover, .text-link:hover {
 transform: translateY(-2px);
 box-shadow: 2px 2px 0 var(--line);
 color: var(--bg);
 text-decoration: none;
}
.btn:active, .node-btn:active, .more-link:active, .text-link:active {
 transform: translateY(0);
 box-shadow: 4px 4px 0 var(--line);
}
.btn-main { background: var(--hot); }
.btn-sub { background: var(--amber); }
.badge {
 display: inline-flex;
 align-items: center;
 min-height: 24px;
 padding: 0 8px;
 border: 2px solid var(--ink);
 border-radius: var(--radius);
 background: var(--bg);
 color: var(--ink);
 font-size: 12px;
 font-weight: 800;
 letter-spacing: 0.04em;
}
.badge-age { background: var(--hot); color: var(--bg); border-color: var(--bg); }
.badge-amber { background: var(--amber); color: var(--bg); border-color: var(--bg); }
.badge-dot { background: var(--dot); color: var(--bg); border-color: var(--bg); }
.section { padding: var(--pad) 0; border-top: 2px solid var(--line); }
.section:nth-of-type(odd) { background: var(--bg-b); }
.section:nth-of-type(even) { background: var(--bg-a); }
.section-head { max-width: 760px; margin-bottom: 22px; }
.section-lead { color: var(--muted); margin: 0; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 10px; font-weight: 800; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 0.8em; }
.cat-top { padding: 36px 0 32px; background: var(--bg-a); border-bottom: 2px solid var(--line); }
.cat-head {
 display: grid;
 grid-template-columns: minmax(0, 1fr) 220px;
 gap: 18px;
 align-items: end;
}
.cat-lead { color: var(--muted); max-width: 62ch; margin: 0; }
.kicker-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mini-node {
 display: flex;
 align-items: center;
 gap: 8px;
 min-height: 72px;
 padding: 10px 12px;
 background: var(--bg);
 border: 2px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
}
.mini-node strong { display: block; font-size: 14px; line-height: 1.4; }
.mini-node span { color: var(--muted); font-size: 13px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
 min-height: 44px;
 padding: 0 14px;
 background: var(--bg);
 color: var(--ink);
 border: 2px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 font-weight: 800;
}
.chip:hover { transform: translateY(-2px); box-shadow: 2px 2px 0 var(--line); color: var(--amber); }
.chip:active { transform: translateY(0); box-shadow: var(--shadow); }
.chip.is-on {
 background: var(--hot);
 color: var(--bg);
 border-color: var(--hot);
}
.chip.is-on:hover { color: var(--bg); }
.catalog {
 display: grid;
 grid-template-columns: repeat(12, 1fr);
 gap: 12px;
}
.sheet {
 grid-column: span 4;
 display: flex;
 flex-direction: column;
 gap: 12px;
 padding: 12px;
 background: var(--bg);
 border: 2px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 min-width: 0;
}
.sheet:nth-child(1), .sheet:nth-child(6) { grid-column: span 7; }
.sheet:nth-child(2), .sheet:nth-child(7) { grid-column: span 5; }
.sheet:nth-child(3) { grid-column: span 5; }
.sheet:nth-child(4) { grid-column: span 7; }
.sheet:nth-child(10) { grid-column: span 8; }
.sheet:nth-child(11), .sheet:nth-child(12) { grid-column: span 6; }
.sheet[hidden] { display: none; }
.sheet-visual {
 min-height: 92px;
 border: 2px solid var(--bg);
 display: flex;
 align-items: flex-end;
 justify-content: space-between;
 padding: 8px;
 color: var(--bg);
 font-weight: 800;
}
.sheet:nth-child(3n) .sheet-visual { min-height: 132px; }
.sheet:nth-child(1) .sheet-visual { background: #FF4E8A; }
.sheet:nth-child(2) .sheet-visual { background: #FFB703; }
.sheet:nth-child(3) .sheet-visual { background: #C84B6A; }
.sheet:nth-child(4) .sheet-visual { background: #E07A3D; }
.sheet:nth-child(5) .sheet-visual { background: #8CFF6A; color: #14110F; }
.sheet:nth-child(6) .sheet-visual { background: #FF4E8A; }
.sheet:nth-child(7) .sheet-visual { background: #D98A2B; }
.sheet:nth-child(8) .sheet-visual { background: #F4E7D4; color: #14110F; }
.sheet:nth-child(9) .sheet-visual { background: #FF4E8A; }
.sheet:nth-child(10) .sheet-visual { background: #FFB703; }
.sheet:nth-child(11) .sheet-visual { background: #C84B6A; }
.sheet:nth-child(12) .sheet-visual { background: #8CFF6A; color: #14110F; }
.tag-row, .meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sheet p, .point p, .legend article p, .rel p, .qa p { color: var(--muted); margin: 0; }
.addr {
 margin-top: 8px;
 color: var(--ink);
 font-weight: 800;
 overflow-wrap: anywhere;
}
.sheet-foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.empty-box {
 margin-top: 14px;
 padding: 16px;
 border: 2px dashed var(--amber);
 color: var(--amber);
 background: var(--bg);
}
.point-list, .legend, .rel-grid, .qa-list { display: grid; gap: 12px; }
.point-list { grid-template-columns: 1.3fr 1fr 1fr; }
.point, .legend article, .rel, .qa, .form-panel {
 background: var(--bg);
 border: 2px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 padding: 14px 16px;
}
.point { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.pixel-no {
 width: 36px;
 height: 36px;
 display: grid;
 place-items: center;
 background: var(--hot);
 color: var(--bg);
 border: 2px solid var(--bg);
 font-weight: 800;
}
.legend { grid-template-columns: repeat(3, 1fr); }
.swatch {
 height: 14px;
 margin-bottom: 10px;
 border: 2px solid var(--bg);
}
.swatch-full { background: var(--dot); }
.swatch-gap { background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 16px); }
.swatch-check { background: var(--hot); }
.rel-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.rel {
 display: block;
 color: var(--ink);
 text-decoration: none;
 min-height: 100%;
}
.rel:hover { color: var(--ink); border-color: var(--amber); text-decoration: none; }
.rel time { display: block; color: var(--amber); font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.qa-list { grid-template-columns: 1fr 1fr; }
.qa h3 { color: var(--amber); font-size: 18px; }
.form-wrap {
 display: grid;
 grid-template-columns: 0.9fr 1.2fr;
 gap: 16px;
 align-items: start;
}
.form-panel { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 800; }
input, select {
 width: 100%;
 min-height: 44px;
 background: var(--bg-a);
 border: 2px solid var(--line);
 border-radius: var(--radius);
 padding: 8px 10px;
}
.form-ok {
 margin: 0;
 padding: 12px;
 border: 2px solid var(--amber);
 background: var(--bg-a);
 color: var(--amber);
 box-shadow: var(--shadow);
 font-weight: 800;
}
.site-footer {
 background: var(--bg);
 border-top: 2px solid var(--line);
 padding: 36px 0 48px;
 position: relative;
 z-index: 1;
}
.foot-grid {
 display: grid;
 grid-template-columns: 1.4fr 1fr;
 gap: 20px;
 align-items: start;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.foot-links a {
 color: var(--ink);
 text-decoration: none;
 min-height: 44px;
 display: inline-flex;
 align-items: center;
}
.foot-links a:hover { color: var(--amber); text-decoration: underline; }
.copyright { color: var(--muted); margin: 12px 0 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
 outline: 2px solid var(--amber);
 outline-offset: 2px;
}
@media (max-width: 1024px) {
 h1 { font-size: 34px; }
 .cat-head, .form-wrap, .point-list, .legend, .rel-grid { grid-template-columns: 1fr 1fr; }
 .sheet, .sheet:nth-child(n) { grid-column: span 6; }
 .qa-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
 :root { --pad: 48px; }
 .head-top { flex-wrap: wrap; }
 .nav-toggle { display: inline-flex; align-items: center; }
 .main-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  order: 4;
 }
 .main-nav.is-open { display: flex; }
 .node-loc { order: 3; width: 100%; margin-left: 0; }
 .cat-head, .form-wrap, .point-list, .legend, .rel-grid, .foot-grid { grid-template-columns: 1fr; }
 .sheet, .sheet:nth-child(n) { grid-column: span 12; }
 h1 { font-size: 30px; }
 h2 { font-size: 24px; }
}
@media (max-width: 520px) {
 .container { width: min(var(--max), calc(100% - 28px)); }
 .logo { font-size: 13px; }
 .node-name { white-space: normal; }
 .sheet-foot { align-items: stretch; }
 .text-link, .btn { width: 100%; }
}
