/* Unrise.ws - warm charcoal over the original art, ivory type, bronze-gold structure. */
:root {
    --bg: #0f0c0a;
    --bg-2: #15110e;
    --card: rgba(24, 19, 16, 0.78);
    --card-solid: #1b1612;
    --card-2: rgba(34, 27, 22, 0.72);
    --line: rgba(236, 222, 196, 0.12);
    --line-strong: rgba(208, 166, 98, 0.42);
    --ink: #f4ede1;
    --muted: #cdc3b3;
    --faint: #9b8f7f;
    --gold: #cfa45e;
    --gold-2: #ecd5a3;
    --gold-3: #fff3d8;
    --ember: #e07a3c;
    --ink-on-gold: #1c140a;
    --ok: #9fcfaa;
    --soon: #e6c785;
    --off: #b9a69c;
    --max: 1320px;
    --radius: 16px;
    --serif: "Alice", "Times New Roman", serif;
    --sans: "Manrope", "Segoe UI", sans-serif;
    --shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
    --dim: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body.ur {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(207, 164, 94, 0.38); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.ico {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.wrap {
    width: min(var(--max), calc(100% - 56px));
    margin: 0 auto;
    min-width: 0;
}

/* ---------- Scene: original background, regraded ---------- */
.scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.scene-art {
    position: absolute;
    inset: -2%;
    background: url(../images/bg.jpg) no-repeat 22% top / cover;
    filter: saturate(0.92) contrast(1.06) brightness(0.92);
    transform-origin: 30% 30%;
    animation: ur-settle 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.scene-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 60% at 26% 30%, transparent 0%, rgba(15, 12, 10, 0.35) 70%, rgba(15, 12, 10, 0.75) 100%),
        linear-gradient(90deg, rgba(15, 12, 10, 0) 25%, rgba(15, 12, 10, 0.55) 55%, rgba(15, 12, 10, 0.82) 100%),
        linear-gradient(180deg, rgba(15, 12, 10, 0) 45%, rgba(15, 12, 10, 0.9) 92%, var(--bg) 100%),
        radial-gradient(40% 30% at 70% 20%, rgba(224, 122, 60, 0.14), transparent 70%);
}
.scene-shade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg);
    opacity: var(--dim);
    transition: opacity 0.2s linear;
}
.embers { position: absolute; inset: 0; }
.embers i {
    position: absolute;
    bottom: -12px;
    left: calc(var(--i) * 5.4% - 2%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f6b06a;
    box-shadow: 0 0 6px 2px rgba(240, 132, 60, 0.55);
    opacity: 0;
    animation: ur-rise calc(11s + var(--i) * 0.55s) linear infinite;
    animation-delay: calc(var(--i) * -1.7s);
}
.embers i:nth-child(3n) { width: 2px; height: 2px; }
.embers i:nth-child(even) { animation-name: ur-rise-l; }
@keyframes ur-settle {
    from { transform: scale(1.07); opacity: 0.4; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes ur-rise {
    0% { transform: translate(0, 0); opacity: 0; }
    12% { opacity: 0.75; }
    70% { opacity: 0.5; }
    100% { transform: translate(60px, -92vh); opacity: 0; }
}
@keyframes ur-rise-l {
    0% { transform: translate(0, 0); opacity: 0; }
    12% { opacity: 0.6; }
    70% { opacity: 0.4; }
    100% { transform: translate(-50px, -80vh); opacity: 0; }
}

/* ---------- Logo: original png as a mask under a gilded fill ---------- */
.crest {
    position: relative;
    display: inline-block;
    width: var(--w, 220px);
    aspect-ratio: 530 / 116;
    line-height: 0;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(224, 132, 60, 0.32));
}
.crest img { display: block; width: 100%; height: auto; }
.crest-gild { display: none; }
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
    .crest img { opacity: 0; }
    .crest-gild {
        display: block;
        position: absolute;
        inset: 0;
        overflow: hidden;
        background: linear-gradient(180deg, var(--gold-3) 0%, var(--gold-2) 34%, #c38e4a 60%, #e9cf98 82%, var(--gold-3) 100%);
        -webkit-mask: url(../images/logo-mark.png) center / 100% 100% no-repeat;
        mask: url(../images/logo-mark.png) center / 100% 100% no-repeat;
    }
    .crest-gild::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg, transparent 38%, rgba(255, 250, 235, 0.95) 50%, transparent 62%);
        transform: translateX(-120%);
        animation: ur-sheen 9s ease-in-out infinite 1.6s;
    }
}
@keyframes ur-sheen {
    0%, 70% { transform: translateX(-120%); }
    88%, 100% { transform: translateX(120%); }
}
.crest-sm { --w: 150px; }
.crest-md { --w: 210px; }
.crest-xl { --w: min(500px, 100%); }

/* ---------- Type & buttons ---------- */
.kicker {
    margin: 0 0 12px;
    color: var(--gold-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.kicker-line { display: flex; align-items: center; gap: 14px; }
.kicker-line span { min-width: 0; line-height: 1.7; }
.kicker-line::before {
    content: "";
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
h1, h2, h3 { font-weight: 400; color: var(--ink); }
h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(42px, 4.6vw, 72px);
    line-height: 1.02;
    letter-spacing: 0.005em;
    overflow-wrap: break-word;
}
h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.08;
}
.lead {
    max-width: 40em;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
    background: linear-gradient(180deg, #f0d9a6, var(--gold) 70%, #b98a47);
    color: var(--ink-on-gold);
    box-shadow: 0 10px 26px rgba(207, 164, 94, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { box-shadow: 0 12px 32px rgba(224, 160, 80, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-line {
    border-color: rgba(236, 213, 163, 0.36);
    background: rgba(20, 16, 13, 0.45);
    color: var(--ink);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-ghost { color: var(--muted); padding: 0 12px; }
.btn-ghost:hover { color: var(--gold-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; white-space: nowrap; }

/* ---------- Header ---------- */
.top {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(13, 10, 8, 0.55);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.is-scrolled .top {
    background: rgba(13, 10, 8, 0.92);
    box-shadow: 0 1px 0 rgba(207, 164, 94, 0.22), 0 14px 32px rgba(0, 0, 0, 0.3);
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav a .ico { width: 15px; height: 15px; opacity: 0.8; }
.nav a:hover,
.nav a.is-on { color: var(--ink); background: rgba(207, 164, 94, 0.12); }
.nav a:hover .ico,
.nav a.is-on .ico { stroke: var(--gold); opacity: 1; }
.nav a.nav-account { display: none; }
.top-side { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.langs {
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}
.langs a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 28px;
    border-radius: 999px;
    opacity: 0.42;
    transition: opacity 0.2s ease;
}
.langs a:hover { opacity: 0.85; }
.langs a[aria-current="true"] {
    opacity: 1;
    background: rgba(207, 164, 94, 0.16);
    box-shadow: inset 0 0 0 1px rgba(207, 164, 94, 0.7);
}
.flag { display: block; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}
.nav-toggle i {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 4px auto;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .nav-toggle i:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
    grid-template-rows: 1fr auto;
    gap: 28px 40px;
    min-height: calc(100svh - 72px);
    padding: 48px 0 72px;
}
.hero-copy {
    grid-column: 2;
    align-self: end;
    animation: ur-up 0.9s ease-out 0.25s both;
}
.hero-copy > .crest { margin: 0 0 26px -6px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.herald {
    grid-column: 2;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    padding: 22px 24px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(180deg, rgba(207, 164, 94, 0.1), transparent 55%),
        var(--card);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: ur-up 0.9s ease-out 0.45s both;
}
.herald .kicker { margin-bottom: 6px; }
.herald-when { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.herald-online { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.herald-online b {
    font-family: var(--serif);
    font-size: 54px;
    font-weight: 400;
    line-height: 1;
    color: var(--gold-3);
    font-variant-numeric: tabular-nums;
}
.herald-online span { color: var(--muted); font-size: 14px; }
.herald .timer { margin-top: 14px; }
.herald .timer-clock { width: 100%; }
.herald .timer-clock > div { flex: 1 1 0; min-width: 58px; }
.world-meta dt {
    color: var(--faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.world-meta dd {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.herald-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.herald-link span { transition: transform 0.2s ease; }
.herald-link:hover span { transform: translateX(4px); }
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 1px solid rgba(236, 213, 163, 0.4);
    border-radius: 999px;
}
.hero-scroll span {
    position: absolute;
    left: 50%;
    top: 9px;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--gold);
    animation: ur-scroll 2.2s ease-in-out infinite;
}
@keyframes ur-scroll {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}
@keyframes ur-up {
    from { transform: translateY(18px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* ---------- Timer ---------- */
.timer-clock { display: flex; align-items: flex-start; gap: 8px; }
.timer-clock > div {
    min-width: 58px;
    padding: 9px 8px 7px;
    border-radius: 12px;
    background: rgba(8, 6, 5, 0.45);
    border: 1px solid rgba(236, 222, 196, 0.1);
    text-align: center;
}
.timer-clock b {
    display: block;
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    color: var(--gold-3);
    font-variant-numeric: tabular-nums;
}
.timer-clock small {
    display: block;
    margin-top: 6px;
    color: var(--faint);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.timer-clock i { margin-top: 10px; color: var(--gold); font-style: normal; font-family: var(--serif); font-size: 24px; }
.timer-live { margin: 0; color: var(--ok); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.timer-sm { margin-top: 16px; }
.timer-sm .timer-clock > div { min-width: 46px; padding: 6px 4px 5px; }
.timer-sm .timer-clock b { font-size: 22px; }
.timer-sm .timer-clock i { font-size: 18px; margin-top: 6px; }

/* ---------- Sections ---------- */
main { position: relative; }
.sec { padding: 56px 0 24px; scroll-margin-top: 80px; }
.sec-h {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.sec-h::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.sec-n {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--gold-2);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1;
}
.sec-n::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: -1;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: rgba(207, 164, 94, 0.08);
    transform: rotate(45deg);
}
.sec-h > div { min-width: 0; }
.sec-h p:not(.kicker) { max-width: 44em; margin: 10px 0 0; color: var(--muted); }
.sec-more { align-self: end; }
.panel-like,
.world,
.virtue,
.file-block,
.faq,
.sheet.is-on {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 80px),
        var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
/* ---------- Worlds ---------- */
.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.world {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 14px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.world:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.world-on { border-color: rgba(159, 207, 170, 0.3); }
.world-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.idx { color: var(--gold-2); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--off); }
.chip-on { color: var(--ok); border-color: rgba(159, 207, 170, 0.4); }
.chip-on i { background: var(--ok); animation: ur-pulse 2.4s ease-out infinite; }
.chip-soon { color: var(--soon); border-color: var(--line-strong); }
.chip-soon i { background: var(--soon); }
@keyframes ur-pulse {
    0% { box-shadow: 0 0 0 0 rgba(159, 207, 170, 0.5); }
    100% { box-shadow: 0 0 0 8px rgba(159, 207, 170, 0); }
}
.world-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.world-copy { min-width: 0; flex: 1; }
.world-copy .kicker { margin-bottom: 4px; font-size: 11px; color: var(--gold); }
.world h3 { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.08; overflow-wrap: break-word; }
.world-copy p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.stair { flex: none; display: flex; align-items: flex-end; }
.stair-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 36px;
    padding: 0 2px 4px;
    border-bottom: 1px solid var(--line-strong);
    position: relative;
}
.stair-bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(207, 164, 94, 0.3), transparent);
}
.stair-bars i {
    width: 5px;
    height: calc(5px + var(--n) * 2.2px);
    border-radius: 1px 1px 0 0;
    background: rgba(236, 222, 196, 0.08);
    box-shadow: inset 0 0 0 1px rgba(236, 222, 196, 0.06);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    transition-delay: calc(var(--n) * 70ms);
}
.stair.is-in .stair-bars i.is-on {
    background: linear-gradient(180deg, var(--gold-3) 0, var(--gold-2) 2px, var(--gold) 55%, #9c7038 100%);
    box-shadow: 0 0 8px rgba(224, 150, 70, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.world-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) minmax(0, 1.45fr);
    gap: 8px;
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.world .timer-sm,
.world .timer-age { margin: 12px 0; }
.world .timer-age .timer-clock,
.world .timer-sm .timer-clock { gap: 4px; }
.world .timer-sm .timer-clock > div,
.world .timer-age .timer-clock > div { min-width: 0; flex: 1 1 0; padding: 5px 2px 4px; }
.world .timer-sm .timer-clock b,
.world .timer-age .timer-clock b { font-size: 18px; }
.world .timer-sm .timer-clock small,
.world .timer-age .timer-clock small { margin-top: 4px; font-size: 9px; letter-spacing: 0.06em; }
.world .timer-sm .timer-clock i,
.world .timer-age .timer-clock i { font-size: 16px; margin-top: 4px; }
.world-meta dd { font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Virtues ---------- */
.virtues { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.virtue { display: flex; flex-direction: column; padding: 22px 22px 20px; min-height: 220px; }
.virtue-main {
    grid-row: span 2;
    justify-content: flex-end;
    border-color: var(--line-strong);
    background:
        radial-gradient(260px 200px at 100% 0%, rgba(224, 122, 60, 0.18), transparent 70%),
        linear-gradient(180deg, rgba(207, 164, 94, 0.1), transparent 60%),
        var(--card);
}
.virtue-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(207, 164, 94, 0.08);
}
.virtue-ico .ico { width: 22px; height: 22px; stroke: var(--gold); }
.virtue-main .virtue-ico { margin-bottom: auto; }
.virtue .virtue-big {
    margin: 24px 0 10px;
    font-family: var(--serif);
    font-size: clamp(56px, 6vw, 84px);
    line-height: 0.95;
    color: var(--gold-3);
}
.virtue h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 25px; line-height: 1.12; }
.virtue p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
/* ---------- Ranking ---------- */
.rank-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 9, 7, 0.55); }
.tab {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-on { background: linear-gradient(180deg, #ecd5a3, var(--gold)); color: var(--ink-on-gold); }
.rank-world { display: none; }
.rank-world.is-on { display: block; }
.sheet { display: none; }
.sheet.is-on { display: block; overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th, td { padding: 14px 18px; text-align: left; }
th {
    color: var(--faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(207, 164, 94, 0.06);
}
td { border-top: 1px solid var(--line); }
tbody tr { transition: background 0.2s ease; }
tbody tr:hover { background: rgba(207, 164, 94, 0.05); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.strong { color: var(--gold-2); font-weight: 700; }
td.place { width: 52px; }
td.place span {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 12px;
}
tr.top td.place span { border: 1px solid var(--line-strong); color: var(--gold-2); }
tr.top-1 td.place span { background: linear-gradient(180deg, #ecd5a3, var(--gold)); color: var(--ink-on-gold); border-color: transparent; }
.who b { display: block; font-weight: 700; }
.who small, .who em { display: block; margin-top: 2px; color: var(--muted); font-style: normal; font-size: 12px; font-weight: 500; }
.who em { color: var(--gold-2); letter-spacing: 0.08em; text-transform: uppercase; }
td.empty { color: var(--muted); padding: 32px 18px; }
.rank th, .rank td { padding: 7px 14px; }
.rank th { font-size: 10px; letter-spacing: 0.14em; }
.rank table { min-width: 0; }
.rank tr.top-1 { background: linear-gradient(90deg, rgba(207, 164, 94, 0.16), transparent 48%); }
.rank tr.top-2 { background: linear-gradient(90deg, rgba(207, 164, 94, 0.08), transparent 36%); }
.rank tr.top-3 { background: linear-gradient(90deg, rgba(166, 106, 48, 0.1), transparent 32%); }
.rank .who-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank .who-text { min-width: 0; }
.rank .who b,
.rank .who small,
.rank .who em { display: inline; margin: 0; }
.rank .who small { margin-left: 8px; }
.rank .who em { margin-left: 8px; }
.clan-badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 22px;
    border-radius: 3px;
    background: rgba(8, 6, 5, 0.55);
    border: 1px solid rgba(207, 164, 94, 0.32);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.clan-badge.is-empty { background: rgba(236, 222, 196, 0.04); border-color: rgba(236, 222, 196, 0.12); }
.ur-crest {
    display: block;
    width: 16px;
    height: 12px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* ---------- Media ---------- */
.subh { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--serif); font-size: 24px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #e0553c; animation: ur-live 1.6s ease-out infinite; }
@keyframes ur-live {
    0% { box-shadow: 0 0 0 0 rgba(224, 85, 60, 0.55); }
    100% { box-shadow: 0 0 0 9px rgba(224, 85, 60, 0); }
}
.streams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.stream,
.video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #0b0907;
}
.stream iframe,
.stream .stream-frame,
.stream .lk-tiktok-live,
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.streams-add { margin: 4px 0 8px; }
.streams-add .btn { display: inline-flex; align-items: center; gap: 8px; }
.streams-add .ico { width: 16px; height: 16px; }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.video { display: block; width: 100%; padding: 0; transition: border-color 0.25s ease, transform 0.25s ease; }
.video:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.video img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.78);
    transform: scale(1.02);
    transition: filter 0.3s ease, transform 0.5s ease;
}
.video:hover img { filter: saturate(1) brightness(0.92); transform: scale(1.06); }
.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 50%;
    background: rgba(15, 12, 10, 0.6);
    border: 1px solid rgba(236, 213, 163, 0.55);
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}
.video-play .ico { width: 20px; height: 20px; margin-left: 3px; fill: var(--gold-2); stroke: none; }
.video:hover .video-play { background: rgba(207, 164, 94, 0.9); }
.video:hover .video-play .ico { fill: var(--ink-on-gold); }
.video.is-playing { cursor: default; transform: none; }

.step-n {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(207, 164, 94, 0.08);
    color: var(--gold-2);
    font-family: var(--serif);
    font-size: 18px;
}
/* ---------- Files page ---------- */
.page { padding: 48px 0 24px; }
.page-h { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.files-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 20px; align-items: start; }
.file-list { display: grid; gap: 14px; }
.file-block { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 22px 20px; }
.file-block h2 { font-size: clamp(24px, 2.4vw, 32px); }
.file-block p { margin: 8px 0 0; color: var(--muted); }
.file-block em { margin-left: 6px; font-style: normal; color: var(--gold-2); white-space: nowrap; }
.file-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.miss { margin: 14px 0 0; color: var(--faint); }
.faq { position: sticky; top: 92px; padding: 22px 22px 22px; border-color: var(--line-strong); }
.faq h2 { font-size: 30px; margin-bottom: 12px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--serif); font-size: 20px; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.faq details a { color: var(--gold-2); border-bottom: 1px solid rgba(236, 213, 163, 0.4); }
.faq .btn { width: 100%; margin-top: 10px; }

/* ---------- World card -> description ---------- */
.world-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 10px;
    color: var(--gold-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.world-more .ico { width: 16px; height: 16px; }
.world-more:hover { color: var(--gold-3); }

/* ---------- Description ---------- */
.dpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.dpick-i {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 22px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(20, 16, 13, 0.62);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.dpick-i .kicker { margin: 0; font-size: 11px; color: var(--faint); }
.dpick-i b { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); line-height: 1.15; }
.dpick-i small { color: var(--muted); font-size: 14px; }
.dpick-i:hover { border-color: var(--line-strong); }
.dpick-i.is-on {
    border-color: rgba(207, 164, 94, 0.6);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(207, 164, 94, 0.16), transparent 60%),
        var(--card);
    box-shadow: inset 0 1px 0 rgba(255, 243, 216, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.dpick-i.is-on .kicker { color: var(--gold-2); }
.dpick-i.is-on::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.dworld[hidden] { display: none; }
.dlayout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.dtoc {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 18px 16px 18px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18, 14, 12, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    scrollbar-width: thin;
}
.dtoc .kicker { margin-bottom: 10px; }
.dtoc ol { list-style: none; margin: 0 0 16px; padding: 0; }
.dtoc ol a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 2px;
    padding: 5px 8px 5px 6px;
    border-left: 2px solid transparent;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.dtoc-ico {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: rgba(207, 164, 94, 0.08);
    color: var(--gold-2);
}
.dtoc-ico img { width: 16px; height: 16px; object-fit: contain; image-rendering: pixelated; }
.dtoc-ico .ico { width: 14px; height: 14px; }
.dtoc ol a:hover { color: var(--ink); }
.dtoc ol a:hover .dtoc-ico { border-color: var(--line-strong); }
.dtoc ol a.is-on { color: var(--gold-3); border-left-color: var(--gold); }
.dtoc ol a.is-on .dtoc-ico { border-color: var(--gold); background: rgba(207, 164, 94, 0.18); color: var(--gold); }
.dtoc .btn { width: 100%; }
.dtoc .btn .ico { width: 16px; height: 16px; }
.dmain { display: grid; gap: 16px; min-width: 0; }
.dintro {
    padding: 20px 24px;
    border-left: 2px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(90deg, rgba(207, 164, 94, 0.12), rgba(20, 16, 13, 0.5));
    font-size: 16px;
}
.dintro p, .dintro ul { margin: 0; }
.warn {
    position: relative;
    padding: 18px 22px 18px 62px;
    border: 1px solid rgba(214, 120, 84, 0.42);
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(160, 64, 40, 0.2), rgba(20, 16, 13, 0.72));
}
.warn::before {
    content: "!";
    position: absolute;
    left: 20px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(232, 150, 110, 0.7);
    border-radius: 50%;
    color: #f0b090;
    font-family: var(--serif);
    font-size: 17px;
}
.warn b { display: block; color: #f3c7ad; font-size: 15px; letter-spacing: 0.04em; }
.warn p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.dsec {
    scroll-margin-top: 92px;
    padding: 22px 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 90px),
        var(--card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dsec-h {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.dsec-h h2 { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; }
.dsec-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: radial-gradient(circle at 50% 30%, rgba(207, 164, 94, 0.22), rgba(12, 9, 7, 0.9));
    color: var(--gold-2);
    box-shadow: inset 0 0 0 3px rgba(12, 9, 7, 0.75);
}
.dsec-ico img { width: 32px; height: 32px; object-fit: contain; border-radius: 4px; }
.dsec-ico .ico { width: 22px; height: 22px; }
.dsec-b { color: var(--muted); font-size: 15px; line-height: 1.65; }
.dsec-b > * + * { margin-top: 14px; }
.dsec-b p { margin: 0; }
.dsec-b b { color: var(--ink); font-weight: 700; }
.dsec-b a:not(.btn) { color: var(--gold-2); border-bottom: 1px solid rgba(236, 213, 163, 0.4); }
.dsub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 0;
    color: var(--gold-2);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.dsub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.facts li {
    position: relative;
    padding: 6px 0 6px 20px;
    border-bottom: 1px dashed rgba(207, 164, 94, 0.1);
}
.facts li:last-child { border-bottom: 0; }
.facts li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 15px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.7;
}
.facts .k { color: var(--ink); font-weight: 600; }
.facts .k::after { content: ":"; margin-right: 6px; color: var(--faint); }
.facts .is-strong { color: var(--gold-3); font-weight: 700; }
.facts-sm li { padding: 4px 0 4px 18px; font-size: 13px; }
.facts-sm li::before { top: 11px; width: 5px; height: 5px; }
.facts .has-ico { display: flex; align-items: center; gap: 6px; padding-left: 0; }
.facts .has-ico::before { display: none; }
.inl { display: inline-block; height: 26px; width: auto; margin: 0 2px; vertical-align: middle; border-radius: 4px; }
.pic { margin: 0; }
.pic img { display: inline-block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.shot { margin: 0; }
.shot a { position: relative; display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: #0b0907; }
.shot img { display: block; width: 100%; height: auto; transition: transform 0.4s ease, opacity 0.3s ease; }
.shot-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(12, 9, 7, 0.82);
    color: var(--gold-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}
.shot a:hover img { transform: scale(1.015); }
.shot a:hover .shot-zoom { opacity: 1; color: var(--gold-3); }
.plaque {
    padding: 12px 16px;
    border: 1px solid rgba(214, 120, 84, 0.38);
    border-radius: 10px;
    background: rgba(160, 64, 40, 0.14);
    color: #f3c7ad;
}
.spoil {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 8, 6, 0.42);
}
.spoil + .spoil { margin-top: 8px; }
.spoil summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    font-weight: 700;
}
.spoil summary::-webkit-details-marker { display: none; }
.spoil summary::after {
    content: "+";
    color: var(--gold);
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.spoil[open] summary { border-bottom: 1px solid var(--line); color: var(--gold-3); }
.spoil[open] summary::after { transform: rotate(45deg); }
.spoil summary:hover { color: var(--gold-3); }
.spoil-in { padding: 14px 16px 16px; }
.spoil-in > * + * { margin-top: 12px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.items li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 8, 6, 0.4);
}
.items li.is-wide { grid-column: 1 / -1; padding: 12px 16px 12px 12px; gap: 18px; }
.items-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #0b0907;
}
.items-ico img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.is-wide .items-ico { width: 270px; height: auto; padding: 4px; justify-content: start; border-radius: 10px; }
.is-wide .items-ico img { height: 50px; width: auto; max-width: none; max-height: none; border-radius: 6px; }
.items-txt { display: grid; gap: 2px; min-width: 0; }
.items-txt b { font-size: 15px; }
.items-txt small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.epics { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.epic {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(207, 164, 94, 0.09), transparent 60%),
        rgba(10, 8, 6, 0.45);
}
.epic header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.epic h4 { flex: 1; min-width: 0; margin: 0; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.2; }
.epic-lv { display: flex; gap: 4px; }
.epic-lv button {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--faint);
    font: 700 12px/1 var(--sans);
    cursor: pointer;
    transition: all 0.2s ease;
}
.epic-lv button:hover { color: var(--ink); border-color: var(--line-strong); }
.epic-lv button.is-on { color: #1b130b; border-color: var(--gold); background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.epic-pane p { margin: 0; color: var(--ink); font-size: 14px; }
.epic-pane .facts { margin-top: 8px; }
.epic-note { margin: auto 0 0; padding-top: 10px; color: var(--faint); font-size: 12px; }
.zoom {
    max-width: min(96vw, 1400px);
    max-height: 94vh;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #0b0907;
    overflow: hidden;
}
.zoom::backdrop { background: rgba(6, 5, 4, 0.86); backdrop-filter: blur(4px); }
.zoom img { display: block; max-width: 100%; max-height: 94vh; margin: 0 auto; object-fit: contain; }
.zoom-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(12, 9, 7, 0.85);
    cursor: pointer;
}
.zoom-x::before,
.zoom-x::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    top: 18px;
    height: 1px;
    background: var(--gold-2);
    transform: rotate(45deg);
}
.zoom-x::after { transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.foot {
    margin-top: 64px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(13, 10, 8, 0.7), rgba(10, 8, 6, 0.96));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 44px 0 30px; }
.foot-brand p { max-width: 30em; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.foot h3 { margin: 4px 0 14px; color: var(--gold-2); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot li a { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; transition: color 0.2s ease; }
.foot li a:hover { color: var(--ink); }
.foot li a .ico { stroke: var(--gold); }
.foot-base {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 18px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 13px;
}
.foot-base p { margin: 0; }
.foot-base p:first-child { letter-spacing: 0.14em; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav a .ico { display: none; }
    .nav a { padding: 8px 10px; }
    .virtues { grid-template-columns: 1fr 1fr; }
    .virtue-main { grid-row: auto; grid-column: 1 / -1; min-height: 0; }
    .virtue-main .virtue-ico { margin-bottom: 0; }
    .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dlayout { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 900px) {
    .dlayout { grid-template-columns: 1fr; }
    .dtoc {
        position: sticky;
        top: 62px;
        z-index: 5;
        max-height: none;
        padding: 10px 0;
        border-radius: 12px;
        background: rgba(13, 10, 8, 0.94);
    }
    .dtoc .kicker,
    .dtoc .btn { display: none; }
    .dtoc ol { display: flex; gap: 6px; margin: 0; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
    .dtoc ol::-webkit-scrollbar { display: none; }
    .dtoc li { flex: none; }
    .dtoc ol a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px 5px 6px;
        border: 1px solid var(--line);
        border-radius: 999px;
        white-space: nowrap;
        font-size: 13px;
    }
    .dtoc-ico { width: 18px; height: 18px; border: 0; background: transparent; }
    .dtoc ol a.is-on { border-color: var(--gold); background: rgba(207, 164, 94, 0.14); }
    .dtoc ol a.is-on .dtoc-ico { border-color: transparent; background: transparent; }
    .dsec { scroll-margin-top: 130px; }
}
@media (max-width: 980px) {
    .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px 18px;
        background: rgba(13, 10, 8, 0.98);
        border-bottom: 1px solid var(--line);
    }
    .nav a { padding: 12px 14px; font-size: 15px; }
    .nav a .ico { display: inline; }
    body.nav-open .nav { display: flex; }
    .nav a.nav-account { display: inline-flex; justify-content: center; margin-top: 6px; border: 1px solid var(--line-strong); }
    .top-side .btn { display: none; }
    .nav-toggle { display: block; }
    .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; padding: 44px 0 80px; }
    .hero-copy { grid-column: 1; padding-top: 22vh; }
    .herald { grid-column: 1; }
    .scene-art { background-position: 12% top; }
    .scene-shade {
        background:
            linear-gradient(180deg, rgba(15, 12, 10, 0.2) 0%, rgba(15, 12, 10, 0.7) 45%, rgba(15, 12, 10, 0.95) 80%, var(--bg) 100%);
    }
    .files-grid { grid-template-columns: 1fr; }
    .faq { position: static; }
    .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .wrap { width: min(var(--max), calc(100% - 28px)); }
    .top-in { min-height: 62px; gap: 12px; }
    .crest-sm { --w: 124px; }
    .hero-copy { padding-top: 14vh; }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-actions .btn-ghost { flex-basis: 100%; }
    .herald-online b { font-size: 44px; }
    .herald .timer-clock > div { min-width: 0; }
    .timer-clock { gap: 5px; }
    .timer-clock > div { min-width: 0; flex: 1; }
    .timer-clock b { font-size: 26px; }
    .sec { padding: 40px 0 12px; }
    .sec-h { grid-template-columns: 1fr; gap: 14px; }
    .sec-more { justify-self: start; }
    .worlds { grid-template-columns: 1fr; }
    .world-body { flex-direction: row; align-items: flex-end; gap: 12px; }
    .virtues { grid-template-columns: 1fr; }
    .videos,
    .streams { grid-template-columns: 1fr 1fr; gap: 10px; }
    .video-play { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
    .rank-bar { flex-direction: column; }
    .tabs { border-radius: 16px; }
    .file-block { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .hero-scroll { display: none; }
}
@media (max-width: 460px) {
    .langs a { width: 30px; }
    .videos,
    .streams { grid-template-columns: 1fr; }
    .world-meta { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .dpick { grid-template-columns: 1fr 1fr; gap: 8px; }
    .dpick-i { padding: 14px 14px 12px; }
    .dpick-i small { display: none; }
    .dtoc ol { grid-template-columns: 1fr; }
    .dsec { padding: 18px 16px 20px; }
    .dsec-h { gap: 12px; }
    .dsec-ico { width: 40px; height: 40px; }
    .items { grid-template-columns: minmax(0, 1fr); }
    .items li.is-wide { flex-direction: column; align-items: stretch; gap: 10px; }
    .is-wide .items-ico { width: auto; overflow-x: auto; }
    .is-wide .items-ico img { height: 40px; }
    .epics { grid-template-columns: minmax(0, 1fr); }
}

.ur-pet,
.ur-petcard { position: fixed; left: 16px; bottom: 14px; z-index: 45; }
.ur-pet {
    width: 98px;
    height: 198px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.ur-pet.is-off { display: none; }
.ur-pet { transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.5, 1); }
.ur-pet.is-tucked { transform: translateY(calc(79% + 14px)); }
.ur-pet.is-tucked:hover,
.ur-pet.is-tucked:focus-visible { transform: translateY(calc(72% + 14px)); }
.ur-pet.is-instant { transition: none; }
.ur-pet.is-tucked:before,
.ur-pet.is-tucked .ur-pet__glow,
.ur-pet.is-tucked .ur-pet__say { opacity: 0; }
.ur-pet.is-tucked .ur-pet__body { animation-duration: 2.4s; }
.ur-pet.is-tucked:hover .ur-pet__body { animation: ur-bob 2.4s ease-in-out infinite; }
.ur-pet-hide {
    position: fixed;
    z-index: 46;
    left: 104px;
    bottom: 96px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(18, 13, 9, 0.82);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: opacity 0.2s ease 0.5s, transform 0.2s ease 0.5s;
}
.ur-pet-hide:before {
    content: "";
    position: absolute;
    left: 8px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid var(--gold-2);
    border-bottom: 1.6px solid var(--gold-2);
    transform: rotate(45deg);
}
.ur-pet:hover + .ur-pet-hide,
.ur-pet:focus-visible + .ur-pet-hide,
.ur-pet-hide:hover,
.ur-pet-hide:focus-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
}
.ur-pet-hide:hover { border-color: var(--gold); background: rgba(40, 28, 16, 0.92); }
.ur-pet.is-off + .ur-pet-hide,
.ur-pet.is-tucked + .ur-pet-hide { display: none; }
@media (hover: none) {
    .ur-pet-hide { opacity: 0.85; transform: none; pointer-events: auto; }
}
.ur-pet:before {
    content: "";
    position: absolute;
    left: 22%;
    right: 18%;
    bottom: 2px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
    animation: ur-shadow 3.4s ease-in-out infinite;
}
.ur-pet__glow {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 22%;
    bottom: 14%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 170, 70, 0.32), rgba(207, 164, 94, 0.1) 60%, transparent);
    filter: blur(6px);
    animation: ur-glow 3.4s ease-in-out infinite;
    pointer-events: none;
}
.ur-pet__body {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform-origin: 50% 96%;
    animation: ur-bob 3.4s ease-in-out infinite;
}
.ur-pet__art {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
    transition: filter 0.25s ease;
}
.ur-pet__layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100%;
}
.ur-pet__ear-l { transform-origin: 43.9% 24.3%; animation: ur-ear-l 5.2s ease-in-out infinite; }
.ur-pet__ear-r { transform-origin: 72.4% 22.8%; animation: ur-ear-r 7.4s ease-in-out infinite; }
.ur-pet__blink { opacity: 0; animation: ur-blink 8s linear infinite; }
.ur-pet__wink { opacity: 0; animation: ur-wink 8s linear infinite; }
.ur-pet:hover .ur-pet__wink,
.ur-pet:focus-visible .ur-pet__wink { animation: ur-wink-now 0.9s linear; }
.ur-pet:hover .ur-pet__blink,
.ur-pet:focus-visible .ur-pet__blink { animation: none; }
.ur-pet:hover .ur-pet__body,
.ur-pet:focus-visible .ur-pet__body { animation: ur-hop 0.7s ease-out; }
.ur-pet:hover .ur-pet__art { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(255, 176, 80, 0.45)); }
.ur-pet__say {
    position: absolute;
    z-index: 1;
    left: 86px;
    bottom: 166px;
    width: max-content;
    max-width: 148px;
    padding: 6px 10px;
    border-radius: 14px 14px 14px 4px;
    background: var(--gold-2);
    color: var(--ink-on-gold);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.ur-pet__say.is-on { opacity: 1; transform: none; }
.ur-petcard {
    width: min(320px, calc(100vw - 28px));
    padding: 16px 16px 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(207, 164, 94, 0.12), transparent 90px),
        var(--card);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.ur-petcard.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ur-petcard__x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.ur-petcard__x:before,
.ur-petcard__x:after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 14px;
    height: 1.5px;
    background: var(--ink);
}
.ur-petcard__x:before { transform: rotate(45deg); }
.ur-petcard__x:after { transform: rotate(-45deg); }
.ur-petcard__head { display: flex; align-items: center; gap: 10px; padding-right: 28px; }
.ur-petcard__head .kicker { margin: 0; }
.ur-petcard__head h2 { margin: 0; font-size: 28px; }
.ur-petcard__mark {
    flex: none;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: radial-gradient(circle at 50% 40%, rgba(255, 170, 70, 0.28), rgba(0, 0, 0, 0.35) 70%);
}
.ur-petcard__mark img { display: block; width: 100%; height: 100%; }
.ur-petcard__lead { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ur-petcard ul { list-style: none; margin: 12px 0 0; padding: 10px 0 0; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.ur-petcard li { color: var(--ink); font-size: 14px; font-weight: 600; }
.ur-petcard li:before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.ur-petcard .btn { width: 100%; margin-top: 12px; }
@keyframes ur-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-1.5deg); }
    50% { transform: translateY(-6px) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(1.5deg); }
}
@keyframes ur-shadow {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(0.84); opacity: 0.7; }
}
@keyframes ur-glow {
    0%, 100% { opacity: 0.65; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}
@keyframes ur-ear-l {
    0%, 62%, 80%, 100% { transform: rotate(0deg); }
    66% { transform: rotate(-9deg); }
    70% { transform: rotate(3deg); }
    75% { transform: rotate(-5deg); }
}
@keyframes ur-ear-r {
    0%, 36%, 50%, 84%, 92%, 100% { transform: rotate(0deg); }
    40% { transform: rotate(7deg); }
    45% { transform: rotate(-2deg); }
    88% { transform: rotate(4deg); }
}
@keyframes ur-blink {
    0%, 19.4%, 21.6%, 25.4%, 27%, 100% { opacity: 0; }
    20%, 21%, 26%, 26.4% { opacity: 1; }
}
@keyframes ur-wink {
    0%, 69.4%, 77%, 100% { opacity: 0; }
    70%, 76.4% { opacity: 1; }
}
@keyframes ur-wink-now {
    0%, 8%, 78%, 100% { opacity: 0; }
    14%, 72% { opacity: 1; }
}
@keyframes ur-hop {
    0% { transform: translateY(0) scale(1, 1); }
    18% { transform: translateY(0) scale(1.06, 0.92); }
    45% { transform: translateY(-14px) scale(0.96, 1.05); }
    72% { transform: translateY(0) scale(1.04, 0.95); }
    100% { transform: translateY(0) scale(1, 1); }
}
@media (max-width: 720px) {
    .ur-pet,
    .ur-petcard { left: 10px; bottom: 10px; }
    .ur-pet { width: 62px; height: 126px; }
    .ur-pet.is-tucked { transform: translateY(calc(79% + 10px)); }
    .ur-pet.is-tucked:hover,
    .ur-pet.is-tucked:focus-visible { transform: translateY(calc(72% + 10px)); }
    .ur-pet-hide { left: 66px; bottom: 58px; }
    .ur-pet__say { left: 56px; bottom: 108px; max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scene-art,
    .hero-copy,
    .herald { animation: none; }
    .embers,
    .crest-gild::after { display: none; }
    .chip-on i,
    .live-dot,
    .hero-scroll span { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .stair-bars i { transition: none; }
    .ur-pet:before,
    .ur-pet__glow,
    .ur-pet__body,
    .ur-pet:hover .ur-pet__body,
    .ur-pet__ear-l,
    .ur-pet__ear-r,
    .ur-pet__blink,
    .ur-pet__wink,
    .ur-pet:hover .ur-pet__wink { animation: none; }
}
