/* roulang page: index */
:root {
  --bg: #F3F6FB;
  --bg-alt: #E7EEF8;
  --card: #FFFFFF;
  --blue: #3E6EA8;
  --blue-deep: #2C527F;
  --ink: #1C2430;
  --muted: #5C6B7A;
  --line: #243044;
  --accent: #C45B78;
  --shadow: 0 10px 28px rgba(36,48,68,.08), 3px 3px 0 rgba(36,48,68,.18);
  --shadow-lg: 0 16px 32px rgba(36,48,68,.12), 5px 5px 0 rgba(36,48,68,.2);
  --radius: 4px;
  --pad: 88px;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; margin: 0 0 12px; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
p { margin: 0 0 14px; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: var(--pad) 0; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.lead { max-width: 760px; color: var(--muted); margin-bottom: 28px; }
.num {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .08em;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 2px;
  padding: 2px 8px;
  font-size: 12px;
  letter-spacing: .08em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  box-shadow: 2px 2px 0 rgba(36,48,68,.18);
  line-height: 1.4;
}
.badge-hot { background: var(--accent); color: #fff; border-color: var(--line); }
.badge-blue { background: var(--blue); color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 2px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(36,48,68,.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 5px 5px 0 rgba(36,48,68,.22); }
.btn:active { transform: translateY(0); box-shadow: 1px 1px 0 rgba(36,48,68,.18); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-text { background: transparent; border-color: transparent; box-shadow: none; color: var(--blue); padding-inline: 8px; }
.btn-text:hover { box-shadow: none; transform: none; text-decoration: underline; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243,246,251,.96);
  border-bottom: 2px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--blue-deep); }
.logo-mark {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 rgba(36,48,68,.18);
}
.site-nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.site-nav a {
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 2px;
  text-decoration: none;
}
.site-nav a:hover { color: var(--blue); text-decoration: underline; }
.site-nav a:focus-visible { outline: 2px solid var(--accent); }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-count { color: var(--accent); font-weight: 700; font-size: 14px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 2px;
  min-height: 40px;
  padding: 6px 12px;
  box-shadow: 2px 2px 0 rgba(36,48,68,.18);
  cursor: pointer;
}
.board {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 28px;
  align-items: stretch;
}
.board-copy { padding: 12px 8px 12px 0; }
.subhead { font-size: 18px; color: var(--blue-deep); margin-bottom: 16px; font-weight: 700; }
.board-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.metric {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
  min-height: 112px;
}
.metric span { display: block; color: var(--muted); font-size: 14px; }
.metric b { display: block; margin-top: 8px; font-size: 32px; color: var(--blue-deep); }
.countbar {
  margin-top: 14px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.countbar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.countbar-top b { color: var(--accent); font-size: 22px; }
.countbar-track { margin-top: 10px; height: 10px; border: 2px solid var(--line); background: var(--bg-alt); }
.countbar-track span { display: block; height: 100%; width: 46%; background: var(--accent); }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.matrix {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.tile {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.tile:hover { box-shadow: var(--shadow-lg); border-color: var(--blue); }
.matrix-main { grid-column: span 7; grid-row: span 2; min-height: 280px; }
.matrix .tile:nth-child(2),
.matrix .tile:nth-child(3) { grid-column: span 5; }
.matrix .tile:nth-child(4),
.matrix .tile:nth-child(5) { grid-column: span 6; }
.corner {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--blue);
  color: #fff;
  border-left: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 2px 8px;
  font-size: 12px;
  letter-spacing: .06em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-col {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 2px solid var(--bg-alt);
  min-height: 64px;
}
.compare-note {
  margin-top: 16px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.timeline { list-style: none; margin: 0; padding: 8px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line); }
.tl-node { position: relative; padding-top: 42px; }
.tl-node i {
  position: absolute; top: 14px; left: 0; width: 16px; height: 16px;
  background: var(--blue); border: 2px solid var(--line); box-shadow: 2px 2px 0 rgba(36,48,68,.18);
}
.tl-node strong { display: block; font-size: 16px; }
.tl-node span { display: block; color: var(--muted); font-size: 14px; }
.news-list { border-top: 2px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 84px;
  padding: 16px 4px;
  border-bottom: 2px solid var(--line);
  background: transparent;
}
.news-item h3 { font-size: 18px; margin: 0 0 4px; }
.news-item h3 a { color: var(--ink); }
.news-item p { margin: 0; color: var(--muted); font-size: 14px; }
.date-badge { justify-content: center; min-width: 92px; }
.guard-list { display: grid; gap: 12px; }
.guard {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  min-height: 84px;
}
.px-ico {
  width: 42px; height: 42px;
  border: 2px solid var(--line);
  background:
    linear-gradient(var(--line), var(--line)) center/18px 2px no-repeat,
    linear-gradient(var(--line), var(--line)) center/2px 18px no-repeat,
    var(--bg-alt);
  box-shadow: 2px 2px 0 rgba(36,48,68,.18);
}
.quick { display: grid; gap: 12px; }
.quick-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--line);
  border-left: 8px solid var(--accent);
  border-radius: 2px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.quick-item strong { font-size: 16px; }
.quick-item p { margin: 0; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
}
.faq-state { color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .06em; }
.faq-a { padding: 0 18px 16px; color: var(--muted); display: none; }
.faq-item.is-open .faq-a { display: block; }
.form-wrap {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 20px;
  align-items: start;
}
form {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 14px; }
input, select, textarea {
  width: 100%;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid var(--accent); }
.is-error { border-color: var(--accent) !important; }
.form-side {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.success {
  margin-top: 12px;
  padding: 12px 14px;
  border: 2px solid var(--blue);
  background: var(--bg-alt);
  color: var(--blue-deep);
}
.topic {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 22px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chip {
  border: 2px solid var(--line);
  background: var(--bg);
  border-radius: 2px;
  padding: 10px 12px;
  box-shadow: 2px 2px 0 rgba(36,48,68,.18);
  min-width: 46%;
}
.chip b { display: block; }
.chip span { color: var(--muted); font-size: 14px; }
.scenes { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 16px; }
.scene {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  min-height: 220px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.scene:hover { box-shadow: var(--shadow-lg); border-color: var(--blue); }
.scene a { color: var(--ink); font-weight: 700; }
.plays {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: start;
}
.play {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.play:hover { box-shadow: var(--shadow-lg); border-color: var(--blue); }
.play:nth-child(1) { grid-column: span 5; }
.play:nth-child(2) { grid-column: span 4; }
.play:nth-child(3) { grid-column: span 3; }
.play:nth-child(4) { grid-column: span 4; }
.play:nth-child(5) { grid-column: span 5; }
.play:nth-child(6) { grid-column: span 3; }
.pixel-frame {
  height: 76px;
  margin-bottom: 12px;
  border: 2px solid var(--line);
  background-color: var(--bg-alt);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 6px, rgba(36,48,68,.16) 6px, rgba(36,48,68,.16) 8px);
}
.play:nth-child(1) .pixel-frame { height: 120px; }
.play:nth-child(3) .pixel-frame { height: 140px; }
.play:nth-child(6) .pixel-frame { height: 108px; }
.play h3 { font-size: 18px; }
.play h3 a { color: var(--ink); }
.play p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 12px;
  min-height: 168px;
}
.day b { display: block; margin-bottom: 8px; }
.slot { display: block; font-size: 14px; padding: 6px 0; border-top: 2px solid var(--bg-alt); }
.slot em { font-style: normal; color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; }
.reviews { display: grid; grid-template-columns: 1.2fr .8fr 1fr .9fr 1.1fr; gap: 12px; align-items: start; }
.review {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.review:nth-child(2), .review:nth-child(4) { margin-top: 22px; }
.review cite { display: block; font-style: normal; font-weight: 700; margin-bottom: 6px; }
.review span { display: block; color: var(--blue); font-size: 13px; margin-bottom: 8px; }
.review p { margin: 0; color: var(--muted); font-size: 14px; }
.closing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.closing .countbar { margin: 0; min-width: 240px; }
.site-footer { background: var(--bg-alt); border-top: 2px solid var(--line); padding: 48px 0 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 24px; }
.site-footer a { color: var(--ink); }
.site-footer h2 { font-size: 18px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin: 8px 0; }
.copy { margin-top: 28px; padding-top: 14px; border-top: 2px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 1024px) {
  h1 { font-size: 34px; }
  .board, .form-wrap, .topic { grid-template-columns: 1fr; }
  .matrix-main { grid-column: span 12; grid-row: auto; }
  .matrix .tile:nth-child(n) { grid-column: span 6; }
  .scenes { grid-template-columns: 1fr 1fr; }
  .scenes .scene:last-child { grid-column: 1 / -1; }
  .plays .play:nth-child(n) { grid-column: span 6; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .review:nth-child(n) { margin-top: 0; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 2px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
  }
  .site-nav.is-open { display: flex; }
  .nav-bar { flex-wrap: wrap; position: static; }
  .site-header { position: sticky; }
  .nav-tools { width: 100%; order: 3; }
  .nav-tools .btn { flex: 1; }
  .nav-count { display: none; }
  .board, .compare, .scenes, .week, .reviews, .fields, .foot-grid, .quick-item, .closing {
    grid-template-columns: 1fr;
    display: grid;
  }
  .matrix .tile, .plays .play { grid-column: span 12; }
  .news-item { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl-node { padding: 0 0 18px 28px; }
  .tl-node i { top: 4px; }
  .section .btn, .closing .btn { width: 100%; }
  .closing .countbar { min-width: 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  body { font-size: 15px; }
  .container { width: min(var(--max), calc(100% - 28px)); }
  .tile, .metric, form, .topic { padding: 16px; }
  .metric b { font-size: 26px; }
  .tile, .play, .day, .review, .compare-col { box-shadow: 0 8px 18px rgba(36,48,68,.08), 2px 2px 0 rgba(36,48,68,.18); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile, .play, .scene { transition: none; }
}

/* roulang page: category1 */
:root {
 --bg: #F3F6FB;
 --bg-alt: #E7EEF8;
 --card: #FFFFFF;
 --blue: #3E6EA8;
 --blue-deep: #2C527F;
 --ink: #1C2430;
 --muted: #5C6B7A;
 --line: #243044;
 --accent: #C45B78;
 --shadow: 0 10px 28px rgba(36,48,68,.08), 3px 3px 0 rgba(36,48,68,.18);
 --shadow-lg: 0 16px 32px rgba(36,48,68,.12), 5px 5px 0 rgba(36,48,68,.2);
 --radius: 4px;
 --pad: 88px;
 --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 background: var(--bg);
 color: var(--ink);
 font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
 font-size: 16px;
 line-height: 1.75;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 2px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 40px; line-height: 1.25; font-weight: 700; }
h2 { font-size: 28px; line-height: 1.25; font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 18px; line-height: 1.25; font-weight: 700; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: var(--pad) 0; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.lead { max-width: 760px; color: var(--muted); margin-bottom: 22px; }
.num, .slot, .nav-count, .faq-state, .step-no {
 font-family: ui-monospace, Menlo, Consolas, monospace;
 letter-spacing: .08em;
}
.badge {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 border: 2px solid var(--line);
 background: var(--card);
 color: var(--ink);
 border-radius: 2px;
 padding: 2px 8px;
 font-size: 12px;
 letter-spacing: .08em;
 font-family: ui-monospace, Menlo, Consolas, monospace;
 box-shadow: 2px 2px 0 rgba(36,48,68,.18);
 line-height: 1.4;
}
.badge-hot { background: var(--accent); color: #fff; border-color: var(--line); }
.badge-blue { background: var(--blue); color: #fff; }
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 min-height: 44px;
 padding: 8px 18px;
 border-radius: 2px;
 border: 2px solid var(--line);
 background: var(--card);
 color: var(--ink);
 cursor: pointer;
 text-decoration: none;
 box-shadow: 3px 3px 0 rgba(36,48,68,.18);
 transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 5px 5px 0 rgba(36,48,68,.22); }
.btn:active { transform: translateY(0); box-shadow: 1px 1px 0 rgba(36,48,68,.18); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-text { background: transparent; border-color: transparent; box-shadow: none; color: var(--blue); padding-inline: 8px; }
.btn-text:hover { box-shadow: none; transform: none; text-decoration: underline; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.site-header {
 position: sticky;
 top: 0;
 z-index: 30;
 background: rgba(243,246,251,.96);
 border-bottom: 2px solid var(--line);
}
.nav-bar {
 display: flex;
 align-items: center;
 gap: 20px;
 min-height: 74px;
}
.logo {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 color: var(--ink);
 font-weight: 700;
 font-size: 18px;
 text-decoration: none;
 white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--blue-deep); }
.logo-mark {
 width: 8px;
 height: 8px;
 background: var(--accent);
 border: 2px solid var(--line);
 box-shadow: 2px 2px 0 rgba(36,48,68,.18);
 flex: 0 0 auto;
}
.site-nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.site-nav a {
 color: var(--ink);
 padding: 8px 10px;
 border-radius: 2px;
 text-decoration: none;
}
.site-nav a:hover { color: var(--blue); text-decoration: underline; }
.site-nav a.is-active {
 background: var(--card);
 border: 2px solid var(--line);
 box-shadow: 2px 2px 0 rgba(36,48,68,.18);
 color: var(--blue-deep);
 font-weight: 700;
 text-decoration: none;
}
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-count { color: var(--accent); font-weight: 700; font-size: 14px; }
.nav-toggle {
 display: none;
 margin-left: auto;
 background: var(--card);
 border: 2px solid var(--line);
 border-radius: 2px;
 min-height: 40px;
 padding: 6px 12px;
 box-shadow: 2px 2px 0 rgba(36,48,68,.18);
 cursor: pointer;
}
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.crumb a { color: var(--blue-deep); }
.cat-head {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto;
 gap: 28px;
 align-items: end;
}
.cat-side {
 display: flex;
 flex-direction: column;
 align-items: flex-end;
 gap: 10px;
 min-width: 180px;
}
.cat-count {
 background: var(--card);
 border: 2px solid var(--line);
 border-radius: 2px;
 box-shadow: var(--shadow);
 padding: 12px 16px;
 text-align: right;
}
.cat-count b {
 display: block;
 font-size: 28px;
 line-height: 1.1;
 font-family: ui-monospace, Menlo, Consolas, monospace;
 letter-spacing: .06em;
 color: var(--blue-deep);
}
.cat-count span { color: var(--muted); font-size: 14px; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.play-list { display: grid; gap: 12px; }
.play-row {
 display: grid;
 grid-template-columns: 128px minmax(0, 1fr) 168px;
 gap: 16px;
 align-items: center;
 min-height: 104px;
 padding: 16px 18px;
 background: var(--card);
 border: 2px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 transition: box-shadow .15s ease, border-color .15s ease;
}
.play-row:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.state-block {
 min-height: 72px;
 border: 2px solid var(--line);
 border-radius: 2px;
 background:
  repeating-linear-gradient(-45deg, rgba(62,110,168,.08) 0 6px, transparent 6px 12px),
  var(--bg);
 display: flex;
 align-items: flex-end;
 padding: 8px;
}
.play-row h3 { margin-bottom: 6px; font-size: 20px; }
.play-row h3 a { color: var(--ink); }
.play-row h3 a:hover { color: var(--blue); }
.play-copy { color: var(--muted); font-size: 14px; }
.play-copy p + p { margin-top: 2px; }
.slot { text-align: right; font-weight: 700; color: var(--blue-deep); font-size: 18px; }
.slot small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; letter-spacing: .04em; }
.list-more { margin-top: 18px; }
.scope-grid {
 display: grid;
 grid-template-columns: 7fr 5fr;
 gap: 18px;
 align-items: stretch;
}
.scope-stack { display: grid; gap: 12px; }
.scope-line, .scope-note, .pick-item, .rhythm-card, .step, .notice {
 background: var(--card);
 border: 2px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
}
.scope-line { padding: 20px 22px; }
.scope-line b { display: block; margin-bottom: 6px; font-size: 18px; }
.scope-line p { color: var(--muted); }
.scope-note {
 padding: 24px;
 border-left: 8px solid var(--accent);
 background:
  linear-gradient(180deg, rgba(196,91,120,.08), transparent 42%),
  var(--card);
}
.scope-note .badge { margin-bottom: 12px; }
.pick-list { display: grid; gap: 0; border-top: 2px solid var(--line); }
.pick-item {
 display: grid;
 grid-template-columns: 88px minmax(0, 1fr) auto;
 gap: 16px;
 align-items: center;
 min-height: 78px;
 padding: 14px 8px;
 border: 0;
 border-bottom: 2px solid var(--line);
 border-radius: 0;
 box-shadow: none;
 background: transparent;
}
.pick-item h3 { font-size: 18px; margin-bottom: 4px; }
.pick-item h3 a { color: var(--ink); }
.pick-item p { color: var(--muted); font-size: 14px; }
.rhythm-grid {
 display: grid;
 grid-template-columns: 1.35fr 1fr .9fr;
 gap: 16px;
}
.rhythm-card { padding: 22px; min-height: 210px; }
.rhythm-card:first-child { background: var(--card); }
.rhythm-card .badge { margin-bottom: 14px; }
.rhythm-card p { color: var(--muted); margin-top: 8px; }
.ask { margin: 0; display: grid; gap: 12px; }
.ask dt {
 font-weight: 700;
 padding: 14px 18px 0;
 background: var(--card);
 border: 2px solid var(--line);
 border-bottom: 0;
 border-radius: 4px 4px 0 0;
}
.ask dd {
 margin: 0;
 padding: 4px 18px 14px;
 background: var(--card);
 border: 2px solid var(--line);
 border-top: 0;
 border-radius: 0 0 4px 4px;
 box-shadow: var(--shadow);
 color: var(--muted);
}
.step-bar {
 display: grid;
 grid-template-columns: 1.1fr 1fr 1.15fr auto;
 gap: 14px;
 align-items: stretch;
}
.step { padding: 20px; position: relative; }
.step-no {
 display: inline-block;
 margin-bottom: 8px;
 color: var(--accent);
 font-weight: 700;
}
.step p { color: var(--muted); font-size: 14px; }
.step-action {
 display: flex;
 align-items: flex-end;
}
.notice {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 20px;
 padding: 22px 24px;
 border-left: 8px solid var(--blue);
}
.notice p { color: var(--muted); margin-top: 6px; max-width: 720px; }
.site-footer {
 background: var(--bg-alt);
 border-top: 2px solid var(--line);
 padding: 48px 0 28px;
}
.foot-grid {
 display: grid;
 grid-template-columns: 1.4fr .8fr .8fr;
 gap: 28px;
}
.foot-grid h2 { font-size: 18px; margin-bottom: 0; }
.foot-grid p { color: var(--muted); margin-top: 12px; }
.foot-links { list-style: none; margin: 12px 0 0; padding: 0; }
.foot-links li { min-height: 36px; }
.foot-links a { color: var(--ink); }
.foot-links a:hover { color: var(--blue); }
.copy {
 margin-top: 28px;
 color: var(--muted);
 font-size: 14px;
 border-top: 2px solid var(--line);
 padding-top: 16px;
}
@media (max-width: 1024px) {
 .cat-head, .scope-grid, .rhythm-grid, .step-bar { grid-template-columns: 1fr 1fr; }
 .step-action { grid-column: 1 / -1; }
 .step-action .btn { width: 100%; }
 .play-row { grid-template-columns: 112px minmax(0, 1fr); }
 .slot { grid-column: 2; text-align: left; }
 .nav-bar { gap: 12px; }
 .nav-count { display: none; }
}
@media (max-width: 768px) {
 :root { --pad: 64px; }
 .nav-bar { flex-wrap: wrap; min-height: 64px; padding: 10px 0; position: relative; }
 .logo { order: 1; }
 .nav-tools { order: 2; margin-left: 0; }
 .nav-toggle { display: inline-flex; order: 3; }
 .site-nav {
  display: none;
  order: 4;
  flex: 1 0 100%;
  flex-direction: column;
  align-items: stretch;
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px;
  margin-bottom: 10px;
 }
 .site-nav.is-open { display: flex; }
 .site-nav a { padding: 12px; }
 .cat-head, .scope-grid, .rhythm-grid, .step-bar, .foot-grid, .notice, .pick-item {
  grid-template-columns: 1fr;
 }
 .cat-side, .status-row { align-items: flex-start; justify-content: flex-start; }
 .cat-count { text-align: left; }
 .play-row { grid-template-columns: 1fr; }
 .slot { grid-column: auto; }
 .notice { align-items: flex-start; }
 .btn, .notice .btn, .step-action .btn { width: 100%; }
}
@media (max-width: 480px) {
 :root { --pad: 52px; }
 h1 { font-size: 30px; }
 h2 { font-size: 24px; }
 .container { width: min(var(--max), calc(100% - 28px)); }
 .play-row, .scope-line, .scope-note, .rhythm-card, .step, .notice, .cat-count {
  box-shadow: 0 8px 18px rgba(36,48,68,.08), 2px 2px 0 rgba(36,48,68,.18);
 }
 .nav-tools .btn { min-height: 40px; padding-inline: 10px; font-size: 14px; }
}
