
:root {
    --black: #000;
    --lacquer: #1a110d;
    --lacquer-2: #24170f;
    --line: rgba(199, 154, 91, .22);
    --bronze: #c79a5b;
    --bronze-hi: #e6c48d;
    --parchment: #ecdfc8;
    --muted: #a8977f;
    --seal: #a8281e;
    --sanctia: #9cc1e6;
    --daemon: #d4553a;

    --f-brush: "Ma Shan Zheng", "STXingkai", "STKaiti", "KaiTi", serif;
    --f-serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --f-sans: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;

    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 48px);
    --header-h: 64px;
    --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.rm { scroll-behavior: auto; }
body {
    margin: 0;
    background: var(--black);
    color: var(--parchment);
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--bronze-hi); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: fixed; left: 12px; top: -60px; z-index: 200;
    background: var(--parchment); color: #000; padding: 8px 14px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    height: 48px; padding: 0 24px; border-radius: 999px;
    font-weight: 500; font-size: 15px; letter-spacing: .04em; text-decoration: none;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--parchment); color: #1a0f08; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid rgba(236, 223, 200, .45); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--parchment); background: rgba(236, 223, 200, .08); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; border: 1px solid rgba(236, 223, 200, .35); }
.btn-small:hover { border-color: var(--parchment); }
.btn-block { width: 100%; }
.btn-meta { font-size: 12px; font-weight: 400; opacity: .6; font-variant-numeric: tabular-nums; }

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
    display: flex; align-items: center; gap: 28px;
    padding: 0 var(--gutter);
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid rgba(236, 223, 200, .08);
    transition: transform .45s var(--ease), background-color .3s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: auto; }
.brand span { font-family: var(--f-serif); font-weight: 900; font-size: 18px; letter-spacing: .06em; line-height: 1; }
.brand small { font-family: var(--f-sans); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 8px; letter-spacing: .12em; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 14px; color: rgba(236, 223, 200, .72); transition: color .2s; letter-spacing: .08em; }
.main-nav a:hover, .main-nav a.is-current { color: var(--parchment); }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--parchment); transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.scene { position: relative; --p: 0; }
.scene > .stage {
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}

.scene-hero { height: 260vh; background: var(--black); }
.hero-art {
    position: absolute; inset: -2%;
    background: url("assets/images/scenes/hero_knight.jpg") center 30% / cover no-repeat;
    transform: scale(calc(1.22 - var(--p) * .22));
    filter: brightness(calc(.32 + var(--p) * .75)) saturate(calc(.7 + var(--p) * .4));
    will-change: transform, filter;
}
.hero-vignette {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(0,0,0,.55) 70%, #000 100%),
        linear-gradient(to bottom, rgba(0,0,0,.6) 0%, transparent 18%, transparent 65%, #000 100%);
}
.hero-title {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: var(--header-h) var(--gutter) 0;
    transform: scale(calc(1 + var(--p) * 1.1));
    opacity: clamp(0, calc(1 - var(--p) * 2.6), 1);
    will-change: transform, opacity;
}
.hero-mark { position: relative; display: flex; align-items: flex-end; line-height: .8; font-weight: 400; }
.hero-brush {
    font-family: var(--f-brush); font-size: clamp(120px, 24vw, 330px);
    color: var(--parchment); letter-spacing: -.02em;
    text-shadow: 0 0 80px rgba(0, 0, 0, .9);
}
.hero-two {
    font-family: var(--f-serif); font-weight: 900;
    font-size: clamp(48px, 8vw, 110px); color: var(--bronze); margin-left: .08em; margin-bottom: .12em;
}
.seal {
    position: absolute; right: -0.2em; top: -.1em; transform: translateX(100%);
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
    grid-template-areas: "c a" "d b";
    width: clamp(54px, 7vw, 96px); height: clamp(54px, 7vw, 96px); padding: clamp(5px, .7vw, 10px);
    background: var(--seal); color: #f6e7d6; border-radius: 4px;
    font-family: var(--f-serif); font-weight: 900; font-size: clamp(18px, 2.5vw, 34px); line-height: 1;
    box-shadow: inset 0 0 0 3px rgba(246, 231, 214, .3);
}
.seal i { font-style: normal; display: grid; place-items: center; }
.seal i:nth-child(1) { grid-area: a; }
.seal i:nth-child(2) { grid-area: b; }
.seal i:nth-child(3) { grid-area: c; }
.seal i:nth-child(4) { grid-area: d; }
.hero-lead {
    margin-top: clamp(24px, 4vh, 44px); max-width: 30em;
    font-size: clamp(15px, 1.4vw, 18px); color: rgba(236, 223, 200, .82);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

.hero-coda {
    position: absolute; left: var(--gutter); bottom: clamp(48px, 12vh, 120px);
    width: min(calc(100% - 2 * var(--gutter)), 760px);
    opacity: clamp(0, calc((var(--p) - .55) * 4), 1);
    transform: translateY(calc((1 - clamp(0, calc((var(--p) - .55) * 4), 1)) * 40px));
}
.coda-big { word-break: keep-all; font-family: var(--f-serif); font-weight: 900; font-size: clamp(36px, 5.4vw, 76px); line-height: 1.15; letter-spacing: .02em; }
.coda-small { margin-top: 18px; color: var(--bronze-hi); font-size: clamp(15px, 1.3vw, 18px); }

.scroll-cue {
    position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; translate: -50% 0;
    background: rgba(236, 223, 200, .18); overflow: hidden;
    opacity: clamp(0, calc(1 - var(--p) * 8), 1);
}
.scroll-cue span { position: absolute; inset: 0; background: var(--parchment); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.scene-statement { height: 230vh; background: var(--black); }
.scene-statement .stage {
    display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter);
    background: radial-gradient(ellipse 60% 50% at 50% 55%, #1d120c 0%, #000 75%);
}
.statement {
    max-width: 17em;
    font-family: var(--f-serif); font-weight: 900;
    font-size: clamp(28px, 4.4vw, 64px); line-height: 1.55; letter-spacing: .03em;
    color: var(--parchment);
}
.statement .ch {
    opacity: clamp(.13, calc(var(--p) * var(--n) * 1.25 - var(--i) + 1), 1);
    transition: opacity .12s linear;
}
.statement .ch.em { color: var(--bronze-hi); }

.section-factions {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(199, 154, 91, .1), transparent 70%), var(--black);
    padding: 56px 0;
}
.factions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}
.realm-card {
    position: relative;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 22px;
    border-radius: 6px;
    border: 1px solid var(--line);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.realm-sanctia {
    background: linear-gradient(135deg, rgba(12, 28, 52, .82) 0%, rgba(10, 14, 22, .94) 100%);
    border-color: rgba(156, 193, 230, .28);
}
.realm-daemon {
    background: linear-gradient(135deg, rgba(48, 14, 10, .82) 0%, rgba(18, 8, 6, .94) 100%);
    border-color: rgba(212, 85, 58, .32);
}
.realm-sanctia:hover { border-color: rgba(156, 193, 230, .65); transform: translateY(-2px); }
.realm-daemon:hover { border-color: rgba(240, 139, 111, .65); transform: translateY(-2px); }
.realm-map-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    background: #060606;
    border: 1px solid rgba(199, 154, 91, .35);
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .65);
}
.realm-sanctia .realm-map-box { border-color: rgba(156, 193, 230, .4); }
.realm-daemon .realm-map-box { border-color: rgba(240, 139, 111, .4); }
.realm-map {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: saturate(.95) brightness(.95) contrast(1.06);
    transition: transform .3s var(--ease), filter .3s var(--ease);
}
.realm-map-box:hover .realm-map {
    transform: scale(1.03);
    filter: saturate(1.08) brightness(1.04) contrast(1.08);
}
.realm-map-tag {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 9px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .78);
    border: 1px solid rgba(230, 196, 141, .35);
    color: var(--bronze-hi);
    font-size: 11px;
    letter-spacing: .04em;
    pointer-events: none;
}
.realm-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.realm-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.realm-badge { width: 52px; height: auto; flex: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.realm-motto { font-size: 12px; letter-spacing: .2em; margin: 0 0 2px; }
.realm-sanctia .realm-motto { color: var(--sanctia); }
.realm-daemon .realm-motto { color: #f08b6f; }
.realm-name { font-family: var(--f-serif); font-weight: 900; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 0; letter-spacing: .04em; }
.realm-lore { color: rgba(236, 223, 200, .82); font-size: 14px; line-height: 1.65; margin: 0; }
.realm-facts { margin: 14px 0 16px; border-top: 1px solid rgba(236, 223, 200, .14); }
.realm-facts div { display: grid; grid-template-columns: 3.8em 1fr; padding: 6px 0; border-bottom: 1px solid rgba(236, 223, 200, .14); font-size: 13.5px; }
.realm-facts dt { color: var(--muted); }
.btn-realm { align-self: flex-start; border: 1px solid currentColor; height: 38px; padding: 0 20px; font-size: 14px; }
.realm-sanctia .btn-realm { color: var(--sanctia); }
.realm-daemon .btn-realm { color: #f08b6f; }
.btn-realm:hover { background: rgba(236, 223, 200, .08); }
@media (max-width: 1080px) {
    .factions-grid { grid-template-columns: 1fr; }
    .realm-card { grid-template-columns: 220px minmax(0, 1fr); }
}

.scene-classes { height: 620vh; background: var(--black); --tint: #d4553a; }
.scene-classes .stage {
    display: grid;
    grid-template-columns: minmax(120px, 16vw) minmax(0, 1fr) minmax(320px, 420px);
    grid-template-rows: 1fr auto;
    padding: calc(var(--header-h) + 16px) var(--gutter) 24px;
    column-gap: clamp(16px, 3vw, 48px);
}
.cls-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 45% 55% at 46% 52%, color-mix(in srgb, var(--tint) 28%, transparent) 0%, transparent 70%);
    transition: background .8s var(--ease);
}
.cls-names, .cls-arts, .cls-infos { position: relative; grid-row: 1; }
.cls-name {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    writing-mode: vertical-rl;
    font-family: var(--f-brush); font-size: clamp(72px, 10vw, 150px); line-height: 1;
    color: var(--parchment);
    opacity: 0; transform: translateY(40px);
    transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.cls-arts { display: flex; align-items: center; justify-content: center; }
.cls-art {
    position: absolute; top: 50%; left: 50%;
    height: min(100%, 84vh); width: auto; max-width: 100%; object-fit: cover;
    translate: -50% -50%;
    --fade: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 62%, transparent 96%);
    -webkit-mask-image: var(--fade); -webkit-mask-composite: source-in;
    mask-image: var(--fade); mask-composite: intersect;
    opacity: 0; transform: scale(1.06) translateX(30px);
    transition: opacity .7s var(--ease), transform 1.1s var(--ease);
}
.cls-infos { align-self: center; min-height: 460px; }
.cls-info {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(24px);
    transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s .5s;
}
.cls-role { color: var(--tint); font-size: 14px; letter-spacing: .2em; filter: brightness(1.25); }
.cls-title { font-family: var(--f-serif); font-weight: 900; font-size: 40px; line-height: 1.25; margin: 4px 0 14px; }
.cls-desc { color: rgba(236, 223, 200, .82); font-size: 15.5px; }
.stats { margin: 26px 0 22px; display: grid; gap: 12px; }
.stat { display: grid; grid-template-columns: 5em 1fr 2.4em; align-items: center; gap: 12px; font-size: 14px; }
.stat dt { color: var(--muted); }
.stat dd { display: contents; }
.stat-bar { height: 3px; background: rgba(236, 223, 200, .12); border-radius: 2px; overflow: hidden; }
.stat-bar i { display: block; height: 100%; width: 0; background: var(--tint); border-radius: 2px; transition: width 1s var(--ease) .15s; }
.stat b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.skills-label { color: var(--muted); font-size: 13px; letter-spacing: .15em; margin-bottom: 10px; }
.skills { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-serif); font-weight: 600; font-size: 16px; }

.cls-names [data-i].on, .cls-name.on { opacity: .9; transform: none; }
.cls-art.on { opacity: 1; transform: none; }
.cls-info.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .15s, transform .8s var(--ease) .15s, visibility 0s; }
.cls-info.on .stat-bar i { width: var(--v); }

.cls-rail {
    grid-column: 1 / -1; grid-row: 2; position: relative;
    display: flex; justify-content: center; gap: clamp(4px, 2vw, 28px);
    padding-top: 18px;
}
.rail-progress { position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(560px, 80%); height: 1px; background: rgba(236, 223, 200, .14); }
.rail-progress i { position: absolute; inset: 0; background: var(--bronze); transform-origin: left; transform: scaleX(var(--p)); }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .45; transition: opacity .3s; }
.rail-btn img { width: 40px; height: 40px; object-fit: contain; filter: grayscale(.7); transition: filter .3s, transform .3s var(--ease); }
.rail-btn span { font-size: 12px; letter-spacing: .08em; }
.rail-btn:hover { opacity: .8; }
.rail-btn.active { opacity: 1; }
.rail-btn.active img { filter: none; transform: scale(1.12); }

.section { position: relative; background: var(--lacquer); padding: clamp(80px, 12vw, 150px) 0; }
.section + .section { border-top: 1px solid rgba(199, 154, 91, .12); }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 40em; }
.section-head h2 { text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; font-family: var(--f-serif); font-weight: 900; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.2; letter-spacing: .04em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-head-row p { margin: 0; }

.section-ranks { background: linear-gradient(180deg, #000 0%, var(--lacquer) 22%); border-top: 0; }
.ranks-tabs {
    display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px;
    background: rgba(236, 223, 200, .06); border: 1px solid rgba(236, 223, 200, .1);
    margin-bottom: 36px;
}
.rank-tab-btn { padding: 8px 22px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: background-color .25s, color .25s; }
.rank-tab-btn:hover { color: var(--parchment); }
.rank-tab-btn.active { background: var(--parchment); color: #1a0f08; }

.ranks-board { transition: opacity .25s; }
.ranks-board.is-swapping { opacity: 0; }
.ranks-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 40px); margin-bottom: 40px; }
.podium {
    position: relative; padding: 22px 0 0; border-top: 2px solid var(--line);
    display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
}
.podium:first-child { border-top-color: var(--bronze); }
.podium-rank { grid-row: span 3; font-family: var(--f-serif); font-weight: 900; font-size: clamp(48px, 6vw, 80px); line-height: 1; color: rgba(236, 223, 200, .2); font-variant-numeric: tabular-nums; }
.podium:first-child .podium-rank { color: var(--bronze); }
.podium-name { font-family: var(--f-serif); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; }
.podium-name img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.podium-meta { color: var(--muted); font-size: 13px; }
.podium-score { font-size: 18px; font-weight: 500; color: var(--bronze-hi); font-variant-numeric: tabular-nums; }

.ranks-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ranks-table th { text-align: left; font-weight: 400; color: var(--muted); font-size: 13px; letter-spacing: .1em; padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.ranks-table td { padding: 14px 12px; border-bottom: 1px solid rgba(236, 223, 200, .07); }
.ranks-table tbody tr { transition: background-color .2s; }
.ranks-table tbody tr:hover { background: rgba(236, 223, 200, .04); }
.ranks-table .c-rank { width: 4em; font-family: var(--f-serif); font-weight: 900; font-variant-numeric: tabular-nums; color: rgba(236, 223, 200, .45); }
.ranks-table tr:nth-child(-n+3) .c-rank { color: var(--bronze); }
.ranks-table .c-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--bronze-hi); white-space: nowrap; }
.ranks-table th.c-value { color: var(--muted); }
.ranks-table .c-level, .ranks-table .c-class { color: rgba(236, 223, 200, .75); white-space: nowrap; }
.player { display: flex; align-items: center; gap: 10px; font-weight: 500; overflow-wrap: anywhere; }
.player img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.phyle { font-size: 13px; white-space: nowrap; }
.phyle::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.phyle.sanctia { color: var(--sanctia); }
.phyle.sanctia::before { background: var(--sanctia); }
.phyle.daemon { color: #f08b6f; }
.phyle.daemon::before { background: var(--daemon); }
.ranks-empty { color: var(--muted); padding: 32px 12px; text-align: center; }

.mounts-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.mount-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mount { display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.mount h3 { font-family: var(--f-serif); font-weight: 900; font-size: 22px; line-height: 1.3; margin-bottom: 4px; }
.mount p { color: rgba(236, 223, 200, .75); font-size: 15px; }
.slot {
    width: 88px; height: 88px; display: grid; place-items: center; border-radius: 10px;
    background: radial-gradient(circle at 50% 40%, #3a2516 0%, #120a06 80%);
    box-shadow: inset 0 0 0 1px rgba(199, 154, 91, .45), inset 0 0 0 4px #0c0704, inset 0 0 0 5px rgba(199, 154, 91, .18);
}
.slot img { width: 64px; height: 64px; image-rendering: auto; }

.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 7em 4em 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news-item time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-kind { font-size: 13px; color: var(--bronze-hi); }
.news-item h3 { font-family: var(--f-serif); font-weight: 600; font-size: 20px; line-height: 1.4; margin-bottom: 6px; }
.news-item p { color: rgba(236, 223, 200, .72); font-size: 15px; max-width: 40em; }

.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.dl-option { padding: clamp(24px, 3.5vw, 44px); border-radius: 18px; background: var(--lacquer-2); border: 1px solid rgba(236, 223, 200, .07); }
.dl-main { background: linear-gradient(160deg, #3a2414 0%, #24170f 60%); border-color: rgba(199, 154, 91, .25); }
.dl-option h3 { font-family: var(--f-serif); font-weight: 900; font-size: 28px; line-height: 1.3; }
.dl-meta { color: var(--muted); font-size: 14px; margin: 4px 0 26px; font-variant-numeric: tabular-nums; }
.steps { counter-reset: s; display: grid; gap: 16px; margin-bottom: 30px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; font-size: 14.5px; color: rgba(236, 223, 200, .75); }
.steps li::before {
    content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--f-serif); font-weight: 900; font-size: 14px;
    border: 1px solid var(--bronze); color: var(--bronze-hi);
}
.steps b { display: block; color: var(--parchment); font-weight: 500; font-size: 15.5px; }
.sys-req { width: 100%; margin-top: 32px; border-collapse: collapse; font-size: 14px; }
.sys-req caption { text-align: left; color: var(--muted); font-size: 13px; letter-spacing: .1em; padding-bottom: 10px; }
.sys-req th, .sys-req td { text-align: left; padding: 9px 8px 9px 0; border-bottom: 1px solid rgba(236, 223, 200, .08); font-weight: 400; }
.sys-req thead th { color: var(--muted); font-size: 13px; }
.sys-req tbody th { color: var(--muted); white-space: nowrap; width: 5.5em; }

.section-gallery { padding-bottom: clamp(60px, 9vw, 120px); }
.gallery-strip {
    display: flex; gap: clamp(12px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 20px;
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    scrollbar-width: thin; scrollbar-color: rgba(199,154,91,.4) transparent;
    cursor: grab;
}
.gallery-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-item { flex: none; width: min(560px, 82vw); scroll-snap-align: start; text-align: left; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; transition: transform .6s var(--ease), filter .4s; filter: brightness(.88); pointer-events: none; }
.gallery-item:hover img { filter: brightness(1); transform: scale(1.015); }
.gallery-title { display: block; margin-top: 12px; font-family: var(--f-serif); font-weight: 600; font-size: 16px; }

.site-footer { background: #000; padding: 64px 0 48px; border-top: 1px solid rgba(199, 154, 91, .12); }
.footer-inner { display: grid; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--parchment); }
.footer-notice { color: rgba(168, 151, 127, .75); font-size: 13px; max-width: 46em; }
.footer-copy { color: rgba(168, 151, 127, .55); font-size: 12px; }

.modal-overlay, .lightbox-overlay {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center; padding: var(--gutter);
    background: rgba(0, 0, 0, .72);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; transition: opacity .3s var(--ease);
}
.modal-overlay[hidden], .lightbox-overlay[hidden] { display: none; }
.modal-overlay.active, .lightbox-overlay.active { opacity: 1; }
.modal-card {
    position: relative; width: min(520px, 95vw); max-height: calc(100svh - 24px); overflow-y: auto; overflow-x: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 28px clamp(20px, 3.2vw, 34px) 24px; border-radius: 16px;
    background: #1f150f; border: 1px solid rgba(199, 154, 91, .28);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
    transform: translateY(16px) scale(.98); transition: transform .4s var(--ease);
}
.modal-card::-webkit-scrollbar { display: none; width: 0; height: 0; }
.modal-overlay.active .modal-card { transform: none; }
.modal-long { width: min(620px, 100%); }
.modal-close-btn {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
    font-size: 24px; line-height: 1; color: var(--muted); transition: background-color .2s, color .2s;
}
.modal-close-btn:hover { background: rgba(236, 223, 200, .08); color: var(--parchment); }
.modal-title { font-family: var(--f-serif); font-weight: 900; font-size: 26px; line-height: 1.3; }
.modal-desc { color: var(--muted); font-size: 14.5px; margin: 6px 0 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.field small { color: var(--muted); margin-left: 8px; font-size: 12.5px; }
.field input {
    height: 46px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 15px;
    background: rgba(0, 0, 0, .35); color: var(--parchment); border: 1px solid rgba(236, 223, 200, .16);
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(199, 154, 91, .2); }
.form-feedback { font-size: 14px; margin: 4px 0 14px; }
.form-feedback.ok { color: #8fd19e; }
.form-feedback.err { color: #f08b6f; }
.mirror-list { display: grid; gap: 10px; }
.mirror-list a {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 16px 18px; border-radius: 12px; text-decoration: none;
    background: rgba(0, 0, 0, .3); border: 1px solid rgba(236, 223, 200, .1); transition: border-color .2s;
}
.mirror-list a:hover { border-color: var(--bronze); }
.mirror-list b { font-weight: 500; }
.mirror-list span { color: var(--muted); font-size: 13px; }
.prose h4 { font-family: var(--f-serif); font-weight: 600; font-size: 16px; margin: 22px 0 6px; }
.prose p { color: rgba(236, 223, 200, .78); font-size: 14.5px; }

.lightbox-overlay { background: rgba(0, 0, 0, .92); }
.lightbox-figure { max-width: min(1200px, 100%); }
.lightbox-img { max-height: 82svh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox-caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
.lightbox-close { top: 16px; right: 16px; color: var(--parchment); z-index: 2; }

@media (max-width: 980px) {
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px;
        background: rgba(0, 0, 0, .94);
        border-bottom: 1px solid rgba(236, 223, 200, .08);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
    }
    .main-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
    .main-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(236, 223, 200, .08); }
    .site-header .btn-small { margin-left: auto; }
    .nav-toggle { display: block; }

    .scene-classes .stage {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto auto;
        padding: calc(var(--header-h) + 8px) var(--gutter) 16px;
    }
    .cls-arts { grid-row: 1; grid-column: 1; }
    .cls-names { grid-row: 1; grid-column: 1; z-index: 1; justify-self: start; width: 1.2em; font-size: clamp(56px, 13vw, 96px); }
    .cls-name { font-size: inherit; justify-content: flex-start; }
    .cls-art { height: 100%; max-height: 100%; }
    .cls-infos { grid-row: 2; grid-column: 1; min-height: 0; display: grid; }
    .cls-info { position: relative; inset: auto; grid-area: 1 / 1; }
    .cls-title { display: none; }
    .stats { grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 14px 0 12px; }
    .stat { grid-template-columns: 4.6em 1fr 2em; gap: 8px; font-size: 12.5px; }
    .skills-label { display: none; }
    .skills { font-size: 14px; gap: 4px 14px; }
    .cls-desc { font-size: 14px; line-height: 1.65; }
    .cls-rail { grid-row: 3; gap: 2px; justify-content: space-between; padding-top: 14px; }
    .rail-btn img { width: 32px; height: 32px; }
    .rail-btn span { font-size: 11px; }

    .mounts-wrap, .dl-grid { grid-template-columns: 1fr; }
    .ranks-podium { grid-template-columns: 1fr; gap: 0; }
    .podium { padding: 16px 0; border-top-width: 1px; }
    .podium-rank { font-size: 44px; }
}

@media (max-width: 640px) {
    :root { --header-h: 56px; }
    .brand small { display: none; }
    .seal { position: static; transform: none; margin: 0 0 .25em .25em; width: 50px; height: 50px; padding: 5px; font-size: 17px; }
    .hero-mark { align-items: flex-end; }
    .realm-card { grid-template-columns: 1fr; padding: 18px; }
    .realm-map-box { max-width: 280px; margin: 0 auto; }
    .ranks-table .c-class, .ranks-table .c-phyle { display: none; }
    .ranks-table td, .ranks-table th { padding-left: 6px; padding-right: 6px; }
    .ranks-tabs { display: flex; }
    .rank-tab-btn { flex: 1; padding: 8px 0; }
    .news-item { grid-template-columns: 1fr; gap: 4px; }
    .news-item time, .news-kind { display: inline; }
    .mount { grid-template-columns: 72px 1fr; gap: 16px; }
    .slot { width: 72px; height: 72px; }
    .slot img { width: 52px; height: 52px; }
}

html.rm .scene { height: auto !important; }
html.rm .scene > .stage { position: relative; min-height: 100svh; height: auto; }
html.rm .scene-hero .stage { height: 100svh; }
html.rm .hero-art { transform: none; filter: brightness(.5); }
html.rm .hero-title { transform: none; opacity: 1; }
html.rm .hero-coda, html.rm .scroll-cue { display: none; }
html.rm .scene-statement .stage { min-height: 70svh; }
html.rm .statement .ch { opacity: 1; }
html.rm .scene-classes .stage { height: 100svh; }
html.rm *, html.rm *::before, html.rm *::after { transition-duration: .01ms !important; animation: none !important; }

.section-shop{background:var(--black);padding:72px 0}
.shop-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 26px}
.shop-tab{height:38px;padding:0 18px;border:1px solid var(--line);background:transparent;color:var(--muted);font-family:var(--f-sans);font-size:14px;border-radius:2px;cursor:pointer;transition:.2s var(--ease)}
.shop-tab:hover{color:var(--parchment);border-color:var(--bronze)}
.shop-tab.active{background:var(--bronze);color:#1a0f08;border-color:var(--bronze);font-weight:700}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.shop-card{position:relative;display:flex;flex-direction:column;background:linear-gradient(180deg,#1c130d,#140d08);border:1px solid var(--line);border-radius:4px;padding:14px}
.shop-card:hover{border-color:var(--bronze);transform:translateY(-2px);transition:.2s var(--ease)}
.shop-card .ico{width:66px;height:66px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,rgba(199,154,91,.16),transparent 70%)}
.shop-card .ico img{max-width:62px;max-height:62px}
.shop-card .nm{font-family:var(--f-serif);font-weight:700;font-size:15px;color:var(--parchment);text-align:center;line-height:1.3;min-height:40px;display:flex;align-items:center;justify-content:center}
.shop-card .st{margin:8px 0 0;font-size:12px;color:var(--muted);line-height:1.55}
.shop-card .st span{display:flex;justify-content:space-between;gap:10px}
.shop-card .st b{color:var(--bronze-hi);font-weight:600;font-variant-numeric:tabular-nums}
.shop-card .tag{text-align:center;font-size:12px;color:var(--muted);margin-top:6px}
.shop-price{margin-top:auto;padding-top:12px;display:flex;align-items:center;justify-content:center;gap:6px;font-family:var(--f-sans);font-size:15px;color:var(--bronze-hi);font-variant-numeric:tabular-nums}
.shop-price .coin{width:17px;height:17px;border-radius:50%;background:var(--bronze);color:#1a0f08;font-size:11px;font-weight:900;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:560px){.shop-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}

.shop-price .coin-img{width:18px;height:18px;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 0 3px rgba(230,196,141,.6))}

.section-bosses { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(168, 40, 30, .16), transparent 70%), var(--black); }
.wb-live { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.wb-live.is-online .wb-dot { background: #5fd38a; box-shadow: 0 0 0 0 rgba(95, 211, 138, .6); animation: wbPulse 2s infinite; }
.wb-live.is-online { color: #b9e8c9; }
.wb-live.is-offline .wb-dot { background: #c9893b; }
@keyframes wbPulse { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 138, .55); } 70% { box-shadow: 0 0 0 9px rgba(95, 211, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 138, 0); } }
html.rm .wb-live.is-online .wb-dot { animation: none; }

.wb-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.wb-filter { height: 36px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; transition: .2s; }
.wb-filter:hover { color: var(--parchment); border-color: rgba(199, 154, 91, .5); }
.wb-filter.active { background: var(--parchment); color: #1a0f08; border-color: var(--parchment); }

.wb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.wb-empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; text-align: center; }
.wb-note { margin-top: 28px; font-size: 13px; color: var(--muted); max-width: 52em; }

.wb-card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, #1c130d, #120b07); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.wb-card:hover { border-color: rgba(199, 154, 91, .55); }
.wb-card.is-dead .wb-art img, .wb-card.is-dead .wb-emblem { filter: grayscale(.85) brightness(.55); }

.wb-art { position: relative; height: 260px; display: flex; align-items: flex-end; justify-content: center; padding-top: 18px;
    background: radial-gradient(ellipse 60% 55% at 50% 62%, rgba(199, 154, 91, .22), transparent 70%), linear-gradient(180deg, #0d0806, #1a110d); border-bottom: 1px solid var(--line); }
.wb-card.is-alive .wb-art { background: radial-gradient(ellipse 60% 55% at 50% 62%, rgba(212, 85, 58, .28), transparent 70%), linear-gradient(180deg, #0d0806, #1a110d); }
.wb-art img { max-height: 238px; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); transition: filter .4s; }
.wb-emblem { align-self: center; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--f-brush); font-size: 72px; color: var(--bronze-hi); border: 1px solid rgba(199, 154, 91, .45);
    background: radial-gradient(circle, rgba(168, 40, 30, .35), rgba(0, 0, 0, .2) 70%); box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .35); }
.wb-state { position: absolute; left: 12px; top: 12px; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.wb-card.is-alive .wb-state { color: #9ff0bd; border-color: rgba(95, 211, 138, .45); }
.wb-card.is-dead .wb-state { color: #f2b48a; border-color: rgba(212, 85, 58, .5); }
.wb-card.is-unknown .wb-state { color: var(--muted); }
.wb-lv { position: absolute; right: 12px; top: 12px; font-family: var(--f-serif); font-weight: 900; font-size: 15px; color: var(--bronze-hi); text-shadow: 0 1px 6px #000; }

.wb-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.wb-name { font-family: var(--f-serif); font-weight: 700; font-size: 20px; line-height: 1.35; }
.wb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wb-stats div { background: rgba(0, 0, 0, .3); border: 1px solid rgba(199, 154, 91, .12); border-radius: 4px; padding: 6px 8px; min-width: 0; }
.wb-stats dt { font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.wb-stats dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--bronze-hi); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wb-spots { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.wb-spots li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.wb-spots .map { color: rgba(236, 223, 200, .85); min-width: 0; }
.wb-spots small { color: var(--muted); font-size: 11px; }
.wb-spots .ok { color: #9ff0bd; white-space: nowrap; }
.wb-spots .cd { color: #f2b48a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wb-hp { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.wb-hp::after { content: ""; position: absolute; inset: 0; width: var(--hp); background: linear-gradient(90deg, #a8281e, #e0563f); }

.wb-toggle { align-self: flex-start; font-size: 13px; color: var(--bronze-hi); border-bottom: 1px dashed rgba(230, 196, 141, .5); padding: 2px 0; }
.wb-toggle:hover { color: #fff; }
.wb-drops h4 { font-size: 12px; letter-spacing: .1em; color: var(--muted); font-weight: 500; margin: 6px 0 6px; }
.wb-drop-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.wb-drop-list li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; padding: 5px 8px; background: rgba(199, 154, 91, .07); border-left: 2px solid var(--bronze); border-radius: 2px; }
.wb-drop-list.is-chance li { border-left-color: rgba(156, 193, 230, .6); background: rgba(156, 193, 230, .05); }
.wb-drop-list .nm { flex: 1; min-width: 0; }
.wb-drop-list li { align-items: center; }
.wb-drop-list .ic { flex: none; width: 32px; height: 32px; border-radius: 3px; border: 1px solid rgba(199, 154, 91, .35);
    background: radial-gradient(circle, rgba(199, 154, 91, .18), rgba(0, 0, 0, .5)); display: grid; place-items: center; overflow: hidden; }
.wb-drop-list .ic img { width: 30px; height: 30px; object-fit: contain; }
.wb-drop-list .ic.is-missing::after { content: "?"; color: var(--muted); font-size: 13px; }
.wb-drop-list .q { color: var(--bronze-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wb-drop-list .pct { color: var(--sanctia); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 3.4em; text-align: right; }
.wb-drop-none { color: var(--muted); background: none !important; border: 0 !important; }

.section-security { background: var(--lacquer); }
.sec-alert { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: clamp(22px, 4vw, 36px);
    border: 1px solid rgba(168, 40, 30, .55); border-radius: 6px; background: linear-gradient(135deg, rgba(168, 40, 30, .18), rgba(0, 0, 0, .25)); margin-bottom: clamp(36px, 5vw, 56px); }
.sec-alert-seal { width: 76px; height: 76px; display: grid; place-items: center; font-family: var(--f-brush); font-size: 44px; color: #fff3e3;
    background: var(--seal); border-radius: 8px; transform: rotate(-4deg); box-shadow: 0 6px 20px rgba(168, 40, 30, .4); }
.sec-alert h3 { font-family: var(--f-serif); font-weight: 900; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; margin-bottom: 10px; }
.sec-alert p { color: rgba(236, 223, 200, .85); margin-bottom: 20px; max-width: 46em; }
.sec-alert b { color: var(--bronze-hi); font-weight: 600; }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.sec-h { font-family: var(--f-serif); font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.sec-steps { counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.sec-steps li { counter-increment: s; position: relative; padding-left: 44px; color: rgba(236, 223, 200, .75); font-size: 15px; }
.sec-steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--bronze); color: var(--bronze-hi); font-size: 13px; font-family: var(--f-serif); }
.sec-steps b, .sec-scams b { display: block; color: var(--parchment); font-weight: 600; }
.sec-scams { display: flex; flex-direction: column; gap: 12px; }
.sec-scams li { padding: 10px 14px; border-left: 2px solid var(--seal); background: rgba(0, 0, 0, .25); color: rgba(236, 223, 200, .75); font-size: 15px; }

.section-rules { background: var(--black); }
.rules-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rule { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.rule-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rule-no { font-family: var(--f-serif); color: var(--bronze); font-size: 14px; min-width: 4em; }
.rule h3 { font-family: var(--f-serif); font-weight: 700; font-size: 19px; flex: 1; min-width: 10em; }
.rule p { color: rgba(236, 223, 200, .72); font-size: 15px; max-width: 52em; padding-left: calc(4em + 16px); }
.pen { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.pen-warn { color: #e6d38d; border-color: rgba(230, 211, 141, .45); }
.pen-mute { color: var(--sanctia); border-color: rgba(156, 193, 230, .45); }
.pen-temp { color: #f2b48a; border-color: rgba(242, 180, 138, .5); }
.pen-perm { color: #fff; background: var(--seal); border-color: var(--seal); }
.pen-legend { margin-top: clamp(32px, 5vw, 52px); }
.pen-legend dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pen-legend dl > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: rgba(26, 17, 13, .6); }
.pen-legend dd { margin: 8px 0 0; font-size: 14px; color: rgba(236, 223, 200, .72); }
.rules-appeal { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 52em; }
.rules-appeal a { color: var(--bronze-hi); }

@media (max-width: 760px) {
    .sec-grid { grid-template-columns: 1fr; }
    .sec-alert { grid-template-columns: 1fr; }
    .sec-alert-seal { width: 60px; height: 60px; font-size: 34px; }
    .rule p { padding-left: 0; }
    .wb-art { height: 230px; }
    .wb-art img { max-height: 210px; }
}

.shop-card.has-tip { cursor: help; }
.shop-tip { display: none; position: absolute; z-index: 40; top: calc(100% - 8px); left: 50%; transform: translateX(-50%);
    width: 300px; padding: 12px 14px; text-align: left; font-size: 13px; line-height: 1.6; color: #e8e8e8;
    background: rgba(8, 10, 14, .96); border: 1px solid #5a5a5a; border-radius: 3px; box-shadow: 0 12px 30px rgba(0, 0, 0, .7); pointer-events: none; }
.shop-card.tip-left .shop-tip { left: auto; right: 0; transform: none; }
.shop-card.has-tip:hover .shop-tip, .shop-card.has-tip:focus-visible .shop-tip, .shop-card.tip-open .shop-tip { display: block; }
.shop-card.has-tip:hover, .shop-card.tip-open { z-index: 41; }
.tt-name { color: #3fe060; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.tt-stars { color: #ffb52e; }
.tt-line { color: #e8e8e8; }
.tt-req { color: #ff3b3b; margin: 4px 0 8px; }
.tt-blues { color: #7ea6ff; margin-bottom: 8px; }
.tt-set { color: #9a9a9a; margin-bottom: 8px; }
.tt-set-name { color: #3fe060; }
.tt-desc { color: #ffe14a; }
@media (max-width: 640px) {
    .shop-tip { position: static; transform: none; width: auto; margin-top: 10px; pointer-events: auto; }
    .shop-card.has-tip:hover .shop-tip { display: none; }
    .shop-card.tip-open .shop-tip { display: block; }
}

.pen-safe { color: #0f2a17; background: #5fd38a; border-color: #5fd38a; }
.rule-protect { background: linear-gradient(90deg, rgba(95, 211, 138, .08), transparent 60%); }
.rule-protect p b { color: #9ff0bd; font-weight: 600; }

.sec-promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.sec-promise li { padding: 10px 12px; border: 1px solid rgba(95, 211, 138, .35); border-radius: 4px; background: rgba(95, 211, 138, .06); font-size: 13px; color: rgba(236, 223, 200, .75); }
.sec-promise b { display: block; color: #9ff0bd; font-family: var(--f-serif); font-size: 16px; margin-bottom: 2px; }
@media (max-width: 640px) { .sec-promise { grid-template-columns: 1fr; } }

.pet-tier { position: absolute; top: 8px; left: 8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 4px; display: grid; place-items: center;
    font-family: var(--f-serif); font-weight: 900; font-size: 15px; line-height: 1; z-index: 2; }
.tier-S { background: linear-gradient(135deg, #ffd56b, #c98a1c); color: #2a1600; box-shadow: 0 0 12px rgba(255, 200, 80, .45); }
.tier-A { background: linear-gradient(135deg, #c98bff, #7d3fc4); color: #fff; }
.tier-B { background: linear-gradient(135deg, #7fb6ff, #2f63b8); color: #fff; }
.tier-C { background: #4a4a4a; color: #ddd; }
.tt-tier { display: inline-block; margin-bottom: 8px; padding: 0 8px; border-radius: 3px; font-weight: 700; font-size: 12px; }
.tt-skills { color: #e8e8e8; margin-bottom: 8px; }

.news-item p b { color: var(--bronze-hi); font-weight: 600; }

.section-topup{background:linear-gradient(180deg,var(--black),var(--lacquer) 60%,var(--black));padding:72px 0}
.section-topup .section-head p b{color:var(--bronze-hi);font-weight:700}
.topup-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.topup-card{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:26px 16px 20px;
    background:linear-gradient(180deg,#1c130d,#140d08);border:1px solid var(--line);border-radius:4px;transition:border-color .2s var(--ease),transform .2s var(--ease)}
.topup-card:hover{border-color:var(--bronze);transform:translateY(-2px)}
.topup-card.is-featured{border-color:var(--bronze);background:linear-gradient(180deg,#2a1c10,#160e08);box-shadow:0 0 0 1px rgba(199,154,91,.35),0 10px 30px rgba(199,154,91,.12)}
.topup-card.is-top{border-color:rgba(168,40,30,.7);background:linear-gradient(180deg,#2a120d,#160a07)}
.topup-tag{position:absolute;top:-11px;left:50%;transform:translateX(-50%);padding:3px 12px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.06em;white-space:nowrap;background:var(--bronze);color:#1a0f08}
.topup-card.is-top .topup-tag{background:var(--seal);color:#fff3e3}
.topup-name{font-family:var(--f-serif);font-weight:700;font-size:16px;color:var(--parchment);letter-spacing:.06em}
.topup-price{font-family:var(--f-serif);font-weight:900;font-size:40px;line-height:1.1;color:var(--parchment);font-variant-numeric:tabular-nums}
.topup-price .cur{font-size:.5em;margin-right:2px;color:var(--bronze-hi);vertical-align:.5em}
.topup-price .topup-was{display:block;margin-top:2px;font-family:var(--f-sans);font-weight:400;font-size:13px;color:var(--muted);text-decoration:line-through}
.topup-total{display:flex;align-items:center;gap:6px;font-size:15px;color:var(--bronze-hi);font-variant-numeric:tabular-nums}
.topup-total .coin-img{width:20px;height:20px;object-fit:contain}
.topup-total b{font-size:18px}
.topup-bonus{font-size:13px;color:var(--parchment);min-height:1.6em}
.topup-bonus b{color:#7fd17f}
.topup-bonus span{color:var(--muted)}
.topup-bonus-none{color:var(--muted)}
.topup-buy{margin-top:auto;width:100%}
.topup-card.is-featured .topup-buy{background:var(--parchment);color:#1a0f08;border-color:var(--parchment)}
.topup-notes{margin-top:28px;padding:18px 20px;border:1px solid var(--line);border-radius:4px;background:rgba(0,0,0,.25);display:grid;gap:8px;font-size:14px;color:var(--muted)}
.topup-notes b{color:var(--parchment)}
@media(max-width:560px){.topup-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.topup-price{font-size:32px}.topup-card{padding:22px 10px 16px}}

.armor-badge { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding: 14px 22px; margin-bottom: 32px; border: 1px solid var(--line); border-left: 3px solid var(--bronze-hi); background: rgba(199, 154, 91, .06); }
.armor-badge span { color: var(--muted); font-size: 14px; letter-spacing: .12em; }
.armor-badge b { font-family: var(--f-serif); font-weight: 900; font-size: 34px; line-height: 1; color: var(--bronze-hi); }
.armor-badge small { color: var(--muted); font-size: 13px; }
.armor-table-wrap { overflow-x: auto; }
.armor-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.armor-table th, .armor-table td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.armor-table thead th { font-family: var(--f-serif); font-weight: 700; font-size: 17px; color: var(--bronze-hi); border-bottom-color: var(--bronze); }
.armor-table thead small { display: block; font-family: var(--f-sans); font-weight: 400; font-size: 12px; color: var(--muted); }
.armor-table tbody th { width: 5em; color: var(--muted); font-weight: 400; white-space: nowrap; }
.armor-table td { color: rgba(236, 223, 200, .86); }
.armor-notes { margin-top: 28px; display: grid; gap: 8px; max-width: 46em; color: var(--muted); font-size: 14px; }
.armor-notes li { padding-left: 1.2em; position: relative; }
.armor-notes li::before { content: "·"; position: absolute; left: 0; color: var(--bronze-hi); }
.news-item p a { color: var(--bronze-hi); }
@media (max-width: 640px) {
    .armor-table thead { display: none; }
    .armor-table, .armor-table tbody, .armor-table tr, .armor-table th, .armor-table td { display: block; width: 100%; }
    .armor-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .armor-table th, .armor-table td { border: 0; padding: 2px 0; }
    .armor-table tbody th { color: var(--bronze-hi); font-family: var(--f-serif); font-weight: 700; }
    .armor-table td::before { display: block; font-size: 12px; color: var(--muted); }
    .armor-table td:nth-of-type(1)::before { content: "乌玛蒂拉 9x · Lv90–95"; }
    .armor-table td:nth-of-type(2)::before { content: "哈迪斯之灾厄 · Lv108"; margin-top: 6px; }
}

.armor-table tbody th { width: 270px; padding-right: 24px; }
.armor-part { display: block; margin-bottom: 8px; }
.armor-ico { display: flex; gap: 4px; }
.armor-ico img { width: 36px; height: 36px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); border-radius: 3px; }
@media (max-width: 640px) {
    .armor-table tbody th { width: 100%; }
    .armor-part { margin-bottom: 6px; }
    .armor-ico { margin-bottom: 8px; }
}

.junxian-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.how-step { padding: 26px 28px 26px 0; }
.how-step + .how-step { padding-left: 28px; border-left: 1px solid var(--line); }
.how-no { font-family: var(--f-serif); font-weight: 900; font-size: 28px; color: var(--bronze); line-height: 1; }
.how-step h3 { font-family: var(--f-serif); font-weight: 700; font-size: 19px; margin: 10px 0 8px; }
.how-step p { color: rgba(236, 223, 200, .72); font-size: 14px; line-height: 1.75; }
.rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rank-card { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; gap: 10px 14px; align-items: center; padding: 18px; background: var(--lacquer); }
.rank-card img { width: 48px; height: 48px; image-rendering: auto; }
.rank-lv { font-size: 12px; color: var(--muted); }
.rank-card h3 { font-family: var(--f-serif); font-weight: 700; font-size: 18px; line-height: 1.3; }
.rank-card p { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-card p b { color: rgba(236, 223, 200, .9); font-weight: 600; }
.rank-buff { grid-column: 1 / -1; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.rank-buff b { color: var(--bronze-hi); font-size: 16px; font-weight: 700; }
.rank-top { background: linear-gradient(135deg, rgba(199, 154, 91, .16), var(--lacquer) 70%); }
.rank-top h3 { color: var(--bronze-hi); }
@media (max-width: 960px) { .rank-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .junxian-how { grid-template-columns: 1fr; }
    .how-step, .how-step + .how-step { padding: 20px 0; border-left: 0; }
    .how-step + .how-step { border-top: 1px solid var(--line); }
    .rank-card { padding: 14px; gap: 8px 10px; grid-template-columns: 40px 1fr; }
    .rank-card img { width: 40px; height: 40px; }
    .rank-card h3 { font-size: 16px; }
}

.modal-auth { width: min(860px, 95vw); max-width: 860px; overflow-x: hidden; }
.modal-topup { width: min(920px, 95vw); max-width: 920px; overflow-x: hidden; }
.modal-card, .modal-card * { scrollbar-width: none; -ms-overflow-style: none; }
.modal-card::-webkit-scrollbar, .modal-card *::-webkit-scrollbar { display: none; width: 0; height: 0; }
.modal-auth .modal-desc, .modal-topup .modal-desc { margin: 4px 0 14px; font-size: 13.5px; }
.modal-auth .field, .modal-topup .field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 12px;
    min-width: 0;
}
.modal-auth .field > span, .modal-topup .field > span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 6px;
    line-height: 1.3;
    margin-bottom: auto;
}
.modal-auth .field small, .modal-topup .field small { margin-left: 0; font-size: 11.5px; }
.modal-auth .field input, .modal-topup .field input { width: 100%; min-width: 0; height: 42px; font-size: 14px; box-sizing: border-box; }
.modal-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.modal-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.modal-sec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 11.5px;
    color: #9ff0bd;
    background: rgba(95, 211, 138, .1);
    border: 1px solid rgba(95, 211, 138, .35);
    letter-spacing: .04em;
}
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 8px;
    align-items: center;
}
#reg-captcha-canvas {
    width: 120px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #120c08;
    cursor: pointer;
}
.sec-rules {
    list-style: none;
    margin: 2px 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sec-rules li {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 3px;
    color: var(--muted);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line);
    transition: .2s;
}
.sec-rules li.ok {
    color: #9ff0bd;
    border-color: rgba(95, 211, 138, .45);
    background: rgba(95, 211, 138, .08);
}
.topup-tier-selector {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}
.tier-pill {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-items: center;
    gap: 3px;
    min-height: 78px;
    padding: 8px 4px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .35);
    color: var(--parchment);
    cursor: pointer;
    transition: .18s var(--ease);
    font-variant-numeric: tabular-nums;
    min-width: 0;
    box-sizing: border-box;
}
.tier-pill b { font-family: var(--f-serif); font-size: 17px; color: var(--parchment); line-height: 1.1; }
.tier-pill span { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.tier-pill em {
    font-style: normal;
    font-size: 10px;
    color: #7fd17f;
    background: rgba(127, 209, 127, .12);
    padding: 1px 4px;
    border-radius: 2px;
    text-align: center;
    line-height: 1.2;
}
.tier-pill:hover { border-color: var(--bronze); }
.tier-pill.active {
    border-color: var(--bronze-hi);
    background: linear-gradient(180deg, rgba(199, 154, 91, .24), rgba(26, 15, 8, .85));
    box-shadow: 0 0 0 1px rgba(230, 196, 141, .35);
}
.tier-pill.active b { color: var(--bronze-hi); }
.topup-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin: 2px 0 12px;
    border-radius: 6px;
    border: 1px solid rgba(199, 154, 91, .35);
    background: rgba(199, 154, 91, .08);
}
.sum-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.sum-label b { color: var(--parchment); }
.sum-coupons { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 14px; color: var(--bronze-hi); font-variant-numeric: tabular-nums; }
.sum-coupons b { font-size: 17px; }
.sum-coupons small { color: #7fd17f; font-size: 12px; }
.sum-price { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-price b { font-family: var(--f-serif); font-size: 24px; color: var(--bronze-hi); margin-left: 4px; }
.pay-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pay-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .35);
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
    line-height: 1.25;
    cursor: pointer;
    transition: .18s;
}
.pay-ico {
    flex: none;
    display: inline-block;
    vertical-align: middle;
}
.pay-opt input { display: none; }
.pay-opt.active {
    border-color: var(--bronze-hi);
    color: var(--parchment);
    background: rgba(199, 154, 91, .18);
    font-weight: 600;
}
.modal-card .btn-block {
    height: auto;
    min-height: 44px;
    padding: 10px 18px;
    white-space: normal;
    line-height: 1.3;
}
.topup-order-box {
    margin: 10px 0 12px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid rgba(95, 211, 138, .45);
    background: rgba(12, 28, 18, .65);
}
.order-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(95, 211, 138, .2);
}
.order-ok-tag { font-size: 13px; font-weight: 700; color: #9ff0bd; }
.order-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 14px;
    font-size: 12.5px;
    margin: 0 0 8px;
}
.order-details div { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.order-details dt { color: var(--muted); flex: none; }
.order-details dd { margin: 0; color: var(--bronze-hi); font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-tip { margin: 0; font-size: 12px; color: rgba(236, 223, 200, .8); line-height: 1.5; }
@media (max-width: 720px) {
    .topup-tier-selector { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .modal-grid-3 { grid-template-columns: 1fr; }
    .modal-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .topup-tier-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pay-methods, .order-details { grid-template-columns: 1fr; }
    .topup-summary-bar { flex-direction: column; align-items: flex-start; }
}