:root {
    --ink-950: #09110f;
    --ink-900: #101a17;
    --ink-850: #15231f;
    --ink-800: #1c2c27;
    --ink-700: #2c4039;
    --paper-100: #f3eedf;
    --paper-200: #e6dcc4;
    --paper-300: #d5c7a8;
    --paper-ink: #28312d;
    --jade-300: #9fc7b2;
    --jade-500: #5b9278;
    --jade-700: #386c56;
    --gold-300: #e2c37d;
    --gold-500: #bd9450;
    --cinnabar: #b94d3d;
    --muted-light: #aebdb6;
    --line-dark: rgba(224, 194, 125, 0.2);
    --line-paper: rgba(42, 55, 48, 0.18);
    --shadow: 0 24px 70px rgba(4, 10, 8, 0.22);
    --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
    --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0;
    color: var(--paper-100);
    background: var(--ink-950) url("../images/site-pattern.png") repeat;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 30;
    opacity: 0.018;
    background-image:
        repeating-linear-gradient(17deg, transparent 0 5px, rgba(255, 255, 255, 0.65) 6px 7px),
        repeating-linear-gradient(103deg, transparent 0 9px, rgba(255, 255, 255, 0.35) 10px 11px);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
p, h1, h2, h3 { margin-top: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 9px 14px;
    background: var(--paper-100);
    color: var(--ink-900);
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }

.section-shell { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 2; }
.section { position: relative; padding: 112px 0; overflow: hidden; }
.section-paper { background: var(--paper-100); color: var(--paper-ink); }
.section-dark { background: linear-gradient(145deg, rgba(8, 18, 15, 0.97), rgba(22, 39, 33, 0.97)); }
.section-library { background: #ddd1b5; color: var(--paper-ink); }
.section-heading { max-width: 800px; margin-bottom: 52px; }
.section-heading h2, .guide-intro h2 {
    margin-bottom: 16px;
    font-family: var(--serif);
    font-size: clamp(2.15rem, 4vw, 4.2rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.08;
}
.section-heading > p:last-child { color: inherit; opacity: 0.75; max-width: 760px; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: end; }
.split-heading p:last-child { margin-bottom: 8px; }
.kicker, .eyebrow, .feature-tag {
    margin-bottom: 12px;
    color: var(--gold-500);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: 72px;
    border-bottom: 1px solid rgba(227, 196, 125, 0.16);
    background: rgba(8, 16, 14, 0.84);
    backdrop-filter: blur(16px) saturate(115%);
}
.header-inner {
    width: min(1380px, calc(100% - 36px));
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-seal {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(226, 195, 125, 0.68);
    background: var(--cinnabar);
    box-shadow: inset 0 0 0 3px rgba(255, 238, 198, 0.12);
    color: #f8e8bd;
    font-family: var(--serif);
    font-size: 1.35rem;
}
.brand strong { display: block; font-family: var(--serif); font-size: 1rem; letter-spacing: 0.16em; }
.brand small { display: block; margin-top: -3px; color: var(--muted-light); font-size: 0.53rem; letter-spacing: 0.19em; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.site-nav a { position: relative; color: #b7c4be; font-size: 0.83rem; text-decoration: none; transition: color 180ms ease; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 1px; background: var(--gold-300); transition: right 180ms ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--paper-100); }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.language-switch { display: inline-flex; flex: 0 0 auto; padding: 2px; border: 1px solid rgba(226, 195, 125, 0.38); background: rgba(4, 11, 9, 0.5); }
.language-switch button { min-width: 34px; height: 28px; padding: 0 8px; border: 0; background: transparent; color: #93a39b; font: 700 0.68rem/1 var(--sans); letter-spacing: 0.04em; cursor: pointer; }
.language-switch button:hover { color: var(--paper-100); }
.language-switch button.is-active { background: var(--gold-500); color: var(--ink-950); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: currentColor; }

.hero {
    position: relative;
    min-height: 880px;
    padding: 150px 0 54px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink-950) url("../images/site-hero.jpg") center/cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 13, 11, 0.98) 0%, rgba(7, 16, 13, 0.91) 45%, rgba(8, 18, 15, 0.37) 74%, rgba(5, 12, 10, 0.78) 100%), linear-gradient(0deg, var(--ink-950), transparent 32%); }
.hero-ink { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.5; }
.hero-ink-one { width: 720px; height: 720px; top: 8%; right: -180px; border: 1px solid rgba(222, 191, 119, 0.22); box-shadow: 0 0 90px rgba(74, 126, 101, 0.25), inset 0 0 90px rgba(12, 23, 19, 0.7); }
.hero-ink-two { width: 380px; height: 380px; right: 19%; bottom: -250px; background: rgba(183, 73, 58, 0.18); filter: blur(70px); }
.hero-layout { display: grid; grid-template-columns: minmax(480px, 0.92fr) minmax(480px, 1.08fr); gap: 24px; align-items: center; }
.hero-copy { position: relative; z-index: 5; max-width: 680px; }
.eyebrow { color: var(--jade-300); }
.hero h1 { margin-bottom: 30px; font-family: var(--serif); font-weight: 600; line-height: 0.96; }
.hero h1 span { display: block; font-size: clamp(4rem, 7.2vw, 7.4rem); letter-spacing: -0.08em; text-shadow: 0 5px 25px rgba(0, 0, 0, 0.4); }
.hero h1 em { display: block; margin-top: 18px; color: var(--gold-300); font-size: clamp(1.45rem, 2.6vw, 2.5rem); font-style: normal; letter-spacing: 0.48em; }
.hero-lead { max-width: 620px; margin-bottom: 18px; color: #e9dfc8; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.6; }
.hero-body { max-width: 610px; color: #aebcb5; }
.hero-actions { display: flex; gap: 12px; margin: 34px 0 16px; }
.button { display: inline-flex; min-width: 140px; min-height: 46px; align-items: center; justify-content: center; padding: 10px 22px; border: 1px solid var(--gold-500); text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: transform 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold-500); color: var(--ink-950); }
.button-ghost { background: rgba(8, 17, 14, 0.48); color: var(--paper-100); }
.release-note { color: #7f9189; font-size: 0.76rem; }
.hero-art { position: relative; align-self: stretch; min-height: 620px; z-index: 3; }
.hero-halo { position: absolute; width: 480px; height: 480px; top: 55px; left: 50%; transform: translateX(-48%); border: 1px solid rgba(227, 193, 113, 0.28); border-radius: 50%; box-shadow: inset 0 0 70px rgba(219, 175, 86, 0.1), 0 0 90px rgba(80, 126, 103, 0.12); }
.hero-halo::before, .hero-halo::after { content: ""; position: absolute; inset: 28px; border: 1px dashed rgba(227, 193, 113, 0.16); border-radius: 50%; }
.hero-halo::after { inset: 74px; border-style: solid; }
.hero-character { position: absolute; bottom: -10px; width: 46%; height: 650px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 26px 20px rgba(0, 0, 0, 0.58)); }
.hero-character-center { left: 27%; z-index: 3; transform: scale(1.1); }
.hero-character-left { left: 0; z-index: 2; transform: translateY(28px) rotate(-1deg) scale(0.95); opacity: 0.88; }
.hero-character-right { right: 0; z-index: 1; transform: translateY(30px) rotate(1deg) scale(0.95); opacity: 0.86; }
.hero-inscription { position: absolute; right: -12px; top: 82px; z-index: 5; writing-mode: vertical-rl; color: rgba(241, 225, 185, 0.78); font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.18em; }
.hero-inscription span { color: var(--gold-300); font-size: 0.78rem; }
.hero-metrics { margin-top: 28px; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: rgba(7, 15, 12, 0.42); }
.hero-metric { padding: 16px 18px 13px; border-right: 1px solid var(--line-dark); }
.hero-metric:last-child { border-right: 0; }
.hero-metric strong { display: block; color: var(--gold-300); font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.hero-metric span { color: #91a39a; font-size: 0.7rem; letter-spacing: 0.12em; }

.overview-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; border-top: 1px solid var(--line-paper); border-left: 1px solid var(--line-paper); }
.feature { position: relative; min-height: 280px; padding: 34px; border-right: 1px solid var(--line-paper); border-bottom: 1px solid var(--line-paper); }
.feature-major { grid-row: span 2; min-height: 560px; padding: 48px; background: linear-gradient(145deg, var(--ink-850), var(--ink-950)); color: var(--paper-100); }
.feature-number { display: block; margin-bottom: 68px; color: var(--gold-500); font-family: var(--serif); font-size: 3.3rem; opacity: 0.65; }
.feature:not(.feature-major) .feature-number { position: absolute; right: 28px; top: 26px; margin: 0; color: var(--paper-ink); font-size: 2.2rem; opacity: 0.13; }
.feature h3 { font-family: var(--serif); font-size: 1.55rem; }
.feature p:last-child { margin-bottom: 0; opacity: 0.75; }
.feature-major h3 { margin-top: 24px; font-size: clamp(2rem, 3vw, 3rem); }
.feature-major .feature-tag { color: var(--jade-300); }
.battle-loop { margin-top: 48px; display: grid; grid-template-columns: repeat(7, auto); align-items: center; justify-content: space-between; gap: 12px; }
.battle-loop div { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
.battle-loop div span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--gold-500); color: var(--cinnabar); font-family: var(--serif); }
.battle-loop strong { font-family: var(--serif); }
.battle-loop small { color: #68766f; }
.battle-loop i { color: var(--gold-500); font-style: normal; }

.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); }
.system-card { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 34px 34px 34px 0; border-bottom: 1px solid var(--line-dark); }
.system-card:nth-child(odd) { padding-right: 50px; border-right: 1px solid var(--line-dark); }
.system-card:nth-child(even) { padding-left: 50px; }
.system-card > span { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(224, 194, 125, 0.42); color: var(--gold-300); font-family: var(--serif); font-size: 1.7rem; }
.system-card h3 { margin-bottom: 7px; font-family: var(--serif); font-size: 1.35rem; }
.system-card p { margin: 0; color: #9fb0a8; }

.character-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.character-card { position: relative; min-height: 480px; overflow: hidden; background: var(--ink-850); color: var(--paper-100); box-shadow: var(--shadow); }
.character-card:nth-child(1), .character-card:nth-child(6) { grid-column: span 2; }
.character-portrait { height: 290px; width: 100%; object-fit: contain; object-position: center bottom; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--character-color) 22%, transparent), transparent 64%), linear-gradient(160deg, #263a32, #101916); }
.character-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-top: 3px solid var(--character-color); }
.character-copy { padding: 22px; }
.character-copy h3 { margin-bottom: 2px; font-family: var(--serif); font-size: 1.55rem; }
.character-quote { margin-bottom: 12px; color: var(--gold-300); font-family: var(--serif); font-size: 0.88rem; }
.character-trait { min-height: 65px; color: #aebbb5; font-size: 0.84rem; }
.character-trait strong { color: #e7ddc8; }
.character-loadout { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.character-loadout span, .tag { padding: 3px 7px; border: 1px solid rgba(226, 195, 125, 0.25); color: #c9d2cd; font-size: 0.69rem; }
.character-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.character-stats span { display: block; color: #7f9188; font-size: 0.61rem; }
.character-stats b { display: block; color: #f3ead6; font-size: 0.78rem; }

.library-toolbar { position: sticky; top: 86px; z-index: 8; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 42px; padding: 12px; background: rgba(230, 220, 196, 0.92); border: 1px solid var(--line-paper); box-shadow: 0 12px 30px rgba(33, 44, 38, 0.12); backdrop-filter: blur(12px); }
.search-box { flex: 1; max-width: 540px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: rgba(255, 255, 255, 0.36); border-bottom: 1px solid #78877f; }
.search-box span { font-size: 1.5rem; }
.search-box input { width: 100%; height: 44px; border: 0; outline: 0; background: transparent; color: var(--paper-ink); }
.segmented, .filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented button, .filter-row button { border: 1px solid rgba(42, 55, 48, 0.28); background: transparent; padding: 9px 16px; cursor: pointer; }
.segmented button:hover, .segmented button.is-active, .filter-row button:hover, .filter-row button.is-active { background: var(--ink-800); border-color: var(--ink-800); color: var(--paper-100); }
.library-panel { margin-top: 56px; }
.library-panel[hidden] { display: none; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid var(--line-paper); }
.panel-title h3 { margin-bottom: 11px; font-family: var(--serif); font-size: 1.75rem; }
.panel-title span { color: #6c776f; font-size: 0.78rem; }
.item-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.item-card { min-height: 198px; padding: 16px; border: 1px solid rgba(37, 52, 44, 0.18); background: rgba(247, 242, 228, 0.56); transition: transform 150ms ease, background 150ms ease; }
.item-card:hover { transform: translateY(-3px); background: rgba(255, 252, 242, 0.82); }
.item-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item-card img { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 8px 7px rgba(20, 28, 24, 0.2)); }
.tier-badge { min-width: 38px; padding: 2px 5px; border-top: 2px solid var(--tier-color); color: #536059; font-size: 0.65rem; text-align: right; }
.item-card h4 { margin: 12px 0 4px; font-family: var(--serif); font-size: 1.05rem; }
.item-card p { margin: 0; color: #69756e; font-size: 0.73rem; line-height: 1.55; }
.item-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.item-meta span { padding: 2px 5px; background: rgba(37, 52, 44, 0.08); color: #556159; font-size: 0.62rem; }
.recipe-wrap { overflow-x: auto; border: 1px solid var(--line-paper); background: rgba(247, 242, 228, 0.45); }
.recipe-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.recipe-table th { padding: 14px 18px; background: var(--ink-800); color: #dce4df; font-size: 0.72rem; letter-spacing: 0.08em; text-align: left; }
.recipe-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-paper); vertical-align: middle; }
.recipe-table tr:last-child td { border-bottom: 0; }
.recipe-table tr[hidden] { display: none; }
.recipe-id { color: #76847c; font-family: ui-monospace, monospace; }
.recipe-items { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.recipe-plus { color: var(--cinnabar); font-weight: 800; }
.recipe-item { display: inline-flex; align-items: center; gap: 7px; }
.recipe-item img { width: 36px; height: 36px; object-fit: contain; }
.recipe-item span { display: grid; line-height: 1.15; }
.recipe-item small { color: #78837c; font-size: 0.63rem; }
.recipe-result { font-family: var(--serif); font-weight: 700; }
.empty-state { padding: 40px; text-align: center; border: 1px dashed #839088; }

.filter-row { margin-bottom: 30px; }
.enemy-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.enemy-card { position: relative; padding: 15px; overflow: hidden; border: 1px solid var(--line-paper); background: rgba(255, 255, 255, 0.42); }
.enemy-card[hidden] { display: none; }
.enemy-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--enemy-color); }
.enemy-card img { width: 100%; height: 128px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 8px 6px rgba(29, 37, 33, 0.2)); }
.enemy-card h3 { margin: 10px 0 2px; font-family: var(--serif); font-size: 1.05rem; }
.enemy-type { color: #718078; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; }
.enemy-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 9px; font-size: 0.67rem; color: #5d6b63; }
.enemy-skills { margin-top: 10px; color: #6f7973; font-size: 0.68rem; line-height: 1.45; }

.chapter-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, rgba(94, 143, 117, 0.11), transparent 30%), linear-gradient(transparent, rgba(5, 12, 10, 0.35)); }
.chapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chapter-card { position: relative; min-height: 330px; overflow: hidden; background: #14211d; border: 1px solid var(--line-dark); }
.chapter-card img { width: 100%; height: 145px; object-fit: cover; filter: saturate(0.68) contrast(1.08); transition: transform 300ms ease, filter 300ms ease; }
.chapter-card:hover img { transform: scale(1.035); filter: saturate(0.9) contrast(1.04); }
.chapter-number { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 38px; height: 38px; background: rgba(8, 16, 14, 0.83); border: 1px solid var(--gold-500); color: var(--gold-300); font-family: var(--serif); }
.chapter-copy { padding: 18px; }
.chapter-copy h3 { margin-bottom: 3px; font-family: var(--serif); font-size: 1.15rem; }
.chapter-year { color: var(--gold-300); font-size: 0.67rem; }
.chapter-copy p { margin: 9px 0; color: #9daba4; font-size: 0.76rem; line-height: 1.55; }
.chapter-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.chapter-meta span { padding: 2px 6px; border: 1px solid rgba(224, 194, 125, 0.17); color: #879990; font-size: 0.62rem; }

.section-camp { background: linear-gradient(180deg, #e7dfca, #cbbd9e); color: var(--paper-ink); }
.camp-backdrop { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(230, 222, 202, 0.93), rgba(225, 214, 188, 0.68)), url("../images/camp.png") right center/auto 100% no-repeat; opacity: 0.55; }
.camp-system-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-paper); border-left: 1px solid var(--line-paper); background: rgba(244, 239, 224, 0.55); }
.camp-system-grid article { padding: 28px; border-right: 1px solid var(--line-paper); border-bottom: 1px solid var(--line-paper); }
.camp-system-grid b { display: block; color: var(--cinnabar); font-family: var(--serif); font-size: 1.25rem; }
.camp-system-grid strong { display: block; margin: 12px 0; font-family: var(--serif); font-size: 2rem; }
.camp-system-grid p { margin: 0; color: #657269; font-size: 0.8rem; }
.subsection-heading { margin: 78px 0 28px; }
.subsection-heading.compact { margin: 70px 0 20px; }
.subsection-heading h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 2rem; }
.subsection-heading p:last-child { color: #65736b; }
.oath-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.oath-card { position: relative; min-height: 270px; padding: 20px; background: rgba(18, 31, 26, 0.93); color: var(--paper-100); overflow: hidden; }
.oath-card img { position: absolute; right: -16px; bottom: -15px; width: 150px; height: 150px; object-fit: contain; opacity: 0.22; }
.oath-card h4 { position: relative; margin: 0 0 4px; font-family: var(--serif); font-size: 1.25rem; }
.oath-members { position: relative; min-height: 46px; color: var(--gold-300); font-size: 0.76rem; }
.oath-ranks { position: relative; margin-top: 14px; display: grid; gap: 8px; }
.oath-rank { padding-top: 7px; border-top: 1px solid rgba(229, 198, 128, 0.16); font-size: 0.67rem; color: #9faea6; }
.oath-rank b { color: #e5dbc6; }
.meta-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 46px; }
.meta-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.meta-card { display: grid; grid-template-columns: 48px 1fr; gap: 11px; min-height: 110px; padding: 13px; background: rgba(247, 242, 228, 0.54); border: 1px solid var(--line-paper); }
.meta-card img { width: 48px; height: 48px; object-fit: contain; }
.meta-card h4 { margin: 0 0 3px; font-family: var(--serif); }
.meta-card p { grid-column: 1 / -1; margin: 0; color: #68746c; font-size: 0.7rem; line-height: 1.45; }

.section-guide { background: var(--cinnabar); color: #fff1d5; }
.section-guide::before { content: "伍"; position: absolute; right: 4vw; bottom: -18vw; color: rgba(255, 241, 213, 0.06); font-family: var(--serif); font-size: 38vw; line-height: 1; }
.guide-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 80px; }
.guide-intro { position: sticky; top: 118px; align-self: start; }
.guide-intro .kicker { color: #f5ce7a; }
.guide-intro p:last-child { color: rgba(255, 241, 213, 0.74); }
.guide-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 241, 213, 0.3); }
.guide-list li { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255, 241, 213, 0.3); }
.guide-list li > span { font-family: var(--serif); font-size: 1.5rem; opacity: 0.62; }
.guide-list strong { font-family: var(--serif); font-size: 1.2rem; }
.guide-list p { margin: 5px 0 0; color: rgba(255, 241, 213, 0.76); font-size: 0.83rem; }

.site-footer { padding: 50px 0; background: #070d0b; border-top: 1px solid var(--line-dark); }
.footer-layout { display: grid; grid-template-columns: 1fr auto; gap: 26px 50px; align-items: start; }
.footer-layout strong { font-family: var(--serif); font-size: 1.15rem; }
.footer-layout p { margin: 2px 0 0; color: #74867d; font-size: 0.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #a9b8b0; font-size: 0.76rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold-300); }
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(224, 194, 125, 0.12); }
.noscript { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; padding: 15px; background: var(--cinnabar); text-align: center; }

.privacy-page { min-height: 100vh; padding: 120px 0 80px; background: var(--paper-100); color: var(--paper-ink); }
.privacy-card { max-width: 850px; margin: auto; padding: clamp(28px, 6vw, 70px); background: rgba(255, 253, 246, 0.76); border: 1px solid var(--line-paper); box-shadow: var(--shadow); }
.privacy-card h1 { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4rem); }
.privacy-card h2 { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-paper); font-family: var(--serif); }
.privacy-card p, .privacy-card li { color: #56645c; }
.privacy-card a { color: var(--cinnabar); }

@media (max-width: 1120px) {
    .site-nav { gap: 15px; }
    .site-nav a { font-size: 0.75rem; }
    .hero-layout { grid-template-columns: 1fr 0.85fr; }
    .hero-art { min-height: 560px; }
    .hero-character { height: 580px; width: 55%; }
    .hero-character-center { left: 23%; }
    .hero-character-left { left: -10%; }
    .hero-character-right { right: -9%; }
    .character-grid { grid-template-columns: repeat(3, 1fr); }
    .character-card:nth-child(1), .character-card:nth-child(6) { grid-column: span 1; }
    .item-grid { grid-template-columns: repeat(4, 1fr); }
    .enemy-grid { grid-template-columns: repeat(5, 1fr); }
    .chapter-grid { grid-template-columns: repeat(3, 1fr); }
    .oath-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
    html { scroll-padding-top: 64px; }
    .site-header { height: 64px; }
    .header-inner { gap: 10px; }
    .brand > span:last-child { display: none; }
    .menu-toggle { display: block; margin-left: auto; }
    .site-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; padding: 14px 18px 22px; background: rgba(8, 16, 14, 0.98); border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; }
    .site-nav.is-open { display: flex; }
    .site-nav a { width: calc(50% - 8px); padding: 8px; }
    .privacy-body .site-nav { position: static; display: flex; flex: 1 1 auto; padding: 0; background: transparent; border: 0; }
    .privacy-body .site-nav a { width: auto; padding: 8px 4px; }
    .section { padding: 84px 0; }
    .hero { padding-top: 118px; min-height: 1050px; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero-copy { max-width: 720px; }
    .hero-art { min-height: 470px; }
    .hero-character { height: 500px; }
    .hero-halo { width: 400px; height: 400px; }
    .hero-inscription { right: 5%; }
    .hero-metrics { grid-template-columns: repeat(3, 1fr); }
    .hero-metric:nth-child(3) { border-right: 0; }
    .hero-metric:nth-child(-n+3) { border-bottom: 1px solid var(--line-dark); }
    .split-heading { grid-template-columns: 1fr; gap: 12px; }
    .overview-grid { grid-template-columns: 1fr 1fr; }
    .feature-major { grid-row: span 1; grid-column: span 2; min-height: 390px; }
    .feature-number { margin-bottom: 35px; }
    .battle-loop { grid-template-columns: 1fr; justify-items: stretch; }
    .battle-loop i { transform: rotate(90deg); text-align: center; }
    .system-grid { grid-template-columns: 1fr; }
    .system-card:nth-child(odd), .system-card:nth-child(even) { padding: 26px 0; border-right: 0; }
    .character-grid { grid-template-columns: repeat(2, 1fr); }
    .item-grid { grid-template-columns: repeat(3, 1fr); }
    .enemy-grid { grid-template-columns: repeat(4, 1fr); }
    .chapter-grid { grid-template-columns: repeat(2, 1fr); }
    .camp-system-grid { grid-template-columns: repeat(2, 1fr); }
    .oath-grid { grid-template-columns: repeat(2, 1fr); }
    .meta-columns { grid-template-columns: 1fr; gap: 0; }
    .guide-layout { grid-template-columns: 1fr; gap: 34px; }
    .guide-intro { position: static; }
    .footer-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .section-shell { width: min(100% - 28px, var(--content)); }
    .section { padding: 72px 0; }
    .brand strong { font-size: 0.88rem; }
    .hero { min-height: 980px; padding-top: 104px; }
    .hero h1 span { font-size: clamp(3.2rem, 18vw, 5.4rem); }
    .hero h1 em { letter-spacing: 0.32em; }
    .hero-actions { align-items: stretch; }
    .button { flex: 1; min-width: 0; padding-inline: 12px; }
    .hero-art { min-height: 400px; margin-inline: -25px; }
    .hero-character { height: 420px; width: 60%; }
    .hero-character-center { left: 20%; }
    .hero-halo { width: 330px; height: 330px; }
    .hero-inscription { display: none; }
    .hero-metrics { grid-template-columns: repeat(2, 1fr); }
    .hero-metric:nth-child(3) { border-right: 1px solid var(--line-dark); }
    .hero-metric:nth-child(even) { border-right: 0; }
    .hero-metric:nth-child(-n+4) { border-bottom: 1px solid var(--line-dark); }
    .section-heading { margin-bottom: 36px; }
    .section-heading h2, .guide-intro h2 { font-size: 2.45rem; }
    .overview-grid { grid-template-columns: 1fr; }
    .feature-major { grid-column: auto; min-height: 380px; padding: 34px; }
    .feature { min-height: auto; }
    .system-card { grid-template-columns: 50px 1fr; gap: 15px; }
    .system-card > span { width: 50px; height: 50px; }
    .character-grid { grid-template-columns: 1fr; }
    .character-card { min-height: 0; }
    .character-portrait { height: 330px; }
    .library-toolbar { top: 72px; display: grid; }
    .search-box { max-width: none; }
    .segmented { display: grid; grid-template-columns: repeat(4, 1fr); }
    .segmented button { padding-inline: 5px; }
    .item-grid { grid-template-columns: repeat(2, 1fr); }
    .item-card { min-height: 188px; padding: 13px; }
    .item-card img { width: 62px; height: 62px; }
    .enemy-grid { grid-template-columns: repeat(2, 1fr); }
    .chapter-grid { grid-template-columns: 1fr; }
    .chapter-card { min-height: 0; }
    .chapter-card img { height: 190px; }
    .camp-system-grid, .oath-grid, .meta-list { grid-template-columns: 1fr; }
    .subsection-heading { margin-top: 58px; }
    .footer-links { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
