:root {
  color-scheme:dark;
  --bg:#171310;
  --panel:#211b17;
  --panel-raised:#2b221b;
  --ink:#f4ebde;
  --muted:#b9a99a;
  --low:#a4978a;
  --line:#43352a;
  --gold:#ebbf7d;
  --light-gold:#ffda97;
  --jade:#9fd1b1;
  --font:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;
  font-family:var(--font);
  font-size:16px;
  background:var(--bg);
  color:var(--ink);
}
* {box-sizing:border-box}
body {margin:0;height:100dvh;display:grid;grid-template-rows:78px minmax(0,1fr);overflow:hidden}
button,input,textarea,select {font:inherit;color:inherit}
button {cursor:pointer}
button:disabled {cursor:default;opacity:.4}
button,a,input,select,textarea,summary {outline-offset:3px}
:focus-visible {outline:2px solid var(--gold)}
a {color:var(--gold)}
img {display:block;max-width:100%}
h1,h2,p {margin:0}
[hidden] {display:none!important}
.masthead {
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:26px;
  padding:0 42px;background:#1d1713;border-bottom:1px solid #4b392a;
  box-shadow:0 7px 34px #0005;z-index:5;
}
.brand {
  justify-self:start;display:flex;gap:15px;align-items:center;text-align:left;
  border:0;background:none;padding:0;white-space:nowrap;
}
.brand-icon {
  width:42px;height:42px;display:grid;place-items:center;border-radius:12px;
  color:#f6d190;font:28px Georgia,serif;border:1px solid #9c713e;
  background:radial-gradient(circle at 45% 34%,#74532d,#37271c 72%);
  box-shadow:inset 0 0 0 3px #302115,0 3px 12px #0005;
}
.brand strong {font-size:18px;letter-spacing:.08em;display:block;line-height:1.25}
.brand small {font-size:11px;color:var(--low);letter-spacing:.12em;display:block;margin-top:5px}
.topnav {height:100%;display:flex;align-items:stretch;gap:32px}
.topnav button {
  position:relative;white-space:nowrap;letter-spacing:.04em;background:none;border:0;
  font-size:15px;font-weight:700;padding:0 14px;color:#c0ae9e;
}
.topnav button:hover,.topnav button[aria-current] {color:var(--light-gold)}
.topnav button[aria-current]::after {
  content:"";height:3px;position:absolute;bottom:0;inset-inline:7px;
  border-radius:3px 3px 0 0;background:var(--gold);box-shadow:0 0 17px #eda65d50;
}
.header-actions {justify-self:end;display:flex;align-items:center;gap:13px;white-space:nowrap}
.offline {font-size:13px;color:#c1b6a8;display:flex;align-items:center;gap:8px;margin-right:7px}
.offline i,.live-toggle i {height:7px;width:7px;border-radius:50%;background:#94cca0;display:inline-block;box-shadow:0 0 9px #9bcf9888}
.live-toggle i {background:#eaa378;box-shadow:none;margin-right:3px}
.live-toggle {border-color:#775334!important;background:#38291f!important;color:#ffe2ad;gap:8px}
.live .live-toggle {background:#5b3c28!important;border-color:#d0965c!important}
.live .live-toggle i {background:#ffa285;box-shadow:0 0 12px #ff907a}
.switch-track {
  width:31px;height:17px;position:relative;flex:none;border-radius:9px;
  border:1px solid #7a5a3a;background:#382b21;
}
.switch-track::after {
  content:"";width:11px;height:11px;position:absolute;top:2px;left:2px;border-radius:50%;
  background:#c8b39b;transition:transform .15s ease,background .15s ease;
}
[role=switch][aria-checked=true] {color:#ffda9e;border-color:#946c42}
[role=switch][aria-checked=true] .switch-track {background:#72502d;border-color:#bc8d53}
[role=switch][aria-checked=true] .switch-track::after {background:#ffd59a;transform:translateX(14px)}
.button,.ghost {display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;text-decoration:none;white-space:nowrap}
.button {border:1px solid var(--line);background:#271e19;padding:10px 16px;font-size:14px;font-weight:700;min-height:42px}
.button:hover:not(:disabled),.ghost:hover {border-color:#a77e51;background:#3d2d22}
.ghost {min-width:38px;height:38px;background:#251d17;border:1px solid var(--line);font-size:22px}
.full {font-size:23px}
.primary {background:#e8b976;color:#23180f;border-color:#f5ca8d}
.primary:hover:not(:disabled) {background:#f8ce91;color:#1b120b}
.secondary {color:var(--ink);background:linear-gradient(180deg,#30251e,#251e18)}
.danger-outline {color:#efb4b1;border-color:#865150}
.button.danger {color:#fff2ed;border-color:#ad6b67;background:#75403e}
.button.danger:hover:not(:disabled) {border-color:#e1a29b;background:#8c4d49}
.text-button {border:0;background:transparent;padding:3px 0;color:var(--gold);font-weight:700;text-align:left}
.text-button:hover {color:#ffe1a7;text-decoration:underline;text-underline-offset:4px}
.layout {display:grid;grid-template-columns:minmax(0,1fr);min-height:0}
.layout.with-sidebar {grid-template-columns:245px minmax(0,1fr)}
.layout.with-rail {grid-template-rows:minmax(0,1fr) auto}
#scroll {
  height:100%;min-width:0;overflow:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#6a503b #1b1612;outline:none;
  background:radial-gradient(ellipse at 36% -30%,#372820 0,transparent 58%),#171310;
}
#sidebar {
  height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#5d4836 #201914;
  background:linear-gradient(100deg,#201a16,#1d1713);border-right:1px solid #45362a;padding:25px 17px;
}
.side-title {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 3px 13px 10px;font-weight:800;letter-spacing:.08em}
.side-title .ghost {height:29px;min-width:29px;font-size:22px}
.side-group {padding-top:10px}
.side-group p {margin:7px 10px 4px;color:#b59e86;font-size:11px;font-weight:800;letter-spacing:.21em}
.side-item {
  width:100%;height:38px;border:1px solid transparent;background:transparent;display:grid;align-items:center;gap:9px;
  grid-template-columns:24px 1fr auto;text-align:left;border-radius:6px;color:#cebdad;font-size:14px;font-weight:650;
  padding:0 10px;white-space:nowrap;
}
.side-item:hover {background:#33271e;color:var(--ink)}
.side-item.selected {background:linear-gradient(90deg,#513925,#33271d);border-color:#7b5836;color:#ffe0ac}
.side-item b {color:#d5aa73;font:17px Georgia,serif;justify-self:center}
.side-item small {color:#b3a18b;font:12px Arial,sans-serif}
.page {width:min(100%,1724px);margin-inline:auto;padding:36px 48px 48px}
.eyebrow {display:flex;align-items:center;gap:9px;color:var(--gold);font-size:13px;font-weight:800;letter-spacing:.14em}
.tiny-diamond {width:8px;height:8px;background:var(--gold);transform:rotate(45deg);box-shadow:0 0 10px #d69a7c}
.page-heading {display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}
.page-heading h1,.detail-heading h1 {font-size:clamp(34px,3vw,56px);line-height:1.12;letter-spacing:.035em;margin:9px 0 8px}
.page-heading p {font-size:15px;color:var(--muted);line-height:1.5}
.heading-actions,.detail-navigation {display:flex;gap:10px;align-items:center}
.boot {margin:36px;color:var(--muted)}

.guide-page {padding-top:32px}
.season-hero {
  min-height:454px;position:relative;isolation:isolate;display:flex;align-items:center;overflow:hidden;
  border-radius:16px;border:1px solid #765333;background:#261e17;box-shadow:0 16px 55px #0005;
}
.hero-art {position:absolute;inset:0 0 0 37%;z-index:-2}
.hero-art img {width:100%;height:100%;object-fit:cover;object-position:center 46%}
.season-hero::after {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,#241a15 0%,#241a15 28%,#241a15f2 37%,#271b16b0 48%,#241a1530 63%,#20151010 90%),
    linear-gradient(0deg,#19110bd9,transparent 27%);
}
.hero-copy {padding:39px 57px 38px;max-width:645px}
.hero-version {
  display:inline-block;margin-top:23px;background:#231815d9;border:1px solid #9e7148;border-radius:5px;
  color:#f4cc8b;font-size:14px;font-weight:800;letter-spacing:.07em;padding:6px 12px;
}
.hero-copy h1 {font-size:clamp(57px,6.4vw,111px);font-weight:950;line-height:1.12;margin:13px 0 15px;letter-spacing:.065em;text-shadow:0 6px 22px #0008}
.hero-copy p {color:#eadaca;font-size:19px;line-height:1.75;max-width:485px}
.hero-actions {display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.hero-actions .button {min-height:47px;padding-inline:18px}
.release {display:block;color:#cab7a5;font-size:13px;margin-top:19px}
.hero-copy .creator-credit {margin-top:6px;color:#e7cead;font-size:13px}
.chapters {
  margin-top:25px;display:grid;grid-template-columns:minmax(270px,27%) minmax(0,1fr);
  border-radius:12px;border:1px solid #4a392c;background:linear-gradient(120deg,#241b16,#241c18);overflow:hidden;
}
.chapter-list {padding:20px;border-right:1px solid #4a392c}
.chapter-list h2 {font-size:17px;color:#eee0cd;letter-spacing:.06em;margin:1px 7px 10px}
.chapter-list button {
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:none;
  border:1px solid transparent;padding:7px 11px;color:#dfcfc0;border-radius:6px;font-weight:700;font-size:14px;text-align:left;
}
.chapter-list button:hover,.chapter-list button[aria-pressed=true] {background:#413021;border-color:#735231;color:#ffe2b2}
.chapter-list button small {font-size:11px;color:#ccb79a;font-weight:500}
.chapter-main {
  min-height:286px;display:grid;grid-template-columns:minmax(270px,1fr) auto;align-items:center;gap:20px;
  padding:22px 33px;background:radial-gradient(ellipse at 81% 42%,#61442d55,transparent 59%);
}
.chapter-copy h2 {font-size:37px;margin:8px 0 10px;letter-spacing:.04em}
.chapter-copy p {max-width:605px;color:#ded0c2;font-size:18px;line-height:1.65}
.chapter-copy button {margin-top:17px}
.chapter-art {display:flex;align-items:center;justify-content:flex-end;gap:12px}
.chapter-art button {border:0;background:none;padding:0;max-width:172px}
.chapter-art img {width:100%;height:231px;object-fit:contain;filter:drop-shadow(0 10px 12px #0007)}
.chapter-art button:hover img {filter:drop-shadow(0 0 14px #d7a66b75)}

.pool-page {padding-top:29px}
.pool-toolbar {padding:14px 16px 13px;background:#231c17;border:1px solid #4b392c;border-radius:11px}
.toolbar-main,.toolbar-filters {display:flex;align-items:center;justify-content:space-between;gap:15px}
.toolbar-filters {margin-top:13px}
.search {
  flex:1;max-width:520px;min-width:190px;display:flex;align-items:center;gap:7px;
  padding:0 12px;background:#171310;border:1px solid #554131;border-radius:7px;
}
.search span {font:25px Georgia,serif;color:var(--gold)}
.search input {background:none;border:0;width:100%;min-width:0;outline:none;height:40px;font-size:14px}
.search input::placeholder {color:#ab9b8e}
.search:focus-within {border-color:#c59456}
.view-options {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 15px;white-space:nowrap}
.view-options .removed-toggle {min-height:36px;padding:6px 10px;gap:8px;font-size:13px}
.view-options label,.board-toolbar label {display:flex;gap:8px;align-items:center;color:var(--muted);font-size:13px}
select {border:1px solid #534131;border-radius:6px;background:#2c221b;padding:7px 13px 7px 9px;min-height:36px;color:#f1e4d4}
.filters {display:flex;gap:8px;flex-wrap:wrap}
.filters button {
  padding:6px 12px;border:1px solid #4a392d;background:#2b211a;border-radius:6px;
  color:#dbccbd;font-size:13px;font-weight:700;
}
.filters button[aria-pressed=true] {background:#513927;border-color:#a37544;color:#ffe1aa}
.filters button:hover {border-color:#a37544}
#result-count {font-size:13px;color:var(--muted);white-space:nowrap}
.tier {margin-top:21px}
.tier h2 {
  display:flex;align-items:center;gap:10px;color:#f4dec2;font-size:19px;font-weight:800;
  letter-spacing:.07em;margin-bottom:11px;
}
.tier h2::after {content:"";height:1px;flex:1;background:linear-gradient(90deg,#674a35,#3b2b21)}
.tier-icon {color:#efbd74;font:18px Georgia,serif;text-shadow:0 0 10px #b78348}
.tier h2 small {font-size:12px;color:#beab96;letter-spacing:0;font-weight:500;margin:0 2px}
.tier-note {margin:0 0 11px;color:var(--muted);font-size:13px}
.card-grid {display:grid;gap:11px;align-items:start;grid-template-columns:repeat(auto-fill,minmax(min(100%,184px),1fr))}
.card-grid.density-compact {grid-template-columns:repeat(auto-fill,minmax(min(100%,149px),1fr))}
.card-grid.density-large {grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}
.card-tile {
  min-width:0;display:grid;grid-template-rows:30px 203px auto;text-align:left;overflow:hidden;padding:7px 8px 6px;
  border:1px solid #47362b;border-radius:9px;background:radial-gradient(ellipse at 50% 45%,#4a342748 0%,transparent 70%),#231b17;
  box-shadow:0 6px 13px #0003;transition:border-color .14s,background-color .14s;
}
.card-tile:hover {border-color:#bb8a53;background-color:#30241c}
.density-large .card-tile {grid-template-rows:34px 301px auto}
.density-compact .card-tile {grid-template-rows:27px 160px auto}
.tile-head {display:flex;align-items:start;justify-content:space-between;gap:3px;padding:0 2px}
.tags {display:inline-flex;gap:4px;flex-wrap:wrap}
.badge {
  display:inline-flex;align-items:center;white-space:nowrap;border-radius:4px;
  border:1px solid currentColor;padding:2px 5px;font-size:11px;line-height:1.2;font-weight:750;
}
.added {color:#bfe3bd;background:#263a28;border-color:#49674a}
.changed {color:#ffd28d;background:#47321f;border-color:#815a34}
.returning {color:#d9c7f1;background:#392d47;border-color:#69527e}
.removed {color:#f4b6b7;background:#482b2a;border-color:#83504f}
.kept {color:#dad0c1;background:#3a3129;border-color:#635447}
.tile-art {display:grid;place-items:center;overflow:hidden}
.tile-art img {height:100%;width:100%;min-height:0;object-fit:contain;filter:drop-shadow(0 7px 9px #0008)}
.tile-removed {border-color:#664340}
.tile-removed .tile-art img {filter:grayscale(1) drop-shadow(0 7px 9px #0008)}
.tile-meta {min-height:48px;margin-top:2px;display:flex;flex-direction:column;justify-content:center;gap:4px;text-align:center}
.tile-meta strong {font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile-meta small {font-size:11px;color:#c1ad98;line-height:1.2}
.tile-grade {min-width:25px;height:23px;border:1px solid currentColor;border-radius:5px;font:bold 16px/21px Georgia,serif;text-align:center;background:#17110f}
.empty-art {
  align-self:center;justify-self:center;width:76%;height:85%;min-height:50px;
  display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;text-align:center;
  background:#231b17a8;border:1px dashed #6d553e;border-radius:10px;color:#cfb18e;font-size:12px;padding:7px;
}
.empty-art b {font:29px Georgia,serif;color:#b38a5d}
.empty {text-align:center;background:#211914;border:1px solid #4d3a2b;border-radius:10px;padding:42px;margin-top:21px}
.empty b {font:32px Georgia,serif;color:var(--gold)}
.empty h2 {margin:12px 0;font-size:20px}
.empty p {margin-bottom:18px;color:var(--muted)}

.detail-page {padding-top:23px;padding-bottom:24px}
.detail-crumb {display:flex;justify-content:space-between;align-items:center;color:var(--low);font-size:13px;margin-bottom:17px}
.detail-heading {display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:17px}
.detail-name {display:flex;flex-wrap:wrap;align-items:center;gap:13px}
.detail-name h1 {margin-bottom:0}
.detail-name .badge {font-size:13px;padding:4px 7px}
.position {color:#c3a98d;white-space:nowrap;font-size:14px;min-width:45px;text-align:center}
.detail-grid {display:grid;grid-template-columns:minmax(0,1.95fr) minmax(380px,1fr);gap:18px;align-items:start}
.visual-pane {min-width:0}
.version-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.version-grid.single {grid-template-columns:minmax(0,1fr)}
.version-card {
  min-width:0;border:1px solid #4f3a2d;border-radius:12px;padding:15px 15px 10px;background:
    radial-gradient(ellipse at 50% 43%,#66513f44,transparent 65%),linear-gradient(165deg,#27201b,#211913);
}
.version-card.new {border-color:#785737;background:radial-gradient(ellipse at 50% 42%,#7f592c57,transparent 66%),linear-gradient(165deg,#33261b,#211a14)}
.version-top {height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #664e38;color:#e2ccaf;font-size:13px;padding:0 5px 8px;white-space:nowrap}
.version-state {font-size:17px;font-weight:850;letter-spacing:.08em}
.version-card.new .version-state {color:#ffcf88}
.inspect {
  width:100%;height:clamp(340px,calc(58.5vh - 108px),600px);background:transparent;border:0;color:inherit;
  display:grid;place-items:center;position:relative;padding:12px 0 0;
}
.inspect img {max-height:100%;min-height:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 17px 25px #000a)}
.single .inspect img {max-width:530px}
.inspect:hover img {filter:drop-shadow(0 12px 24px #0009) drop-shadow(0 0 13px #d69d5544)}
.zoom-icon {
  position:absolute;right:8px;bottom:9px;background:#2c2119df;color:#f4c989;border:1px solid #6b5139;
  border-radius:6px;width:35px;height:35px;display:grid;place-items:center;font-size:22px;
}
.art-caption {padding:8px 2px 4px;text-align:center;color:#c2ac95;font-size:12px;min-height:29px}
.art-caption.has-hint {color:#edbf88}
.review-pane {
  border:1px solid #5b4432;border-radius:12px;overflow:hidden;background:#221a15;
  min-height:100%;display:flex;flex-direction:column;
}
.review-content {padding:20px 20px 13px;flex:1}
.review-content h2 {font-size:26px;margin:5px 0 10px}
.review-context {color:#d2bc9f;font-size:14px;margin-bottom:9px}
.hero-power-panel {margin-top:17px}
.hero-power-heading,.hero-power-name {display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.hero-power-heading {justify-content:space-between;margin-bottom:9px}
.hero-power-heading h3 {margin:0;font-size:18px;color:#f4dec2}
.hero-power-heading select {max-width:100%;min-height:32px;padding-block:4px;font-size:13px}
.hero-power-preview {
  display:grid;grid-template-columns:clamp(88px,34%,132px) minmax(0,1fr);align-items:center;gap:12px;
  padding:10px;border:1px solid #705037;border-radius:9px;
  background:radial-gradient(ellipse at 0 50%,#50362880,transparent 65%),#2a2019;
}
.hero-power-art {
  display:grid;place-items:center;width:100%;aspect-ratio:404 / 558;padding:0;border:0;border-radius:8px;background:none;
}
.hero-power-art img {display:block;width:100%;height:100%;min-height:0;object-fit:contain;filter:drop-shadow(0 6px 8px #0008)}
.hero-power-art:hover img {filter:drop-shadow(0 0 8px #d69d5560)}
.hero-power-copy {min-width:0;overflow-wrap:anywhere}
.hero-power-name h4 {margin:0;font-size:18px;color:#ffda9e}
.hero-power-cost {padding:2px 5px;border:1px solid #795b39;border-radius:4px;background:#211914;color:#f1c584;font-size:11px;white-space:nowrap}
.hero-power-version {margin-top:4px;color:var(--muted);font-size:12px}
.hero-power-preview .text-button {margin-top:8px;font-size:13px}
.changes {display:flex;flex-wrap:wrap;gap:5px;margin:0 0 10px}
.changes span {background:#3e2e21;color:#ffda9e;border:1px solid #6b4e32;padding:3px 6px;border-radius:4px;font-size:12px}
.version-facts {margin-top:10px;border:1px solid #554234;border-radius:8px;background:#291f18;padding:9px 11px}
.version-facts.new {border-color:#785738;background:#2d231a}
.facts-head {display:flex;justify-content:space-between;align-items:center;color:#e6ccae;font-weight:800;font-size:13px}
.facts-head small {font-size:11px;color:#c3ae96;font-weight:500}
.facts {display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}
.fact {display:flex;gap:5px;align-items:center;border:1px solid #4f3e31;color:#eadac7;background:#211914;border-radius:4px;padding:4px 6px}
.fact small {font-size:11px;color:#c4ae96}
.fact strong {font-size:16px;line-height:1}
.fact.is-diff {border-color:#9d6635;color:#ffd69b}
.effect {font-size:16px;line-height:1.55;color:#f0e3d3;margin-top:8px}
mark {color:#ffdfa3;background:#604226;border-radius:2px;padding:0 1px}
.version-facts.old mark {color:#f7c4be;background:#683a34}
.source-details {color:#baa997;font-size:12px;line-height:1.55;margin-top:9px}
.source-details summary {cursor:pointer}
.source-details p {margin-top:5px}
.related {display:flex;gap:9px;font-size:13px;margin-top:5px}
.rating-panel {padding:15px 20px 12px;background:#281e17;border-top:1px solid #5a4432}
.rating-top {display:flex;justify-content:space-between;align-items:center;gap:10px}
.rating-top h2 {margin:0;font-size:18px}
#save-status {font-size:11px;color:#b8c8a7}
#save-status.save-error {color:#ffb2a8}
.rating-buttons {display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 34px;gap:6px;margin:10px 0}
.rating-buttons button {
  min-height:39px;border:1px solid #645041;border-radius:6px;
  background:#201813;font:bold 21px Georgia,serif;
}
.rating-buttons button:hover,.rating-buttons button[aria-pressed=true] {
  border-color:currentColor;background:#4a3221;box-shadow:inset 0 0 0 1px currentColor;
}
.grade-S {color:#ff9c96}
.grade-A {color:#ffc692}
.grade-B {color:#e7d48a}
.grade-C {color:#b6d6a7}
.grade-D {color:#aab9df}
.clear-grade {color:#b8a697}
.note-label {display:grid;gap:5px;color:#d3c4b4;font-size:13px}
textarea {resize:vertical;min-height:55px;padding:7px 8px;display:block;width:100%;border:1px solid #5d4534;border-radius:6px;background:#1a1411;color:var(--ink);font-size:14px}
textarea::placeholder {color:#aa998b}
.keyboard {font-size:11px;color:#b5a491;margin-top:7px}

.detail-rail {
  min-width:0;border-top:1px solid #62462e;background:linear-gradient(#281e17,#1b1511);
  box-shadow:0 -8px 24px #0005;
}
.detail-rail-inner {
  width:min(100%,1724px);margin-inline:auto;padding:7px 48px 5px;
  display:grid;grid-template-columns:auto 40px minmax(0,1fr) 40px;gap:12px;align-items:center;
}
.detail-rail-label {display:grid;gap:5px;padding-right:13px;border-right:1px solid #55402f;white-space:nowrap}
.detail-rail-label strong {color:#e9c996;font-size:13px}
#rail-position {color:#c5b29c;font-variant-numeric:tabular-nums;font-size:12px}
.rail-arrow {color:var(--gold);font:29px/1 Georgia,serif}
.rail-arrow:disabled:hover {border-color:var(--line);background:#251d17}
.detail-track {
  display:flex;justify-content:safe center;align-items:flex-start;gap:8px;min-width:0;
  padding:4px 4px 7px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scrollbar-width:thin;scrollbar-color:#775638 #211912;
}
.rail-card {
  display:grid;grid-template-rows:70px 16px;gap:3px;flex:0 0 110px;min-width:0;
  padding:3px 5px 4px;border:1px solid #4f3a2b;border-radius:8px;background:#271e18;
  color:#dfcdb9;text-align:center;
}
.rail-card:hover {border-color:#a4794e;background:#3d2b20}
.rail-card:focus-visible {outline-offset:1px}
.rail-card[aria-current] {
  border-color:#e7b976;background:radial-gradient(ellipse at 50% 44%,#69492e,#3d2a1d);
  box-shadow:inset 0 2px #edc28a,0 0 10px #d89b4838;color:#ffe2af;
}
.rail-art {display:grid;place-items:center;min-height:0}
.rail-art img {height:100%;width:100%;min-height:0;object-fit:contain;filter:drop-shadow(0 4px 5px #0008)}
.rail-art .empty-art {width:100%;height:100%;min-height:0;gap:2px;font-size:10px}
.rail-art .empty-art b {font-size:19px}
.rail-name {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:750;line-height:16px}

.board-toolbar {
  background:#251d18;border:1px solid #4d392c;border-radius:9px;
  display:flex;align-items:center;justify-content:space-between;gap:13px;padding:12px 17px;margin-bottom:16px;
}
.board-progress {display:flex;align-items:center;gap:12px;color:#decebd;font-size:14px}
.board-progress b {color:#f6ca83;font-size:18px}
.board-progress small {color:#bbab99;white-space:nowrap}
progress {appearance:none;border:0;width:clamp(95px,19vw,280px);height:8px;border-radius:8px;background:#3e2d22;color:var(--gold)}
progress::-webkit-progress-bar {background:#3e2d22;border-radius:8px}
progress::-webkit-progress-value {background:#dca567;border-radius:8px}
progress::-moz-progress-bar {background:#dca567;border-radius:8px}
.tier-board {display:grid;gap:9px}
.board-row {
  min-height:134px;display:grid;grid-template-columns:122px minmax(0,1fr);border:1px solid #49382c;
  border-radius:9px;overflow:hidden;background:linear-gradient(110deg,#2c211b,#201914);
}
.rank {
  border-right:1px solid #624837;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;background:linear-gradient(125deg,#493327,#30221b);
}
.rank.grade-S {background:linear-gradient(120deg,#543029,#35231f)}
.rank.grade-B {background:linear-gradient(120deg,#4f4327,#36291e)}
.rank.grade-C {background:linear-gradient(120deg,#3e442d,#272b23)}
.rank.grade-D {background:linear-gradient(120deg,#343d4f,#2a2831)}
.rank span {font:italic 700 62px/.88 Georgia,serif;text-shadow:0 3px #0006}
.rank small {font-size:11px;color:#e2cdb7}
.board-cards {display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:4px 14px}
.board-card {
  display:flex;flex-direction:column;justify-content:center;align-items:center;width:110px;height:122px;min-width:0;
  border:1px solid transparent;border-radius:7px;background:transparent;padding:1px 4px 4px;gap:4px;
}
.board-card:hover {border-color:#8b633f;background:#39291f}
.board-card img {width:92px;height:94px;object-fit:contain;filter:drop-shadow(0 5px 7px #0008)}
.board-card span {font-size:11px;white-space:nowrap;width:100%;text-overflow:ellipsis;overflow:hidden}
.board-card .empty-art {font-size:9px}
.board-empty {color:#b09d8b;font-size:14px;padding-left:12px}
dialog {
  background:#251c16;border:1px solid #9e744a;border-radius:12px;color:var(--ink);
  max-width:93vw;max-height:93dvh;padding:13px;box-shadow:0 18px 90px #000d;
}
dialog::backdrop {background:#0c0907db}
#clear-ratings-dialog {width:490px;padding:24px;border-color:#95604f}
#clear-ratings-title {margin:0 0 12px;font-size:24px}
#clear-ratings-summary,#clear-ratings-help,#clear-ratings-status {line-height:1.6;font-size:14px}
#clear-ratings-help,#clear-ratings-status {margin-top:8px;color:#e8c493}
#clear-ratings-status.clear-error {color:#ffb5af}
.clear-ratings-actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:20px}
.clear-ratings-actions [data-action="confirm-rating-clear"] {order:-1;margin-right:auto}
.zoom-content {position:relative;display:grid;justify-items:center;min-width:min(360px,88vw)}
.close-zoom {position:absolute;right:4px;top:4px;z-index:1}
#zoom-img {width:auto;height:auto;max-width:86vw;max-height:82dvh;object-fit:contain}
#zoom-caption {color:#dfc3a7;font-size:13px;text-align:center;margin:8px 0 0}
#notice {
  position:fixed;bottom:23px;right:25px;z-index:8;background:#392a1f;color:#f7dfc3;
  border:1px solid #987044;box-shadow:0 10px 25px #0006;border-radius:8px;padding:13px 16px;font-size:14px;
}

body.live {grid-template-rows:64px minmax(0,1fr)}
.live .offline,.live .maintenance,.live .keyboard,.live .source-details,.live #save-status:not(.save-error) {display:none}
.live .detail-page {padding-top:20px}
.live .detail-crumb {margin-bottom:13px}
.live .inspect {height:clamp(340px,calc(63vh - 115px),650px)}
.live .effect {font-size:19px}
.live .card-tile {grid-template-rows:30px 244px auto}
.live .density-large .card-tile {grid-template-rows:34px 330px auto}
.live .density-compact .card-tile {grid-template-rows:27px 178px auto}
.live .tile-meta strong {font-size:17px}
.live .chapter-copy p {font-size:21px}
.live .board-card {width:127px;height:132px}
.live .board-card img {height:106px;width:106px}
.live .board-card span {font-size:13px}
@media (max-width:1350px) {
  .masthead {padding-inline:25px;gap:15px}
  .topnav {gap:14px}
  .layout.with-sidebar {grid-template-columns:204px minmax(0,1fr)}
  #sidebar {padding-inline:12px}
  .page {padding-inline:32px}
  .detail-rail-inner {padding-inline:32px}
  .detail-grid {grid-template-columns:minmax(0,1.6fr) minmax(340px,1fr)}
  .inspect {height:clamp(345px,54vh,620px)}
  .chapter-art button {max-width:117px}
  .chapter-art img {height:190px}
}
@media (max-width:1050px) {
  .masthead {gap:8px;padding-inline:15px}
  .topnav {gap:4px}
  .topnav button {padding-inline:8px;font-size:13px}
  .header-actions {gap:6px}
  .offline {display:none}
  .brand small {display:none}
  .brand {gap:7px}
  .brand strong {font-size:15px}
  .layout.with-sidebar {grid-template-columns:155px minmax(0,1fr)}
  .page {padding-inline:21px}
  .detail-rail-inner {padding-inline:21px;gap:8px}
  .detail-grid {grid-template-columns:1fr}
  .version-card .inspect,.live .version-card .inspect {height:clamp(330px,51vh,560px)}
  .hero-copy {padding-inline:34px}
  .chapters {grid-template-columns:minmax(170px,26%) 1fr}
  .chapter-main {padding:15px 20px;grid-template-columns:minmax(0,1fr) auto}
  .chapter-art {gap:0}
  .chapter-art button {max-width:93px}
  .chapter-art img {height:153px}
  .board-row {grid-template-columns:96px minmax(0,1fr)}
}
@media (max-width:730px) {
  body {grid-template-rows:62px minmax(0,1fr)}
  .brand span:last-child {display:none}
  .brand-icon {width:32px;height:32px;font-size:20px}
  .masthead {padding-inline:7px}
  .topnav button {padding-inline:5px}
  .header-actions .button {padding-inline:7px}
  .full {min-width:29px;height:32px;font-size:18px}
  .page {padding:20px 13px 32px}
  .layout.with-sidebar {grid-template-columns:108px minmax(0,1fr)}
  #sidebar {padding:10px 5px}
  .side-item {padding-inline:4px;grid-template-columns:16px 1fr;gap:3px;font-size:12px}
  .side-item small {display:none}
  .side-title {font-size:12px;margin-inline:4px}
  .hero-copy {padding:25px 18px}
  .hero-art {inset-inline-start:18%;opacity:.78}
  .hero-copy h1 {font-size:57px}
  .hero-copy p {font-size:16px}
  .chapters,.chapter-main {grid-template-columns:1fr}
  .chapter-list {border-right:0;border-bottom:1px solid var(--line)}
  .chapter-art {justify-content:start}
  .page-heading,.detail-heading,.toolbar-main,.board-toolbar {align-items:start;flex-direction:column}
  .view-options {justify-content:flex-start}
  .toolbar-filters {gap:5px;align-items:start}
  .heading-actions {flex-wrap:wrap}
  .button {font-size:12px;padding:7px 11px;min-height:36px}
  .detail-navigation {gap:5px;flex-wrap:wrap}
  .detail-rail-inner {padding-inline:8px;grid-template-columns:30px minmax(0,1fr) 30px;gap:4px}
  .detail-rail-label {display:none}
  .rail-arrow {min-width:30px;height:32px}
  .rail-card {flex-basis:89px;grid-template-rows:56px 16px}
  .version-card {padding:8px}
  .version-top {font-size:10px;white-space:normal}
  .version-state {font-size:13px}
  .version-card .inspect,.live .version-card .inspect {height:clamp(240px,45vh,400px)}
  .board-row {grid-template-columns:69px minmax(0,1fr)}
  .rank span {font-size:47px}
}
@media (max-width:520px) {
  body,body.live {grid-template-rows:96px minmax(0,1fr)}
  .masthead {grid-template-columns:auto minmax(0,1fr);grid-template-rows:48px 48px;gap:0 8px;padding-inline:10px}
  .topnav {grid-column:1/-1;grid-row:2;justify-content:space-between}
  .header-actions {grid-column:2;grid-row:1}
}
@media (prefers-reduced-motion:reduce) {*,*::before,*::after {transition:none!important}}
