:root {
  color-scheme: light;
  --ink: #172821;
  --muted: #50645a;
  --forest: #153d31;
  --deep: #102c25;
  --paper: #f3f6f0;
  --card: #fcfdf9;
  --line: #d9e3d7;
  --mint: #c8ef9d;
  --focus: #146a51;
  --shadow: 0 14px 30px #1d392811;
  --sans: "Avenir Next", "PingFang TC", "Hiragino Sans", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Songti TC", "Hiragino Mincho ProN", "Noto Serif CJK TC", "Georgia", serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5.5rem; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
[hidden] { display: none !important; }
p, h1, h2, h3, h4 { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.24; }
a { color: #24513e; text-underline-offset: .22em; }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button, input, select { min-height: 2.75rem; }
:focus-visible { outline: .19rem solid var(--focus); outline-offset: .22rem; }
.shell { width: min(74rem, calc(100% - 4rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; left: 1rem; top: .5rem; z-index: 10; padding: .6rem .8rem; border-radius: .5rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 5; background: #fcfefa; border-bottom: 1px solid var(--line); }
.header-grid { min-height: 4.25rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 3.7vw, 2.75rem); }
.brand { display: inline-flex; align-items: center; gap: .62rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 800; letter-spacing: .095em; white-space: nowrap; }
.brand > span:last-child > span { color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 2.45rem; height: 2.22rem; border-radius: .58rem .58rem .58rem .2rem; color: var(--mint); background: var(--forest); font-size: .94rem; letter-spacing: -.04em; }
.primary { display: flex; align-items: center; gap: .25rem; min-width: 0; overflow-x: auto; }
.primary a { padding: .58rem .68rem; min-height: 2.75rem; border-radius: .48rem; color: #43574b; text-decoration: none; font-size: .91rem; font-weight: 700; white-space: nowrap; }
.primary a:hover, .primary a[aria-current] { color: #173e2d; background: #e8f0e4; }
.top-actions { display: flex; align-items: center; gap: .55rem; }
.search-open, .language summary { display: flex; align-items: center; gap: .55rem; padding: .46rem .68rem; border: 1px solid var(--line); border-radius: .52rem; background: white; font-size: .89rem; font-weight: 700; white-space: nowrap; }
.search-open:hover, .language summary:hover { background: #edf5ea; }
.glass { position: relative; display: inline-block; width: .8rem; height: .8rem; border: .12rem solid currentColor; border-radius: 50%; }
.glass::after { content: ""; position: absolute; width: .37rem; height: .11rem; right: -.27rem; bottom: -.12rem; background: currentColor; transform: rotate(45deg); }
.language { position: relative; }
.language summary { min-height: 2.75rem; list-style: none; }
.language summary::-webkit-details-marker { display: none; }
.language-symbol { color: #517160; font-size: 1.1rem; line-height: 1; }
.language summary i { width: .42rem; height: .42rem; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-.12rem) rotate(45deg); }
.language nav { position: absolute; right: 0; top: calc(100% + .4rem); min-width: 8.75rem; padding: .3rem; background: white; border: 1px solid var(--line); border-radius: .6rem; box-shadow: var(--shadow); }
.language nav a { display: flex; align-items: center; min-height: 2.75rem; padding: .38rem .65rem; border-radius: .3rem; color: var(--ink); text-decoration: none; }
.language nav a:hover, .language nav a[aria-current] { background: #e7f0e3; }

.masthead { position: relative; overflow: hidden; min-height: 22.5rem; color: #f8fcf6; background: radial-gradient(ellipse at 78% 80%, #315c45 0, transparent 59%), linear-gradient(125deg, #122d26, #173c31 67%, #102c25); }
.masthead-grid { position: relative; min-height: 25rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.masthead-copy { position: relative; z-index: 2; padding: 3.15rem 0 3.7rem; }
.masthead-scope { display: flex; gap: .62rem; align-items: center; margin-bottom: .75rem; color: #d1efbd; font-weight: 740; font-size: .87rem; letter-spacing: .06em; }
.masthead-scope span { border-left: 1px solid #bcddac69; padding-left: .65rem; }
.masthead h1 { margin-bottom: .5rem; font: 800 clamp(3rem, 6vw, 5.15rem)/1.03 var(--serif); letter-spacing: .025em; text-wrap: balance; }
.masthead-subtitle { margin-bottom: 1.15rem; color: #c4dacb; letter-spacing: .19em; font-size: .84rem; font-weight: 730; }
.masthead-lead { margin-bottom: 1.55rem; max-width: 32rem; color: #edf5ed; font-size: clamp(1rem, 1.5vw, 1.08rem); }
.masthead-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .53rem .95rem; border: 1px solid transparent; border-radius: .52rem; font-weight: 760; text-decoration: none; }
.button.solid { color: #1d382a; background: var(--mint); }
.button.solid:hover { background: #def6bb; }
.button.outline { color: #f0f9ed; border-color: #91b3a1; background: #162d2470; }
.button.outline:hover { background: #294e3d; }
.masthead :focus-visible { outline-color: var(--mint); }

.stone-art { position: relative; height: 100%; min-height: 22rem; isolation: isolate; }
.art-lines { position: absolute; inset: 9% -18% 2% -6%; opacity: .35; background-image: linear-gradient(#c4f4af29 1px, transparent 1px), linear-gradient(90deg, #c4f4af29 1px, transparent 1px); background-size: 2rem 2rem; mask-image: radial-gradient(ellipse at center, #000, transparent 72%); }
.orbit { position: absolute; width: 77%; aspect-ratio: 1; left: 11.5%; top: 49%; border: 1px solid #c7f2b52c; border-radius: 50%; transform: translateY(-50%); }
.orbit.two { width: 90%; left: 5%; border-style: dashed; border-color: #c7f2b51d; }
.stone { position: absolute; top: 12%; left: 29%; width: 42%; height: 72%; transform: rotate(9deg); filter: drop-shadow(0 0 32px #b6f3a450); }
.stone i { position: absolute; inset: 0; clip-path: polygon(52% 0, 86% 23%, 99% 56%, 70% 88%, 35% 100%, 10% 72%, 3% 40%, 18% 18%); background: linear-gradient(115deg, #d9ffad, #69b883 36%, #326e56 70%, #204b43); }
.stone i:nth-child(2) { clip-path: polygon(52% 0, 72% 37%, 59% 70%, 35% 100%, 10% 72%, 25% 36%); background: linear-gradient(149deg, #e4ffb2 3%, #a0e493 41%, #5ca77f 68%, #35735c); }
.stone i:nth-child(3) { clip-path: polygon(52% 0, 86% 23%, 99% 56%, 59% 70%, 72% 37%); background: linear-gradient(145deg, #a3e997, #79c38b 42%, #387b61 87%); }
.stone i:nth-child(3)::after { content: ""; position: absolute; top: 21%; left: 48%; width: 31%; height: 21%; background: #f2ffb057; clip-path: polygon(0 0, 100% 85%, 91% 100%, 3% 2%); }
.stone-shadow { position: absolute; left: 25%; bottom: 7%; width: 52%; height: 16%; border-radius: 50%; background: #080f11a0; filter: blur(.82rem); }
.shard { position: absolute; width: 11%; height: 19%; clip-path: polygon(47% 0, 100% 43%, 65% 100%, 0 70%, 13% 23%); background: linear-gradient(138deg, #d6f9b3, #66ac7d 55%, #295e4a 84%); }
.shard-left { left: 13%; top: 57%; transform: rotate(-23deg); }
.shard-right { right: 13%; top: 26%; width: 9%; height: 14%; transform: rotate(21deg); }
.star { color: #cce9ab; position: absolute; font-size: 1.16rem; }
.star-top { top: 14%; left: 18%; }
.star-left { bottom: 19%; left: 22%; }
.star-right { top: 64%; right: 11.5%; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; margin-top: -1.2rem; z-index: 2; background: var(--card); border: 1px solid var(--line); border-radius: .77rem; box-shadow: var(--shadow); }
.stats div { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .14rem .6rem; padding: .92rem .5rem; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { color: #205039; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .86rem; font-weight: 680; }
.section { padding-block: 2.2rem 1rem; }
.section > h2, .section-heading h2 { margin: 0 0 .42rem; font: 760 clamp(1.55rem, 3.5vw, 2.1rem)/1.2 var(--serif); }
.section > h2 { margin-bottom: 1rem; }
.section-heading { margin-bottom: 1rem; }
.section-heading p { margin: 0; color: var(--muted); }
.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.section-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 1rem 1.12rem 1.05rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 2px 8px #153d3105; }
.section-card:hover, .hero-card:hover { border-color: #8bb19a; box-shadow: var(--shadow); }
.section-icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; margin-bottom: .63rem; border-radius: .57rem; background: #dcebdd; color: #2b5b43; font-size: 1.35rem; line-height: 1; }
.section-card:nth-child(2) .section-icon { background: #e7e9f1; color: #505983; }
.section-card:nth-child(3) .section-icon { background: #f1ebd8; color: #746333; }
.section-card h3 { margin-bottom: .28rem; font-size: 1.1rem; }
.section-card p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }
.hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.hero-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center; padding: .76rem .85rem; border: 1px solid var(--line); border-radius: .62rem; background: var(--card); text-decoration: none; color: var(--ink); }
.hero-token { display: grid; grid-row: 1 / 3; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: .62rem; font-size: 1.7rem; background: #e0ebe1; color: #2e6448; }
.hero-card.magic .hero-token { color: #5d5591; background: #ebe7f1; }
.hero-card.melee .hero-token { color: #804d32; background: #f4e8dc; }
.hero-card.heal .hero-token { color: #756323; background: #f5efdb; }
.hero-card.trap .hero-token { color: #456786; background: #e2eaf2; }
.hero-card.buff .hero-token { color: #356e5b; background: #dceee6; }
.hero-label { line-height: 1.3; }
.hero-role { color: var(--muted); font-size: .88rem; }
.original { display: block; color: #586c62; font-size: .81rem; font-weight: 520; line-height: 1.45; overflow-wrap: anywhere; }

.page-intro { background: linear-gradient(113deg, #e9f2e5, #dcebe1); border-bottom: 1px solid #d3e2d4; }
.intro-content { min-height: 12rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 2.3rem; }
.scope { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: #345f4a; margin-bottom: .52rem; font-size: .89rem; font-weight: 720; }
.scope span { border-left: 1px solid #a8bfb2; padding-left: .62rem; }
.scope a { color: #305a46; }
.page-intro h1 { margin-bottom: .5rem; font: 760 clamp(2.1rem, 4.8vw, 3.4rem)/1.16 var(--serif); }
.page-intro h1 .original { display: inline-block; margin-left: .7rem; font: 600 clamp(.93rem, 2vw, 1.24rem)/1.38 var(--sans); }
.intro-lead { color: #425f50; font-size: 1rem; margin-bottom: 0; }
.page-icon { display: grid; place-items: center; flex: 0 0 clamp(4.4rem, 11vw, 7.1rem); aspect-ratio: 1; border-radius: 1.25rem; color: #325f48; border: 1px solid #c4dbca; background: #eaf3e9; font-size: clamp(2.1rem, 6vw, 3.3rem); }
.requirements { margin-top: 1.22rem; padding: 0 .95rem; background: #e8f0e7; border: 1px solid #cedfce; border-radius: .58rem; }
.requirements summary, .sources summary { min-height: 2.75rem; padding: .61rem 0; font-weight: 720; }
.requirements ul { padding-left: 1.25rem; margin: 0 0 .9rem; }
.requirements li + li { margin-top: .31rem; }

.tree { padding: 1rem; border: 1px solid var(--line); border-radius: .82rem; background: var(--card); }
.tree-base { position: relative; display: flex; justify-content: center; padding-bottom: .95rem; }
.tree-base::after { content: ""; position: absolute; width: 1px; background: #a6bdad; height: .95rem; left: 50%; bottom: 0; }
.tree-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; position: relative; }
.tree-paths::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; border-top: 1px solid #a6bdad; }
.tree-lane { --branch: #bdd2b6; --leaf: #edf4e7; position: relative; display: grid; justify-items: center; align-content: start; padding: .75rem .65rem .85rem; }
.tree-lane.dark { --branch: #c9bbd5; --leaf: #f2edf5; }
.tree-lane::before { content: ""; position: absolute; width: 1px; left: 50%; top: 0; height: .8rem; background: #a6bdad; }
.lane-label { position: relative; margin: 0 0 .48rem; padding: .04rem .55rem; border-radius: .36rem; color: #315843; background: #e7f1e3; font-size: .89rem; font-weight: 760; }
.tree-lane.dark .lane-label { color: #5b416d; background: #eee6f2; }
.tree-node { display: flex; position: relative; flex-direction: column; justify-content: center; align-items: center; width: min(100%, 12rem); min-height: 4rem; padding: .4rem .5rem; border: 1px solid var(--branch, #c8dbcd); border-radius: .57rem; background: var(--leaf, #eff5ed); text-align: center; color: var(--ink); text-decoration: none; line-height: 1.3; }
.tree-node:hover { border-color: #527c67; box-shadow: 0 3px 10px #2148361e; }
.node-tier { margin-bottom: .18rem; color: #456253; font-size: .77rem; font-weight: 660; }
.tree-fork { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; width: 100%; max-width: 25rem; padding-block: .76rem; }
.tree-fork::before, .tree-fork::after { content: ""; position: absolute; height: .76rem; border-left: 1px solid var(--branch); border-right: 1px solid var(--branch); width: 50%; left: 25%; }
.tree-fork::before { top: 0; border-top: 1px solid var(--branch); }
.tree-fork::after { bottom: 0; border-bottom: 1px solid var(--branch); }
.tree-fork .tree-node { z-index: 1; width: auto; }
.class-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.class-detail { background: var(--card); border: 1px solid var(--line); border-radius: .72rem; overflow: hidden; }
.class-detail:target { outline: 2px solid #4e8668; outline-offset: .18rem; }
.class-detail > header { padding: .85rem .93rem; background: #edf4eb; border-bottom: 1px solid var(--line); }
.class-detail h3 { margin: .4rem 0 0; font-size: 1.21rem; }
.class-detail dl { padding: .8rem .93rem 0; margin: 0; }
.class-detail dl div { padding-bottom: .85rem; }
.class-detail dt { color: #4b6759; font-weight: 735; font-size: .87rem; }
.class-detail dd { margin: .25rem 0 0; }
.class-detail dd p { margin: .2rem 0 0; font-size: .93rem; }
.tag, .element { display: inline-flex; justify-content: center; align-items: center; padding: .13rem .48rem; border-radius: .32rem; background: #e6efe4; color: #295441; font-size: .82rem; font-weight: 740; white-space: nowrap; }
.tag.dark, .element.dark { background: #ece3f2; color: #624475; }
.element.fire { background: #f7e4d8; color: #8a4329; }
.element.water { background: #e1edf5; color: #285773; }
.element.earth { background: #f1e9d8; color: #72572e; }
.element.wind { background: #e6edef; color: #3a5d70; }
.element.moon { background: #eee7f4; color: #614774; }
.element.light { background: #f5edcf; color: #705c30; }
.element.none { background: #ecede8; color: #4e5953; }
.new-moves { margin: 0 .92rem .7rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.new-moves h4 { color: #4b6759; margin-bottom: .22rem; font-size: .87rem; }
.new-moves ul { display: flex; flex-wrap: wrap; gap: .23rem .42rem; padding: 0; margin: 0; list-style: none; }
.move-link { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .25rem .48rem; background: #edf4e9; border-radius: .33rem; font-size: .88rem; text-decoration: none; }
.move-link:hover { background: #deecda; }

.table-block { margin-bottom: .35rem; }
.filter-bar { display: flex; align-items: end; gap: .68rem; padding: .75rem .82rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--card); }
.filter-bar label { display: grid; gap: .2rem; font-size: .87rem; color: #415d50; font-weight: 700; }
.filter-input { flex: 1 1 14rem; min-width: 0; }
input[type="search"], select { width: 100%; border: 1px solid #afc0b4; background: #fefffc; border-radius: .45rem; padding: .43rem .66rem; }
input[type="search"]::placeholder { color: #5d7267; }
.select-wrap { position: relative; min-width: 8rem; }
.select-wrap select { appearance: none; padding-right: 1.85rem; }
.select-wrap::after { content: ""; position: absolute; right: .77rem; top: 43%; width: .45rem; height: .45rem; border-right: 1px solid #426353; border-bottom: 1px solid #426353; transform: rotate(45deg); pointer-events: none; }
.soft { flex: 0 0 auto; padding: .4rem .66rem; border: 1px solid #b6c9bb; border-radius: .48rem; background: #f5f9f3; color: #2b5040; }
.soft:hover { background: #e7f0e5; }
.filter-meta { display: flex; justify-content: space-between; gap: .7rem; margin: .66rem .15rem .4rem; color: var(--muted); font-size: .84rem; }
.filter-meta p { margin: 0; }
.filter-meta > span { display: none; }
.table-frame { overflow: auto; border: 1px solid var(--line); border-radius: .65rem; background: var(--card); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: .6rem .83rem; background: #e3eee3; color: #365847; font-size: .85rem; font-weight: 760; }
td { padding: .66rem .83rem; border-bottom: 1px solid #e1e9e0; vertical-align: top; font-size: .96rem; }
tbody tr:nth-child(even) { background: #f6f9f3; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:target { background: #eef5cf; }
td a { text-decoration-thickness: 1px; }
td ul { padding: 0; margin: 0; list-style: none; }
.owners li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .09rem .5rem; }
.owners span { color: #516456; white-space: nowrap; font-size: .87rem; }
.owners li + li { margin-top: .15rem; }
td:first-child { width: 23%; }
.class-table td:nth-child(2), .class-table td:nth-child(3), .items-table td:nth-child(2) { white-space: nowrap; }
.moves-table td:last-child { width: 30%; }
.moves-table td.number { text-align: center; font-variant-numeric: tabular-nums; }
.item-type { color: #456151; font-size: .88rem; font-weight: 660; }
.empty { padding: .8rem; margin: .7rem 0; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); }

.site-footer { margin-top: 2.3rem; padding: 1.1rem 0 1.55rem; border-top: 1px solid var(--line); color: var(--muted); background: #edf2eb; }
.sources { padding-bottom: .28rem; border-bottom: 1px solid #d8e4d8; }
.sources p { margin: 0 0 .4rem; }
.sources ul { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; list-style: none; padding: 0; margin: 0 0 .65rem; }
.sources li a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.copyright { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin: .75rem 0 0; font-size: .87rem; font-weight: 750; }
.copyright span { font-weight: 500; }
.selector { padding-top: 2rem; }
.selector h1 { margin-top: 1rem; font-family: var(--serif); }
.selector .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.selector .section-card span { color: var(--muted); }

dialog { width: min(39rem, calc(100% - 1.3rem)); max-height: min(82vh, 48rem); margin: 8vh auto 0; padding: 1rem; border: 1px solid #99b6a6; border-radius: .9rem; background: var(--card); color: var(--ink); box-shadow: 0 1rem 3rem #122e2590; }
dialog::backdrop { background: #102b22a6; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.dialog-head h2 { margin: 0; font-size: 1.3rem; }
#search-status { margin: .4rem 0 .75rem; color: var(--muted); font-size: .87rem; }
#search-results { margin: 0; padding: 0; list-style: none; }
#search-results li + li { margin-top: .33rem; }
#search-results a { display: grid; grid-template-columns: 1fr auto; gap: .25rem .5rem; padding: .51rem .65rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: .43rem; color: var(--ink); text-decoration: none; }
#search-results a:hover, #search-results a:focus-visible { background: #e8f2e4; }
.result-kind { color: #365a47; font-size: .81rem; font-weight: 700; }
.result-detail { grid-column: 1 / -1; color: #405b4e; font-size: .89rem; }

@media (max-width: 62rem) {
  .shell { width: calc(100% - 2.6rem); }
  .header-grid { gap: .8rem; }
  .primary a { padding-inline: .48rem; }
}
@media (max-width: 50rem) {
  html { scroll-padding-top: 7rem; }
  .header-grid { grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; padding-top: .35rem; }
  .primary { grid-row: 2; grid-column: 1 / -1; min-width: 0; overflow-x: auto; }
  .primary a { flex: 0 0 auto; }
  .masthead-grid { min-height: 22rem; }
  .masthead-copy { padding-block: 2rem 2.9rem; }
  .stone-art { min-height: 18rem; }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moves-table, .class-table { min-width: 42rem; }
  .filter-meta > span { display: inline; }
}
@media (max-width: 37rem) {
  .shell { width: calc(100% - 1.55rem); }
  .masthead-grid { min-height: 21rem; display: block; }
  .masthead-copy { max-width: 100%; padding-top: 2.3rem; }
  .masthead h1 { font-size: clamp(2.35rem, 10vw, 3.05rem); }
  .masthead-lead { max-width: 24rem; }
  .stone-art { position: absolute; inset: 0 -5rem 0 39%; min-height: 0; opacity: .33; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { padding: .7rem .35rem; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding-top: 1.6rem; }
  .section-grid { grid-template-columns: 1fr; gap: .56rem; }
  .section-card { display: grid; grid-template-columns: auto 1fr; gap: .05rem .6rem; align-items: center; padding: .68rem .7rem; }
  .section-card .section-icon { grid-row: 1 / 3; margin-bottom: 0; }
  .section-card h3 { margin: 0; }
  .section-card p { grid-column: 2; font-size: .9rem; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .hero-card { padding: .55rem .47rem; column-gap: .44rem; }
  .hero-token { width: 2.3rem; height: 2.3rem; font-size: 1.2rem; }
  .hero-role { font-size: .8rem; line-height: 1.37; }
  .intro-content { min-height: 10rem; padding-block: 1.5rem; }
  .page-intro h1 .original { display: block; margin: .13rem 0 0; }
  .filter-bar { flex-wrap: wrap; gap: .48rem; }
  .filter-input { flex: 1 1 100%; }
  .select-wrap { min-width: 6.1rem; }
  .reset { margin-left: auto; }
  .items-table { min-width: 27rem; }
  .tree { padding: .7rem .35rem; }
  .tree-paths { gap: .15rem; }
  .tree-lane { padding-inline: .16rem; }
  .tree-fork { gap: .27rem; }
  .tree-node { padding-inline: .22rem; }
  .tree-node strong { font-size: .91rem; }
  .tree-node .original { font-size: .75rem; }
  .class-grid { grid-template-columns: 1fr; }
  .selector .section-card { display: flex; }
}
@media (max-width: 27rem) {
  .brand { gap: .45rem; font-size: .83rem; letter-spacing: .06em; }
  .brand-mark { width: 2.18rem; }
  .search-open { width: 2.75rem; justify-content: center; padding-inline: .5rem; }
  .search-open > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.soft:disabled { opacity: .55; cursor: default; }

.party-art {
  position: relative;
  min-height: 20rem;
  height: 100%;
  isolation: isolate;
}
.party-art img {
  position: absolute;
  width: 70%;
  height: 94%;
  bottom: -3%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 .3rem .85rem #071f18b0);
}
.party-art .party-duran { left: 2%; height: 88%; }
.party-art .party-angela { left: 15%; }
.party-art .party-ries { right: -4%; height: 88%; }
.hero-portrait { display: block; width: 100%; height: 100%; object-fit: contain; }
.intro-portrait { width: clamp(5.4rem, 18vw, 11rem); height: clamp(5.5rem, 18vw, 11rem); object-fit: contain; }
.class-detail > header.has-art { display: grid; grid-template-columns: minmax(0, 1fr) 5rem; align-items: center; gap: .45rem; }
.job-portrait { width: 100%; height: 5.4rem; object-fit: contain; }
.illustrated { display: inline-grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .58rem; align-items: center; vertical-align: middle; max-width: 100%; }
.illustrated img { display: block; width: 2.25rem; height: 2.25rem; padding: .05rem; border: 1px solid #d8e4d6; border-radius: .46rem; background: #eef5e9; image-rendering: pixelated; }
.illustrated strong { line-height: 1.4; }
.move-link .illustrated { grid-template-columns: 1.5rem minmax(0, 1fr); gap: .27rem; }
.move-link .illustrated img { width: 1.5rem; height: 1.5rem; }
.guide-note { margin: 0 0 1rem; padding: .86rem 1rem; border: 1px solid var(--line); background: var(--card); border-radius: .65rem; }
.guide-note p { margin: .52rem 0; }
.guide-note p:last-child { margin-bottom: 0; }
.guide-columns { display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr; gap: 1rem; margin-top: .9rem; }
.guide-columns h3 { margin-bottom: .25rem; font-size: 1rem; }
.guide-columns ul { margin: .28rem 0 0; padding-left: 1.2rem; }
.guide-columns li + li { margin-top: .24rem; }
.cell-link { display: block; width: fit-content; margin-top: .18rem; font-size: .9rem; }
.cell-detail { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.miss-note { display: block; width: fit-content; margin-top: .31rem; padding: 0 .37rem; border-radius: .25rem; background: #f4e8d4; color: #765125; font-size: .78rem; font-weight: 710; }
.gear-stats { display: flex; flex-direction: column; line-height: 1.48; }
.gear-stats small { color: var(--muted); }
.gear-owners li + li { margin-top: .16rem; }
.gear-owners span { color: var(--muted); font-size: .89rem; }
.equipment-table .item-type { display: block; margin-top: .2rem; }
.scope-note { color: var(--muted); margin-bottom: .67rem; }
.chains-table, .equipment-table { min-width: 40rem; }
.class-acquire-table { min-width: 32rem; }
.class-acquire-table td:first-child { width: 28%; }

@media (max-width: 74rem) {
  .header-grid { grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; padding-top: .35rem; }
  .primary { grid-row: 2; grid-column: 1 / -1; }
  .primary a { flex: 0 0 auto; }
  html { scroll-padding-top: 7rem; }
}

@media (max-width: 37rem) {
  .guide-columns { grid-template-columns: 1fr; gap: .7rem; }
  .party-art {
    position: absolute;
    inset: 0 -6rem 0 31%;
    min-height: 0;
    opacity: .4;
  }
  .party-art .party-duran, .party-art .party-ries { display: none; }
  .party-art .party-angela { width: 100%; left: 0; height: 90%; }
}
