/* roulang page: index */
:root {
  --primary: #B23DFF;
  --mint: #1FCBAA;
  --apricot: #FF9F43;
  --ink: #24182F;
  --muted: #5C4A68;
  --paper: #F4EFE6;
  --apricot-bg: #F8E4D2;
  --card: #FFF9F2;
  --night: #161022;
  --line: #2A2140;
  --soft: #F3D9FF;
  --mint-soft: #D7F7F0;
  --apricot-soft: #FFE4C8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 6px 6px 0 var(--line);
  --max: 1120px;
  --pad: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
button, input, textarea { font-family: inherit; color: var(--ink); }
button { cursor: pointer; }
::selection { background: var(--primary); color: #fff; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--pad) 0; }
.section-paper { background: var(--paper); }
.section-apricot { background: var(--apricot-bg); }
.section-card { background: var(--card); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2, .hero-copy h1, .card h3, .dex-meta strong {
  font-weight: 800;
  letter-spacing: 0;
}
h1 { font-size: 50px; line-height: 1.18; font-weight: 800; }
h2 { font-size: 30px; line-height: 1.3; font-weight: 800; }
h3 { font-size: 19px; line-height: 1.4; font-weight: 700; }
.dot, .dot-hot, .dot-purple {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
  vertical-align: 2px;
}
.dot { background: var(--mint); }
.dot-hot { background: var(--apricot); }
.dot-purple { background: var(--primary); }
.section-desc { margin-top: 12px; color: var(--ink); font-size: 16.5px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.7; }
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.logo { font-size: 22px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--primary);
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line); flex: none;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid transparent; font-weight: 700; color: var(--ink);
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-links a:hover { border-color: var(--line); }
.nav-links a:focus-visible, .btn:focus-visible, .tag:focus-visible, .logo:focus-visible, .text-link:focus-visible, .faq-q:focus-visible, .nav-toggle:focus-visible, .nav-close:focus-visible {
  outline: 2px solid var(--mint); outline-offset: 3px;
}
.nav-links a.active {
  background: var(--primary); color: #fff; border-color: var(--line); box-shadow: 3px 3px 0 var(--line);
}
.nav-toggle, .nav-close {
  display: none; min-width: 44px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--card);
  box-shadow: var(--shadow); font-weight: 700;
}
.nav-panel {
  display: none; position: fixed; inset: 0; z-index: 40; background: var(--night); color: var(--paper);
  padding: 22px 20px 32px; flex-direction: column; gap: 12px;
}
.nav-panel.open { display: flex; }
.nav-panel-top { display: flex; justify-content: space-between; align-items: center; }
.nav-panel .panel-logo { color: #fff; font-weight: 800; font-size: 20px; }
.nav-close { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #fff; border-color: var(--mint); }
.nav-panel a {
  display: flex; align-items: center; min-height: 52px; padding: 0 8px;
  border-bottom: 2px solid #3A3154; color: #fff; font-size: 20px; font-weight: 700;
}
.nav-panel a.current { color: var(--mint); }
.hero { padding: 56px 0 72px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 36px; align-items: center; }
.lead { margin-top: 14px; font-size: 18px; font-weight: 700; }
.hero-text { margin-top: 14px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--primary); color: #fff;
  font-weight: 700; box-shadow: var(--shadow); appearance: none; -webkit-appearance: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--line); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--ink); }
.dex {
  background: var(--night); color: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.dex-top, .card-top, .badge-row, .tag-row, .assure-row, .hero-actions, .cta-row, .foot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.dex-top { justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dex-art {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  border: 2px solid var(--mint); background: #241433;
}
.blob { position: absolute; border: 2px solid var(--line); }
.b1 { width: 46%; height: 72%; left: 8%; top: 14%; background: var(--primary); border-radius: 28px 28px 12px 40px; transform: rotate(-8deg); }
.b2 { width: 34%; height: 38%; right: 10%; top: 16%; background: var(--mint); border-radius: 18px; }
.b3 { width: 42%; height: 22%; right: 8%; bottom: 12%; background: var(--apricot); border-radius: 999px; }
.dex-meta { margin-top: 14px; display: grid; gap: 4px; }
.dex-meta strong { font-size: 18px; }
.dex-meta p { color: #E7DDF2; font-size: 14px; }
.matrix { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, .85fr); grid-template-areas: "wide wide side" "slot mobile side" "info info side"; gap: 16px; }
.area-wide { grid-area: wide; }
.area-slot { grid-area: slot; }
.area-mobile { grid-area: mobile; }
.area-info { grid-area: info; }
.area-side { grid-area: side; }
.card, .side-card, .topic-entry, .faq-item, .notice-item, .partner, .step, .news-feature {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card, .side-card, .news-feature { padding: 16px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card:hover, .side-card:hover, .news-feature:hover, .topic-entry:hover, .partner:hover {
  border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translate(-1px, -1px);
}
.swatch { margin: 12px 0; border-radius: 14px; border: 2px solid var(--line); min-height: 92px; }
.swatch-wide { aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--primary) 0 42%, var(--apricot) 42% 70%, var(--mint) 70% 100%); }
.swatch-mint { background: var(--mint); min-height: 74px; }
.swatch-apricot { background: var(--apricot); min-height: 74px; }
.swatch-purple { background: var(--soft); min-height: 74px; }
.card p, .news-list p, .step p, .scene-card p, .notice-item p { margin-top: 8px; }
.card-top { align-items: center; justify-content: space-between; margin-bottom: 8px; }
.badge, .tag {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 12px;
  border-radius: 999px; border: 2px solid var(--line); font-size: 13px; font-weight: 700; line-height: 1.2;
}
.badge { background: var(--soft); color: var(--ink); }
.badge-mint { background: var(--mint-soft); }
.badge-hot { background: var(--apricot-soft); }
.badge-night { background: var(--night); color: #fff; }
.tag { min-height: 44px; background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--line); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tag:hover { border-color: var(--primary); transform: translate(-1px, -1px); }
.tag:active { transform: none; box-shadow: 0 0 0 var(--line); }
.tag-mint { background: var(--mint-soft); }
.tag-hot { background: var(--apricot-soft); }
.tag-purple { background: var(--soft); }
.text-link { color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.section-desc a, .faq-a a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.side-list li { border-left: 4px solid var(--primary); padding: 10px 12px; margin-bottom: 10px; background: #fffdf9; }
.side-list a { display: flex; min-height: 44px; align-items: center; font-weight: 700; }
.side-card h3 { margin-bottom: 12px; }
.stat-board {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--night); color: var(--paper);
  border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 18px 14px; border-right: 2px solid #3A3154; min-height: 124px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 32px; line-height: 1.1; color: var(--mint); font-weight: 800; }
.stat span { display: block; margin-top: 6px; font-weight: 700; }
.stat small { display: block; margin-top: 4px; color: #D9CEE6; font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { padding: 16px; position: relative; }
.step-no {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--mint); border: 2px solid var(--line); font-weight: 800; margin-bottom: 10px;
}
.wall { display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 16px; grid-auto-flow: dense; align-items: stretch; }
.card.wide { grid-column: span 2; }
.card.tall { min-height: 280px; }
.frame {
  margin-top: 12px; border: 2px solid var(--line); border-radius: 14px; min-height: 120px; position: relative; overflow: hidden;
}
.frame-a { background: var(--primary); aspect-ratio: 16 / 8; }
.frame-b { background: var(--mint); min-height: 180px; }
.frame-c { background: var(--apricot); aspect-ratio: 16 / 9; }
.frame i { position: absolute; border: 2px solid var(--line); background: var(--card); }
.frame-a i { width: 38%; height: 46%; right: 8%; bottom: 12%; border-radius: 16px; background: var(--apricot); }
.frame-b i { width: 70%; height: 18%; left: 10%; top: 18%; border-radius: 999px; background: var(--night); }
.frame-c i { width: 28%; height: 60%; left: 12%; top: 18%; border-radius: 14px; background: var(--primary); }
.tag-row { margin-top: 4px; }
.scene-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 16px; }
.scene-card {
  flex: 0 0 340px; scroll-snap-align: start; background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-height: 230px;
}
.scene-card:nth-child(2) { margin-top: 28px; }
.scene-card:nth-child(3) { margin-top: 10px; }
.scene-block { height: 92px; border-radius: 14px; border: 2px solid var(--line); margin: 12px 0; }
.news-grid, .topic-grid, .cta-head, .foot-grid { display: grid; gap: 20px; }
.news-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.news-list li { padding: 14px 0 14px 14px; border-left: 4px solid var(--apricot); border-bottom: 2px solid #eadfce; }
.news-list time, .news-feature time { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); }
.news-list h3 { font-size: 18px; margin: 4px 0; }
.news-feature { background: var(--night); color: var(--paper); }
.news-feature .muted, .news-feature time { color: #E4D8F0; }
.news-feature .text-link { color: var(--mint); }
.topic-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; }
.topic-entry {
  display: grid; gap: 8px; margin-top: 18px; padding: 18px; color: var(--ink); min-height: 148px;
  background: var(--soft);
}
.topic-entry strong { font-size: 28px; font-weight: 800; }
.partner-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.partner { min-height: 84px; min-width: 148px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.shape { width: 28px; height: 28px; border: 2px solid var(--line); flex: none; }
.shape-sq { background: var(--primary); border-radius: 8px; }
.shape-cir { background: var(--mint); border-radius: 50%; }
.shape-pill { background: var(--apricot); border-radius: 999px; width: 36px; }
.notice-grid { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, .8fr)); gap: 14px; }
.notice-item { padding: 16px; }
.geo { width: 18px; height: 18px; display: inline-block; border: 2px solid var(--line); margin-right: 6px; vertical-align: -3px; }
.geo-c { border-radius: 50%; background: var(--mint); }
.geo-s { background: var(--apricot); }
.geo-d { background: var(--primary); transform: rotate(45deg); }
.faq-item { margin-bottom: 12px; background: var(--card); }
.faq-item.open { background: #F6E2D2; }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; box-shadow: none; min-height: 56px;
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 800; font-size: 17px;
}
.plus { width: 22px; height: 22px; position: relative; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--ink); }
.plus::before { width: 14px; height: 2px; left: 4px; top: 10px; }
.plus::after { width: 2px; height: 14px; left: 10px; top: 4px; transition: opacity .15s ease; }
.faq-item.open .plus::after { opacity: 0; }
.faq-a { display: none; padding: 0 16px 16px; }
.faq-item.open .faq-a { display: block; }
.assure-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card);
}
.assure-bar div { padding: 16px; border-right: 2px solid var(--line); }
.assure-bar div:last-child { border-right: 0; }
.assure-bar strong { display: block; margin-bottom: 4px; }
.cta-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-bottom: 18px; }
.note-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; }
input, textarea {
  width: 100%; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: 12px 14px; min-height: 44px; box-shadow: var(--shadow); font-size: 16px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--primary); outline: 2px solid var(--mint); outline-offset: 2px; }
.is-error { border-color: var(--apricot) !important; }
.form-msg { min-height: 28px; font-weight: 700; }
.form-msg.warn { color: #9A4E12; }
.site-footer { background: var(--night); color: var(--paper); border-top: 2px solid var(--line); padding: 48px 0 28px; }
.foot-grid { grid-template-columns: 1.3fr .8fr .9fr; }
.site-footer h2 { font-size: 22px; }
.site-footer a { color: #fff; display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:hover { color: var(--mint); }
.site-footer .muted { color: #D5C9E4; }
.foot-title { font-weight: 800; margin-bottom: 8px; }
.legal { margin-top: 26px; padding-top: 14px; border-top: 2px solid #3A3154; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.domain-line { font-size: 13px; color: #BBA9CE; }
@media (max-width: 1024px) {
  :root { --pad: 48px; }
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .hero-grid, .news-grid, .topic-grid { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 1fr 1fr; grid-template-areas: "wide wide" "slot mobile" "info side"; }
  .stat-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4), .stat:nth-child(5) { border-top: 2px solid #3A3154; }
  .wall { grid-template-columns: 1fr 1fr; }
  .card.wide, .card.tall { grid-column: auto; min-height: 0; }
  .notice-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a { padding: 0 10px; }
  .logo { font-size: 18px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding: 36px 0 48px; }
  .matrix { grid-template-columns: 1fr; grid-template-areas: "wide" "slot" "mobile" "info" "side"; }
  .steps { grid-template-columns: 1fr; border-left: 2px solid var(--line); margin-left: 10px; gap: 0; }
  .step { border-radius: 0 18px 18px 0; box-shadow: none; border-left: 0; margin: 0 0 12px 12px; }
  .step::before {
    content: ""; position: absolute; left: -18px; top: 22px; width: 12px; height: 12px;
    background: var(--primary); border: 2px solid var(--line); border-radius: 50%;
  }
  .stat-board { grid-template-columns: 1fr 1fr; }
  .stat { border-top: 2px solid #3A3154; border-right: 2px solid #3A3154; }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
  .stat:nth-child(2n) { border-right: 0; }
  .notice-grid, .assure-bar, .note-form, .cta-head, .foot-grid { grid-template-columns: 1fr; }
  .assure-bar div { border-right: 0; border-bottom: 2px solid var(--line); }
  .assure-bar div:last-child { border-bottom: 0; }
  .scene-card, .scene-card:nth-child(2), .scene-card:nth-child(3) { margin-top: 0; flex-basis: 82%; }
}
@media (max-width: 520px) {
  :root { --pad: 36px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .container { padding: 0 16px; }
  .wall, .notice-grid { grid-template-columns: 1fr; }
  .logo { font-size: 16px; }
  .hero-actions .btn, .cta-head .btn { width: 100%; }
}
@media (max-width: 480px) {
  .stat b { font-size: 28px; }
  .topic-entry strong { font-size: 24px; }
  .dex-top { align-items: flex-start; }
}

/* roulang page: category1 */
:root {
  --primary: #B23DFF;
  --mint: #1FCBAA;
  --apricot: #FF9F43;
  --ink: #24182F;
  --muted: #5C4A68;
  --paper: #F4EFE6;
  --apricot-bg: #F8E4D2;
  --card: #FFF9F2;
  --night: #161022;
  --line: #2A2140;
  --soft: #F3D9FF;
  --mint-soft: #D7F7F0;
  --apricot-soft: #FFE4C8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 6px 6px 0 var(--line);
  --max: 1120px;
  --pad: 72px;
}
/* roulang page: category1 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
button, input, textarea { font-family: inherit; color: var(--ink); }
button { cursor: pointer; appearance: none; -webkit-appearance: none; }
h1, h2, h3, p { overflow-wrap: break-word; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--pad) 0; }
.section-paper { background: var(--paper); }
.section-apricot { background: var(--apricot-bg); }
.section-card { background: var(--card); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2, .cat-head h1, .dex-card h3, .news-card h3, .step h3 {
  font-weight: 800;
  letter-spacing: 0;
}
.section-head h2, .back-copy h2, .strip-title {
  font-size: 30px;
  line-height: 1.3;
  margin: 0;
}
.section-desc { margin: 12px 0 0; color: var(--ink); font-size: 16.5px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.7; }
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.logo { font-size: 22px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--primary);
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line); flex: none;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid transparent; font-weight: 700; color: var(--ink);
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-links a:hover { border-color: var(--line); }
.nav-links a:focus-visible, .btn:focus-visible, .tag:focus-visible, .logo:focus-visible, .text-link:focus-visible, .faq-q:focus-visible, .nav-toggle:focus-visible, .nav-close:focus-visible, .news-card:focus-visible {
  outline: 2px solid var(--mint); outline-offset: 3px;
}
.nav-links a.active {
  background: var(--primary); color: #fff; border-color: var(--line); box-shadow: 3px 3px 0 var(--line);
}
.nav-toggle {
  display: none; min-width: 44px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--card);
  box-shadow: var(--shadow); font-weight: 700;
}
.nav-panel {
  display: none; position: fixed; inset: 0; z-index: 40; background: var(--night); color: var(--paper);
  padding: 22px 20px 32px; flex-direction: column; gap: 12px;
}
.nav-panel.open { display: flex; }
.nav-panel-top { display: flex; justify-content: space-between; align-items: center; }
.nav-panel .panel-logo { color: #fff; font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; gap: 8px; }
.nav-close {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: #fff; border: 2px solid var(--mint); font-weight: 700;
}
.nav-panel a {
  display: flex; align-items: center; min-height: 52px; padding: 0 8px;
  border-bottom: 2px solid #3A3154; color: #fff; font-size: 20px; font-weight: 700;
}
.nav-panel a.current { color: var(--mint); }
.cat-head { padding: 36px 0 32px; }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--primary); }
.cat-head h1 { margin: 0; font-size: 50px; line-height: 1.15; }
.lead { margin: 14px 0 0; font-size: 18px; font-weight: 700; max-width: 720px; }
.badge-row, .tag-row, .hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-row { margin-top: 18px; }
.badge, .tag {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 12px;
  border-radius: 999px; border: 2px solid var(--line); font-size: 13px; font-weight: 700; line-height: 1.2;
}
.badge { background: var(--soft); color: var(--ink); }
.badge-mint { background: var(--mint-soft); }
.badge-hot { background: var(--apricot-soft); }
.badge-night { background: var(--night); color: #fff; }
.tag {
  min-height: 44px; background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--line);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.tag:hover { border-color: var(--primary); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.tag:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--line); }
.tag.is-on { background: var(--primary); color: #fff; border-color: var(--line); box-shadow: 3px 3px 0 var(--line); }
.head-row, .tool-line, .back-bar, .foot-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.head-row { max-width: none; align-items: flex-end; justify-content: space-between; }
.tool-line { align-items: flex-end; justify-content: space-between; }
.tool-label { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.result-line {
  margin: 0; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 800;
}
.dex-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dex-card, .news-card, .step, .faq-item, .back-panel {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.dex-card, .news-card { padding: 16px; min-width: 0; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.dex-card.span-2 { grid-column: span 2; }
.dex-card:hover, .news-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translate(-1px, -1px);
}
.frame {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 6px; padding: 8px; margin-bottom: 12px;
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); aspect-ratio: 16/10;
}
.dex-card.tall .frame { aspect-ratio: 3/4; max-height: 320px; }
.frame-col { display: grid; gap: 6px; }
.block { display: block; border: 2px solid var(--line); border-radius: 10px; min-height: 28px; }
.block-a { background: var(--primary); }
.block-b { background: var(--mint); }
.block-c { background: var(--apricot); }
.frame-mint .block-a { background: var(--mint); }
.frame-hot .block-a { background: var(--apricot); }
.frame-night .block-a { background: var(--night); }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dex-card h3, .news-card h3, .step h3 { margin: 0; font-size: 20px; line-height: 1.4; }
.dex-card p, .news-card p, .step p, .faq-a p, .back-copy p { margin: 8px 0 0; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--primary); font-weight: 800; }
.text-link:hover { text-decoration: underline; }
.section-more { padding: 28px 0; background: var(--mint-soft); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.more-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--primary); color: #fff;
  font-weight: 700; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--line); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--ink); }
.news-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, .9fr); gap: 16px; }
.news-card { color: inherit; display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; }
.news-card .date { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.path-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 16px; min-width: 0; }
.step-no {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 2px solid var(--line); background: var(--apricot); color: var(--ink);
  font-weight: 800; box-shadow: 2px 2px 0 var(--line); margin-bottom: 10px;
}
.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; padding: 0; }
.faq-item:hover { border-color: var(--primary); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: transparent; border: 0; padding: 14px 16px; font-weight: 800; font-size: 17px; text-align: left; min-height: 52px;
}
.plus {
  width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--soft); flex: none; font-weight: 800;
}
.faq-item.is-open .plus { background: var(--primary); color: #fff; }
.faq-a { background: #F3E6D8; border-top: 2px solid var(--line); padding: 4px 16px 16px; }
.back-bar { align-items: center; justify-content: space-between; }
.back-panel { padding: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.back-copy { max-width: 680px; }
.back-copy p { margin: 8px 0 0; }
.site-footer { background: var(--night); color: #F4EFE6; border-top: 2px solid var(--line); padding: 48px 0 28px; }
.site-footer h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #fff; }
.site-footer .muted { color: #D9CDEA; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 24px; }
.foot-title { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--mint); }
.site-footer .foot-grid a {
  display: flex; align-items: center; min-height: 44px; color: #F4EFE6; font-weight: 700;
}
.site-footer .foot-grid a:hover { color: var(--mint); }
.legal { margin-top: 22px; padding-top: 16px; border-top: 2px solid #3A3154; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal p { margin: 0; }
.domain-line { font-size: 12px; color: #B7A8C9; }
[hidden] { display: none !important; }
@media (max-width: 1024px) {
  :root { --pad: 48px; }
  .cat-head h1 { font-size: 42px; }
  .news-row { grid-template-columns: 1fr; }
  .section-head h2, .back-copy h2 { font-size: 28px; }
}
@media (max-width: 768px) {
  :root { --pad: 36px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .dex-list, .path-row, .foot-grid { grid-template-columns: 1fr; }
  .dex-card.span-2 { grid-column: auto; }
  .dex-card.tall .frame { aspect-ratio: 16/10; max-height: none; }
  .cat-head h1 { font-size: 34px; }
  .head-row, .tool-line, .back-panel, .more-wrap { align-items: flex-start; }
  .logo { font-size: 18px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .cat-head h1 { font-size: 32px; }
  .section-head h2, .back-copy h2 { font-size: 26px; }
  .lead { font-size: 16.5px; }
  .tag { padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
