@font-face {
    font-family: 'Days One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/daysone-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Days One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/daysone-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Philosopher';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/philosopher400-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Philosopher';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/philosopher400-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Philosopher';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/philosopher400-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Philosopher';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/philosopher700-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Philosopher';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/philosopher700-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Philosopher';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/philosopher700-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-0: #06080d;
    --ink: #f3e6c7;
    --ink-soft: #d9cdb0;
    --muted: #9a8f77;
    --dim: #5a5340;
    --gold: #e4b86b;
    --gold-dim: #a37f3d;
    --gold-deep: #6b4e22;
    --line: rgba(228, 184, 107, 0.22);
    --green: #7fd08c;
    --anons-duration: 30s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}
html { height: 100%; }

body {
    font-family: 'Days One', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg-0);
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
    padding: clamp(14px, 2vh, 24px) clamp(20px, 3.5vw, 56px);
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

/* Landing page (index): strict one-screen, no scrollbars */
body.page-landing {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body.page-landing::-webkit-scrollbar { display: none; }

/* Internal pages: allow vertical flow */
body.page-internal {
    overflow-x: hidden;
}

/* Background photo + overlay */
.bg {
    position: fixed;
    inset: 0;
    background-image: url("../images/header_bg.webp");
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    z-index: -2;
    filter: saturate(1.05) brightness(1.12);
}
.bg-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6,8,13,0.88) 0%, rgba(6,8,13,0.10) 18%, rgba(6,8,13,0.10) 72%, rgba(6,8,13,0.92) 100%);
    z-index: -1;
}
/* Internal pages: stronger darken for readability of large text blocks */
body.page-internal .bg-overlay {
    background: rgba(6,8,13,0.82) !important;
}

/* -------------------- TOP BAR -------------------- */
.top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding-bottom: clamp(10px, 1.4vh, 16px);
}
.top-left { justify-self: start; }
.top-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 18px);
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Days One', sans-serif;
    font-size: clamp(14px, 1.35vw, 18px);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
}
.logo-mark {
    color: var(--gold);
    text-shadow: 0 0 14px rgba(228, 184, 107, 0.55);
}
.accent { color: var(--gold); }

.nav {
    display: flex;
    gap: clamp(14px, 2.2vw, 32px);
    font-family: 'Days One', sans-serif;
    font-size: clamp(12px, 1.05vw, 14px);
    text-transform: uppercase;
    letter-spacing: 2px;
    justify-self: center;
}
.nav a, .nav button {
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    text-decoration: none;
    padding: 6px 2px;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease, text-shadow .2s ease;
    cursor: pointer;
}
.nav a:hover, .nav button:hover {
    color: var(--gold);
    text-shadow: 0 0 12px rgba(228, 184, 107, 0.35);
}
.nav a.active, .nav button.active {
    color: var(--gold);
    border-bottom-color: var(--gold-dim);
}

.lang {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}
.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(228, 184, 107, 0.06);
    backdrop-filter: blur(6px);
    color: var(--gold);
    padding: 6px 12px 6px 8px;
    font-family: 'Days One', sans-serif;
    font-size: clamp(11px, 0.9vw, 12px);
    letter-spacing: 2px;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
    line-height: 1;
}
.lang-trigger:hover {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(228, 184, 107, 0.12);
}
.lang-flag {
    display: inline-flex;
    line-height: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.lang-flag svg { display: block; }
.lang-caret {
    transition: transform .2s ease;
    opacity: .7;
}
.lang.open .lang-trigger {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(228, 184, 107, 0.12);
}
.lang.open .lang-trigger .lang-caret { transform: rotate(180deg); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10, 8, 5, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 50;
}
.lang.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-btn {
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: var(--muted);
    padding: 8px 10px;
    font-family: 'Days One', sans-serif;
    font-size: clamp(11px, 0.9vw, 12px);
    cursor: pointer;
    transition: color .18s, background .18s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}
.lang-btn:hover {
    color: var(--ink);
    text-decoration: none;
    background: rgba(228, 184, 107, 0.1);
}
.lang-btn.active {
    color: var(--gold);
    background: rgba(228, 184, 107, 0.12);
    text-decoration: none;
}
.lang-name {
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-family: 'Days One', sans-serif;
    font-size: clamp(11px, 0.95vw, 13px);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #e7ecf7;
    background:
        linear-gradient(180deg, #14224a 0%, #0b1432 55%, #050918 100%);
    border: 1px solid rgba(130, 160, 220, 0.45);
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(190, 210, 245, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        inset 0 0 24px rgba(20, 40, 100, 0.4),
        0 6px 18px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    width: 220px;
    flex-shrink: 0;
    transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-login:hover {
    color: #ffffff;
    border-color: rgba(160, 190, 245, 0.8);
    background: linear-gradient(180deg, #1d2f62 0%, #111c40 55%, #070c20 100%);
    box-shadow:
        inset 0 1px 0 rgba(200, 220, 250, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        inset 0 0 30px rgba(30, 60, 140, 0.5),
        0 6px 22px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(90, 130, 220, 0.35);
}
.btn-login-icon {
    display: none;
}

/* -------------------- HERO SOCIALS (text links under CTAs) -------------------- */
.hero-socials {
    margin-top: clamp(16px, 2vh, 22px);
    display: inline-flex;
    align-items: center;
    gap: 28px;
    font-family: 'Days One', sans-serif;
    font-size: clamp(13px, 1.15vw, 16px);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.hero-social {
    text-decoration: none;
    color: var(--brand-tint);
    transition: color .2s ease, text-shadow .2s ease;
}
.hero-social:hover {
    color: var(--brand-hover);
    text-shadow: 0 0 16px rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.6);
}
.hero-social-discord {
    --brand-tint: #8c97ff;
    --brand-hover: #b4beff;
    --brand-r: 140; --brand-g: 155; --brand-b: 255;
}
.hero-social-telegram {
    --brand-tint: #5fc8ff;
    --brand-hover: #9fd6f2;
    --brand-r: 95; --brand-g: 200; --brand-b: 255;
}
.hero-social-vk {
    --brand-tint: #7b9fdc;
    --brand-hover: #a8c4ec;
    --brand-r: 123; --brand-g: 159; --brand-b: 220;
}

/* -------------------- PRELOADER -------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background:
        radial-gradient(ellipse at center, #0a0c12 0%, #05060a 70%, #020203 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.preloader-mark {
    font-family: serif;
    font-size: 56px;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(228, 184, 107, 0.55);
    line-height: 1;
    animation: preMark 1.8s ease-in-out infinite;
}
@keyframes preMark {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.92); }
}
.preloader-label {
    font-family: 'Days One', sans-serif;
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.preloader-bar {
    position: relative;
    width: 200px;
    height: 2px;
    background: rgba(228, 184, 107, 0.14);
    overflow: hidden;
    border-radius: 1px;
}
.preloader-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: preBar 1.4s ease-in-out infinite;
}
@keyframes preBar {
    0%   { left: -40%; }
    100% { left: 100%; }
}

/* Hamburger toggle (mobile) */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(228, 184, 107, 0.55);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 60;
}
.nav-toggle span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* -------------------- HERO (index) -------------------- */
.hero {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: clamp(60px, 14vh, 150px);
    min-height: 0;
    position: relative;
}

.hero-plate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(10px, 1.8vh, 20px);
    padding: clamp(20px, 3vh, 36px) clamp(30px, 5vw, 70px);
    position: relative;
    isolation: isolate;
}
.hero-plate::before {
    content: "";
    position: absolute;
    inset: -8% -6%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.45) 40%,
        rgba(0, 0, 0, 0.15) 72%,
        transparent 95%
    );
    filter: blur(6px);
    z-index: -1;
    pointer-events: none;
}

.subtitle {
    font-family: 'Philosopher', 'Trebuchet MS', serif;
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 32px);
    letter-spacing: 1px;
    color: #fbf3dc;
    text-shadow: 0 2px 22px rgba(0,0,0,0.95);
    max-width: 920px;
}

.cta {
    display: flex;
    gap: clamp(18px, 2.4vw, 36px);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: clamp(6px, 1.4vh, 14px);
}

/* Primary CTA */
.btn-ornate {
    --pad-x: clamp(28px, 3vw, 46px);
    --pad-y: clamp(14px, 1.8vh, 18px);
    position: relative;
    display: inline-block;
    padding: var(--pad-y) var(--pad-x);
    font-family: 'Days One', sans-serif;
    font-size: clamp(12px, 1.05vw, 14px);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: #f4dba6;
    background:
        linear-gradient(180deg, #3e1418 0%, #260a0d 55%, #14060a 100%);
    border: 1px solid #b48246;
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 180, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        inset 0 0 30px rgba(120, 30, 30, 0.35),
        0 10px 28px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.35);
    transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease, background .25s ease;
    cursor: pointer;
}
.btn-ornate .btn-ornate-label {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 0, 0, 0.5);
}
.btn-ornate:hover {
    color: #fbe8b6;
    border-color: #e4b86b;
    background:
        linear-gradient(180deg, #4b181c 0%, #30101a 55%, #1a070b 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 180, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        inset 0 0 30px rgba(150, 45, 45, 0.45),
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 28px rgba(228, 184, 107, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.35);
}
.btn-ornate:active {
    transform: translateY(1px);
}

/* Secondary text CTA */
.btn-link {
    font-family: 'Days One', sans-serif;
    font-size: clamp(12px, 1.05vw, 14px);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 2px;
    border-bottom: 1px solid transparent;
    text-shadow: 0 2px 12px rgba(0,0,0,0.85);
    transition: color .2s ease, border-color .2s ease;
    background: transparent;
    border-top: 0; border-left: 0; border-right: 0;
    cursor: pointer;
}
.btn-link .arrow {
    font-family: serif;
    font-weight: 400;
    display: inline-block;
    transition: transform .2s ease;
}
.btn-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold-dim);
}
.btn-link:hover .arrow {
    transform: translateX(4px);
}

/* -------------------- BOTTOM -------------------- */
.bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
    padding-top: clamp(10px, 1.4vh, 16px);
    font-size: clamp(11px, 0.9vw, 12px);
    font-family: 'Days One', sans-serif;
}
.bottom > * { min-width: 0; }
.bottom-left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 4px 20px;
    flex-wrap: wrap;
}
.bottom-left a {
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: color .2s;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.bottom-left a:hover { color: var(--gold); }
.dim { color: var(--dim); }
.bottom-right {
    justify-self: end;
    color: var(--muted);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
    line-height: 1.45;
    text-align: right;
}
.bottom-right .cr-line {
    white-space: nowrap;
    display: inline-block;
}

/* Status bar: plain text */
.status-bar {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 18px);
    font-size: clamp(11px, 0.95vw, 13px);
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.status-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.status-item b { color: var(--gold); font-weight: 400; }
.status-bar .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green), 0 0 2px var(--green) inset;
    animation: pulse 2.2s ease-in-out infinite;
}
.status-bar .dot-offline {
    background: #e04444;
    box-shadow: 0 0 10px #e04444, 0 0 2px #e04444 inset;
}
.status-bar .divider { color: var(--gold-dim); opacity: 0.55; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* -------------------- MODAL (download) -------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, 0.72);
    backdrop-filter: blur(6px);
}
.modal-panel {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: auto;
    background:
        radial-gradient(ellipse at top, rgba(70, 90, 120, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, #161a22 0%, #0d1017 55%, #06080c 100%);
    border: 1px solid rgba(170, 185, 210, 0.3);
    border-radius: 12px;
    padding: clamp(22px, 3vh, 34px) clamp(22px, 3vw, 40px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(220, 230, 245, 0.08);
    animation: modalIn .22s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title {
    font-family: 'Days One', sans-serif;
    color: var(--gold);
    font-size: clamp(18px, 1.8vw, 22px);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.modal-subtitle {
    color: var(--muted);
    font-size: clamp(12px, 1vw, 13px);
    letter-spacing: 1px;
    margin-bottom: clamp(18px, 2.4vh, 26px);
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink-soft);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.modal-close:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(228, 184, 107, 0.08);
}
.dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 20px);
}
.dl-card {
    background: rgba(228, 184, 107, 0.04);
    border: 1px solid rgba(228, 184, 107, 0.22);
    border-radius: 8px;
    padding: clamp(14px, 2vh, 20px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dl-card h4 {
    font-family: 'Days One', sans-serif;
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.dl-card h4 .dl-size {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    margin-left: 6px;
}
.dl-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dl-card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color .2s, border-color .2s, background .2s;
}
.dl-card a:hover {
    color: var(--gold);
    border-color: var(--gold-dim);
    background: rgba(228, 184, 107, 0.08);
}
.dl-card a .arrow { color: var(--gold); font-family: serif; }

.dl-guide {
    margin-top: clamp(18px, 2.4vw, 28px);
    padding-top: clamp(18px, 2.2vw, 24px);
    border-top: 1px solid rgba(228, 184, 107, 0.18);
}
.dl-guide-title {
    font-family: 'Days One', sans-serif;
    color: var(--gold);
    font-size: clamp(12px, 1.05vw, 13px);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.dl-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.8vw, 18px);
}
.dl-steps > li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(6, 8, 13, 0.4);
    border: 1px solid rgba(228, 184, 107, 0.14);
    border-radius: 8px;
    padding: 14px 16px;
}
.dl-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, #1a1e28 0%, #070a11 100%);
    border: 1px solid rgba(228, 184, 107, 0.45);
    color: var(--gold);
    font-family: 'Days One', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(228, 184, 107, 0.18), 0 0 12px rgba(228, 184, 107, 0.08);
}
.dl-step-body {
    min-width: 0;
    flex: 1;
}
.dl-step-body b {
    display: block;
    color: var(--ink);
    font-family: 'Days One', sans-serif;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    white-space: nowrap;
}
.dl-step-body p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.5;
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    letter-spacing: 0.2px;
}
.dl-step-link {
    color: var(--gold);
    text-decoration: none;
    transition: color .2s;
}
.dl-step-link:hover { color: #fbe8b6; }
.dl-step-link .arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform .25s ease;
}
.dl-step-link:hover .arrow { transform: translateX(3px); }

/* -------------------- DESCRIPTION PAGE -------------------- */
.page-wrap {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    padding: clamp(18px, 2.4vh, 32px) clamp(8px, 2.4vw, 40px);
}
.page-title {
    font-family: 'Philosopher', serif;
    font-weight: 700;
    font-size: clamp(24px, 2.6vw, 36px);
    color: var(--ink);
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.page-kicker {
    font-family: 'Days One', sans-serif;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.page-sub {
    color: var(--muted);
    font-size: clamp(13px, 1vw, 14px);
    margin-bottom: clamp(18px, 2.6vh, 28px);
}

.desc-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(18px, 2.5vw, 32px);
    align-items: flex-start;
}
.desc-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(8, 6, 4, 0.6);
    border: 1px solid rgba(228, 184, 107, 0.22);
    border-radius: 10px;
    padding: 14px;
    position: sticky;
    top: 24px;
    height: 640px;
}
.desc-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 11px 14px;
    background: transparent;
    color: var(--ink-soft);
    font-family: 'Days One', sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
}
.desc-tab::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-dim);
    opacity: 0.55;
    transition: background .2s, opacity .2s;
    flex-shrink: 0;
}
.desc-tab:hover {
    color: var(--ink);
    background: rgba(228, 184, 107, 0.06);
}
.desc-tab.active {
    color: var(--gold);
    background: rgba(228, 184, 107, 0.1);
    border-color: rgba(228, 184, 107, 0.4);
}
.desc-tab.active::before {
    background: var(--gold);
    opacity: 1;
    box-shadow: 0 0 8px var(--gold);
}

.desc-body {
    background: rgba(3, 4, 8, 0.75);
    border: 1px solid rgba(228, 184, 107, 0.18);
    border-radius: 10px;
    padding: clamp(20px, 2.6vw, 34px);
    height: 640px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(228, 184, 107, 0.35) rgba(6, 8, 13, 0.2);
}
.desc-body::-webkit-scrollbar { width: 8px; }
.desc-body::-webkit-scrollbar-track { background: rgba(6, 8, 13, 0.2); border-radius: 4px; }
.desc-body::-webkit-scrollbar-thumb {
    background: rgba(228, 184, 107, 0.35);
    border-radius: 4px;
}
.desc-body::-webkit-scrollbar-thumb:hover { background: rgba(228, 184, 107, 0.55); }
.desc-panel { display: none; }
.desc-panel.active { display: block; }
.desc-panel h2 {
    font-family: 'Philosopher', serif;
    color: var(--ink);
    font-weight: 700;
    font-size: clamp(20px, 1.9vw, 26px);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.desc-panel h3 {
    font-family: 'Days One', sans-serif;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 10px;
}
.desc-panel p,
.desc-panel li {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.2px;
}
.desc-panel p + p { margin-top: 10px; }
.desc-panel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.desc-panel ul li {
    position: relative;
    padding-left: 18px;
}
.desc-panel ul li::before {
    content: "◆";
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 0.3em;
    font-size: 10px;
    line-height: 1.8;
}
.desc-panel table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 14px;
}
.desc-panel th, .desc-panel td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(228, 184, 107, 0.15);
    color: var(--ink-soft);
    vertical-align: top;
}
.desc-panel th {
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 2px;
    font-size: 12px;
    text-transform: uppercase;
}
.desc-panel td:first-child {
    color: var(--gold);
    font-weight: 400;
    white-space: nowrap;
}
.desc-panel tr:hover td {
    background: rgba(228, 184, 107, 0.04);
}
.desc-panel td a {
    color: var(--gold);
    text-decoration: none;
    transition: color .2s;
}
.desc-panel td a:hover {
    color: #fbe8b6;
    text-decoration: underline;
}
.desc-panel table + table {
    margin-top: 14px;
}
.desc-panel table.info-table,
.desc-panel table.table.info-table {
    table-layout: fixed;
    width: 100%;
}
.desc-panel table.info-table td:first-child,
.desc-panel table.table.info-table td:first-child {
    width: 45%;
}
.desc-panel table.boss-schedule,
.desc-panel table.table.boss-schedule {
    table-layout: fixed;
}
.desc-panel .table-responsive.box {
    box-shadow: none !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
.desc-panel figure {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    outline: none;
}
.desc-panel figure.table {
    display: block;
    overflow-x: auto;
}
.desc-panel table.table {
    border: none;
    outline: none;
    box-shadow: none;
}
.desc-panel .table-responsive.box table.table {
    border: none;
}

.desc-panel li.has-screens {
    display: block;
}
.desc-panel li.has-screens .li-text {
    min-width: 0;
}
.li-spoiler-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(228, 184, 107, 0.08);
    border: 1px solid rgba(228, 184, 107, 0.25);
    border-radius: 4px;
    color: var(--gold);
    font-size: 10px;
    cursor: pointer;
    padding: 0;
    transition: background .2s, border-color .2s;
}
.li-spoiler-btn:hover {
    background: rgba(228, 184, 107, 0.14);
    border-color: rgba(228, 184, 107, 0.5);
}
.li-spoiler-btn .spoiler-arrow {
    display: inline-block;
    transition: transform .25s ease;
    font-size: 8px;
}
.li-spoiler.open .li-spoiler-btn .spoiler-arrow {
    transform: rotate(180deg);
}
.li-spoiler-body {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: rgba(6, 8, 13, 0.5);
    border: 1px solid rgba(228, 184, 107, 0.12);
    border-radius: 6px;
    order: 10;
}
.li-spoiler.open .li-spoiler-body {
    display: block;
}
.li-spoiler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}
.li-spoiler-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(228, 184, 107, 0.12);
    cursor: zoom-in;
    transition: opacity .2s;
}
.li-spoiler-grid img:hover {
    opacity: 0.85;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: lbIn .2s ease-out;
}
.lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 6px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}
@keyframes lbIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wiki-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    position: relative;
}
.wiki-content-wrapper .post-content {
    flex: 1 1 auto;
    min-width: 0;
}
.wiki-page-nav {
    position: sticky;
    top: 24px;
    flex: 0 0 220px;
    align-self: flex-start;
    padding: 16px 10px 18px;
    font-family: 'Days One', sans-serif;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(8, 6, 4, 0.6);
    border: 1px solid rgba(228, 184, 107, 0.22);
}
.wiki-page-nav__header {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    color: var(--gold);
    border-bottom: 1px solid rgba(228, 184, 107, 0.15);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.wiki-page-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wiki-page-nav__list li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wiki-page-nav__list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: var(--ink-soft);
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 400;
    transition: color .2s, background .2s;
    border-right: 2px solid transparent;
}
.wiki-page-nav__list a:hover {
    color: var(--ink);
    background: rgba(228, 184, 107, 0.06);
    border-right-color: rgba(228, 184, 107, 0.3);
}
.wiki-page-nav__list a.active {
    font-weight: 700;
    color: var(--gold);
    background: rgba(228, 184, 107, 0.1);
    border-right-color: var(--gold);
}
@media (max-width: 820px) {
    .wiki-page-nav {
        display: none;
    }
}

/* -------------------- LEGAL PAGES -------------------- */
.legal-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(18px, 3vh, 36px) clamp(8px, 2.4vw, 40px);
}
.legal-wrap .page-title {
    text-align: center !important;
    width: 100%;
    display: block;
}
.legal {
    background: rgba(6, 8, 13, 0.6);
    border: 1px solid rgba(228, 184, 107, 0.18);
    border-radius: 10px;
    padding: clamp(22px, 3vh, 36px) clamp(20px, 3vw, 40px);
    overflow-wrap: break-word;
    word-break: break-word;
}
.legal section {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.legal h2 {
    font-family: 'Days One', sans-serif;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 22px;
    margin-bottom: 8px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.2px;
}
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 20px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.legal .meta {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.legal hr {
    border: none;
    border-top: 1px solid rgba(228, 184, 107, 0.15);
    margin: 18px 0;
}
.legal section h1 { display: none; }
.legal .test-banner {
    background: rgba(228, 184, 107, 0.08);
    border: 1px dashed rgba(228, 184, 107, 0.4);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--gold);
    font-family: 'Days One', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* -------------------- ANONS STRIP -------------------- */
.anons-strip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: clamp(6px, 1vh, 10px);
    max-width: 100%;
    overflow: hidden;
}
.anons-rotator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
.anons-rotator.expanded {
    display: inline-flex;
}
.anons-main {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.anons-main .anons-link {
    display: block;
    line-height: 0;
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.anons-main .anons-link:hover {
    box-shadow: 0 0 8px rgba(228, 184, 107, 0.35);
}
.anons-main .anons-link img {
    display: block;
    width: 88px;
    height: 31px;
    border: 1px solid rgba(228, 184, 107, 0.2);
    border-radius: 3px;
    opacity: 0;
    transition: opacity .35s ease;
}
.anons-main .anons-link img.active {
    opacity: 1;
}
.anons-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 31px;
    background: rgba(228, 184, 107, 0.06);
    border: 1px solid rgba(228, 184, 107, 0.2);
    border-radius: 4px;
    color: var(--gold-dim);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .2s, border-color .2s, color .2s;
}
.anons-expand:hover {
    background: rgba(228, 184, 107, 0.12);
    border-color: rgba(228, 184, 107, 0.4);
    color: var(--gold);
}
.anons-expand.open {
    color: var(--gold);
}
.anons-all {
    display: none;
    margin-left: 4px;
    overflow: hidden;
    vertical-align: middle;
    height: 31px;
}
.anons-all::-webkit-scrollbar { display: none; }
.anons-all.open {
    display: inline-block;
}
.anons-all .anons-track {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    will-change: transform;
    height: 31px;
}
.anons-all .anons-track.animating {
    animation: anonsMarquee var(--anons-duration, 30s) linear infinite;
}
@keyframes anonsMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.anons-all a {
    display: inline-block;
    vertical-align: top;
    line-height: 0;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    transition: box-shadow .2s;
}
.anons-all a:hover {
    box-shadow: 0 0 8px rgba(228, 184, 107, 0.35);
}
.anons-all img {
    display: block;
    width: 88px;
    height: 31px;
    border: 1px solid rgba(228, 184, 107, 0.2);
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity .2s;
    pointer-events: none;
    -webkit-user-drag: none;
}
.anons-all a:hover img {
    opacity: 1;
}
.anons-all::-webkit-scrollbar { display: none; }
.anons-all.open {
    display: inline-block;
    padding-right: 6px;
}
.anons-all.dragging {
    cursor: grabbing;
    overflow-x: auto;
}
.anons-all a {
    display: inline-block;
    vertical-align: top;
    line-height: 0;
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow .2s, opacity .3s ease, width .3s ease;
    margin-right: 6px;
    width: 88px;
    opacity: 1;
}
.anons-all a.anons-visible {
    opacity: 1;
    width: 88px;
}
.anons-all a.anons-exit {
    opacity: 0;
    width: 0;
    margin-right: 0;
    overflow: hidden;
}
.anons-all a:hover {
    box-shadow: 0 0 8px rgba(228, 184, 107, 0.35);
}
.anons-all img {
    display: block;
    width: 88px;
    height: 31px;
    border: 1px solid rgba(228, 184, 107, 0.2);
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity .2s;
    pointer-events: none;
    -webkit-user-drag: none;
}
.anons-all a:hover img {
    opacity: 1;
}
.anons-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.anons-mobile .anons-link {
    display: block;
    line-height: 0;
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.anons-mobile .anons-link:hover {
    box-shadow: 0 0 8px rgba(228, 184, 107, 0.35);
}
.anons-mobile .anons-link img {
    display: block;
    width: 88px;
    height: 31px;
    border: 1px solid rgba(228, 184, 107, 0.2);
    border-radius: 3px;
    opacity: 0;
    transition: opacity .35s ease;
}
.anons-mobile .anons-link img.active {
    opacity: 1;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1200px) {
    .logo { font-size: 14px; }
    .status-bar { gap: 10px; }
    .desc-layout { grid-template-columns: 280px 1fr; }
    .btn-login { width: 40px; height: 40px; padding: 0; }
    .btn-login-text { display: none; }
    .btn-login-icon { display: block; }
}

@media (max-width: 1060px) {
    .top-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 6px;
    }
}

@media (max-width: 900px) {
    .nav { gap: 14px; font-size: 12px; }
    .dl-grid { grid-template-columns: 1fr; }
    .dl-steps { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 820px) {
    .desc-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .desc-body { height: clamp(260px, 55vh, 999px); overflow-y: auto; }
    .desc-nav {
        flex-direction: row;
        overflow-x: auto;
        position: static;
        padding: 8px;
        gap: 4px;
        height: auto;
    }
    .desc-nav::-webkit-scrollbar { height: 4px; }
    .desc-tab {
        white-space: nowrap;
        padding: 9px 12px;
        font-size: 12px;
    }
    .desc-panel table.boss-schedule,
    .desc-panel table.table.boss-schedule {
        table-layout: auto;
    }
    .desc-panel table.boss-schedule th,
    .desc-panel table.table.boss-schedule th {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    .desc-panel table.boss-schedule td,
    .desc-panel table.table.boss-schedule td {
        padding: 8px 6px;
        font-size: 13px;
    }
    .desc-panel table.info-table,
    .desc-panel table.table.info-table {
        table-layout: auto;
    }
    .desc-panel table.info-table td:first-child,
    .desc-panel table.table.info-table td:first-child {
        width: auto;
        white-space: normal;
    }
}
@media (max-width: 1100px) {
    .btn-login { width: 40px; height: 40px; padding: 0; }
    .btn-login-text { display: none; }
    .btn-login-icon { display: block; }
}
@media (max-width: 900px) {
    .bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
        text-align: center;
    }
    .bottom-left, .bottom-right { justify-self: center; }
    .bottom-left {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px 10px;
        font-size: clamp(11px, 2.8vw, 13px);
        letter-spacing: 0.3px;
        max-width: 100%;
    }
    .bottom-left a { letter-spacing: 0.3px; white-space: normal; }
    .bottom-right {
        font-size: clamp(11px, 2.8vw, 13px);
        max-width: 100%;
        line-height: 1.45;
        text-align: center;
    }
    .bottom-right .cr-line { white-space: normal; }
    .status-bar { flex-wrap: wrap; justify-content: center; gap: 8px; }
}
@media (max-width: 760px) {
    body { padding: 14px 18px; }

    .top {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }
    .nav {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0;
        background: rgba(10, 8, 6, 0.97);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(228, 184, 107, 0.3);
        flex-direction: column;
        gap: 0;
        padding: 80px 24px 24px;
        z-index: 50;
        font-size: 14px;
        justify-self: stretch;
    }
    .nav.open { display: flex; align-items: center; }
    .nav a, .nav button {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(228, 184, 107, 0.15);
        width: auto;
        min-width: 180px;
        text-align: center;
    }
    .nav a:last-child, .nav button:last-child { border-bottom: 0; }
    .nav-toggle { display: inline-flex; }

    .top-right { gap: 8px; }

    .hero {
        padding-bottom: clamp(50px, 12vh, 110px);
        align-items: flex-end;
    }
    .subtitle { font-size: clamp(18px, 5vw, 24px); }
    .cta { gap: 14px; flex-direction: column; }
    .btn-ornate { padding: 12px 26px; }

    .modal-panel { padding: 20px 16px; }
    .modal-close { top: 8px; right: 8px; }

    .anons-strip {
        justify-content: center;
    }
    .anons-rotator { display: none; }
    .anons-mobile { display: flex; width: 100%; justify-content: center; }
}

@media (max-width: 460px) {
    .bottom-left {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 12px;
    }
    .bottom-left a { white-space: normal; }
    .bottom-left .dim { display: none; }

    .desc-body { padding: 18px; }
    .desc-panel h2 { font-size: 20px; }
    .desc-panel p, .desc-panel li { font-size: 14px; }

    .legal { padding: 14px; overflow-x: hidden; }
    .legal p, .legal li { font-size: 14px; }
    .legal-wrap { padding-left: 0; padding-right: 0; }
    .legal h2 { word-break: break-word; }
    .legal a { word-break: break-all; }

    body.page-landing {
        height: 100dvh;
        overflow: hidden;
    }
    .bottom-right {
        font-size: 12px;
    }
    .bottom-right .cr-line {
        white-space: normal;
        display: block;
    }
}
@media (max-width: 460px) {
    body { padding: 10px 12px; }
    .lang-trigger { padding: 5px 8px; }
    .lang-btn { padding: 6px 10px; }
    .logo { font-size: 14px; }
    .btn-login { width: 40px; height: 40px; padding: 0; }
    .btn-login-icon { display: block; width: 16px; height: 16px; }
    .page-title { font-size: 22px; }
    .desc-body { height: clamp(220px, 50vh, 999px); }
}

/* Landing page on short screens: keep strict viewport and compact spacing */
@media (max-height: 600px) {
    body.page-landing { height: 100dvh; overflow: hidden; }
    .hero { padding-bottom: 24px; align-items: center; }
}
