/* =========================================================
   Lin2Web — shell (header / drawer / footer) + home page
   Loaded on the public layout after theme.css.
   ========================================================= */

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background:
        linear-gradient(180deg, rgba(10, 8, 6, .94), rgba(14, 11, 9, .82));
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 0;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
}
.site-header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 194, 122, .2) 15%, var(--gold) 50%, rgba(230, 194, 122, .2) 85%, transparent);
    opacity: .75;
    pointer-events: none;
}
.site-header::before {
    content: "";
    position: absolute; left: 50%; bottom: -5px; z-index: 1;
    width: 9px; height: 9px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--ink);
    border: 1px solid var(--gold);
    box-shadow: 0 0 12px rgba(230, 194, 122, .55);
    pointer-events: none;
}
.site-header .top_line {
    position: static;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
    padding: 0;
    gap: 28px;
}
.site-header .top_line::before { content: none; }
.site-header .header-logo { display: flex; align-items: center; flex: none; }
.site-header .header-logo img { height: 44px; width: auto; display: block; transition: filter .25s var(--ease), transform .25s var(--ease); }
.site-header .header-logo:hover img { filter: brightness(1.15) drop-shadow(0 0 12px rgba(230, 194, 122, .35)); }

/* primary nav */
.site-header .top_menu {
    display: flex; align-items: stretch; gap: 2px;
    margin: 0 auto; padding: 0;
    height: var(--header-h);
    list-style: none;
}
.site-header .top_menu .nav-item { display: flex; }
.site-header .top_menu .nav-link {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0; padding: 0 16px;
    background: none; border: 0;
    color: #d8ccb6;
    font-family: var(--font-accent-bold), serif; font-size: 13px;
    letter-spacing: .12em; text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
    transition: color .2s, background .3s;
}
.site-header .top_menu .nav-link svg { display: none; width: 18px; height: 18px; flex: none; }
.site-header .top_menu .nav-link::before {
    content: "";
    position: absolute; left: 50%; bottom: 14px;
    width: 5px; height: 5px;
    transform: translateX(-50%) rotate(45deg) scale(0);
    background: var(--gold);
    box-shadow: 0 0 8px rgba(230, 194, 122, .8);
    transition: transform .25s var(--ease);
}
.site-header .top_menu .nav-link::after {
    content: "";
    position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
}
.site-header .top_menu .nav-link:hover { color: #fff4d6; }
.site-header .top_menu .nav-link:hover::before { transform: translateX(-50%) rotate(45deg) scale(1); }
.site-header .top_menu .active > .nav-link {
    color: var(--gold-bright);
    background: radial-gradient(60% 90% at 50% 100%, rgba(230, 194, 122, .16), transparent 70%);
}
.site-header .top_menu .active > .nav-link::after { transform: scaleX(1); }
.site-header .top_menu .active > .nav-link::before { transform: translateX(-50%) rotate(45deg) scale(1); }

/* drawer-only items are hidden on desktop */
.top_menu__head, .top_menu__account { display: none !important; }

/* right cluster */
.site-header .top_right,
.site-header .top--right-menu,
.site-header .acp-panel-top { display: flex; align-items: center; gap: 12px; flex: none; }
.site-header .top_right { gap: 14px; }
.site-header .header-link {
    color: #d8ccb6; font-family: var(--font-accent-bold), serif; font-size: 12px;
    letter-spacing: .12em; text-transform: uppercase; transition: color .2s;
}
.site-header .header-link:hover, .site-header .header-link.active { color: var(--gold); }

/* server switcher in header */
.site-header .server-switcher { position: relative; }
.site-header .server-switcher__form { margin: 0; }
.site-header .server-switcher__current::before {
    content: ""; width: 7px; height: 7px; flex: none;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-soft));
    box-shadow: 0 0 6px rgba(230, 194, 122, .6);
}
.site-header .server-switcher__list { display: none; right: auto; left: 0; min-width: 160px; }
.site-header .server-switcher__list::before { right: auto; left: 22px; }
.site-header .server-switcher__item { font-family: var(--font-accent-bold), serif; }

/* balance chip + account toggle */
.site-header .auth_user_header_balance { gap: 6px; color: var(--gold-bright); font-size: 13px; }
.site-header .auth_user_header_balance img { width: 18px; height: 18px; object-fit: contain; }
.site-header .auth_user_header_balance .balance-symbol { color: var(--text-muted); font-size: 11px; }
.site-header .acp-panel-top-dropdown { position: relative; }
.site-header .acp-panel-top-user { padding-left: 4px; gap: 8px; }
.acp-avatar {
    display: grid; place-items: center;
    width: 24px; height: 24px; flex: none;
    border: 1px solid var(--gold-soft);
    background: radial-gradient(circle at 35% 30%, #5b4325, #1c140d);
    color: var(--gold-bright);
    font-size: 12px; line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6);
}
.acp-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.acp-name small { color: var(--text-muted); font-size: 10px; letter-spacing: .1em; margin-right: 2px; }
.site-header .dropdown-menu { min-width: 230px; }
.site-header .dropdown-menu.show { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.site-header .dropdown-menu a { white-space: nowrap; }

/* burger -> UI_IconBtn */
.site-header .gw-burger {
    display: none;
    position: relative; z-index: 10001;
    width: 40px; height: 40px; padding: 0;
    flex: none;
}
.site-header .gw-burger__line {
    position: absolute; left: 0; right: 0; margin: auto;
    width: 18px; height: 2px;
    border-radius: 0;
    background: var(--gold);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .6);
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease), bottom .3s var(--ease);
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    margin-top: 0;
    padding: 0 0 28px;
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(230, 194, 122, .07), transparent 60%),
        linear-gradient(180deg, #0c0a08, #060504);
    border-top: 1px solid rgba(201, 164, 99, .22);
}
.site-footer .line { display: none; }
.site-footer__crest { display: flex; justify-content: center; transform: translateY(-50%); pointer-events: none; }
.site-footer .ornament--footer { margin: 0; width: min(520px, 80%); }
.site-footer .ornament--footer span {
    width: 14px; height: 14px; background: #0c0a08;
    box-shadow: 0 0 14px rgba(230, 194, 122, .55), inset 0 0 0 3px #0c0a08, inset 0 0 0 4px rgba(230, 194, 122, .6);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
    padding: 28px 0 48px;
}
.site-footer__logo img { height: 48px; width: auto; display: block; }
.site-footer__brand p { margin: 18px 0 22px; max-width: 360px; font-size: 14px; color: var(--text-muted); }

.site-footer h3 {
    position: relative;
    margin: 6px 0 20px; padding-bottom: 12px;
    font-family: var(--font-accent-bold), serif;
    font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold);
}
.site-footer h3::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.site-footer .menu-footer { display: block; margin: 0; padding: 0; list-style: none; }
.site-footer .menu-footer li { margin: 0 0 10px; }
.site-footer .menu-footer a {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 14px;
    transition: color .2s, transform .2s var(--ease);
}
.site-footer .menu-footer a::before {
    content: ""; width: 5px; height: 5px; flex: none;
    transform: rotate(45deg);
    border: 1px solid rgba(201, 164, 99, .5);
    transition: background .2s, border-color .2s;
}
.site-footer .menu-footer a:hover { color: #fff4d6; transform: translateX(3px); }
.site-footer .menu-footer a:hover::before { background: var(--gold); border-color: var(--gold); }

.site-footer .copyright {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin: 0; padding: 22px 0 0;
    border-top: 1px solid var(--line);
    text-align: left;
}
.site-footer .copyright p { margin: 0; font-size: 12px; letter-spacing: .08em; color: #7d7365; }
.site-footer .copyright .heart { margin-left: auto; }
.site-footer .copyright a:not(.ui-icon-btn) { color: var(--gold); }
.site-footer .copyright a:not(.ui-icon-btn):hover { color: #fff4d6; }
.site-footer__top { width: 40px; height: 40px; padding: 0; }
.site-footer__top svg { width: 18px; height: 18px; }

/* ---------- Home: shared section bits ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
.home { position: relative; overflow: hidden; }
.home .classic-section { padding: 96px 0; background: transparent; }
.home .classic-section + .classic-section { padding-top: 24px; }
.home .section-head { margin-bottom: 44px; }
.home .section-head h2 { margin: 10px 0 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.home .section-head .ornament { margin: 16px auto 0; }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--gold-soft);
    font-family: var(--font-accent-regular), serif; font-size: 12px;
    letter-spacing: .28em; text-transform: uppercase;
}
.section-eyebrow::before, .section-eyebrow::after {
    content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.section-eyebrow::after { transform: scaleX(-1); }
.section-lead { margin: 16px 0 0; font-size: 15px; color: var(--text-muted); }
.section-lead b { color: #8fe0a2; font-family: var(--font-accent-bold), serif; font-size: 18px; font-weight: normal; }

.home-empty {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    max-width: 560px; margin: 0 auto; padding: 40px 32px;
    text-align: center;
}
.home-empty__icon { width: 72px; height: 72px; opacity: .85; filter: saturate(.7); }
.home-empty p { margin: 0; font-size: 15px; }

/* ---------- Home: hero ---------- */
.home-hero#main.hero {
    position: relative;
    display: flex; align-items: center;
    min-height: clamp(640px, 100vh, 1000px);
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + 40px) 0 120px;
    overflow: hidden;
    isolation: isolate;
    background: var(--ink);
}
.home-hero__bg {
    position: absolute; inset: -2%;
    z-index: -2;
    background: url("../img/lin2web/bg.webp") 30% 30% / cover no-repeat;
    animation: home-kenburns 38s ease-in-out infinite alternate;
}
.home-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(14, 11, 9, 0) 20%, rgba(14, 11, 9, .55) 55%, rgba(14, 11, 9, .92) 85%),
        linear-gradient(180deg, rgba(14, 11, 9, .7) 0%, rgba(14, 11, 9, 0) 22%, rgba(14, 11, 9, 0) 60%, var(--ink) 100%),
        radial-gradient(120% 80% at 50% 120%, rgba(160, 80, 20, .18), transparent 60%);
    pointer-events: none;
}
.home-hero#main.hero::after { height: 260px; z-index: -1; }
@keyframes home-kenburns { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, -1%); } }

.home-hero .wrap { position: relative; z-index: 1; width: 1320px; max-width: 100%; }
.home-hero .main-text {
    width: auto; max-width: 600px;
    margin: 0 0 0 auto; padding: 0;
    text-align: left;
    animation: home-rise .9s var(--ease) both;
}
.home-hero .hero-logo { display: block; margin: 0 0 22px; }
.home-hero .hero-logo img { max-height: 84px; width: auto; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .7)); }
.home-hero .hero-eyebrow { margin: 0; background: rgba(10, 8, 6, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.home-hero h1 { margin-top: 20px; font-size: clamp(36px, 4.6vw, 64px); letter-spacing: .02em; }
.home-hero .ornament { width: 280px; margin: 24px 0; }
.home-hero .main-text p {
    font-family: var(--font-regular), sans-serif; font-size: 18px; line-height: 1.7;
    color: #ddd1bc; max-width: 520px; margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.home-hero .btn-wrapper { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }
.home-hero .btn-wrapper .ui-btn { min-width: 190px; }


.pulse {
    position: relative; display: inline-block; flex: none;
    width: 8px; height: 8px; border-radius: 50%;
    background: #5fd27c;
    box-shadow: 0 0 8px rgba(95, 210, 124, .8);
}
.pulse::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid rgba(95, 210, 124, .7);
    animation: home-pulse 2s ease-out infinite;
}
@keyframes home-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* embers */
.home-hero__embers { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.home-hero__embers i {
    position: absolute; bottom: -20px;
    width: 4px; height: 4px; border-radius: 50%;
    background: #ffcf7a;
    box-shadow: 0 0 10px 2px rgba(255, 170, 70, .8);
    opacity: 0;
    animation: home-ember 11s linear infinite;
}
.home-hero__embers i:nth-child(1) { left: 8%;  animation-delay: 0s;   animation-duration: 12s; }
.home-hero__embers i:nth-child(2) { left: 22%; animation-delay: 3s;   animation-duration: 9s;  width: 3px; height: 3px; }
.home-hero__embers i:nth-child(3) { left: 37%; animation-delay: 6s;   animation-duration: 13s; }
.home-hero__embers i:nth-child(4) { left: 49%; animation-delay: 1.5s; animation-duration: 10s; width: 2px; height: 2px; }
.home-hero__embers i:nth-child(5) { left: 61%; animation-delay: 4.5s; animation-duration: 12s; }
.home-hero__embers i:nth-child(6) { left: 74%; animation-delay: 7s;   animation-duration: 9s;  width: 3px; height: 3px; }
.home-hero__embers i:nth-child(7) { left: 86%; animation-delay: 2.5s; animation-duration: 14s; }
.home-hero__embers i:nth-child(8) { left: 95%; animation-delay: 8s;   animation-duration: 11s; width: 2px; height: 2px; }
@keyframes home-ember {
    0%   { transform: translate(0, 0); opacity: 0; }
    10%  { opacity: .9; }
    50%  { transform: translate(30px, -45vh); }
    80%  { opacity: .5; }
    100% { transform: translate(-20px, -90vh); opacity: 0; }
}
@keyframes home-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Home: realms ---------- */
.realm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 28px;
}
.realm-card.server_item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "crest desc actions" "info info info";
    align-items: center;
    gap: 18px 22px;
    margin: 0; padding: 30px;
    background:
        radial-gradient(90% 70% at 0% 0%, rgba(230, 194, 122, .12), transparent 60%),
        linear-gradient(180deg, rgba(36, 28, 21, .9), rgba(18, 14, 11, .95));
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .35), inset 0 0 0 5px rgba(201, 164, 99, .12), 0 20px 40px rgba(0, 0, 0, .35);
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.realm-card.server_item::before {
    content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.realm-card.server_item:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 194, 122, .55);
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .35), inset 0 0 0 5px rgba(201, 164, 99, .2), 0 28px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(230, 194, 122, .08);
}
.realm-card__crest { grid-area: crest; position: relative; }
.realm-card__crest::before {
    content: ""; position: absolute; inset: -14px; border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 194, 122, .25), transparent 70%);
}
.realm-card.server_item .realm-card__crest img { position: relative; display: block; width: 96px; height: 96px; margin: 0; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); }
.realm-card .server_desc { grid-area: desc; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.realm-card__label { color: var(--gold-soft); font-family: var(--font-accent-regular), serif; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.realm-card .server_name { font-family: var(--font-accent-bold), serif; font-size: 28px; line-height: 1.1; color: #f6e7c4; letter-spacing: .04em; }
.realm-card .server_online {
    display: flex; align-items: center; gap: 12px; margin-top: 4px;
    font-family: var(--font-regular), sans-serif; font-size: 14px; color: var(--text-muted);
}
.realm-card .server_online .online {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; order: 2;
    color: #8fe0a2; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.realm-card .server_online .online::before { content: none; }
.realm-card .server_online b { order: 1; color: #fff4d6; font-family: var(--font-accent-bold), serif; font-size: 24px; line-height: 1; font-weight: normal; }
.realm-card .server_info { grid-area: info; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.realm-card .server_info p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.realm-card__actions { grid-area: actions; display: flex; justify-content: flex-end; }

/* ---------- Home: rankings ---------- */
.home-rankings { isolation: isolate; }
.home-rankings::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: url("../img/lin2web/l2world.jpg") center / 1400px auto no-repeat;
    opacity: .06;
    filter: sepia(1) contrast(1.2);
    -webkit-mask-image: radial-gradient(55% 60% at 50% 50%, #000 35%, transparent 80%);
    mask-image: radial-gradient(55% 60% at 50% 50%, #000 35%, transparent 80%);
    pointer-events: none;
}
.home-board.panel { padding: 30px 32px 24px; background: linear-gradient(180deg, rgba(30, 23, 17, .94), rgba(16, 12, 9, .96)); }
.home-board__corner {
    position: absolute; width: 22px; height: 22px; pointer-events: none;
    border: 0 solid var(--gold); opacity: .8;
}
.home-board__corner--tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.home-board__corner--tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.home-board__corner--bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.home-board__corner--br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }
.home-board .tabs { justify-content: center; gap: 6px; }
.home-board .tablink { min-width: 130px; min-height: 44px; font-size: 13px; }
.home-board .rating_block { position: relative; padding: 8px 0 0; }
.rating-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.home-board table.rating { color: var(--text); font-size: 14px; }
.home-board table.rating th {
    padding: 14px 14px; font-size: 11px; letter-spacing: .16em; text-align: left;
    color: var(--gold-soft); background: none; border-bottom: 1px solid var(--panel-border);
}
.home-board table.rating td {
    padding: 12px 14px; font-size: 14px; color: var(--text);
    border-bottom: 1px solid rgba(201, 164, 99, .08);
    font-family: var(--font-regular), sans-serif;
}
.home-board table.rating td:last-child { font-family: var(--font-regular), sans-serif; color: var(--text); }
.home-board table.rating .num { text-align: center; }
.home-board table.rating .rank { width: 64px; text-align: center; }
.home-board table.rating .muted { color: var(--text-muted); font-size: 13px; }
.home-board table.rating .strong { font-family: var(--font-accent-bold), serif; color: #f1e2bf; }
.home-board table.rating tbody tr:nth-child(even) { background: rgba(255, 240, 210, .018); }
.home-board table.rating tbody tr:hover { background: linear-gradient(90deg, rgba(230, 194, 122, .1), rgba(230, 194, 122, .02)); }
.home-board table.rating tbody tr:nth-child(-n+3) td { color: #f6e7c4; }
.home-board .rating_place { width: auto; display: flex; justify-content: center; }
.home-board .rating_place img { width: 30px; height: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.home-board .rating_place .other {
    position: relative;
    display: grid; place-items: center;
    width: 30px; height: 30px; margin: 0;
    font-family: var(--font-accent-bold), serif; font-size: 12px; color: var(--text-muted);
}
.home-board .rating_place .other::before {
    content: ""; position: absolute; inset: 6px;
    border: 1px solid var(--panel-border);
    transform: rotate(45deg);
}
.home-board .char-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-accent-bold), serif; color: #f1e2bf; letter-spacing: .02em; }
.home-board .char-name .clan-crest { display: inline-flex; gap: 1px; margin: 0; }
.home-board .char-name .clan-crest img { display: block; image-rendering: pixelated; box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); }
.home-board .green { color: #8fe0a2; font-family: var(--font-accent-bold), serif; }
.home-board .red { color: #f08a78; font-family: var(--font-accent-bold), serif; }
.home-board .rating-empty td { padding: 40px 14px; text-align: center !important; color: var(--text-muted) !important; font-style: italic; }
.home-board .rating-empty:hover { background: none !important; }

/* ---------- Home: news ---------- */
.home-news__grid { align-items: stretch; }
.home-news-card.panel { padding: 0; gap: 0; overflow: hidden; }
.home-news-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--panel-border); }
.home-news-card__img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .6s var(--ease), filter .4s;
}
.home-news-card__img--placeholder {
    background:
        url("../img/news-1.png") center / 96px auto no-repeat,
        radial-gradient(circle at 50% 50%, rgba(230, 194, 122, .18), transparent 60%),
        linear-gradient(180deg, #2a2017, #120e0b);
}
.home-news-card__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(14, 11, 9, .75));
}
.home-news-card:hover .home-news-card__img { transform: scale(1.06); filter: brightness(1.1); }
.home-news-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.home-news-card time { color: var(--gold-soft); }
.home-news-card h3 { font-size: 18px; line-height: 1.3; }
.home-news-card h3 a { color: #f1e2bf; }

/* ---------- Home: community ---------- */

/* forum (optional) */
.forum-all.panel { margin-top: 28px; }
.forum-list { margin: 0; padding: 0; list-style: none; }
.forum-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.forum-item:last-child { border-bottom: 0; padding-bottom: 0; }
.forum-ava img { width: 44px; height: 44px; display: block; }
.forum-desc { flex: 1; min-width: 0; }
.forum-title a { font-family: var(--font-accent-bold), serif; color: #f1e2bf; font-size: 15px; transition: color .2s; }
.forum-title a:hover { color: var(--gold); }
.forum-author { margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.forum-author span { color: var(--gold-soft); }

/* ---------- Home: CTA ---------- */
.home-cta { position: relative; padding: 24px 0 110px; }
.home-cta__panel.panel.cta {
    position: relative; overflow: hidden;
    min-height: 280px;
    padding: 56px 60px;
    background:
        linear-gradient(90deg, rgba(18, 14, 11, .98) 30%, rgba(18, 14, 11, .7) 60%, rgba(18, 14, 11, .35)),
        url("../img/bg-other.jpg") 80% 30% / cover no-repeat;
    border-color: rgba(230, 194, 122, .4);
}
.home-cta__panel::after {
    content: ""; position: absolute; left: 60px; right: 60px; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.home-cta__text { max-width: 560px; }
.home-cta__text h2 { margin: 12px 0 0; }
.home-cta__text p { font-size: 16px; color: #d6cbb8; }
.home-cta .section-eyebrow::before { content: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .site-header .top_menu .nav-link { padding: 0 11px; letter-spacing: .08em; }
    .site-header .header-link { display: none; }
    .home-community__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acp-name { display: none; }
    .site-header .auth_user_header_balance { display: none; }
}

@media (max-width: 960px) {
    :root { --header-h: 64px; }
    .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 9, 7, .97); }
    .site-header .top_line { gap: 12px; }
    .site-header .header-logo img { height: 36px; }
    .site-header .gw-burger { display: inline-grid; }
    .site-header .top_right { margin-left: auto; gap: 10px; }
    .site-header .top--right-menu { display: none; }
    .site-header .auth_user_header_balance { display: none; }

    /* drawer */
    .site-header .top_menu {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 10000;
        display: flex; flex-direction: column; align-items: stretch; gap: 0;
        width: min(330px, 86vw); height: 100vh; height: 100dvh;
        margin: 0; padding: 22px 20px 26px;
        overflow-y: auto;
        background:
            radial-gradient(120% 40% at 0% 0%, rgba(230, 194, 122, .12), transparent 60%),
            linear-gradient(180deg, #1b1510, #0c0a08);
        border-right: 1px solid rgba(201, 164, 99, .45);
        box-shadow: inset -4px 0 0 rgba(0, 0, 0, .4), inset -5px 0 0 rgba(201, 164, 99, .1), 30px 0 60px rgba(0, 0, 0, .6);
        transform: translateX(-105%);
        transition: transform .35s var(--ease);
    }
    .site-header ul.top_menu.active { transform: translateX(0); }
    .site-header .top_line::after {
        content: ""; position: fixed; inset: 0; z-index: 9999;
        background: rgba(5, 4, 3, .7);
        opacity: 0; visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }
    .site-header .top_line:has(.top_menu.active)::after { opacity: 1; visibility: visible; }
    body:has(.top_menu.active) { overflow: hidden; }

    .site-header .top_menu__head {
        display: flex !important; flex-direction: column; align-items: center;
        padding: 6px 0 4px;
    }
    .site-header .top_menu__head img { height: 46px; width: auto; }
    .site-header .top_menu__head .ornament { width: 100%; margin: 16px 0 10px; }
    .site-header .top_menu .nav-item { display: block; border-bottom: 1px solid var(--line); }
    .site-header .top_menu .nav-link {
        display: flex; width: 100%; height: auto;
        padding: 16px 12px; gap: 14px;
        font-size: 14px; letter-spacing: .14em;
    }
    .site-header .top_menu .nav-link svg { display: block; color: var(--gold-soft); }
    .site-header .top_menu .nav-link::before { left: auto; right: 12px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(45deg) scale(0); }
    .site-header .top_menu .nav-link:hover::before,
    .site-header .top_menu .active > .nav-link::before { transform: translateY(-50%) rotate(45deg) scale(1); }
    .site-header .top_menu .nav-link::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; transform: scaleY(0); background: var(--gold); }
    .site-header .top_menu .active > .nav-link::after { transform: scaleY(1); }
    .site-header .top_menu .active > .nav-link { background: linear-gradient(90deg, rgba(230, 194, 122, .14), transparent); }
    .site-header .top_menu__account {
        display: flex !important; flex-direction: column; gap: 10px;
        margin-top: auto; padding-top: 26px;
    }
    .top_menu__balance {
        display: flex; align-items: center; gap: 10px;
        padding: 12px 14px; margin-bottom: 4px;
        border: 1px solid var(--panel-border);
        background: rgba(0, 0, 0, .3);
        color: var(--text-muted); font-size: 13px;
    }
    .top_menu__balance img { width: 20px; height: 20px; }
    .top_menu__balance b { margin-left: auto; color: var(--gold-bright); font-family: var(--font-accent-bold), serif; font-weight: normal; }

    /* burger -> close (X) */
    .site-header .gw-burger__line_pos_top { top: 12px; bottom: auto; transform: none; }
    .site-header .gw-burger__line_pos_middle { top: 0; bottom: 0; transform: none; }
    .site-header .gw-burger__line_pos_bottom { top: auto; bottom: 12px; transform: none; }
    .site-header .gw-burger_active { position: fixed; top: 12px; left: calc(min(330px, 86vw) + 12px); }
    .site-header .gw-burger_active .gw-burger__line_pos_top { top: 0; bottom: 0; transform: rotate(45deg); }
    .site-header .gw-burger_active .gw-burger__line_pos_middle { opacity: 0; transform: scaleX(0); }
    .site-header .gw-burger_active .gw-burger__line_pos_bottom { top: 0; bottom: 0; transform: rotate(-45deg); }

    .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
    .site-footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; }
    .site-footer__brand p { max-width: 520px; }

    .home .classic-section { padding: 72px 0; }
    .home-hero#main.hero { min-height: auto; padding: calc(var(--header-h) + 64px) 0 110px; }
    .home-hero__bg { background-position: 22% 30%; }
    .home-hero::before {
        background:
            linear-gradient(180deg, rgba(14, 11, 9, .55) 0%, rgba(14, 11, 9, .45) 40%, rgba(14, 11, 9, .85) 75%, var(--ink) 100%);
    }
    .home-hero .main-text { margin: 0 auto; text-align: center; }
    .home-hero .hero-logo img { margin: 0 auto; }
    .home-hero .ornament { margin: 22px auto; }
    .home-hero .main-text p { margin: 0 auto; }
    .home-hero .btn-wrapper { justify-content: center; }
    .home-cta__panel.panel.cta { padding: 40px 32px; background: linear-gradient(180deg, rgba(18, 14, 11, .9), rgba(18, 14, 11, .97)), url("../img/bg-other.jpg") 60% 30% / cover no-repeat; }
}

@media (max-width: 600px) {
    .site-header .top_right { gap: 8px; }
    .site-header .server-switcher__current, .site-header .nav__langs-item--current { padding: 0 9px; gap: 6px; }
    .site-header .nav__langs-item--current span { display: none; }
    .site-header .header-logo img { height: 30px; }
    .site-header .acp-panel-top-user .acp-name, .site-header .acp-panel-top-user .arrow-down-acp { display: none; }
    .site-header .acp-panel-top-user { padding: 0 6px; }

    .home .classic-section { padding: 56px 0; }
    .home .classic-section + .classic-section { padding-top: 8px; }
    .home .section-head { margin-bottom: 30px; }
    .home-hero#main.hero { padding: calc(var(--header-h) + 36px) 0 96px; }
    .home-hero .hero-logo { display: none; }
    .home-hero .main-text p { font-size: 16px; }
    .home-hero .btn-wrapper .ui-btn { width: 100%; }
    .realm-card.server_item { grid-template-columns: 1fr; grid-template-areas: "crest" "desc" "info" "actions"; justify-items: center; text-align: center; padding: 26px 20px; }
    .realm-card .server_online { justify-content: center; }
    .realm-card__actions { justify-content: center; width: 100%; }
    .realm-card__actions .ui-btn { width: 100%; }
    .home-board.panel { padding: 22px 12px 14px; }
    .home-board .tabs { gap: 4px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
    .home-board .tabs::-webkit-scrollbar { display: none; }
    .home-board .tablink { min-width: 0; flex: 1 1 0; padding: 4px 6px; font-size: 11px; letter-spacing: .02em; }
    .home-board table.rating th, .home-board table.rating td { padding: 10px 8px; font-size: 12px; }
    .home-board table.rating .rank { width: 44px; }
    .home-board__corner { display: none; }
    .home-community__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .home-social.panel { padding: 22px 12px; }
    .home-social img { width: 60px; height: 60px; }
    .home-social__body span { display: none; }
    .home-cta { padding-bottom: 80px; }
    .home-cta__panel.panel.cta { padding: 32px 22px; }
    .home-cta .cta__actions, .home-cta .cta__actions .ui-btn { width: 100%; }

    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .site-footer__grid > .site-footer__col:last-child { grid-column: 1 / -1; }
    .site-footer .copyright { flex-wrap: wrap; justify-content: center; text-align: center; }
    .site-footer .copyright .heart { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__bg, .home-hero__embers i, .pulse::after, .home-hero .main-text { animation: none !important; }
    html { scroll-behavior: auto; }
}
