/* 白鹿堂 · 怪异美学参考 · 预览样式 */
@font-face { font-family: "Noto Serif SC"; src: url("fonts/NotoSerifSC-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("fonts/NotoSansSC-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #F3F0E8; --ink: #1F1E1B; --grey: #6B6862; --hair: #CFCAC0; --accent: #8C3A2B;
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Noto Sans Mono CJK SC", monospace;
  --pad: 48px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.8 var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.num { color: var(--accent); margin-right: .32em; }

/* top bar */
.topbar-in { display: flex; justify-content: space-between; align-items: baseline; padding-top: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); background-clip: content-box; position: relative; }
.topbar-in::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: -1px; border-bottom: 1px solid var(--hair); }
.topbar-in { border-bottom: 0; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .04em; }
.toplink { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--accent); }
.toplink:hover, .brand:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* frames */
.frame { position: relative; width: 100%; overflow: hidden; background: var(--paper); }
.frame.r169 { aspect-ratio: 16 / 9; }
.frame.r43 { aspect-ratio: 4 / 3; }
.frame.r11 { aspect-ratio: 1 / 1; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.empty { border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; }
.frame.empty span { color: var(--grey); font-size: 14px; letter-spacing: .2em; }

/* home */
.page-title { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: .02em; margin: 64px 0 48px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { margin-top: 40px; }
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.row-text h2 { font-size: clamp(28px, 2.8vw, 40px); }
.row-text p { margin-top: 10px; font-size: 15px; color: var(--ink); }
.row:hover .row-text h2 { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; text-decoration-color: var(--hair); }
.about { margin-top: 96px; padding-top: 32px; }
.about h2 { font-size: 22px; padding-top: 32px; border-top: 1px solid var(--hair); }
.about p { margin-top: 10px; max-width: 36em; font-size: 15px; }

/* entry */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 36px; align-items: center; margin-top: 56px; }
.hero-text h1 { font-size: clamp(34px, 3.6vw, 52px); }
.hero-text p { margin-top: 12px; font-size: 15px; }
.secs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; margin-top: 96px; }
.sec h2 { font-size: 21px; }
.sec p { margin-top: 12px; font-size: 15px; line-height: 1.9; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 40px; margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--hair); align-items: start; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--grey); }
.prompts { margin-top: 64px; border: 1px solid var(--hair); }
.prompts summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.prompts summary::-webkit-details-marker { display: none; }
.prompts summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); margin-right: 4px; transition: transform .15s; }
.prompts[open] summary::after { transform: rotate(45deg); }
.prompts[open] summary { border-bottom: 1px solid var(--hair); }
.prompt-list { padding: 8px 18px 24px; }
.prompt { padding-top: 24px; }
.prompt + .prompt { margin-top: 24px; border-top: 1px solid var(--hair); }
.prompt h3 { font-size: 17px; }
.prompt .todo { font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--grey); margin-left: .3em; }
.prompt pre { margin: 12px 0 0; font: 400 13px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }

/* footer */
.foot { margin-top: 96px; padding-bottom: 56px; }
.foot .brand { display: inline-block; margin-top: 24px; }
.home .foot { margin-top: 48px; }
.pager { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 16px; }
.pager .prev { color: var(--grey); }
.pager .prev.off { opacity: .7; }
.pager .next { color: var(--accent); font-family: var(--serif); font-weight: 600; margin-left: auto; }
.pager a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* phone */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .topbar-in { padding-top: 16px; padding-bottom: 12px; }
  .brand { font-size: 22px; }
  .toplink { font-size: 16px; }
  .page-title { font-size: 32px; margin: 36px 0 28px; }
  .row { grid-template-columns: 1fr; gap: 14px; }
  .rows li + li { margin-top: 36px; }
  .row-text h2 { font-size: 28px; }
  .row-text p { margin-top: 6px; }
  .hero { grid-template-columns: 1fr; gap: 20px; margin: 0 calc(-1 * var(--pad)); }
  .hero .frame.empty { border-left: 0; border-right: 0; border-top: 0; }
  .hero-text { padding: 0 var(--pad); }
  .hero-text h1 { font-size: 36px; }
  .secs { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .sec h2 { font-size: 19px; }
  .sec p { margin-top: 6px; }
  .figs { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; padding-top: 32px; }
  .prompts { margin-top: 40px; }
  .prompt-list { padding: 4px 14px 20px; }
  .prompt pre { font-size: 12px; }
  .foot { margin-top: 56px; padding-bottom: 40px; }
  .about { margin-top: 64px; }
}
.figs .frame.r11 { width: 56.25%; }
@media (max-width: 760px) { .figs .frame.r11 { width: 100%; } }

/* Public collection navigation; preserve the established reference layout. */
.header-actions { display:flex; align-items:center; gap:24px; flex-wrap:wrap; justify-content:flex-end; }
.languages { display:flex; gap:16px; font-size:14px; }
.languages a { padding:8px 0; text-underline-offset:5px; }
.languages a[aria-current] { color:var(--accent); text-decoration:underline; }
.languages a:hover { text-decoration:underline; }
a:focus-visible, summary:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.hero-text, .row-text { min-width:0; overflow-wrap:anywhere; }
html[lang="en"] .hero-text, html[lang="en"] .row-text { overflow-wrap:normal; word-break:normal; }
html[lang="en"] .hero-text h1 { font-size:clamp(30px,3vw,42px); }
@media(min-width:761px) {
  html[lang="en"] .hero { grid-template-columns:minmax(0,3fr) minmax(320px,2fr); }
  html[lang="en"] .row { grid-template-columns:minmax(0,2fr) minmax(clamp(280px,28vw,400px),1fr); }
}
.provenance { margin-top:20px; font-size:13px; color:var(--grey); max-width:65em; }
.pager { margin-top:64px; gap:24px; }
.frame img { object-fit:contain; }
@media(max-width:640px) { .topbar-in { align-items:flex-start; gap:18px; } .header-actions { gap:4px 16px; } .toplink { font-size:14px; } .languages { gap:12px; } .brand { white-space:nowrap; } .hero-text h1 { font-size:32px; } }
html[lang="ja"] { --sans:"Noto Sans JP",sans-serif; --serif:"Noto Serif JP",serif; }
@font-face { font-family:"Noto Sans JP"; src:url("fonts/NotoSansJP-Regular.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"Noto Serif JP"; src:url("fonts/NotoSerifJP-SemiBold.woff2") format("woff2"); font-weight:600; font-display:swap; }

/* 漫游入口：标题右侧 */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 64px 0 48px; }
.title-row .page-title { margin: 0; }
.play-link { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--paper); font-size: clamp(17px, 1.5vw, 21px); letter-spacing: .06em; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.play-link:hover, .play-link:focus-visible { background: var(--paper); color: var(--accent); }
.play-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .title-row { margin: 36px 0 28px; gap: 16px; }
  .play-link { padding: 12px 20px; font-size: 16px; }
}

/* M1 Panoramic Atlas, Filter Drawer, Side-by-Side Compare & Six-Layer Game Art Matrix */
.nav-sublink { font-size: 14px; color: var(--grey); padding: 8px 0; text-underline-offset: 5px; }
.nav-sublink:hover { color: var(--ink); text-decoration: underline; }
.filter-drawer { margin: 0 0 36px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .28); }
.filter-drawer summary { list-style: none; cursor: pointer; padding: 13px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; }
.filter-drawer summary::-webkit-details-marker { display: none; }
.filter-drawer summary .filter-count { color: var(--grey); font-size: 13px; margin-left: auto; font-family: var(--mono); }
.filter-drawer[open] summary { border-bottom: 1px solid var(--hair); }
.filter-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; padding: 16px 18px; align-items: end; }
.filter-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--grey); }
.filter-field input, .filter-field select { width: 100%; padding: 8px 10px; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); font: 400 14px/1.4 var(--sans); }
.filter-field input:focus-visible, .filter-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn-ghost { padding: 8px 14px; border: 1px solid var(--hair); background: transparent; color: var(--ink); font: 400 13px/1.4 var(--sans); cursor: pointer; white-space: nowrap; }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.btn-accent { padding: 8px 16px; border: 1px solid var(--accent); background: var(--accent); color: var(--paper); font: 400 13px/1.4 var(--sans); cursor: pointer; white-space: nowrap; }
.btn-accent:hover:not(:disabled) { background: var(--paper); color: var(--accent); }
.btn-accent:disabled { opacity: .4; cursor: not-allowed; }
.compare-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--hair); background: rgba(140, 58, 43, .06); font-size: 14px; }
.compare-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.row-item { position: relative; }
.row-item.is-picked { padding: 12px; border: 1.5px solid var(--accent); background: rgba(140, 58, 43, .03); }
.row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip-tag { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--hair); font-size: 12px; line-height: 1.5; color: var(--grey); }
.chip-tag.is-d3 { border-color: var(--accent); color: var(--accent); }
.chip-tag.is-safe { border-color: #4f6d5a; color: #365240; }
.cmp-btn { margin-top: 12px; padding: 4px 10px; border: 1px solid var(--hair); background: transparent; color: var(--grey); font: 400 12px/1.4 var(--sans); cursor: pointer; }
.cmp-btn:hover { border-color: var(--ink); color: var(--ink); }
.cmp-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--paper); }

/* Side-by-side visual comparison grid (?only=...) */
.rows.is-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
.rows.is-compare li + li { margin-top: 0; }
.rows.is-compare .row { grid-template-columns: 1fr; gap: 16px; }
.rows.is-compare .row-text h2 { font-size: 24px; }

/* Entry Six-Layer Game Art Matrix Card */
.art-spec { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--hair); }
.art-spec-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.art-spec-head h2 { font-size: 24px; }
.art-spec-sub { font-size: 13px; color: var(--grey); }
.art-spec-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px 56px; align-items: start; }
.layer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.layer-row { display: grid; grid-template-columns: minmax(112px, auto) 1fr 38px minmax(88px, auto); gap: 12px; align-items: center; font-size: 14px; }
.layer-name { color: var(--ink); white-space: nowrap; }
.bar-track { height: 6px; background: rgba(31, 30, 27, .1); position: relative; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--ink); }
.bar-fill.is-high { background: var(--accent); }
.layer-score { font-family: var(--mono); font-size: 12px; color: var(--grey); text-align: right; }
.depth-pill { display: inline-block; text-align: center; padding: 2px 8px; font-family: var(--mono); font-size: 11px; border: 1px solid var(--hair); color: var(--grey); white-space: nowrap; }
.depth-pill.D3 { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.depth-pill.D2 { border-color: var(--ink); color: var(--ink); }
.depth-pill.D1 { border-color: var(--hair); color: var(--grey); }
.vec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.vec-cell { padding: 8px 10px; border: 1px solid var(--hair); }
.vec-label { display: block; font-size: 11px; color: var(--grey); }
.vec-val { display: block; margin-top: 2px; font-family: var(--mono); font-size: 15px; color: var(--ink); }
.spec-block { margin-top: 18px; }
.spec-block h3 { font-size: 15px; margin-bottom: 8px; }
.blend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.blend-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; padding: 3px 10px; border: 1px solid var(--hair); font-size: 13px; color: var(--ink); }
.chip-link:hover { border-color: var(--accent); color: var(--accent); }
.chip-veto { display: inline-flex; padding: 3px 10px; border: 1px solid var(--hair); font-size: 13px; color: var(--grey); }
.spec-md-link { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--grey); display: flex; flex-wrap: wrap; gap: 16px; }
.spec-md-link a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Panoramic /aesthetics/ Hub & /aesthetics/mediums/ Directory */
.atlas-intro { max-width: 52em; margin: 0 0 36px; font-size: 16px; color: var(--ink); }
.atlas-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.atlas-strip a { display: block; }
.atlas-strip figcaption { font-size: 12px; margin-top: 6px; color: var(--grey); }
.collection-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.collection-item { display: grid; grid-template-columns: 72px minmax(0, 1.4fr) minmax(0, 1.8fr) auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.collection-num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.collection-title h2 { font-size: 24px; }
.collection-meta { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--grey); border: 1px solid var(--hair); padding: 2px 8px; }
.collection-meta.is-live { border-color: var(--accent); color: var(--accent); }
.collection-desc { font-size: 15px; color: var(--ink); }
.collection-cta { font-family: var(--serif); font-weight: 600; color: var(--accent); white-space: nowrap; }
.collection-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.collection-cta.is-soon { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--grey); }
.method-section { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--hair); }
.method-section h2 { font-size: 26px; margin-bottom: 12px; }
.method-lead { max-width: 50em; font-size: 15px; color: var(--grey); margin-bottom: 24px; }
.method-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.method-table th, .method-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.method-table th { font-family: var(--serif); font-weight: 600; color: var(--ink); border-top: 1px solid var(--hair); background: rgba(31, 30, 27, .03); }
.ai-bar { margin-top: 56px; padding: 20px 24px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .28); }
.ai-bar h3 { font-size: 16px; margin-bottom: 8px; }
.ai-bar p { font-size: 14px; color: var(--grey); margin-bottom: 12px; }
.ai-links { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 13px; }
.ai-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Rendering Mediums Structured Directory */
.med-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; margin-bottom: 28px; padding: 16px 18px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .28); align-items: end; }
.med-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.med-card { border: 1px solid var(--hair); padding: 22px 24px; background: rgba(255, 255, 255, .22); display: flex; flex-direction: column; gap: 12px; }
.med-card:target { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.med-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.med-card-head h2 { font-size: 21px; }
.med-cat { font-size: 12px; color: var(--accent); white-space: nowrap; }
.med-stats { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--grey); }
.med-stats span { padding: 2px 8px; border: 1px solid var(--hair); }
.med-traits { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink); }
.med-note { font-size: 13px; color: var(--grey); }
.med-prompt details { border-top: 1px solid var(--hair); padding-top: 10px; }
.med-prompt summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.med-prompt p { margin-top: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.65; color: var(--ink); }

@media (max-width: 900px) {
  .filter-controls, .med-controls { grid-template-columns: 1fr 1fr; }
  .art-spec-grid { grid-template-columns: 1fr; }
  .collection-item { grid-template-columns: 1fr; gap: 10px; }
  .atlas-strip { grid-template-columns: 1fr 1fr; }
  .med-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .filter-controls, .med-controls { grid-template-columns: 1fr; }
  .vec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layer-row { grid-template-columns: minmax(90px, auto) 1fr 30px minmax(74px, auto); gap: 8px; font-size: 13px; }
}
